2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.53.
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.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
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
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
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
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
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; }; }
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).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if 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
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
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}
254 # Identity of this package.
261 ac_unique_file="ssh.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
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.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
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 ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
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" ;;
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'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
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 ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
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 ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
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'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
594 # Obsolete; use --with-x.
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 ;;
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 ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
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'"
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}
637 if 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; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
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.
673 # FIXME: To remove some day.
674 if 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
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if 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 ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if 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; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if 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.
763 \`configure' configures this package to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
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 \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine 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]
817 --build=BUILD configure for building on BUILD [guessed]
818 --host=HOST cross-compile to build programs to run on HOST [BUILD]
822 if test -n "$ac_init_help"; then
827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
829 --disable-largefile omit support for large files
830 --enable-suid-ssh Install ssh as suid root (default)
831 --disable-suid-ssh Install ssh without suid bit
832 --disable-lastlog disable use of lastlog even if detected no
833 --disable-utmp disable use of utmp even if detected no
834 --disable-utmpx disable use of utmpx even if detected no
835 --disable-wtmp disable use of wtmp even if detected no
836 --disable-wtmpx disable use of wtmpx even if detected no
837 --disable-libutil disable use of libutil (login() etc.) no
838 --disable-pututline disable use of pututline() etc. (uwtmp) no
839 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
842 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
843 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
844 --with-osfsia Enable Digital Unix SIA
845 --with-cflags Specify additional flags to pass to compiler
846 --with-cppflags Specify additional flags to pass to preprocessor
847 --with-ldflags Specify additional flags to pass to linker
848 --with-libs Specify additional libraries to link with
849 --without-rpath Disable auto-added -R linker paths
850 --with-zlib=PATH Use zlib in PATH
851 --with-skey[=PATH] Enable S/Key support
853 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
855 --with-pam Enable PAM support
856 --with-ssl-dir=PATH Specify path to OpenSSL installation
857 --with-rand-helper Use subprocess to gather strong randomness
858 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
859 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
860 --with-entropy-timeout Specify entropy gathering command timeout (msec)
861 --with-privsep-user=user Specify non-privileged user for privilege separation
862 --with-sectok Enable smartcard support using libsectok
863 --with-opensc=PFX Enable smartcard support using OpenSC
864 --with-kerberos5=PATH Enable Kerberos 5 support
865 --with-kerberos4=PATH Enable Kerberos 4 support
866 --with-afs=PATH Enable AFS support
867 --with-rsh=PATH Specify path to remote shell program
868 --with-privsep-path=xxx Path for privilege separation chroot
869 --with-xauth=PATH Specify path to xauth program
870 --with-mantype=man|cat|doc Set man page type
871 --with-md5-passwords Enable use of MD5 passwords
872 --without-shadow Disable shadow password support
873 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
874 --with-default-path= Specify default \$PATH environment for server
875 --with-superuser-path= Specify different path for super-user
876 --with-ipv4-default Use IPv4 by connections unless '-6' specified
877 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
878 --with-bsd-auth Enable BSD auth support
879 --with-pid-dir=PATH Specify location of ssh.pid file
880 --with-lastlog=FILE|DIR specify lastlog location common locations
882 Some influential environment variables:
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
929 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
930 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
931 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
932 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
935 # Check for guested configure; otherwise get Cygnus style configure.
936 if test -f $ac_srcdir/configure.gnu; then
938 $SHELL $ac_srcdir/configure.gnu --help=recursive
939 elif test -f $ac_srcdir/configure; then
941 $SHELL $ac_srcdir/configure --help=recursive
942 elif test -f $ac_srcdir/configure.ac ||
943 test -f $ac_srcdir/configure.in; then
947 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953 test -n "$ac_init_help" && exit 0
954 if $ac_init_version; then
957 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
958 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.53. Invocation command line was
977 @%:@@%:@ --------- @%:@@%:@
978 @%:@@%:@ Platform. @%:@@%:@
979 @%:@@%:@ --------- @%:@@%:@
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1013 @%:@@%:@ ----------- @%:@@%:@
1014 @%:@@%:@ Core tests. @%:@@%:@
1015 @%:@@%:@ ----------- @%:@@%:@
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 case " $ac_configure_args " in
1037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1054 @%:@@%:@ ---------------- @%:@@%:@
1055 @%:@@%:@ Cache variables. @%:@@%:@
1056 @%:@@%:@ ---------------- @%:@@%:@
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 if test -s confdefs.h; then
1077 @%:@@%:@ ----------- @%:@@%:@
1078 @%:@@%:@ confdefs.h. @%:@@%:@
1079 @%:@@%:@ ----------- @%:@@%:@
1082 sed "/^$/d" confdefs.h
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1110 cat >>confdefs.h <<_ACEOF
1111 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 cat >>confdefs.h <<_ACEOF
1116 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 cat >>confdefs.h <<_ACEOF
1121 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1125 cat >>confdefs.h <<_ACEOF
1126 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1165 # Check that the precious variables saved in the cache have kept the same
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1241 ac_config_headers="$ac_config_headers config.h"
1244 ac_cpp='$CPP $CPPFLAGS'
1245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1248 if test -n "$ac_tool_prefix"; then
1249 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1250 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1251 echo "$as_me:$LINENO: checking for $ac_word" >&5
1252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1253 if test "${ac_cv_prog_CC+set}" = set; then
1254 echo $ECHO_N "(cached) $ECHO_C" >&6
1256 if test -n "$CC"; then
1257 ac_cv_prog_CC="$CC" # Let the user override the test.
1259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1263 test -z "$as_dir" && as_dir=.
1264 for ac_exec_ext in '' $ac_executable_extensions; do
1265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1266 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1276 if test -n "$CC"; then
1277 echo "$as_me:$LINENO: result: $CC" >&5
1278 echo "${ECHO_T}$CC" >&6
1280 echo "$as_me:$LINENO: result: no" >&5
1281 echo "${ECHO_T}no" >&6
1285 if test -z "$ac_cv_prog_CC"; then
1287 # Extract the first word of "gcc", so it can be a program name with args.
1288 set dummy gcc; ac_word=$2
1289 echo "$as_me:$LINENO: checking for $ac_word" >&5
1290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1292 echo $ECHO_N "(cached) $ECHO_C" >&6
1294 if test -n "$ac_ct_CC"; then
1295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1301 test -z "$as_dir" && as_dir=.
1302 for ac_exec_ext in '' $ac_executable_extensions; do
1303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1304 ac_cv_prog_ac_ct_CC="gcc"
1305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1314 if test -n "$ac_ct_CC"; then
1315 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1316 echo "${ECHO_T}$ac_ct_CC" >&6
1318 echo "$as_me:$LINENO: result: no" >&5
1319 echo "${ECHO_T}no" >&6
1327 if test -z "$CC"; then
1328 if test -n "$ac_tool_prefix"; then
1329 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1330 set dummy ${ac_tool_prefix}cc; ac_word=$2
1331 echo "$as_me:$LINENO: checking for $ac_word" >&5
1332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1333 if test "${ac_cv_prog_CC+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 if test -n "$CC"; then
1337 ac_cv_prog_CC="$CC" # Let the user override the test.
1339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 test -z "$as_dir" && as_dir=.
1344 for ac_exec_ext in '' $ac_executable_extensions; do
1345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1346 ac_cv_prog_CC="${ac_tool_prefix}cc"
1347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1356 if test -n "$CC"; then
1357 echo "$as_me:$LINENO: result: $CC" >&5
1358 echo "${ECHO_T}$CC" >&6
1360 echo "$as_me:$LINENO: result: no" >&5
1361 echo "${ECHO_T}no" >&6
1365 if test -z "$ac_cv_prog_CC"; then
1367 # Extract the first word of "cc", so it can be a program name with args.
1368 set dummy cc; ac_word=$2
1369 echo "$as_me:$LINENO: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 if test -n "$ac_ct_CC"; then
1375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381 test -z "$as_dir" && as_dir=.
1382 for ac_exec_ext in '' $ac_executable_extensions; do
1383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1384 ac_cv_prog_ac_ct_CC="cc"
1385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1394 if test -n "$ac_ct_CC"; then
1395 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1396 echo "${ECHO_T}$ac_ct_CC" >&6
1398 echo "$as_me:$LINENO: result: no" >&5
1399 echo "${ECHO_T}no" >&6
1408 if test -z "$CC"; then
1409 # Extract the first word of "cc", so it can be a program name with args.
1410 set dummy cc; ac_word=$2
1411 echo "$as_me:$LINENO: checking for $ac_word" >&5
1412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1413 if test "${ac_cv_prog_CC+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 if test -n "$CC"; then
1417 ac_cv_prog_CC="$CC" # Let the user override the test.
1420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 test -z "$as_dir" && as_dir=.
1425 for ac_exec_ext in '' $ac_executable_extensions; do
1426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1427 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1428 ac_prog_rejected=yes
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438 if test $ac_prog_rejected = yes; then
1439 # We found a bogon in the path, so make sure we never use it.
1440 set dummy $ac_cv_prog_CC
1442 if test $@%:@ != 0; then
1443 # We chose a different compiler from the bogus one.
1444 # However, it has the same basename, so the bogon will be chosen
1445 # first if we set CC to just the basename; use the full file name.
1447 set dummy "$as_dir/$ac_word" ${1+"$@"}
1455 if test -n "$CC"; then
1456 echo "$as_me:$LINENO: result: $CC" >&5
1457 echo "${ECHO_T}$CC" >&6
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1464 if test -z "$CC"; then
1465 if test -n "$ac_tool_prefix"; then
1468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 if test -n "$CC"; then
1476 ac_cv_prog_CC="$CC" # Let the user override the test.
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 if test -n "$CC"; then
1496 echo "$as_me:$LINENO: result: $CC" >&5
1497 echo "${ECHO_T}$CC" >&6
1499 echo "$as_me:$LINENO: result: no" >&5
1500 echo "${ECHO_T}no" >&6
1503 test -n "$CC" && break
1506 if test -z "$CC"; then
1510 # Extract the first word of "$ac_prog", so it can be a program name with args.
1511 set dummy $ac_prog; ac_word=$2
1512 echo "$as_me:$LINENO: checking for $ac_word" >&5
1513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 if test -n "$ac_ct_CC"; then
1518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 test -z "$as_dir" && as_dir=.
1525 for ac_exec_ext in '' $ac_executable_extensions; do
1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527 ac_cv_prog_ac_ct_CC="$ac_prog"
1528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1537 if test -n "$ac_ct_CC"; then
1538 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1539 echo "${ECHO_T}$ac_ct_CC" >&6
1541 echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1545 test -n "$ac_ct_CC" && break
1554 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1555 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1556 { (exit 1); exit 1; }; }
1558 # Provide some information about the compiler.
1559 echo "$as_me:$LINENO:" \
1560 "checking for C compiler version" >&5
1561 ac_compiler=`set X $ac_compile; echo $2`
1562 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1563 (eval $ac_compiler --version </dev/null >&5) 2>&5
1565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1566 (exit $ac_status); }
1567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1568 (eval $ac_compiler -v </dev/null >&5) 2>&5
1570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1571 (exit $ac_status); }
1572 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1573 (eval $ac_compiler -V </dev/null >&5) 2>&5
1575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1576 (exit $ac_status); }
1578 cat >conftest.$ac_ext <<_ACEOF
1579 #line $LINENO "configure"
1580 #include "confdefs.h"
1582 #ifdef F77_DUMMY_MAIN
1586 int F77_DUMMY_MAIN() { return 1; }
1596 ac_clean_files_save=$ac_clean_files
1597 ac_clean_files="$ac_clean_files a.out a.exe"
1598 # Try to create an executable without -o first, disregard a.out.
1599 # It will help us diagnose broken compilers, and finding out an intuition
1601 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1602 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1603 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1604 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1605 (eval $ac_link_default) 2>&5
1607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1608 (exit $ac_status); }; then
1609 # Find the output, starting from the most likely. This scheme is
1610 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1613 # Be careful to initialize this variable, since it used to be cached.
1614 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1616 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1617 ls a.out conftest 2>/dev/null;
1618 ls a.* conftest.* 2>/dev/null`; do
1620 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1621 a.out ) # We found the default executable, but exeext='' is most
1624 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1625 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1632 echo "$as_me: failed program was:" >&5
1633 cat conftest.$ac_ext >&5
1634 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1635 echo "$as_me: error: C compiler cannot create executables" >&2;}
1636 { (exit 77); exit 77; }; }
1639 ac_exeext=$ac_cv_exeext
1640 echo "$as_me:$LINENO: result: $ac_file" >&5
1641 echo "${ECHO_T}$ac_file" >&6
1643 # Check the compiler produces executables we can run. If not, either
1644 # the compiler is broken, or we cross compile.
1645 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1646 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1647 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1648 # If not cross compiling, check that we can run a simple program.
1649 if test "$cross_compiling" != yes; then
1650 if { ac_try='./$ac_file'
1651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1655 (exit $ac_status); }; }; then
1658 if test "$cross_compiling" = maybe; then
1661 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1662 If you meant to cross compile, use \`--host'." >&5
1663 echo "$as_me: error: cannot run C compiled programs.
1664 If you meant to cross compile, use \`--host'." >&2;}
1665 { (exit 1); exit 1; }; }
1669 echo "$as_me:$LINENO: result: yes" >&5
1670 echo "${ECHO_T}yes" >&6
1672 rm -f a.out a.exe conftest$ac_cv_exeext
1673 ac_clean_files=$ac_clean_files_save
1674 # Check the compiler produces executables we can run. If not, either
1675 # the compiler is broken, or we cross compile.
1676 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1677 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1678 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1679 echo "${ECHO_T}$cross_compiling" >&6
1681 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1682 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1684 (eval $ac_link) 2>&5
1686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687 (exit $ac_status); }; then
1688 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1689 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1690 # work properly (i.e., refer to `conftest.exe'), while it won't with
1692 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1694 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1695 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1702 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1703 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1704 { (exit 1); exit 1; }; }
1707 rm -f conftest$ac_cv_exeext
1708 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1709 echo "${ECHO_T}$ac_cv_exeext" >&6
1711 rm -f conftest.$ac_ext
1712 EXEEXT=$ac_cv_exeext
1714 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1715 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1716 if test "${ac_cv_objext+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 cat >conftest.$ac_ext <<_ACEOF
1720 #line $LINENO "configure"
1721 #include "confdefs.h"
1723 #ifdef F77_DUMMY_MAIN
1727 int F77_DUMMY_MAIN() { return 1; }
1737 rm -f conftest.o conftest.obj
1738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1739 (eval $ac_compile) 2>&5
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }; then
1743 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1746 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1751 echo "$as_me: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1753 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1754 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1755 { (exit 1); exit 1; }; }
1758 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1760 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1761 echo "${ECHO_T}$ac_cv_objext" >&6
1762 OBJEXT=$ac_cv_objext
1764 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1765 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1766 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 cat >conftest.$ac_ext <<_ACEOF
1770 #line $LINENO "configure"
1771 #include "confdefs.h"
1773 #ifdef F77_DUMMY_MAIN
1777 int F77_DUMMY_MAIN() { return 1; }
1790 rm -f conftest.$ac_objext
1791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1792 (eval $ac_compile) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); } &&
1796 { ac_try='test -s conftest.$ac_objext'
1797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }; }; then
1804 echo "$as_me: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1808 rm -f conftest.$ac_objext conftest.$ac_ext
1809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1812 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1813 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1814 GCC=`test $ac_compiler_gnu = yes && echo yes`
1815 ac_test_CFLAGS=${CFLAGS+set}
1816 ac_save_CFLAGS=$CFLAGS
1818 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1819 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1820 if test "${ac_cv_prog_cc_g+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 cat >conftest.$ac_ext <<_ACEOF
1824 #line $LINENO "configure"
1825 #include "confdefs.h"
1827 #ifdef F77_DUMMY_MAIN
1831 int F77_DUMMY_MAIN() { return 1; }
1841 rm -f conftest.$ac_objext
1842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1843 (eval $ac_compile) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); } &&
1847 { ac_try='test -s conftest.$ac_objext'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1855 echo "$as_me: failed program was:" >&5
1856 cat conftest.$ac_ext >&5
1859 rm -f conftest.$ac_objext conftest.$ac_ext
1861 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1862 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1863 if test "$ac_test_CFLAGS" = set; then
1864 CFLAGS=$ac_save_CFLAGS
1865 elif test $ac_cv_prog_cc_g = yes; then
1866 if test "$GCC" = yes; then
1872 if test "$GCC" = yes; then
1878 # Some people use a C++ compiler to compile C. Since we use `exit',
1879 # in C++ we need to declare it. In case someone uses the same compiler
1880 # for both compiling C and C++ we need to have the C++ compiler decide
1881 # the declaration of exit, since it's the most demanding environment.
1882 cat >conftest.$ac_ext <<_ACEOF
1883 @%:@ifndef __cplusplus
1887 rm -f conftest.$ac_objext
1888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1889 (eval $ac_compile) 2>&5
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); } &&
1893 { ac_try='test -s conftest.$ac_objext'
1894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }; }; then
1899 for ac_declaration in \
1901 '#include <stdlib.h>' \
1902 'extern "C" void std::exit (int) throw (); using std::exit;' \
1903 'extern "C" void std::exit (int); using std::exit;' \
1904 'extern "C" void exit (int) throw ();' \
1905 'extern "C" void exit (int);' \
1908 cat >conftest.$ac_ext <<_ACEOF
1909 #line $LINENO "configure"
1910 #include "confdefs.h"
1911 @%:@include <stdlib.h>
1913 #ifdef F77_DUMMY_MAIN
1917 int F77_DUMMY_MAIN() { return 1; }
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); } &&
1933 { ac_try='test -s conftest.$ac_objext'
1934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; }; then
1941 echo "$as_me: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1945 rm -f conftest.$ac_objext conftest.$ac_ext
1946 cat >conftest.$ac_ext <<_ACEOF
1947 #line $LINENO "configure"
1948 #include "confdefs.h"
1950 #ifdef F77_DUMMY_MAIN
1954 int F77_DUMMY_MAIN() { return 1; }
1964 rm -f conftest.$ac_objext
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); } &&
1970 { ac_try='test -s conftest.$ac_objext'
1971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; }; then
1978 echo "$as_me: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 rm -f conftest.$ac_objext conftest.$ac_ext
1984 if test -n "$ac_declaration"; then
1985 echo '#ifdef __cplusplus' >>confdefs.h
1986 echo $ac_declaration >>confdefs.h
1987 echo '#endif' >>confdefs.h
1991 echo "$as_me: failed program was:" >&5
1992 cat conftest.$ac_ext >&5
1994 rm -f conftest.$ac_objext conftest.$ac_ext
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2003 if test -f $ac_dir/install-sh; then
2005 ac_install_sh="$ac_aux_dir/install-sh -c"
2007 elif test -f $ac_dir/install.sh; then
2009 ac_install_sh="$ac_aux_dir/install.sh -c"
2011 elif test -f $ac_dir/shtool; then
2013 ac_install_sh="$ac_aux_dir/shtool install -c"
2017 if test -z "$ac_aux_dir"; then
2018 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2019 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2020 { (exit 1); exit 1; }; }
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2024 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2026 # Make sure we can run config.sub.
2027 $ac_config_sub sun4 >/dev/null 2>&1 ||
2028 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2029 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2030 { (exit 1); exit 1; }; }
2032 echo "$as_me:$LINENO: checking build system type" >&5
2033 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2034 if test "${ac_cv_build+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 ac_cv_build_alias=$build_alias
2038 test -z "$ac_cv_build_alias" &&
2039 ac_cv_build_alias=`$ac_config_guess`
2040 test -z "$ac_cv_build_alias" &&
2041 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2042 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2043 { (exit 1); exit 1; }; }
2044 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2045 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2046 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2047 { (exit 1); exit 1; }; }
2050 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2051 echo "${ECHO_T}$ac_cv_build" >&6
2053 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2054 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2055 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2058 echo "$as_me:$LINENO: checking host system type" >&5
2059 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2060 if test "${ac_cv_host+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 ac_cv_host_alias=$host_alias
2064 test -z "$ac_cv_host_alias" &&
2065 ac_cv_host_alias=$ac_cv_build_alias
2066 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2067 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2068 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2069 { (exit 1); exit 1; }; }
2072 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2073 echo "${ECHO_T}$ac_cv_host" >&6
2075 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2076 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2077 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2081 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2082 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2083 if test "${ac_cv_c_bigendian+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 # See if sys/param.h defines the BYTE_ORDER macro.
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2089 #include "confdefs.h"
2090 #include <sys/types.h>
2091 #include <sys/param.h>
2093 #ifdef F77_DUMMY_MAIN
2097 int F77_DUMMY_MAIN() { return 1; }
2102 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2110 rm -f conftest.$ac_objext
2111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2112 (eval $ac_compile) 2>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2122 # It does; now see whether it defined to BIG_ENDIAN or not.
2123 cat >conftest.$ac_ext <<_ACEOF
2124 #line $LINENO "configure"
2125 #include "confdefs.h"
2126 #include <sys/types.h>
2127 #include <sys/param.h>
2129 #ifdef F77_DUMMY_MAIN
2133 int F77_DUMMY_MAIN() { return 1; }
2138 #if BYTE_ORDER != BIG_ENDIAN
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2158 ac_cv_c_bigendian=yes
2160 echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 ac_cv_c_bigendian=no
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2166 echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 # It does not; compile a test program.
2169 if test "$cross_compiling" = yes; then
2170 # try to guess the endianess by grep'ing values into an object file
2171 ac_cv_c_bigendian=unknown
2172 cat >conftest.$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2174 #include "confdefs.h"
2175 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2176 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2177 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2178 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2179 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2180 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2181 #ifdef F77_DUMMY_MAIN
2185 int F77_DUMMY_MAIN() { return 1; }
2190 _ascii (); _ebcdic ();
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2207 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2208 ac_cv_c_bigendian=yes
2210 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2211 if test "$ac_cv_c_bigendian" = unknown; then
2212 ac_cv_c_bigendian=no
2214 # finding both strings is unlikely to happen, but who knows?
2215 ac_cv_c_bigendian=unknown
2219 echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2222 rm -f conftest.$ac_objext conftest.$ac_ext
2224 cat >conftest.$ac_ext <<_ACEOF
2225 #line $LINENO "configure"
2226 #include "confdefs.h"
2230 /* Are we little or big endian? From Harbison&Steele. */
2234 char c[sizeof (long)];
2237 exit (u.c[sizeof (long) - 1] == 1);
2240 rm -f conftest$ac_exeext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2242 (eval $ac_link) 2>&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2251 ac_cv_c_bigendian=no
2253 echo "$as_me: program exited with status $ac_status" >&5
2254 echo "$as_me: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2257 ac_cv_c_bigendian=yes
2259 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2262 rm -f conftest.$ac_objext conftest.$ac_ext
2264 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2265 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2266 case $ac_cv_c_bigendian in
2269 cat >>confdefs.h <<\_ACEOF
2270 @%:@define WORDS_BIGENDIAN 1
2276 { { echo "$as_me:$LINENO: error: unknown endianess
2277 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2278 echo "$as_me: error: unknown endianess
2279 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2280 { (exit 1); exit 1; }; } ;;
2284 # Checks for programs.
2286 ac_cpp='$CPP $CPPFLAGS'
2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2291 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2292 # On Suns, sometimes $CPP names a directory.
2293 if test -n "$CPP" && test -d "$CPP"; then
2296 if test -z "$CPP"; then
2297 if test "${ac_cv_prog_CPP+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 # Double quotes because CPP needs to be expanded
2301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2304 for ac_c_preproc_warn_flag in '' yes
2306 # Use a header file that comes with gcc, so configuring glibc
2307 # with a fresh cross-compiler works.
2308 # On the NeXT, cc -E runs the code through the compiler's parser,
2309 # not just through cpp. "Syntax error" is here to catch this case.
2310 cat >conftest.$ac_ext <<_ACEOF
2311 #line $LINENO "configure"
2312 #include "confdefs.h"
2313 @%:@include <assert.h>
2316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2319 egrep -v '^ *\+' conftest.er1 >conftest.err
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } >/dev/null; then
2324 if test -s conftest.err; then
2325 ac_cpp_err=$ac_c_preproc_warn_flag
2332 if test -z "$ac_cpp_err"; then
2335 echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2337 # Broken: fails on valid input.
2340 rm -f conftest.err conftest.$ac_ext
2342 # OK, works on sane cases. Now check whether non-existent headers
2343 # can be detected and how.
2344 cat >conftest.$ac_ext <<_ACEOF
2345 #line $LINENO "configure"
2346 #include "confdefs.h"
2347 @%:@include <ac_nonexistent.h>
2349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2352 egrep -v '^ *\+' conftest.er1 >conftest.err
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } >/dev/null; then
2357 if test -s conftest.err; then
2358 ac_cpp_err=$ac_c_preproc_warn_flag
2365 if test -z "$ac_cpp_err"; then
2366 # Broken: success on invalid input.
2369 echo "$as_me: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2371 # Passes both tests.
2375 rm -f conftest.err conftest.$ac_ext
2378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2379 rm -f conftest.err conftest.$ac_ext
2380 if $ac_preproc_ok; then
2392 echo "$as_me:$LINENO: result: $CPP" >&5
2393 echo "${ECHO_T}$CPP" >&6
2395 for ac_c_preproc_warn_flag in '' yes
2397 # Use a header file that comes with gcc, so configuring glibc
2398 # with a fresh cross-compiler works.
2399 # On the NeXT, cc -E runs the code through the compiler's parser,
2400 # not just through cpp. "Syntax error" is here to catch this case.
2401 cat >conftest.$ac_ext <<_ACEOF
2402 #line $LINENO "configure"
2403 #include "confdefs.h"
2404 @%:@include <assert.h>
2407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2410 egrep -v '^ *\+' conftest.er1 >conftest.err
2412 cat conftest.err >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } >/dev/null; then
2415 if test -s conftest.err; then
2416 ac_cpp_err=$ac_c_preproc_warn_flag
2423 if test -z "$ac_cpp_err"; then
2426 echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 # Broken: fails on valid input.
2431 rm -f conftest.err conftest.$ac_ext
2433 # OK, works on sane cases. Now check whether non-existent headers
2434 # can be detected and how.
2435 cat >conftest.$ac_ext <<_ACEOF
2436 #line $LINENO "configure"
2437 #include "confdefs.h"
2438 @%:@include <ac_nonexistent.h>
2440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2443 egrep -v '^ *\+' conftest.er1 >conftest.err
2445 cat conftest.err >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } >/dev/null; then
2448 if test -s conftest.err; then
2449 ac_cpp_err=$ac_c_preproc_warn_flag
2456 if test -z "$ac_cpp_err"; then
2457 # Broken: success on invalid input.
2460 echo "$as_me: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2462 # Passes both tests.
2466 rm -f conftest.err conftest.$ac_ext
2469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2470 rm -f conftest.err conftest.$ac_ext
2471 if $ac_preproc_ok; then
2474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2475 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2476 { (exit 1); exit 1; }; }
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485 if test -n "$ac_tool_prefix"; then
2486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2488 echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2490 if test "${ac_cv_prog_RANLIB+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 if test -n "$RANLIB"; then
2494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 RANLIB=$ac_cv_prog_RANLIB
2513 if test -n "$RANLIB"; then
2514 echo "$as_me:$LINENO: result: $RANLIB" >&5
2515 echo "${ECHO_T}$RANLIB" >&6
2517 echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6
2522 if test -z "$ac_cv_prog_RANLIB"; then
2523 ac_ct_RANLIB=$RANLIB
2524 # Extract the first word of "ranlib", so it can be a program name with args.
2525 set dummy ranlib; ac_word=$2
2526 echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2528 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 if test -n "$ac_ct_RANLIB"; then
2532 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541 ac_cv_prog_ac_ct_RANLIB="ranlib"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2551 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2552 if test -n "$ac_ct_RANLIB"; then
2553 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2554 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2556 echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6
2560 RANLIB=$ac_ct_RANLIB
2562 RANLIB="$ac_cv_prog_RANLIB"
2565 # Find a good install program. We prefer a C program (faster),
2566 # so one script is as good as another. But avoid the broken or
2567 # incompatible versions:
2568 # SysV /etc/install, /usr/sbin/install
2569 # SunOS /usr/etc/install
2570 # IRIX /sbin/install
2572 # AmigaOS /C/install, which installs bootblocks on floppy discs
2573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576 # ./install, which can be erroneously created by make from ./install.sh.
2577 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2578 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2579 if test -z "$INSTALL"; then
2580 if test "${ac_cv_path_install+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 # Account for people who put trailing slashes in PATH elements.
2590 ./ | .// | /cC/* | \
2591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594 # OSF1 and SCO ODT 3.0 have their own names for install.
2595 # Don't use installbsd from OSF since it installs stuff as root
2597 for ac_prog in ginstall scoinst install; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2600 if test $ac_prog = install &&
2601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # AIX install. It has an incompatible calling convention.
2604 elif test $ac_prog = install &&
2605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # program-specific install script used by HP pwplus--don't use.
2609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2621 if test "${ac_cv_path_install+set}" = set; then
2622 INSTALL=$ac_cv_path_install
2624 # As a last resort, use the slow shell script. We don't cache a
2625 # path for INSTALL within a source directory, because that will
2626 # break other packages using the cache if that directory is
2627 # removed, or if the path is relative.
2628 INSTALL=$ac_install_sh
2631 echo "$as_me:$LINENO: result: $INSTALL" >&5
2632 echo "${ECHO_T}$INSTALL" >&6
2634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2635 # It thinks the first close brace ends the variable substitution.
2636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2642 # Extract the first word of "ar", so it can be a program name with args.
2643 set dummy ar; ac_word=$2
2644 echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2646 if test "${ac_cv_path_AR+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 if test -n "$AR"; then
2674 echo "$as_me:$LINENO: result: $AR" >&5
2675 echo "${ECHO_T}$AR" >&6
2677 echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2681 for ac_prog in perl5 perl
2683 # Extract the first word of "$ac_prog", so it can be a program name with args.
2684 set dummy $ac_prog; ac_word=$2
2685 echo "$as_me:$LINENO: checking for $ac_word" >&5
2686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2687 if test "${ac_cv_path_PERL+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 PERL=$ac_cv_path_PERL
2714 if test -n "$PERL"; then
2715 echo "$as_me:$LINENO: result: $PERL" >&5
2716 echo "${ECHO_T}$PERL" >&6
2718 echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6
2722 test -n "$PERL" && break
2726 # Extract the first word of "ent", so it can be a program name with args.
2727 set dummy ent; ac_word=$2
2728 echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730 if test "${ac_cv_path_ENT+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 if test -n "$ENT"; then
2758 echo "$as_me:$LINENO: result: $ENT" >&5
2759 echo "${ECHO_T}$ENT" >&6
2761 echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2766 for ac_prog in filepriv
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2772 if test "${ac_cv_path_FILEPRIV+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 ac_cv_path_FILEPRIV="$FILEPRIV" # Let the user override the test with a path.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 as_dummy="/sbin:/usr/sbin"
2782 for as_dir in $as_dummy
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_path_FILEPRIV="$as_dir/$ac_word$ac_exec_ext"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 FILEPRIV=$ac_cv_path_FILEPRIV
2800 if test -n "$FILEPRIV"; then
2801 echo "$as_me:$LINENO: result: $FILEPRIV" >&5
2802 echo "${ECHO_T}$FILEPRIV" >&6
2804 echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2808 test -n "$FILEPRIV" && break
2810 test -n "$FILEPRIV" || FILEPRIV="true"
2812 # Extract the first word of "bash", so it can be a program name with args.
2813 set dummy bash; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 case $TEST_MINUS_S_SH in
2821 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2843 if test -n "$TEST_MINUS_S_SH"; then
2844 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2845 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2851 # Extract the first word of "ksh", so it can be a program name with args.
2852 set dummy ksh; ac_word=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 case $TEST_MINUS_S_SH in
2860 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2882 if test -n "$TEST_MINUS_S_SH"; then
2883 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2884 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2886 echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2890 # Extract the first word of "sh", so it can be a program name with args.
2891 set dummy sh; ac_word=$2
2892 echo "$as_me:$LINENO: checking for $ac_word" >&5
2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2894 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 case $TEST_MINUS_S_SH in
2899 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2921 if test -n "$TEST_MINUS_S_SH"; then
2922 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2923 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2925 echo "$as_me:$LINENO: result: no" >&5
2926 echo "${ECHO_T}no" >&6
2929 # Extract the first word of "sh", so it can be a program name with args.
2930 set dummy sh; ac_word=$2
2931 echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933 if test "${ac_cv_path_SH+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 ac_cv_path_SH="$SH" # Let the user override the test with a path.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
2949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$SH"; then
2961 echo "$as_me:$LINENO: result: $SH" >&5
2962 echo "${ECHO_T}$SH" >&6
2964 echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2970 # Check whether --enable-largefile or --disable-largefile was given.
2971 if test "${enable_largefile+set}" = set; then
2972 enableval="$enable_largefile"
2975 if test "$enable_largefile" != no; then
2977 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2978 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2979 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 ac_cv_sys_largefile_CC=no
2983 if test "$GCC" != yes; then
2986 # IRIX 6.2 and later do not support large files by default,
2987 # so use the C compiler's -n32 option if that helps.
2988 cat >conftest.$ac_ext <<_ACEOF
2989 #line $LINENO "configure"
2990 #include "confdefs.h"
2991 @%:@include <sys/types.h>
2992 /* Check that off_t can represent 2**63 - 1 correctly.
2993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2994 since some C++ compilers masquerading as C compilers
2995 incorrectly reject 9223372036854775807. */
2996 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2998 && LARGE_OFF_T % 2147483647 == 1)
3000 #ifdef F77_DUMMY_MAIN
3004 int F77_DUMMY_MAIN() { return 1; }
3014 rm -f conftest.$ac_objext
3015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3016 (eval $ac_compile) 2>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -s conftest.$ac_objext'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3028 echo "$as_me: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3031 rm -f conftest.$ac_objext
3033 rm -f conftest.$ac_objext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035 (eval $ac_compile) 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 ac_cv_sys_largefile_CC=' -n32'; break
3047 echo "$as_me: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3050 rm -f conftest.$ac_objext
3054 rm -f conftest.$ac_ext
3057 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3058 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3059 if test "$ac_cv_sys_largefile_CC" != no; then
3060 CC=$CC$ac_cv_sys_largefile_CC
3063 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3064 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3065 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 ac_cv_sys_file_offset_bits=no
3070 cat >conftest.$ac_ext <<_ACEOF
3071 #line $LINENO "configure"
3072 #include "confdefs.h"
3073 @%:@include <sys/types.h>
3074 /* Check that off_t can represent 2**63 - 1 correctly.
3075 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3076 since some C++ compilers masquerading as C compilers
3077 incorrectly reject 9223372036854775807. */
3078 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3079 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3080 && LARGE_OFF_T % 2147483647 == 1)
3082 #ifdef F77_DUMMY_MAIN
3086 int F77_DUMMY_MAIN() { return 1; }
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 echo "$as_me: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3113 rm -f conftest.$ac_objext conftest.$ac_ext
3114 cat >conftest.$ac_ext <<_ACEOF
3115 #line $LINENO "configure"
3116 #include "confdefs.h"
3117 @%:@define _FILE_OFFSET_BITS 64
3118 @%:@include <sys/types.h>
3119 /* Check that off_t can represent 2**63 - 1 correctly.
3120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3121 since some C++ compilers masquerading as C compilers
3122 incorrectly reject 9223372036854775807. */
3123 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3125 && LARGE_OFF_T % 2147483647 == 1)
3127 #ifdef F77_DUMMY_MAIN
3131 int F77_DUMMY_MAIN() { return 1; }
3141 rm -f conftest.$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 ac_cv_sys_file_offset_bits=64; break
3155 echo "$as_me: failed program was:" >&5
3156 cat conftest.$ac_ext >&5
3158 rm -f conftest.$ac_objext conftest.$ac_ext
3162 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3163 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3164 if test "$ac_cv_sys_file_offset_bits" != no; then
3166 cat >>confdefs.h <<_ACEOF
3167 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3172 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3173 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3174 if test "${ac_cv_sys_large_files+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 ac_cv_sys_large_files=no
3179 cat >conftest.$ac_ext <<_ACEOF
3180 #line $LINENO "configure"
3181 #include "confdefs.h"
3182 @%:@include <sys/types.h>
3183 /* Check that off_t can represent 2**63 - 1 correctly.
3184 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3185 since some C++ compilers masquerading as C compilers
3186 incorrectly reject 9223372036854775807. */
3187 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3188 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3189 && LARGE_OFF_T % 2147483647 == 1)
3191 #ifdef F77_DUMMY_MAIN
3195 int F77_DUMMY_MAIN() { return 1; }
3205 rm -f conftest.$ac_objext
3206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207 (eval $ac_compile) 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -s conftest.$ac_objext'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
3219 echo "$as_me: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3222 rm -f conftest.$ac_objext conftest.$ac_ext
3223 cat >conftest.$ac_ext <<_ACEOF
3224 #line $LINENO "configure"
3225 #include "confdefs.h"
3226 @%:@define _LARGE_FILES 1
3227 @%:@include <sys/types.h>
3228 /* Check that off_t can represent 2**63 - 1 correctly.
3229 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3230 since some C++ compilers masquerading as C compilers
3231 incorrectly reject 9223372036854775807. */
3232 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3233 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3234 && LARGE_OFF_T % 2147483647 == 1)
3236 #ifdef F77_DUMMY_MAIN
3240 int F77_DUMMY_MAIN() { return 1; }
3250 rm -f conftest.$ac_objext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3252 (eval $ac_compile) 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try='test -s conftest.$ac_objext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 ac_cv_sys_large_files=1; break
3264 echo "$as_me: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3267 rm -f conftest.$ac_objext conftest.$ac_ext
3271 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3272 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3273 if test "$ac_cv_sys_large_files" != no; then
3275 cat >>confdefs.h <<_ACEOF
3276 @%:@define _LARGE_FILES $ac_cv_sys_large_files
3284 if test -z "$AR" ; then
3285 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3286 echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3287 { (exit 1); exit 1; }; }
3290 # Use LOGIN_PROGRAM from environment if possible
3291 if test ! -z "$LOGIN_PROGRAM" ; then
3292 cat >>confdefs.h <<_ACEOF
3293 @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3298 # Extract the first word of "login", so it can be a program name with args.
3299 set dummy login; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 case $LOGIN_PROGRAM_FALLBACK in
3307 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3329 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3330 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3331 echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3333 echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6
3337 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3338 cat >>confdefs.h <<_ACEOF
3339 @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3345 if test -z "$LD" ; then
3350 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3351 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3352 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 ac_cv_prog_cc_stdc=no
3357 cat >conftest.$ac_ext <<_ACEOF
3358 #line $LINENO "configure"
3359 #include "confdefs.h"
3362 #include <sys/types.h>
3363 #include <sys/stat.h>
3364 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3365 struct buf { int x; };
3366 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3367 static char *e (p, i)
3373 static char *f (char * (*g) (char **, int), char **p, ...)
3378 s = g (p, va_arg (v,int));
3382 int test (int i, double x);
3383 struct s1 {int (*f) (int a);};
3384 struct s2 {int (*f) (double a);};
3385 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3388 #ifdef F77_DUMMY_MAIN
3392 int F77_DUMMY_MAIN() { return 1; }
3397 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3402 # Don't try gcc -ansi; that turns off useful extensions and
3403 # breaks some systems' header files.
3404 # AIX -qlanglvl=ansi
3405 # Ultrix and OSF/1 -std1
3406 # HP-UX 10.20 and later -Ae
3407 # HP-UX older versions -Aa -D_HPUX_SOURCE
3408 # SVR4 -Xc -D__EXTENSIONS__
3409 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3411 CC="$ac_save_CC $ac_arg"
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } &&
3418 { ac_try='test -s conftest.$ac_objext'
3419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; }; then
3424 ac_cv_prog_cc_stdc=$ac_arg
3427 echo "$as_me: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3430 rm -f conftest.$ac_objext
3432 rm -f conftest.$ac_ext conftest.$ac_objext
3437 case "x$ac_cv_prog_cc_stdc" in
3439 echo "$as_me:$LINENO: result: none needed" >&5
3440 echo "${ECHO_T}none needed" >&6 ;;
3442 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3443 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3444 CC="$CC $ac_cv_prog_cc_stdc" ;;
3447 echo "$as_me:$LINENO: checking for inline" >&5
3448 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3449 if test "${ac_cv_c_inline+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 for ac_kw in inline __inline__ __inline; do
3454 cat >conftest.$ac_ext <<_ACEOF
3455 #line $LINENO "configure"
3456 #include "confdefs.h"
3458 static $ac_kw int static_foo () {return 0; }
3459 $ac_kw int foo () {return 0; }
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 ac_cv_c_inline=$ac_kw; break
3477 echo "$as_me: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3480 rm -f conftest.$ac_objext conftest.$ac_ext
3484 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3485 echo "${ECHO_T}$ac_cv_c_inline" >&6
3486 case $ac_cv_c_inline in
3489 cat >>confdefs.h <<\_ACEOF
3493 *) cat >>confdefs.h <<_ACEOF
3494 @%:@define inline $ac_cv_c_inline
3499 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3500 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3503 # Check for some target-specific stuff
3507 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3508 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3509 if (test "$LD" != "gcc" && test -z "$blibpath"); then
3510 echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5
3511 echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6
3512 saved_LDFLAGS="$LDFLAGS"
3513 LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib"
3514 cat >conftest.$ac_ext <<_ACEOF
3515 #line $LINENO "configure"
3516 #include "confdefs.h"
3518 #ifdef F77_DUMMY_MAIN
3522 int F77_DUMMY_MAIN() { return 1; }
3532 rm -f conftest.$ac_objext conftest$ac_exeext
3533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3534 (eval $ac_link) 2>&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -s conftest$ac_exeext'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3545 echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6
3547 blibpath="/usr/lib:/lib:/usr/local/lib"
3550 echo "$as_me: failed program was:" >&5
3551 cat conftest.$ac_ext >&5
3552 echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3557 LDFLAGS="$saved_LDFLAGS"
3559 echo "$as_me:$LINENO: checking for authenticate" >&5
3560 echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3561 if test "${ac_cv_func_authenticate+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 cat >conftest.$ac_ext <<_ACEOF
3565 #line $LINENO "configure"
3566 #include "confdefs.h"
3567 /* System header to define __stub macros and hopefully few prototypes,
3568 which can conflict with char authenticate (); below. */
3570 /* Override any gcc2 internal prototype to avoid an error. */
3574 /* We use char because int might match the return type of a gcc2
3575 builtin and then its argument prototype would still apply. */
3576 char authenticate ();
3579 #ifdef F77_DUMMY_MAIN
3583 int F77_DUMMY_MAIN() { return 1; }
3588 /* The GNU C library defines this for functions which it implements
3589 to always fail with ENOSYS. Some functions are actually named
3590 something starting with __ and the normal name is an alias. */
3591 #if defined (__stub_authenticate) || defined (__stub___authenticate)
3601 rm -f conftest.$ac_objext conftest$ac_exeext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603 (eval $ac_link) 2>&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -s conftest$ac_exeext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_cv_func_authenticate=yes
3615 echo "$as_me: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 ac_cv_func_authenticate=no
3619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3621 echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
3622 echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3623 if test $ac_cv_func_authenticate = yes; then
3624 cat >>confdefs.h <<\_ACEOF
3625 @%:@define WITH_AIXAUTHENTICATE 1
3630 cat >>confdefs.h <<\_ACEOF
3631 @%:@define BROKEN_GETADDRINFO 1
3634 cat >>confdefs.h <<\_ACEOF
3635 @%:@define BROKEN_REALPATH 1
3638 cat >>confdefs.h <<\_ACEOF
3639 @%:@define DISABLE_LASTLOG 1
3644 LIBS="$LIBS /usr/lib/textmode.o"
3645 cat >>confdefs.h <<\_ACEOF
3646 @%:@define HAVE_CYGWIN 1
3649 cat >>confdefs.h <<\_ACEOF
3650 @%:@define USE_PIPES 1
3653 cat >>confdefs.h <<\_ACEOF
3654 @%:@define DISABLE_SHADOW 1
3657 cat >>confdefs.h <<\_ACEOF
3658 @%:@define IPV4_DEFAULT 1
3661 cat >>confdefs.h <<\_ACEOF
3662 @%:@define IP_TOS_IS_BROKEN 1
3665 cat >>confdefs.h <<\_ACEOF
3666 @%:@define NO_X11_UNIX_SOCKETS 1
3671 cat >>confdefs.h <<\_ACEOF
3672 @%:@define IP_TOS_IS_BROKEN 1
3677 cat >>confdefs.h <<\_ACEOF
3678 @%:@define BROKEN_GETADDRINFO 1
3683 if test -z "$GCC"; then
3684 CFLAGS="$CFLAGS -Ae"
3686 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3687 IPADDR_IN_DISPLAY=yes
3688 cat >>confdefs.h <<\_ACEOF
3689 @%:@define HAVE_SECUREWARE 1
3692 cat >>confdefs.h <<\_ACEOF
3693 @%:@define USE_PIPES 1
3696 cat >>confdefs.h <<\_ACEOF
3697 @%:@define LOGIN_NO_ENDOPT 1
3700 cat >>confdefs.h <<\_ACEOF
3701 @%:@define LOGIN_NEEDS_UTMPX 1
3704 cat >>confdefs.h <<\_ACEOF
3705 @%:@define DISABLE_SHADOW 1
3708 cat >>confdefs.h <<\_ACEOF
3709 @%:@define DISABLE_UTMP 1
3712 cat >>confdefs.h <<\_ACEOF
3713 @%:@define SPT_TYPE SPT_PSTAT
3716 LIBS="$LIBS -lxnet -lsec -lsecpw"
3717 disable_ptmx_check=yes
3720 if test -z "$GCC"; then
3721 CFLAGS="$CFLAGS -Ae"
3723 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3724 IPADDR_IN_DISPLAY=yes
3725 cat >>confdefs.h <<\_ACEOF
3726 @%:@define USE_PIPES 1
3729 cat >>confdefs.h <<\_ACEOF
3730 @%:@define LOGIN_NO_ENDOPT 1
3733 cat >>confdefs.h <<\_ACEOF
3734 @%:@define LOGIN_NEEDS_UTMPX 1
3737 cat >>confdefs.h <<\_ACEOF
3738 @%:@define DISABLE_SHADOW 1
3741 cat >>confdefs.h <<\_ACEOF
3742 @%:@define DISABLE_UTMP 1
3745 cat >>confdefs.h <<\_ACEOF
3746 @%:@define SPT_TYPE SPT_PSTAT
3749 LIBS="$LIBS -lxnet -lsec"
3752 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3753 IPADDR_IN_DISPLAY=yes
3754 cat >>confdefs.h <<\_ACEOF
3755 @%:@define PAM_SUN_CODEBASE 1
3758 cat >>confdefs.h <<\_ACEOF
3759 @%:@define USE_PIPES 1
3762 cat >>confdefs.h <<\_ACEOF
3763 @%:@define LOGIN_NO_ENDOPT 1
3766 cat >>confdefs.h <<\_ACEOF
3767 @%:@define LOGIN_NEEDS_UTMPX 1
3770 cat >>confdefs.h <<\_ACEOF
3771 @%:@define DISABLE_SHADOW 1
3774 cat >>confdefs.h <<\_ACEOF
3775 @%:@define DISABLE_UTMP 1
3778 cat >>confdefs.h <<\_ACEOF
3779 @%:@define SPT_TYPE SPT_PSTAT
3782 LIBS="$LIBS -lxnet -lsec"
3785 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3787 PATH="$PATH:/usr/etc"
3788 cat >>confdefs.h <<\_ACEOF
3789 @%:@define BROKEN_INET_NTOA 1
3792 cat >>confdefs.h <<\_ACEOF
3793 @%:@define WITH_ABBREV_NO_TTY 1
3798 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3800 PATH="$PATH:/usr/etc"
3801 cat >>confdefs.h <<\_ACEOF
3802 @%:@define WITH_IRIX_ARRAY 1
3805 cat >>confdefs.h <<\_ACEOF
3806 @%:@define WITH_IRIX_PROJECT 1
3809 cat >>confdefs.h <<\_ACEOF
3810 @%:@define WITH_IRIX_AUDIT 1
3813 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
3814 echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
3815 if test "${ac_cv_func_jlimit_startjob+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 cat >conftest.$ac_ext <<_ACEOF
3819 #line $LINENO "configure"
3820 #include "confdefs.h"
3821 /* System header to define __stub macros and hopefully few prototypes,
3822 which can conflict with char jlimit_startjob (); below. */
3824 /* Override any gcc2 internal prototype to avoid an error. */
3828 /* We use char because int might match the return type of a gcc2
3829 builtin and then its argument prototype would still apply. */
3830 char jlimit_startjob ();
3833 #ifdef F77_DUMMY_MAIN
3837 int F77_DUMMY_MAIN() { return 1; }
3842 /* The GNU C library defines this for functions which it implements
3843 to always fail with ENOSYS. Some functions are actually named
3844 something starting with __ and the normal name is an alias. */
3845 #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
3848 f = jlimit_startjob;
3855 rm -f conftest.$ac_objext conftest$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857 (eval $ac_link) 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_func_jlimit_startjob=yes
3869 echo "$as_me: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3871 ac_cv_func_jlimit_startjob=no
3873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3875 echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
3876 echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
3877 if test $ac_cv_func_jlimit_startjob = yes; then
3878 cat >>confdefs.h <<\_ACEOF
3879 @%:@define WITH_IRIX_JOBS 1
3884 cat >>confdefs.h <<\_ACEOF
3885 @%:@define BROKEN_INET_NTOA 1
3888 cat >>confdefs.h <<\_ACEOF
3889 @%:@define WITH_ABBREV_NO_TTY 1
3895 check_for_libcrypt_later=1
3896 cat >>confdefs.h <<\_ACEOF
3897 @%:@define DONT_TRY_OTHER_AF 1
3900 cat >>confdefs.h <<\_ACEOF
3901 @%:@define PAM_TTY_KLUDGE 1
3904 inet6_default_4in6=yes
3906 mips-sony-bsd|mips-sony-newsos4)
3907 cat >>confdefs.h <<\_ACEOF
3908 @%:@define HAVE_NEWS4 1
3917 check_for_libcrypt_later=1
3920 conf_lastlog_location="/usr/adm/lastlog"
3921 conf_utmp_location=/etc/utmp
3922 conf_wtmp_location=/usr/adm/wtmp
3923 MAIL=/usr/spool/mail
3924 cat >>confdefs.h <<\_ACEOF
3925 @%:@define HAVE_NEXT 1
3928 cat >>confdefs.h <<\_ACEOF
3929 @%:@define BROKEN_REALPATH 1
3932 cat >>confdefs.h <<\_ACEOF
3933 @%:@define USE_PIPES 1
3936 cat >>confdefs.h <<\_ACEOF
3937 @%:@define BROKEN_SAVED_UIDS 1
3940 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3944 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3945 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
3947 cat >>confdefs.h <<\_ACEOF
3948 @%:@define PAM_SUN_CODEBASE 1
3951 cat >>confdefs.h <<\_ACEOF
3952 @%:@define LOGIN_NEEDS_UTMPX 1
3955 cat >>confdefs.h <<\_ACEOF
3956 @%:@define LOGIN_NEEDS_TERM 1
3959 cat >>confdefs.h <<\_ACEOF
3960 @%:@define PAM_TTY_KLUDGE 1
3963 # hardwire lastlog location (can't detect it on some versions)
3964 conf_lastlog_location="/var/adm/lastlog"
3965 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
3966 echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
3967 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
3968 if test "$sol2ver" -ge 8; then
3969 echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6
3971 cat >>confdefs.h <<\_ACEOF
3972 @%:@define DISABLE_UTMP 1
3975 cat >>confdefs.h <<\_ACEOF
3976 @%:@define DISABLE_WTMP 1
3980 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3985 CPPFLAGS="$CPPFLAGS -DSUNOS4"
3987 for ac_func in getpwanam
3989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3990 echo "$as_me:$LINENO: checking for $ac_func" >&5
3991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3992 if eval "test \"\${$as_ac_var+set}\" = set"; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 cat >conftest.$ac_ext <<_ACEOF
3996 #line $LINENO "configure"
3997 #include "confdefs.h"
3998 /* System header to define __stub macros and hopefully few prototypes,
3999 which can conflict with char $ac_func (); below. */
4001 /* Override any gcc2 internal prototype to avoid an error. */
4005 /* We use char because int might match the return type of a gcc2
4006 builtin and then its argument prototype would still apply. */
4010 #ifdef F77_DUMMY_MAIN
4014 int F77_DUMMY_MAIN() { return 1; }
4019 /* The GNU C library defines this for functions which it implements
4020 to always fail with ENOSYS. Some functions are actually named
4021 something starting with __ and the normal name is an alias. */
4022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4032 rm -f conftest.$ac_objext conftest$ac_exeext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4034 (eval $ac_link) 2>&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -s conftest$ac_exeext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 eval "$as_ac_var=yes"
4046 echo "$as_me: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4048 eval "$as_ac_var=no"
4050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4054 if test `eval echo '${'$as_ac_var'}'` = yes; then
4055 cat >>confdefs.h <<_ACEOF
4056 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4062 cat >>confdefs.h <<\_ACEOF
4063 @%:@define PAM_SUN_CODEBASE 1
4066 conf_utmp_location=/etc/utmp
4067 conf_wtmp_location=/var/adm/wtmp
4068 conf_lastlog_location=/var/adm/lastlog
4069 cat >>confdefs.h <<\_ACEOF
4070 @%:@define USE_PIPES 1
4075 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4076 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4078 cat >>confdefs.h <<\_ACEOF
4079 @%:@define USE_PIPES 1
4084 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4085 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4086 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4087 IPADDR_IN_DISPLAY=yes
4088 cat >>confdefs.h <<\_ACEOF
4089 @%:@define USE_PIPES 1
4092 cat >>confdefs.h <<\_ACEOF
4093 @%:@define IP_TOS_IS_BROKEN 1
4096 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4097 # Attention: always take care to bind libsocket and libnsl before libc,
4098 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4101 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4102 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4103 # enable_suid_ssh=no
4104 cat >>confdefs.h <<\_ACEOF
4105 @%:@define USE_PIPES 1
4110 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4111 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4112 # enable_suid_ssh=no
4113 cat >>confdefs.h <<\_ACEOF
4114 @%:@define USE_PIPES 1
4119 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4120 LDFLAGS="$LDFLAGS -L/usr/local/lib"
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"
4129 cat >>confdefs.h <<\_ACEOF
4130 @%:@define BROKEN_SYS_TERMIO_H 1
4133 cat >>confdefs.h <<\_ACEOF
4134 @%:@define USE_PIPES 1
4137 cat >>confdefs.h <<\_ACEOF
4138 @%:@define HAVE_SECUREWARE 1
4141 cat >>confdefs.h <<\_ACEOF
4142 @%:@define DISABLE_SHADOW 1
4145 cat >>confdefs.h <<\_ACEOF
4146 @%:@define BROKEN_SAVED_UIDS 1
4151 for ac_func in getluid setluid
4153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4154 echo "$as_me:$LINENO: checking for $ac_func" >&5
4155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4156 if eval "test \"\${$as_ac_var+set}\" = set"; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
4165 /* Override any gcc2 internal prototype to avoid an error. */
4169 /* We use char because int might match the return type of a gcc2
4170 builtin and then its argument prototype would still apply. */
4174 #ifdef F77_DUMMY_MAIN
4178 int F77_DUMMY_MAIN() { return 1; }
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)
4196 rm -f conftest.$ac_objext conftest$ac_exeext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198 (eval $ac_link) 2>&5
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
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 eval "$as_ac_var=yes"
4210 echo "$as_me: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4212 eval "$as_ac_var=no"
4214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4218 if test `eval echo '${'$as_ac_var'}'` = yes; then
4219 cat >>confdefs.h <<_ACEOF
4220 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4227 do_sco3_extra_lib_check=yes
4230 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4231 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4232 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4234 rsh_path="/usr/bin/rcmd"
4235 cat >>confdefs.h <<\_ACEOF
4236 @%:@define USE_PIPES 1
4239 cat >>confdefs.h <<\_ACEOF
4240 @%:@define HAVE_SECUREWARE 1
4243 cat >>confdefs.h <<\_ACEOF
4244 @%:@define DISABLE_SHADOW 1
4249 for ac_func in getluid setluid
4251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4252 echo "$as_me:$LINENO: checking for $ac_func" >&5
4253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4254 if eval "test \"\${$as_ac_var+set}\" = set"; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
4263 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4272 #ifdef F77_DUMMY_MAIN
4276 int F77_DUMMY_MAIN() { return 1; }
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)
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4296 (eval $ac_link) 2>&5
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
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 eval "$as_ac_var=yes"
4308 echo "$as_me: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4310 eval "$as_ac_var=no"
4312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4316 if test `eval echo '${'$as_ac_var'}'` = yes; then
4317 cat >>confdefs.h <<_ACEOF
4318 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4329 cat >>confdefs.h <<\_ACEOF
4330 @%:@define USE_PIPES 1
4333 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal,-L/usr/local/lib"
4334 LIBS="$LIBS -lgen -lrsc"
4337 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
4338 echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4341 # Check whether --with-osfsia or --without-osfsia was given.
4342 if test "${with_osfsia+set}" = set; then
4343 withval="$with_osfsia"
4345 if test "x$withval" = "xno" ; then
4346 echo "$as_me:$LINENO: result: disabled" >&5
4347 echo "${ECHO_T}disabled" >&6
4352 if test -z "$no_osfsia" ; then
4353 if test -f /etc/sia/matrix.conf; then
4354 echo "$as_me:$LINENO: result: yes" >&5
4355 echo "${ECHO_T}yes" >&6
4356 cat >>confdefs.h <<\_ACEOF
4357 @%:@define HAVE_OSF_SIA 1
4360 cat >>confdefs.h <<\_ACEOF
4361 @%:@define DISABLE_LOGIN 1
4364 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4366 echo "$as_me:$LINENO: result: no" >&5
4367 echo "${ECHO_T}no" >&6
4373 cat >>confdefs.h <<\_ACEOF
4374 @%:@define USE_PIPES 1
4377 cat >>confdefs.h <<\_ACEOF
4378 @%:@define NO_X11_UNIX_SOCKETS 1
4381 cat >>confdefs.h <<\_ACEOF
4382 @%:@define MISSING_NFDBITS 1
4385 cat >>confdefs.h <<\_ACEOF
4386 @%:@define MISSING_HOWMANY 1
4389 cat >>confdefs.h <<\_ACEOF
4390 @%:@define MISSING_FD_MASK 1
4396 # Allow user to specify flags
4398 # Check whether --with-cflags or --without-cflags was given.
4399 if test "${with_cflags+set}" = set; then
4400 withval="$with_cflags"
4402 if test "x$withval" != "xno" ; then
4403 CFLAGS="$CFLAGS $withval"
4409 # Check whether --with-cppflags or --without-cppflags was given.
4410 if test "${with_cppflags+set}" = set; then
4411 withval="$with_cppflags"
4413 if test "x$withval" != "xno"; then
4414 CPPFLAGS="$CPPFLAGS $withval"
4420 # Check whether --with-ldflags or --without-ldflags was given.
4421 if test "${with_ldflags+set}" = set; then
4422 withval="$with_ldflags"
4424 if test "x$withval" != "xno" ; then
4425 LDFLAGS="$LDFLAGS $withval"
4431 # Check whether --with-libs or --without-libs was given.
4432 if test "${with_libs+set}" = set; then
4433 withval="$with_libs"
4435 if test "x$withval" != "xno" ; then
4436 LIBS="$LIBS $withval"
4442 # Checks for header files.
4444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4446 if test "${ac_cv_header_stdc+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 cat >conftest.$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4451 #include "confdefs.h"
4458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 egrep -v '^ *\+' conftest.er1 >conftest.err
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
4474 if test -z "$ac_cpp_err"; then
4475 ac_cv_header_stdc=yes
4477 echo "$as_me: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4479 ac_cv_header_stdc=no
4481 rm -f conftest.err conftest.$ac_ext
4483 if 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"
4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 egrep "memchr" >/dev/null 2>&1; then
4495 ac_cv_header_stdc=no
4501 if 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"
4509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510 egrep "free" >/dev/null 2>&1; then
4513 ac_cv_header_stdc=no
4519 if 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
4524 cat >conftest.$ac_ext <<_ACEOF
4525 #line $LINENO "configure"
4526 #include "confdefs.h"
4528 #if ((' ' & 0x0FF) == 0x020)
4529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4550 rm -f conftest$ac_exeext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552 (eval $ac_link) 2>&5
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
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4563 echo "$as_me: program exited with status $ac_status" >&5
4564 echo "$as_me: failed program was:" >&5
4565 cat conftest.$ac_ext >&5
4567 ac_cv_header_stdc=no
4569 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4573 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4574 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4575 if test $ac_cv_header_stdc = yes; then
4577 cat >>confdefs.h <<\_ACEOF
4578 @%:@define STDC_HEADERS 1
4583 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4593 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4594 inttypes.h stdint.h unistd.h
4596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4597 echo "$as_me:$LINENO: checking for $ac_header" >&5
4598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 cat >conftest.$ac_ext <<_ACEOF
4603 #line $LINENO "configure"
4604 #include "confdefs.h"
4605 $ac_includes_default
4607 @%:@include <$ac_header>
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>&5
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
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 eval "$as_ac_Header=yes"
4623 echo "$as_me: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4625 eval "$as_ac_Header=no"
4627 rm -f conftest.$ac_objext conftest.$ac_ext
4629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4632 cat >>confdefs.h <<_ACEOF
4633 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4681 for 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
4692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4694 echo "$as_me:$LINENO: checking for $ac_header" >&5
4695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4702 # Is the header compilable?
4703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4705 cat >conftest.$ac_ext <<_ACEOF
4706 #line $LINENO "configure"
4707 #include "confdefs.h"
4708 $ac_includes_default
4709 @%:@include <$ac_header>
4711 rm -f conftest.$ac_objext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>&5
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
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_header_compiler=yes
4725 echo "$as_me: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 ac_header_compiler=no
4729 rm -f conftest.$ac_objext conftest.$ac_ext
4730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4731 echo "${ECHO_T}$ac_header_compiler" >&6
4733 # Is the header present?
4734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4737 #line $LINENO "configure"
4738 #include "confdefs.h"
4739 @%:@include <$ac_header>
4741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4744 egrep -v '^ *\+' conftest.er1 >conftest.err
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
4757 if test -z "$ac_cpp_err"; then
4758 ac_header_preproc=yes
4760 echo "$as_me: failed program was:" >&5
4761 cat conftest.$ac_ext >&5
4762 ac_header_preproc=no
4764 rm -f conftest.err conftest.$ac_ext
4765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4766 echo "${ECHO_T}$ac_header_preproc" >&6
4768 # So? What about this header?
4769 case $ac_header_compiler:$ac_header_preproc in
4771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4772 echo "$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
4774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4777 echo "$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
4779 echo "$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
4781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4783 echo "$as_me:$LINENO: checking for $ac_header" >&5
4784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 eval "$as_ac_Header=$ac_header_preproc"
4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4795 cat >>confdefs.h <<_ACEOF
4796 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4804 # Checks for libraries.
4805 echo "$as_me:$LINENO: checking for yp_match" >&5
4806 echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
4807 if test "${ac_cv_func_yp_match+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
4816 /* Override any gcc2 internal prototype to avoid an error. */
4820 /* We use char because int might match the return type of a gcc2
4821 builtin and then its argument prototype would still apply. */
4825 #ifdef F77_DUMMY_MAIN
4829 int F77_DUMMY_MAIN() { return 1; }
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)
4847 rm -f conftest.$ac_objext conftest$ac_exeext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4849 (eval $ac_link) 2>&5
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
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 ac_cv_func_yp_match=yes
4861 echo "$as_me: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4863 ac_cv_func_yp_match=no
4865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4867 echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
4868 echo "${ECHO_T}$ac_cv_func_yp_match" >&6
4869 if test $ac_cv_func_yp_match = yes; then
4873 echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
4874 echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
4875 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 ac_check_lib_save_LIBS=$LIBS
4880 cat >conftest.$ac_ext <<_ACEOF
4881 #line $LINENO "configure"
4882 #include "confdefs.h"
4884 /* Override any gcc2 internal prototype to avoid an error. */
4888 /* We use char because int might match the return type of a gcc2
4889 builtin and then its argument prototype would still apply. */
4891 #ifdef F77_DUMMY_MAIN
4895 int F77_DUMMY_MAIN() { return 1; }
4905 rm -f conftest.$ac_objext conftest$ac_exeext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4907 (eval $ac_link) 2>&5
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
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_cv_lib_nsl_yp_match=yes
4919 echo "$as_me: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4921 ac_cv_lib_nsl_yp_match=no
4923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4924 LIBS=$ac_check_lib_save_LIBS
4926 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
4927 echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
4928 if test $ac_cv_lib_nsl_yp_match = yes; then
4929 cat >>confdefs.h <<_ACEOF
4930 @%:@define HAVE_LIBNSL 1
4939 echo "$as_me:$LINENO: checking for setsockopt" >&5
4940 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
4941 if test "${ac_cv_func_setsockopt+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
4950 /* Override any gcc2 internal prototype to avoid an error. */
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4959 #ifdef F77_DUMMY_MAIN
4963 int F77_DUMMY_MAIN() { return 1; }
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)
4981 rm -f conftest.$ac_objext conftest$ac_exeext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4983 (eval $ac_link) 2>&5
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
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; }; then
4993 ac_cv_func_setsockopt=yes
4995 echo "$as_me: failed program was:" >&5
4996 cat conftest.$ac_ext >&5
4997 ac_cv_func_setsockopt=no
4999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5001 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5002 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5003 if test $ac_cv_func_setsockopt = yes; then
5007 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5008 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5009 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 ac_check_lib_save_LIBS=$LIBS
5013 LIBS="-lsocket $LIBS"
5014 cat >conftest.$ac_ext <<_ACEOF
5015 #line $LINENO "configure"
5016 #include "confdefs.h"
5018 /* Override any gcc2 internal prototype to avoid an error. */
5022 /* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5025 #ifdef F77_DUMMY_MAIN
5029 int F77_DUMMY_MAIN() { return 1; }
5039 rm -f conftest.$ac_objext conftest$ac_exeext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041 (eval $ac_link) 2>&5
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
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 ac_cv_lib_socket_setsockopt=yes
5053 echo "$as_me: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5055 ac_cv_lib_socket_setsockopt=no
5057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5058 LIBS=$ac_check_lib_save_LIBS
5060 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5061 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5062 if test $ac_cv_lib_socket_setsockopt = yes; then
5063 cat >>confdefs.h <<_ACEOF
5064 @%:@define HAVE_LIBSOCKET 1
5067 LIBS="-lsocket $LIBS"
5074 if 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
5077 echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5078 if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 ac_check_lib_save_LIBS=$LIBS
5082 LIBS="-lrpc -lyp -lrpc $LIBS"
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5085 #include "confdefs.h"
5087 /* Override any gcc2 internal prototype to avoid an error. */
5091 /* We use char because int might match the return type of a gcc2
5092 builtin and then its argument prototype would still apply. */
5094 #ifdef F77_DUMMY_MAIN
5098 int F77_DUMMY_MAIN() { return 1; }
5108 rm -f conftest.$ac_objext conftest$ac_exeext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>&5
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
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 ac_cv_lib_rpc_innetgr=yes
5122 echo "$as_me: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5124 ac_cv_lib_rpc_innetgr=no
5126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5127 LIBS=$ac_check_lib_save_LIBS
5129 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
5130 echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5131 if test $ac_cv_lib_rpc_innetgr = yes; then
5132 LIBS="-lrpc -lyp -lrpc $LIBS"
5138 echo "$as_me:$LINENO: checking for getspnam" >&5
5139 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5140 if test "${ac_cv_func_getspnam+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5149 /* Override any gcc2 internal prototype to avoid an error. */
5153 /* We use char because int might match the return type of a gcc2
5154 builtin and then its argument prototype would still apply. */
5158 #ifdef F77_DUMMY_MAIN
5162 int F77_DUMMY_MAIN() { return 1; }
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)
5180 rm -f conftest.$ac_objext conftest$ac_exeext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182 (eval $ac_link) 2>&5
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
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; }; then
5192 ac_cv_func_getspnam=yes
5194 echo "$as_me: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5196 ac_cv_func_getspnam=no
5198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5200 echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
5201 echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5202 if test $ac_cv_func_getspnam = yes; then
5205 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
5206 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5207 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 ac_check_lib_save_LIBS=$LIBS
5212 cat >conftest.$ac_ext <<_ACEOF
5213 #line $LINENO "configure"
5214 #include "confdefs.h"
5216 /* Override any gcc2 internal prototype to avoid an error. */
5220 /* We use char because int might match the return type of a gcc2
5221 builtin and then its argument prototype would still apply. */
5223 #ifdef F77_DUMMY_MAIN
5227 int F77_DUMMY_MAIN() { return 1; }
5237 rm -f conftest.$ac_objext conftest$ac_exeext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239 (eval $ac_link) 2>&5
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
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_cv_lib_gen_getspnam=yes
5251 echo "$as_me: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 ac_cv_lib_gen_getspnam=no
5255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5256 LIBS=$ac_check_lib_save_LIBS
5258 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
5259 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5260 if test $ac_cv_lib_gen_getspnam = yes; then
5268 # Check whether --with-rpath or --without-rpath was given.
5269 if test "${with_rpath+set}" = set; then
5270 withval="$with_rpath"
5272 if test "x$withval" = "xno" ; then
5275 if test "x$withval" = "xyes" ; then
5283 # Check whether --with-zlib or --without-zlib was given.
5284 if test "${with_zlib+set}" = set; then
5285 withval="$with_zlib"
5287 if test "x$withval" = "xno" ; then
5288 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
5289 echo "$as_me: error: *** zlib is required ***" >&2;}
5290 { (exit 1); exit 1; }; }
5292 if test -d "$withval/lib"; then
5293 if test -n "${need_dash_r}"; then
5294 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5296 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5299 if test -n "${need_dash_r}"; then
5300 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5302 LDFLAGS="-L${withval} ${LDFLAGS}"
5305 if test -d "$withval/include"; then
5306 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5308 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5315 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5316 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5317 if test "${ac_cv_lib_z_deflate+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 ac_check_lib_save_LIBS=$LIBS
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 #include "confdefs.h"
5326 /* Override any gcc2 internal prototype to avoid an error. */
5330 /* We use char because int might match the return type of a gcc2
5331 builtin and then its argument prototype would still apply. */
5333 #ifdef F77_DUMMY_MAIN
5337 int F77_DUMMY_MAIN() { return 1; }
5347 rm -f conftest.$ac_objext conftest$ac_exeext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5349 (eval $ac_link) 2>&5
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
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_cv_lib_z_deflate=yes
5361 echo "$as_me: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5363 ac_cv_lib_z_deflate=no
5365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5366 LIBS=$ac_check_lib_save_LIBS
5368 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5369 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5370 if test $ac_cv_lib_z_deflate = yes; then
5371 cat >>confdefs.h <<_ACEOF
5372 @%:@define HAVE_LIBZ 1
5378 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
5379 echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5380 { (exit 1); exit 1; }; }
5384 echo "$as_me:$LINENO: checking for strcasecmp" >&5
5385 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
5386 if test "${ac_cv_func_strcasecmp+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5395 /* Override any gcc2 internal prototype to avoid an error. */
5399 /* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5404 #ifdef F77_DUMMY_MAIN
5408 int F77_DUMMY_MAIN() { return 1; }
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)
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>&5
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
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_cv_func_strcasecmp=yes
5440 echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_func_strcasecmp=no
5444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5446 echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
5447 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
5448 if test $ac_cv_func_strcasecmp = yes; then
5451 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
5452 echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
5453 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 ac_check_lib_save_LIBS=$LIBS
5457 LIBS="-lresolv $LIBS"
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5460 #include "confdefs.h"
5462 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5469 #ifdef F77_DUMMY_MAIN
5473 int F77_DUMMY_MAIN() { return 1; }
5483 rm -f conftest.$ac_objext conftest$ac_exeext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>&5
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
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_lib_resolv_strcasecmp=yes
5497 echo "$as_me: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5499 ac_cv_lib_resolv_strcasecmp=no
5501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5502 LIBS=$ac_check_lib_save_LIBS
5504 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
5505 echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
5506 if test $ac_cv_lib_resolv_strcasecmp = yes; then
5507 LIBS="$LIBS -lresolv"
5513 echo "$as_me:$LINENO: checking for utimes" >&5
5514 echo $ECHO_N "checking for utimes... $ECHO_C" >&6
5515 if test "${ac_cv_func_utimes+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5524 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5533 #ifdef F77_DUMMY_MAIN
5537 int F77_DUMMY_MAIN() { return 1; }
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)
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>&5
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
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 ac_cv_func_utimes=yes
5569 echo "$as_me: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5571 ac_cv_func_utimes=no
5573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5575 echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
5576 echo "${ECHO_T}$ac_cv_func_utimes" >&6
5577 if test $ac_cv_func_utimes = yes; then
5580 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
5581 echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
5582 if test "${ac_cv_lib_c89_utimes+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 ac_check_lib_save_LIBS=$LIBS
5587 cat >conftest.$ac_ext <<_ACEOF
5588 #line $LINENO "configure"
5589 #include "confdefs.h"
5591 /* Override any gcc2 internal prototype to avoid an error. */
5595 /* We use char because int might match the return type of a gcc2
5596 builtin and then its argument prototype would still apply. */
5598 #ifdef F77_DUMMY_MAIN
5602 int F77_DUMMY_MAIN() { return 1; }
5612 rm -f conftest.$ac_objext conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>&5
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
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_lib_c89_utimes=yes
5626 echo "$as_me: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5628 ac_cv_lib_c89_utimes=no
5630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5631 LIBS=$ac_check_lib_save_LIBS
5633 echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
5634 echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
5635 if test $ac_cv_lib_c89_utimes = yes; then
5644 for ac_header in libutil.h
5646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648 echo "$as_me:$LINENO: checking for $ac_header" >&5
5649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5656 # Is the header compilable?
5657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5659 cat >conftest.$ac_ext <<_ACEOF
5660 #line $LINENO "configure"
5661 #include "confdefs.h"
5662 $ac_includes_default
5663 @%:@include <$ac_header>
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>&5
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
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_header_compiler=yes
5679 echo "$as_me: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5681 ac_header_compiler=no
5683 rm -f conftest.$ac_objext conftest.$ac_ext
5684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5685 echo "${ECHO_T}$ac_header_compiler" >&6
5687 # Is the header present?
5688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5690 cat >conftest.$ac_ext <<_ACEOF
5691 #line $LINENO "configure"
5692 #include "confdefs.h"
5693 @%:@include <$ac_header>
5695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5698 egrep -v '^ *\+' conftest.er1 >conftest.err
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
5711 if test -z "$ac_cpp_err"; then
5712 ac_header_preproc=yes
5714 echo "$as_me: failed program was:" >&5
5715 cat conftest.$ac_ext >&5
5716 ac_header_preproc=no
5718 rm -f conftest.err conftest.$ac_ext
5719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5720 echo "${ECHO_T}$ac_header_preproc" >&6
5722 # So? What about this header?
5723 case $ac_header_compiler:$ac_header_preproc in
5725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5726 echo "$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
5728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5731 echo "$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
5733 echo "$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
5735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5737 echo "$as_me:$LINENO: checking for $ac_header" >&5
5738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 eval "$as_ac_Header=$ac_header_preproc"
5744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5749 cat >>confdefs.h <<_ACEOF
5750 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5757 echo "$as_me:$LINENO: checking for library containing login" >&5
5758 echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
5759 if test "${ac_cv_search_login+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 ac_func_search_save_LIBS=$LIBS
5763 ac_cv_search_login=no
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #line $LINENO "configure"
5766 #include "confdefs.h"
5768 /* Override any gcc2 internal prototype to avoid an error. */
5772 /* We use char because int might match the return type of a gcc2
5773 builtin and then its argument prototype would still apply. */
5775 #ifdef F77_DUMMY_MAIN
5779 int F77_DUMMY_MAIN() { return 1; }
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791 (eval $ac_link) 2>&5
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
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_search_login="none required"
5803 echo "$as_me: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5807 if 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"
5814 /* Override any gcc2 internal prototype to avoid an error. */
5818 /* We use char because int might match the return type of a gcc2
5819 builtin and then its argument prototype would still apply. */
5821 #ifdef F77_DUMMY_MAIN
5825 int F77_DUMMY_MAIN() { return 1; }
5835 rm -f conftest.$ac_objext conftest$ac_exeext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>&5
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
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_search_login="-l$ac_lib"
5850 echo "$as_me: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5856 LIBS=$ac_func_search_save_LIBS
5858 echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
5859 echo "${ECHO_T}$ac_cv_search_login" >&6
5860 if 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
5871 for ac_func in logout updwtmp logwtmp
5873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5874 echo "$as_me:$LINENO: checking for $ac_func" >&5
5875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5876 if eval "test \"\${$as_ac_var+set}\" = set"; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5885 /* Override any gcc2 internal prototype to avoid an error. */
5889 /* We use char because int might match the return type of a gcc2
5890 builtin and then its argument prototype would still apply. */
5894 #ifdef F77_DUMMY_MAIN
5898 int F77_DUMMY_MAIN() { return 1; }
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)
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918 (eval $ac_link) 2>&5
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
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5928 eval "$as_ac_var=yes"
5930 echo "$as_me: failed program was:" >&5
5931 cat conftest.$ac_ext >&5
5932 eval "$as_ac_var=no"
5934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5938 if test `eval echo '${'$as_ac_var'}'` = yes; then
5939 cat >>confdefs.h <<_ACEOF
5940 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5948 for ac_func in strftime
5950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5951 echo "$as_me:$LINENO: checking for $ac_func" >&5
5952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5953 if eval "test \"\${$as_ac_var+set}\" = set"; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5962 /* Override any gcc2 internal prototype to avoid an error. */
5966 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5971 #ifdef F77_DUMMY_MAIN
5975 int F77_DUMMY_MAIN() { return 1; }
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)
5993 rm -f conftest.$ac_objext conftest$ac_exeext
5994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5995 (eval $ac_link) 2>&5
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
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 eval "$as_ac_var=yes"
6007 echo "$as_me: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6009 eval "$as_ac_var=no"
6011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6015 if test `eval echo '${'$as_ac_var'}'` = yes; then
6016 cat >>confdefs.h <<_ACEOF
6017 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6021 # strftime is in -lintl on SCO UNIX.
6022 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6023 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6024 if test "${ac_cv_lib_intl_strftime+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 ac_check_lib_save_LIBS=$LIBS
6029 cat >conftest.$ac_ext <<_ACEOF
6030 #line $LINENO "configure"
6031 #include "confdefs.h"
6033 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6040 #ifdef F77_DUMMY_MAIN
6044 int F77_DUMMY_MAIN() { return 1; }
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>&5
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
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_cv_lib_intl_strftime=yes
6068 echo "$as_me: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6070 ac_cv_lib_intl_strftime=no
6072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6075 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6076 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6077 if test $ac_cv_lib_intl_strftime = yes; then
6078 cat >>confdefs.h <<\_ACEOF
6079 @%:@define HAVE_STRFTIME 1
6089 # Check for ALTDIRFUNC glob() extension
6090 echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
6091 echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6092 cat >conftest.$ac_ext <<_ACEOF
6093 #line $LINENO "configure"
6094 #include "confdefs.h"
6097 #ifdef GLOB_ALTDIRFUNC
6102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6103 egrep "FOUNDIT" >/dev/null 2>&1; then
6105 cat >>confdefs.h <<\_ACEOF
6106 @%:@define GLOB_HAS_ALTDIRFUNC 1
6109 echo "$as_me:$LINENO: result: yes" >&5
6110 echo "${ECHO_T}yes" >&6
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6122 # Check for g.gl_matchc glob() extension
6123 echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
6124 echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6125 cat >conftest.$ac_ext <<_ACEOF
6126 #line $LINENO "configure"
6127 #include "confdefs.h"
6130 int main(void){glob_t g; g.gl_matchc = 1;}
6133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6134 egrep "FOUNDIT" >/dev/null 2>&1; then
6136 cat >>confdefs.h <<\_ACEOF
6137 @%:@define GLOB_HAS_GL_MATCHC 1
6140 echo "$as_me:$LINENO: result: yes" >&5
6141 echo "${ECHO_T}yes" >&6
6145 echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6
6153 echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
6154 echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6155 if test "$cross_compiling" = yes; then
6156 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6157 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6158 { (exit 1); exit 1; }; }
6160 cat >conftest.$ac_ext <<_ACEOF
6161 #line $LINENO "configure"
6162 #include "confdefs.h"
6164 #include <sys/types.h>
6166 int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));}
6169 rm -f conftest$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
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
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 echo "$as_me:$LINENO: result: yes" >&5
6181 echo "${ECHO_T}yes" >&6
6183 echo "$as_me: program exited with status $ac_status" >&5
6184 echo "$as_me: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6188 echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6
6190 cat >>confdefs.h <<\_ACEOF
6191 @%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6197 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6200 # Check whether user wants S/Key support
6203 # Check whether --with-skey or --without-skey was given.
6204 if test "${with_skey+set}" = set; then
6205 withval="$with_skey"
6207 if test "x$withval" != "xno" ; then
6209 if test "x$withval" != "xyes" ; then
6210 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6211 LDFLAGS="$LDFLAGS -L${withval}/lib"
6214 cat >>confdefs.h <<\_ACEOF
6221 echo "$as_me:$LINENO: checking for s/key support" >&5
6222 echo $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
6225 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6226 { (exit 1); exit 1; }; }
6228 cat >conftest.$ac_ext <<_ACEOF
6229 #line $LINENO "configure"
6230 #include "confdefs.h"
6234 int main() { char *ff = skey_keyinfo(""); ff=""; return 0; }
6237 rm -f conftest$ac_exeext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239 (eval $ac_link) 2>&5
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
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 echo "$as_me:$LINENO: result: yes" >&5
6249 echo "${ECHO_T}yes" >&6
6251 echo "$as_me: program exited with status $ac_status" >&5
6252 echo "$as_me: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6256 echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6
6258 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
6259 echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6260 { (exit 1); exit 1; }; }
6263 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6270 # Check whether user wants TCP wrappers support
6273 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6274 if test "${with_tcp_wrappers+set}" = set; then
6275 withval="$with_tcp_wrappers"
6277 if test "x$withval" != "xno" ; then
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}"
6286 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6289 if test -n "${need_dash_r}"; then
6290 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6292 LDFLAGS="-L${withval} ${LDFLAGS}"
6295 if test -d "${withval}/include"; then
6296 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6298 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6302 LIBS="$LIBWRAP $LIBS"
6303 echo "$as_me:$LINENO: checking for libwrap" >&5
6304 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6305 cat >conftest.$ac_ext <<_ACEOF
6306 #line $LINENO "configure"
6307 #include "confdefs.h"
6310 int deny_severity = 0, allow_severity = 0;
6312 #ifdef F77_DUMMY_MAIN
6316 int F77_DUMMY_MAIN() { return 1; }
6326 rm -f conftest.$ac_objext conftest$ac_exeext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328 (eval $ac_link) 2>&5
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
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6339 echo "$as_me:$LINENO: result: yes" >&5
6340 echo "${ECHO_T}yes" >&6
6341 cat >>confdefs.h <<\_ACEOF
6342 @%:@define LIBWRAP 1
6349 echo "$as_me: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6352 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6353 echo "$as_me: error: *** libwrap missing" >&2;}
6354 { (exit 1); exit 1; }; }
6358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6430 for ac_func in arc4random b64_ntop bcopy bindresvport_sa \
6431 clock fchmod fchown freeaddrinfo futimes gai_strerror \
6432 getaddrinfo getcwd getgrouplist getnameinfo getopt \
6433 getrlimit getrusage getttyent glob inet_aton inet_ntoa \
6434 inet_ntop innetgr login_getcapbool md5_crypt memmove \
6435 mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \
6436 realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
6437 setenv seteuid setlogin setproctitle setresgid setreuid setrlimit \
6438 setsid setvbuf sigaction sigvec snprintf socketpair strerror \
6439 strlcat strlcpy strmode strsep sysconf tcgetpgrp truncate utimes \
6440 vhangup vsnprintf waitpid __b64_ntop _getpty
6442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6443 echo "$as_me:$LINENO: checking for $ac_func" >&5
6444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6445 if eval "test \"\${$as_ac_var+set}\" = set"; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6449 #line $LINENO "configure"
6450 #include "confdefs.h"
6451 /* System header to define __stub macros and hopefully few prototypes,
6452 which can conflict with char $ac_func (); below. */
6454 /* Override any gcc2 internal prototype to avoid an error. */
6458 /* We use char because int might match the return type of a gcc2
6459 builtin and then its argument prototype would still apply. */
6463 #ifdef F77_DUMMY_MAIN
6467 int F77_DUMMY_MAIN() { return 1; }
6472 /* The GNU C library defines this for functions which it implements
6473 to always fail with ENOSYS. Some functions are actually named
6474 something starting with __ and the normal name is an alias. */
6475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6485 rm -f conftest.$ac_objext conftest$ac_exeext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487 (eval $ac_link) 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -s conftest$ac_exeext'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6497 eval "$as_ac_var=yes"
6499 echo "$as_me: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6501 eval "$as_ac_var=no"
6503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6507 if test `eval echo '${'$as_ac_var'}'` = yes; then
6508 cat >>confdefs.h <<_ACEOF
6509 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6517 for ac_func in dirname
6519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6520 echo "$as_me:$LINENO: checking for $ac_func" >&5
6521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_var+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 cat >conftest.$ac_ext <<_ACEOF
6526 #line $LINENO "configure"
6527 #include "confdefs.h"
6528 /* System header to define __stub macros and hopefully few prototypes,
6529 which can conflict with char $ac_func (); below. */
6531 /* Override any gcc2 internal prototype to avoid an error. */
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6540 #ifdef F77_DUMMY_MAIN
6544 int F77_DUMMY_MAIN() { return 1; }
6549 /* The GNU C library defines this for functions which it implements
6550 to always fail with ENOSYS. Some functions are actually named
6551 something starting with __ and the normal name is an alias. */
6552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6562 rm -f conftest.$ac_objext conftest$ac_exeext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6564 (eval $ac_link) 2>&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
6568 { ac_try='test -s conftest$ac_exeext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 eval "$as_ac_var=yes"
6576 echo "$as_me: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6578 eval "$as_ac_var=no"
6580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6584 if test `eval echo '${'$as_ac_var'}'` = yes; then
6585 cat >>confdefs.h <<_ACEOF
6586 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6589 for ac_header in libgen.h
6591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6593 echo "$as_me:$LINENO: checking for $ac_header" >&5
6594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6601 # Is the header compilable?
6602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6604 cat >conftest.$ac_ext <<_ACEOF
6605 #line $LINENO "configure"
6606 #include "confdefs.h"
6607 $ac_includes_default
6608 @%:@include <$ac_header>
6610 rm -f conftest.$ac_objext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612 (eval $ac_compile) 2>&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -s conftest.$ac_objext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6622 ac_header_compiler=yes
6624 echo "$as_me: failed program was:" >&5
6625 cat conftest.$ac_ext >&5
6626 ac_header_compiler=no
6628 rm -f conftest.$ac_objext conftest.$ac_ext
6629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6630 echo "${ECHO_T}$ac_header_compiler" >&6
6632 # Is the header present?
6633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6635 cat >conftest.$ac_ext <<_ACEOF
6636 #line $LINENO "configure"
6637 #include "confdefs.h"
6638 @%:@include <$ac_header>
6640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6643 egrep -v '^ *\+' conftest.er1 >conftest.err
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } >/dev/null; then
6648 if test -s conftest.err; then
6649 ac_cpp_err=$ac_c_preproc_warn_flag
6656 if test -z "$ac_cpp_err"; then
6657 ac_header_preproc=yes
6659 echo "$as_me: failed program was:" >&5
6660 cat conftest.$ac_ext >&5
6661 ac_header_preproc=no
6663 rm -f conftest.err conftest.$ac_ext
6664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6665 echo "${ECHO_T}$ac_header_preproc" >&6
6667 # So? What about this header?
6668 case $ac_header_compiler:$ac_header_preproc in
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6682 echo "$as_me:$LINENO: checking for $ac_header" >&5
6683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 eval "$as_ac_Header=$ac_header_preproc"
6689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6694 cat >>confdefs.h <<_ACEOF
6695 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6704 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
6705 echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
6706 if test "${ac_cv_lib_gen_dirname+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 ac_check_lib_save_LIBS=$LIBS
6711 cat >conftest.$ac_ext <<_ACEOF
6712 #line $LINENO "configure"
6713 #include "confdefs.h"
6715 /* Override any gcc2 internal prototype to avoid an error. */
6719 /* We use char because int might match the return type of a gcc2
6720 builtin and then its argument prototype would still apply. */
6722 #ifdef F77_DUMMY_MAIN
6726 int F77_DUMMY_MAIN() { return 1; }
6736 rm -f conftest.$ac_objext conftest$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738 (eval $ac_link) 2>&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -s conftest$ac_exeext'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 ac_cv_lib_gen_dirname=yes
6750 echo "$as_me: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6752 ac_cv_lib_gen_dirname=no
6754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6755 LIBS=$ac_check_lib_save_LIBS
6757 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
6758 echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
6759 if test $ac_cv_lib_gen_dirname = yes; then
6761 echo "$as_me:$LINENO: checking for broken dirname" >&5
6762 echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
6763 if test "${ac_cv_have_broken_dirname+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 if test "$cross_compiling" = yes; then
6770 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6771 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6772 { (exit 1); exit 1; }; }
6774 cat >conftest.$ac_ext <<_ACEOF
6775 #line $LINENO "configure"
6776 #include "confdefs.h"
6781 int main(int argc, char **argv) {
6784 strncpy(buf,"/etc", 32);
6786 if (!s || strncmp(s, "/", 32) != 0) {
6794 rm -f conftest$ac_exeext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6796 (eval $ac_link) 2>&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_have_broken_dirname="no"
6807 echo "$as_me: program exited with status $ac_status" >&5
6808 echo "$as_me: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6811 ac_cv_have_broken_dirname="yes"
6814 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6819 echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
6820 echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
6821 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
6823 cat >>confdefs.h <<\_ACEOF
6824 @%:@define HAVE_DIRNAME 1
6828 for ac_header in libgen.h
6830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6832 echo "$as_me:$LINENO: checking for $ac_header" >&5
6833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6840 # Is the header compilable?
6841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6843 cat >conftest.$ac_ext <<_ACEOF
6844 #line $LINENO "configure"
6845 #include "confdefs.h"
6846 $ac_includes_default
6847 @%:@include <$ac_header>
6849 rm -f conftest.$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851 (eval $ac_compile) 2>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try='test -s conftest.$ac_objext'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 ac_header_compiler=yes
6863 echo "$as_me: failed program was:" >&5
6864 cat conftest.$ac_ext >&5
6865 ac_header_compiler=no
6867 rm -f conftest.$ac_objext conftest.$ac_ext
6868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6869 echo "${ECHO_T}$ac_header_compiler" >&6
6871 # Is the header present?
6872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6874 cat >conftest.$ac_ext <<_ACEOF
6875 #line $LINENO "configure"
6876 #include "confdefs.h"
6877 @%:@include <$ac_header>
6879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6882 egrep -v '^ *\+' conftest.er1 >conftest.err
6884 cat conftest.err >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } >/dev/null; then
6887 if test -s conftest.err; then
6888 ac_cpp_err=$ac_c_preproc_warn_flag
6895 if test -z "$ac_cpp_err"; then
6896 ac_header_preproc=yes
6898 echo "$as_me: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6900 ac_header_preproc=no
6902 rm -f conftest.err conftest.$ac_ext
6903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6904 echo "${ECHO_T}$ac_header_preproc" >&6
6906 # So? What about this header?
6907 case $ac_header_compiler:$ac_header_preproc in
6909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6921 echo "$as_me:$LINENO: checking for $ac_header" >&5
6922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 eval "$as_ac_Header=$ac_header_preproc"
6928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6933 cat >>confdefs.h <<_ACEOF
6934 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6952 for ac_func in gettimeofday time
6954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6955 echo "$as_me:$LINENO: checking for $ac_func" >&5
6956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6957 if eval "test \"\${$as_ac_var+set}\" = set"; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 cat >conftest.$ac_ext <<_ACEOF
6961 #line $LINENO "configure"
6962 #include "confdefs.h"
6963 /* System header to define __stub macros and hopefully few prototypes,
6964 which can conflict with char $ac_func (); below. */
6966 /* Override any gcc2 internal prototype to avoid an error. */
6970 /* We use char because int might match the return type of a gcc2
6971 builtin and then its argument prototype would still apply. */
6975 #ifdef F77_DUMMY_MAIN
6979 int F77_DUMMY_MAIN() { return 1; }
6984 /* The GNU C library defines this for functions which it implements
6985 to always fail with ENOSYS. Some functions are actually named
6986 something starting with __ and the normal name is an alias. */
6987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6997 rm -f conftest.$ac_objext conftest$ac_exeext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999 (eval $ac_link) 2>&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -s conftest$ac_exeext'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009 eval "$as_ac_var=yes"
7011 echo "$as_me: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7013 eval "$as_ac_var=no"
7015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7019 if test `eval echo '${'$as_ac_var'}'` = yes; then
7020 cat >>confdefs.h <<_ACEOF
7021 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7033 for ac_func in endutent getutent getutid getutline pututline setutent
7035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7036 echo "$as_me:$LINENO: checking for $ac_func" >&5
7037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7038 if eval "test \"\${$as_ac_var+set}\" = set"; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 cat >conftest.$ac_ext <<_ACEOF
7042 #line $LINENO "configure"
7043 #include "confdefs.h"
7044 /* System header to define __stub macros and hopefully few prototypes,
7045 which can conflict with char $ac_func (); below. */
7047 /* Override any gcc2 internal prototype to avoid an error. */
7051 /* We use char because int might match the return type of a gcc2
7052 builtin and then its argument prototype would still apply. */
7056 #ifdef F77_DUMMY_MAIN
7060 int F77_DUMMY_MAIN() { return 1; }
7065 /* The GNU C library defines this for functions which it implements
7066 to always fail with ENOSYS. Some functions are actually named
7067 something starting with __ and the normal name is an alias. */
7068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7078 rm -f conftest.$ac_objext conftest$ac_exeext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080 (eval $ac_link) 2>&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try='test -s conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 eval "$as_ac_var=yes"
7092 echo "$as_me: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7094 eval "$as_ac_var=no"
7096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7100 if test `eval echo '${'$as_ac_var'}'` = yes; then
7101 cat >>confdefs.h <<_ACEOF
7102 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7109 for ac_func in utmpname
7111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112 echo "$as_me:$LINENO: checking for $ac_func" >&5
7113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7114 if eval "test \"\${$as_ac_var+set}\" = set"; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 cat >conftest.$ac_ext <<_ACEOF
7118 #line $LINENO "configure"
7119 #include "confdefs.h"
7120 /* System header to define __stub macros and hopefully few prototypes,
7121 which can conflict with char $ac_func (); below. */
7123 /* Override any gcc2 internal prototype to avoid an error. */
7127 /* We use char because int might match the return type of a gcc2
7128 builtin and then its argument prototype would still apply. */
7132 #ifdef F77_DUMMY_MAIN
7136 int F77_DUMMY_MAIN() { return 1; }
7141 /* The GNU C library defines this for functions which it implements
7142 to always fail with ENOSYS. Some functions are actually named
7143 something starting with __ and the normal name is an alias. */
7144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7156 (eval $ac_link) 2>&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -s conftest$ac_exeext'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 eval "$as_ac_var=yes"
7168 echo "$as_me: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7170 eval "$as_ac_var=no"
7172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7176 if test `eval echo '${'$as_ac_var'}'` = yes; then
7177 cat >>confdefs.h <<_ACEOF
7178 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7189 for ac_func in endutxent getutxent getutxid getutxline pututxline
7191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7192 echo "$as_me:$LINENO: checking for $ac_func" >&5
7193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7194 if eval "test \"\${$as_ac_var+set}\" = set"; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 cat >conftest.$ac_ext <<_ACEOF
7198 #line $LINENO "configure"
7199 #include "confdefs.h"
7200 /* System header to define __stub macros and hopefully few prototypes,
7201 which can conflict with char $ac_func (); below. */
7203 /* Override any gcc2 internal prototype to avoid an error. */
7207 /* We use char because int might match the return type of a gcc2
7208 builtin and then its argument prototype would still apply. */
7212 #ifdef F77_DUMMY_MAIN
7216 int F77_DUMMY_MAIN() { return 1; }
7221 /* The GNU C library defines this for functions which it implements
7222 to always fail with ENOSYS. Some functions are actually named
7223 something starting with __ and the normal name is an alias. */
7224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7234 rm -f conftest.$ac_objext conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236 (eval $ac_link) 2>&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } &&
7240 { ac_try='test -s conftest$ac_exeext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 eval "$as_ac_var=yes"
7248 echo "$as_me: failed program was:" >&5
7249 cat conftest.$ac_ext >&5
7250 eval "$as_ac_var=no"
7252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7256 if test `eval echo '${'$as_ac_var'}'` = yes; then
7257 cat >>confdefs.h <<_ACEOF
7258 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7266 for ac_func in setutxent utmpxname
7268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7269 echo "$as_me:$LINENO: checking for $ac_func" >&5
7270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7271 if eval "test \"\${$as_ac_var+set}\" = set"; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 cat >conftest.$ac_ext <<_ACEOF
7275 #line $LINENO "configure"
7276 #include "confdefs.h"
7277 /* System header to define __stub macros and hopefully few prototypes,
7278 which can conflict with char $ac_func (); below. */
7280 /* Override any gcc2 internal prototype to avoid an error. */
7284 /* We use char because int might match the return type of a gcc2
7285 builtin and then its argument prototype would still apply. */
7289 #ifdef F77_DUMMY_MAIN
7293 int F77_DUMMY_MAIN() { return 1; }
7298 /* The GNU C library defines this for functions which it implements
7299 to always fail with ENOSYS. Some functions are actually named
7300 something starting with __ and the normal name is an alias. */
7301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7311 rm -f conftest.$ac_objext conftest$ac_exeext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7313 (eval $ac_link) 2>&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -s conftest$ac_exeext'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; }; then
7323 eval "$as_ac_var=yes"
7325 echo "$as_me: failed program was:" >&5
7326 cat conftest.$ac_ext >&5
7327 eval "$as_ac_var=no"
7329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7333 if test `eval echo '${'$as_ac_var'}'` = yes; then
7334 cat >>confdefs.h <<_ACEOF
7335 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7342 echo "$as_me:$LINENO: checking for getuserattr" >&5
7343 echo $ECHO_N "checking for getuserattr... $ECHO_C" >&6
7344 if test "${ac_cv_func_getuserattr+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 cat >conftest.$ac_ext <<_ACEOF
7348 #line $LINENO "configure"
7349 #include "confdefs.h"
7350 /* System header to define __stub macros and hopefully few prototypes,
7351 which can conflict with char getuserattr (); below. */
7353 /* Override any gcc2 internal prototype to avoid an error. */
7357 /* We use char because int might match the return type of a gcc2
7358 builtin and then its argument prototype would still apply. */
7359 char getuserattr ();
7362 #ifdef F77_DUMMY_MAIN
7366 int F77_DUMMY_MAIN() { return 1; }
7371 /* The GNU C library defines this for functions which it implements
7372 to always fail with ENOSYS. Some functions are actually named
7373 something starting with __ and the normal name is an alias. */
7374 #if defined (__stub_getuserattr) || defined (__stub___getuserattr)
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386 (eval $ac_link) 2>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -s conftest$ac_exeext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7396 ac_cv_func_getuserattr=yes
7398 echo "$as_me: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7400 ac_cv_func_getuserattr=no
7402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7404 echo "$as_me:$LINENO: result: $ac_cv_func_getuserattr" >&5
7405 echo "${ECHO_T}$ac_cv_func_getuserattr" >&6
7406 if test $ac_cv_func_getuserattr = yes; then
7407 cat >>confdefs.h <<\_ACEOF
7408 @%:@define HAVE_GETUSERATTR 1
7412 echo "$as_me:$LINENO: checking for getuserattr in -ls" >&5
7413 echo $ECHO_N "checking for getuserattr in -ls... $ECHO_C" >&6
7414 if test "${ac_cv_lib_s_getuserattr+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 ac_check_lib_save_LIBS=$LIBS
7419 cat >conftest.$ac_ext <<_ACEOF
7420 #line $LINENO "configure"
7421 #include "confdefs.h"
7423 /* Override any gcc2 internal prototype to avoid an error. */
7427 /* We use char because int might match the return type of a gcc2
7428 builtin and then its argument prototype would still apply. */
7429 char getuserattr ();
7430 #ifdef F77_DUMMY_MAIN
7434 int F77_DUMMY_MAIN() { return 1; }
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_cv_lib_s_getuserattr=yes
7458 echo "$as_me: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7460 ac_cv_lib_s_getuserattr=no
7462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7463 LIBS=$ac_check_lib_save_LIBS
7465 echo "$as_me:$LINENO: result: $ac_cv_lib_s_getuserattr" >&5
7466 echo "${ECHO_T}$ac_cv_lib_s_getuserattr" >&6
7467 if test $ac_cv_lib_s_getuserattr = yes; then
7468 LIBS="$LIBS -ls"; cat >>confdefs.h <<\_ACEOF
7469 @%:@define HAVE_GETUSERATTR 1
7478 echo "$as_me:$LINENO: checking for daemon" >&5
7479 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
7480 if test "${ac_cv_func_daemon+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 cat >conftest.$ac_ext <<_ACEOF
7484 #line $LINENO "configure"
7485 #include "confdefs.h"
7486 /* System header to define __stub macros and hopefully few prototypes,
7487 which can conflict with char daemon (); below. */
7489 /* Override any gcc2 internal prototype to avoid an error. */
7493 /* We use char because int might match the return type of a gcc2
7494 builtin and then its argument prototype would still apply. */
7498 #ifdef F77_DUMMY_MAIN
7502 int F77_DUMMY_MAIN() { return 1; }
7507 /* The GNU C library defines this for functions which it implements
7508 to always fail with ENOSYS. Some functions are actually named
7509 something starting with __ and the normal name is an alias. */
7510 #if defined (__stub_daemon) || defined (__stub___daemon)
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7522 (eval $ac_link) 2>&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -s conftest$ac_exeext'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; }; then
7532 ac_cv_func_daemon=yes
7534 echo "$as_me: failed program was:" >&5
7535 cat conftest.$ac_ext >&5
7536 ac_cv_func_daemon=no
7538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7540 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
7541 echo "${ECHO_T}$ac_cv_func_daemon" >&6
7542 if test $ac_cv_func_daemon = yes; then
7543 cat >>confdefs.h <<\_ACEOF
7544 @%:@define HAVE_DAEMON 1
7548 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
7549 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
7550 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_check_lib_save_LIBS=$LIBS
7555 cat >conftest.$ac_ext <<_ACEOF
7556 #line $LINENO "configure"
7557 #include "confdefs.h"
7559 /* Override any gcc2 internal prototype to avoid an error. */
7563 /* We use char because int might match the return type of a gcc2
7564 builtin and then its argument prototype would still apply. */
7566 #ifdef F77_DUMMY_MAIN
7570 int F77_DUMMY_MAIN() { return 1; }
7580 rm -f conftest.$ac_objext conftest$ac_exeext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7582 (eval $ac_link) 2>&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } &&
7586 { ac_try='test -s conftest$ac_exeext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_lib_bsd_daemon=yes
7594 echo "$as_me: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7596 ac_cv_lib_bsd_daemon=no
7598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7599 LIBS=$ac_check_lib_save_LIBS
7601 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
7602 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
7603 if test $ac_cv_lib_bsd_daemon = yes; then
7604 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
7605 @%:@define HAVE_DAEMON 1
7614 echo "$as_me:$LINENO: checking for getpagesize" >&5
7615 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
7616 if test "${ac_cv_func_getpagesize+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 cat >conftest.$ac_ext <<_ACEOF
7620 #line $LINENO "configure"
7621 #include "confdefs.h"
7622 /* System header to define __stub macros and hopefully few prototypes,
7623 which can conflict with char getpagesize (); below. */
7625 /* Override any gcc2 internal prototype to avoid an error. */
7629 /* We use char because int might match the return type of a gcc2
7630 builtin and then its argument prototype would still apply. */
7631 char getpagesize ();
7634 #ifdef F77_DUMMY_MAIN
7638 int F77_DUMMY_MAIN() { return 1; }
7643 /* The GNU C library defines this for functions which it implements
7644 to always fail with ENOSYS. Some functions are actually named
7645 something starting with __ and the normal name is an alias. */
7646 #if defined (__stub_getpagesize) || defined (__stub___getpagesize)
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try='test -s conftest$ac_exeext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_cv_func_getpagesize=yes
7670 echo "$as_me: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7672 ac_cv_func_getpagesize=no
7674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7676 echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
7677 echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
7678 if test $ac_cv_func_getpagesize = yes; then
7679 cat >>confdefs.h <<\_ACEOF
7680 @%:@define HAVE_GETPAGESIZE 1
7684 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
7685 echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
7686 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 ac_check_lib_save_LIBS=$LIBS
7691 cat >conftest.$ac_ext <<_ACEOF
7692 #line $LINENO "configure"
7693 #include "confdefs.h"
7695 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701 char getpagesize ();
7702 #ifdef F77_DUMMY_MAIN
7706 int F77_DUMMY_MAIN() { return 1; }
7716 rm -f conftest.$ac_objext conftest$ac_exeext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7718 (eval $ac_link) 2>&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } &&
7722 { ac_try='test -s conftest$ac_exeext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7728 ac_cv_lib_ucb_getpagesize=yes
7730 echo "$as_me: failed program was:" >&5
7731 cat conftest.$ac_ext >&5
7732 ac_cv_lib_ucb_getpagesize=no
7734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7735 LIBS=$ac_check_lib_save_LIBS
7737 echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
7738 echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
7739 if test $ac_cv_lib_ucb_getpagesize = yes; then
7740 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
7741 @%:@define HAVE_GETPAGESIZE 1
7750 # Check for broken snprintf
7751 if test "x$ac_cv_func_snprintf" = "xyes" ; then
7752 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
7753 echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
7754 if test "$cross_compiling" = yes; then
7755 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7756 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7757 { (exit 1); exit 1; }; }
7759 cat >conftest.$ac_ext <<_ACEOF
7760 #line $LINENO "configure"
7761 #include "confdefs.h"
7764 int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
7767 rm -f conftest$ac_exeext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769 (eval $ac_link) 2>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 echo "$as_me:$LINENO: result: yes" >&5
7779 echo "${ECHO_T}yes" >&6
7781 echo "$as_me: program exited with status $ac_status" >&5
7782 echo "$as_me: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7786 echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6
7788 cat >>confdefs.h <<\_ACEOF
7789 @%:@define BROKEN_SNPRINTF 1
7792 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
7793 echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
7797 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7801 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
7802 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
7803 if test "${ac_cv_func_getpgrp_void+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 # Use it with a single arg.
7807 cat >conftest.$ac_ext <<_ACEOF
7808 #line $LINENO "configure"
7809 #include "confdefs.h"
7810 $ac_includes_default
7811 #ifdef F77_DUMMY_MAIN
7815 int F77_DUMMY_MAIN() { return 1; }
7825 rm -f conftest.$ac_objext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7827 (eval $ac_compile) 2>&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -s conftest.$ac_objext'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; }; then
7837 ac_cv_func_getpgrp_void=no
7839 echo "$as_me: failed program was:" >&5
7840 cat conftest.$ac_ext >&5
7841 ac_cv_func_getpgrp_void=yes
7843 rm -f conftest.$ac_objext conftest.$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
7847 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
7848 if test $ac_cv_func_getpgrp_void = yes; then
7850 cat >>confdefs.h <<\_ACEOF
7851 @%:@define GETPGRP_VOID 1
7857 # Check for PAM libs
7860 # Check whether --with-pam or --without-pam was given.
7861 if test "${with_pam+set}" = set; then
7864 if test "x$withval" != "xno" ; then
7865 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
7866 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
7867 echo "$as_me: error: PAM headers not found" >&2;}
7868 { (exit 1); exit 1; }; }
7872 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7873 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7874 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 ac_check_lib_save_LIBS=$LIBS
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7883 /* Override any gcc2 internal prototype to avoid an error. */
7887 /* We use char because int might match the return type of a gcc2
7888 builtin and then its argument prototype would still apply. */
7890 #ifdef F77_DUMMY_MAIN
7894 int F77_DUMMY_MAIN() { return 1; }
7904 rm -f conftest.$ac_objext conftest$ac_exeext
7905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7906 (eval $ac_link) 2>&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -s conftest$ac_exeext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_cv_lib_dl_dlopen=yes
7918 echo "$as_me: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7920 ac_cv_lib_dl_dlopen=no
7922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7923 LIBS=$ac_check_lib_save_LIBS
7925 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7927 if test $ac_cv_lib_dl_dlopen = yes; then
7928 cat >>confdefs.h <<_ACEOF
7929 @%:@define HAVE_LIBDL 1
7937 echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
7938 echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
7939 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 ac_check_lib_save_LIBS=$LIBS
7944 cat >conftest.$ac_ext <<_ACEOF
7945 #line $LINENO "configure"
7946 #include "confdefs.h"
7948 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7954 char pam_set_item ();
7955 #ifdef F77_DUMMY_MAIN
7959 int F77_DUMMY_MAIN() { return 1; }
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -s conftest$ac_exeext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_cv_lib_pam_pam_set_item=yes
7983 echo "$as_me: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7985 ac_cv_lib_pam_pam_set_item=no
7987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7988 LIBS=$ac_check_lib_save_LIBS
7990 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
7991 echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
7992 if test $ac_cv_lib_pam_pam_set_item = yes; then
7993 cat >>confdefs.h <<_ACEOF
7994 @%:@define HAVE_LIBPAM 1
8000 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
8001 echo "$as_me: error: *** libpam missing" >&2;}
8002 { (exit 1); exit 1; }; }
8006 for ac_func in pam_getenvlist
8008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8009 echo "$as_me:$LINENO: checking for $ac_func" >&5
8010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8011 if eval "test \"\${$as_ac_var+set}\" = set"; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 cat >conftest.$ac_ext <<_ACEOF
8015 #line $LINENO "configure"
8016 #include "confdefs.h"
8017 /* System header to define __stub macros and hopefully few prototypes,
8018 which can conflict with char $ac_func (); below. */
8020 /* Override any gcc2 internal prototype to avoid an error. */
8024 /* We use char because int might match the return type of a gcc2
8025 builtin and then its argument prototype would still apply. */
8029 #ifdef F77_DUMMY_MAIN
8033 int F77_DUMMY_MAIN() { return 1; }
8038 /* The GNU C library defines this for functions which it implements
8039 to always fail with ENOSYS. Some functions are actually named
8040 something starting with __ and the normal name is an alias. */
8041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8051 rm -f conftest.$ac_objext conftest$ac_exeext
8052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8053 (eval $ac_link) 2>&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -s conftest$ac_exeext'
8058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; }; then
8063 eval "$as_ac_var=yes"
8065 echo "$as_me: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8067 eval "$as_ac_var=no"
8069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8073 if test `eval echo '${'$as_ac_var'}'` = yes; then
8074 cat >>confdefs.h <<_ACEOF
8075 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8085 cat >>confdefs.h <<\_ACEOF
8086 @%:@define USE_PAM 1
8089 if test $ac_cv_lib_dl_dlopen = yes; then
8100 # Check for older PAM
8101 if test "x$PAM_MSG" = "xyes" ; then
8102 # Check PAM strerror arguments (old PAM)
8103 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
8104 echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
8105 cat >conftest.$ac_ext <<_ACEOF
8106 #line $LINENO "configure"
8107 #include "confdefs.h"
8110 #include <security/pam_appl.h>
8112 #ifdef F77_DUMMY_MAIN
8116 int F77_DUMMY_MAIN() { return 1; }
8121 (void)pam_strerror((pam_handle_t *)NULL, -1);
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128 (eval $ac_compile) 2>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -s conftest.$ac_objext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6
8141 echo "$as_me: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8144 cat >>confdefs.h <<\_ACEOF
8145 @%:@define HAVE_OLD_PAM 1
8148 echo "$as_me:$LINENO: result: yes" >&5
8149 echo "${ECHO_T}yes" >&6
8150 PAM_MSG="yes (old library)"
8154 rm -f conftest.$ac_objext conftest.$ac_ext
8157 # Search for OpenSSL
8158 saved_CPPFLAGS="$CPPFLAGS"
8159 saved_LDFLAGS="$LDFLAGS"
8161 # Check whether --with-ssl-dir or --without-ssl-dir was given.
8162 if test "${with_ssl_dir+set}" = set; then
8163 withval="$with_ssl_dir"
8165 if test "x$withval" != "xno" ; then
8166 if test -d "$withval/lib"; then
8167 if test -n "${need_dash_r}"; then
8168 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8170 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8173 if test -n "${need_dash_r}"; then
8174 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8176 LDFLAGS="-L${withval} ${LDFLAGS}"
8179 if test -d "$withval/include"; then
8180 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8182 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8188 LIBS="$LIBS -lcrypto"
8189 cat >conftest.$ac_ext <<_ACEOF
8190 #line $LINENO "configure"
8191 #include "confdefs.h"
8193 /* Override any gcc2 internal prototype to avoid an error. */
8197 /* We use char because int might match the return type of a gcc2
8198 builtin and then its argument prototype would still apply. */
8200 #ifdef F77_DUMMY_MAIN
8204 int F77_DUMMY_MAIN() { return 1; }
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216 (eval $ac_link) 2>&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try='test -s conftest$ac_exeext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 cat >>confdefs.h <<\_ACEOF
8227 @%:@define HAVE_OPENSSL 1
8231 echo "$as_me: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8234 if test -n "${need_dash_r}"; then
8235 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
8237 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
8239 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
8240 cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8244 /* Override any gcc2 internal prototype to avoid an error. */
8248 /* We use char because int might match the return type of a gcc2
8249 builtin and then its argument prototype would still apply. */
8251 #ifdef F77_DUMMY_MAIN
8255 int F77_DUMMY_MAIN() { return 1; }
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267 (eval $ac_link) 2>&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -s conftest$ac_exeext'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 cat >>confdefs.h <<\_ACEOF
8278 @%:@define HAVE_OPENSSL 1
8282 echo "$as_me: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8285 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
8286 echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
8287 { (exit 1); exit 1; }; }
8291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 # Sanity check OpenSSL headers
8299 echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
8300 echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
8301 if test "$cross_compiling" = yes; then
8302 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8303 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8304 { (exit 1); exit 1; }; }
8306 cat >conftest.$ac_ext <<_ACEOF
8307 #line $LINENO "configure"
8308 #include "confdefs.h"
8311 #include <openssl/opensslv.h>
8312 int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
8315 rm -f conftest$ac_exeext
8316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8317 (eval $ac_link) 2>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8327 echo "$as_me:$LINENO: result: yes" >&5
8328 echo "${ECHO_T}yes" >&6
8331 echo "$as_me: program exited with status $ac_status" >&5
8332 echo "$as_me: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8336 echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6
8338 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5
8339 echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;}
8340 { (exit 1); exit 1; }; }
8344 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8347 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
8348 # version in OpenSSL. Skip this for PAM
8349 if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
8350 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8351 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8352 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 ac_check_lib_save_LIBS=$LIBS
8356 LIBS="-lcrypt $LIBS"
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 #include "confdefs.h"
8361 /* Override any gcc2 internal prototype to avoid an error. */
8365 /* We use char because int might match the return type of a gcc2
8366 builtin and then its argument prototype would still apply. */
8368 #ifdef F77_DUMMY_MAIN
8372 int F77_DUMMY_MAIN() { return 1; }
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
8388 { ac_try='test -s conftest$ac_exeext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 ac_cv_lib_crypt_crypt=yes
8396 echo "$as_me: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8398 ac_cv_lib_crypt_crypt=no
8400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8401 LIBS=$ac_check_lib_save_LIBS
8403 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8404 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8405 if test $ac_cv_lib_crypt_crypt = yes; then
8406 LIBS="$LIBS -lcrypt"
8412 ### Configure cryptographic random number support
8414 # Check wheter OpenSSL seeds itself
8415 echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
8416 echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
8417 if test "$cross_compiling" = yes; then
8418 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8419 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8420 { (exit 1); exit 1; }; }
8422 cat >conftest.$ac_ext <<_ACEOF
8423 #line $LINENO "configure"
8424 #include "confdefs.h"
8427 #include <openssl/rand.h>
8428 int main(void) { return(RAND_status() == 1 ? 0 : 1); }
8431 rm -f conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433 (eval $ac_link) 2>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8443 OPENSSL_SEEDS_ITSELF=yes
8444 echo "$as_me:$LINENO: result: yes" >&5
8445 echo "${ECHO_T}yes" >&6
8448 echo "$as_me: program exited with status $ac_status" >&5
8449 echo "$as_me: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8453 echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6
8455 # Default to use of the rand helper if OpenSSL doesn't
8461 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8465 # Do we want to force the use of the rand helper?
8467 # Check whether --with-rand-helper or --without-rand-helper was given.
8468 if test "${with_rand_helper+set}" = set; then
8469 withval="$with_rand_helper"
8471 if test "x$withval" = "xno" ; then
8472 # Force use of OpenSSL's internal RNG, even if
8473 # the previous test showed it to be unseeded.
8474 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
8475 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
8476 echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
8477 OPENSSL_SEEDS_ITSELF=yes
8486 # Which randomness source do we use?
8487 if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
8489 cat >>confdefs.h <<\_ACEOF
8490 @%:@define OPENSSL_PRNG_ONLY 1
8493 RAND_MSG="OpenSSL internal ONLY"
8494 INSTALL_SSH_RAND_HELPER=""
8495 elif test ! -z "$USE_RAND_HELPER" ; then
8496 # install rand helper
8497 RAND_MSG="ssh-rand-helper"
8498 INSTALL_SSH_RAND_HELPER="yes"
8502 ### Configuration of ssh-rand-helper
8506 # Check whether --with-prngd-port or --without-prngd-port was given.
8507 if test "${with_prngd_port+set}" = set; then
8508 withval="$with_prngd_port"
8517 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
8518 echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
8519 { (exit 1); exit 1; }; }
8522 if test ! -z "$withval" ; then
8523 PRNGD_PORT="$withval"
8524 cat >>confdefs.h <<_ACEOF
8525 @%:@define PRNGD_PORT $PRNGD_PORT
8533 # PRNGD Unix domain socket
8535 # Check whether --with-prngd-socket or --without-prngd-socket was given.
8536 if test "${with_prngd_socket+set}" = set; then
8537 withval="$with_prngd_socket"
8541 withval="/var/run/egd-pool"
8549 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
8550 echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
8551 { (exit 1); exit 1; }; }
8555 if test ! -z "$withval" ; then
8556 if test ! -z "$PRNGD_PORT" ; then
8557 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
8558 echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
8559 { (exit 1); exit 1; }; }
8561 if test ! -r "$withval" ; then
8562 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
8563 echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
8565 PRNGD_SOCKET="$withval"
8566 cat >>confdefs.h <<_ACEOF
8567 @%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8574 # Check for existing socket only if we don't have a random device already
8575 if test "$USE_RAND_HELPER" = yes ; then
8576 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
8577 echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
8578 # Insert other locations here
8579 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
8580 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
8581 PRNGD_SOCKET="$sock"
8582 cat >>confdefs.h <<_ACEOF
8583 @%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8589 if test ! -z "$PRNGD_SOCKET" ; then
8590 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
8591 echo "${ECHO_T}$PRNGD_SOCKET" >&6
8593 echo "$as_me:$LINENO: result: not found" >&5
8594 echo "${ECHO_T}not found" >&6
8601 # Change default command timeout for hashing entropy source
8604 # Check whether --with-entropy-timeout or --without-entropy-timeout was given.
8605 if test "${with_entropy_timeout+set}" = set; then
8606 withval="$with_entropy_timeout"
8608 if test "x$withval" != "xno" ; then
8609 entropy_timeout=$withval
8614 cat >>confdefs.h <<_ACEOF
8615 @%:@define ENTROPY_TIMEOUT_MSEC $entropy_timeout
8619 ssh_privsep_user=sshd
8621 # Check whether --with-privsep-user or --without-privsep-user was given.
8622 if test "${with_privsep_user+set}" = set; then
8623 withval="$with_privsep_user"
8625 if test -n "$withval"; then
8626 ssh_privsep_user=$withval
8631 cat >>confdefs.h <<_ACEOF
8632 @%:@define SSH_PRIVSEP_USER "$ssh_privsep_user"
8636 # We do this little dance with the search path to insure
8637 # that programs that we select for use by installed programs
8638 # (which may be run by the super-user) come from trusted
8639 # locations before they come from the user's private area.
8640 # This should help avoid accidentally configuring some
8641 # random version of a program in someone's personal bin.
8645 test -h /bin 2> /dev/null && PATH=/usr/bin
8646 test -d /sbin && PATH=$PATH:/sbin
8647 test -d /usr/sbin && PATH=$PATH:/usr/sbin
8648 PATH=$PATH:/etc:$OPATH
8650 # These programs are used by the command hashing source to gather entropy
8652 # Extract the first word of "ls", so it can be a program name with args.
8653 set dummy ls; ac_word=$2
8654 echo "$as_me:$LINENO: checking for $ac_word" >&5
8655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8656 if test "${ac_cv_path_PROG_LS+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
8672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 PROG_LS=$ac_cv_path_PROG_LS
8683 if test -n "$PROG_LS"; then
8684 echo "$as_me:$LINENO: result: $PROG_LS" >&5
8685 echo "${ECHO_T}$PROG_LS" >&6
8687 echo "$as_me:$LINENO: result: no" >&5
8688 echo "${ECHO_T}no" >&6
8691 if test -z "$PROG_LS" ; then
8697 # Extract the first word of "netstat", so it can be a program name with args.
8698 set dummy netstat; ac_word=$2
8699 echo "$as_me:$LINENO: checking for $ac_word" >&5
8700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8701 if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 case $PROG_NETSTAT in
8706 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
8709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 test -z "$as_dir" && as_dir=.
8714 for ac_exec_ext in '' $ac_executable_extensions; do
8715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8716 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
8717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8726 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
8728 if test -n "$PROG_NETSTAT"; then
8729 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
8730 echo "${ECHO_T}$PROG_NETSTAT" >&6
8732 echo "$as_me:$LINENO: result: no" >&5
8733 echo "${ECHO_T}no" >&6
8736 if test -z "$PROG_NETSTAT" ; then
8737 PROG_NETSTAT="undef"
8742 # Extract the first word of "arp", so it can be a program name with args.
8743 set dummy arp; ac_word=$2
8744 echo "$as_me:$LINENO: checking for $ac_word" >&5
8745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8746 if test "${ac_cv_path_PROG_ARP+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
8762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8771 PROG_ARP=$ac_cv_path_PROG_ARP
8773 if test -n "$PROG_ARP"; then
8774 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
8775 echo "${ECHO_T}$PROG_ARP" >&6
8777 echo "$as_me:$LINENO: result: no" >&5
8778 echo "${ECHO_T}no" >&6
8781 if test -z "$PROG_ARP" ; then
8787 # Extract the first word of "ifconfig", so it can be a program name with args.
8788 set dummy ifconfig; ac_word=$2
8789 echo "$as_me:$LINENO: checking for $ac_word" >&5
8790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8791 if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 case $PROG_IFCONFIG in
8796 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
8807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
8818 if test -n "$PROG_IFCONFIG"; then
8819 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
8820 echo "${ECHO_T}$PROG_IFCONFIG" >&6
8822 echo "$as_me:$LINENO: result: no" >&5
8823 echo "${ECHO_T}no" >&6
8826 if test -z "$PROG_IFCONFIG" ; then
8827 PROG_IFCONFIG="undef"
8832 # Extract the first word of "jstat", so it can be a program name with args.
8833 set dummy jstat; ac_word=$2
8834 echo "$as_me:$LINENO: checking for $ac_word" >&5
8835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8836 if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8851 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
8852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
8863 if test -n "$PROG_JSTAT"; then
8864 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
8865 echo "${ECHO_T}$PROG_JSTAT" >&6
8867 echo "$as_me:$LINENO: result: no" >&5
8868 echo "${ECHO_T}no" >&6
8871 if test -z "$PROG_JSTAT" ; then
8877 # Extract the first word of "ps", so it can be a program name with args.
8878 set dummy ps; ac_word=$2
8879 echo "$as_me:$LINENO: checking for $ac_word" >&5
8880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8881 if test "${ac_cv_path_PROG_PS+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
8897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 PROG_PS=$ac_cv_path_PROG_PS
8908 if test -n "$PROG_PS"; then
8909 echo "$as_me:$LINENO: result: $PROG_PS" >&5
8910 echo "${ECHO_T}$PROG_PS" >&6
8912 echo "$as_me:$LINENO: result: no" >&5
8913 echo "${ECHO_T}no" >&6
8916 if test -z "$PROG_PS" ; then
8922 # Extract the first word of "sar", so it can be a program name with args.
8923 set dummy sar; ac_word=$2
8924 echo "$as_me:$LINENO: checking for $ac_word" >&5
8925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8926 if test "${ac_cv_path_PROG_SAR+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 test -z "$as_dir" && as_dir=.
8939 for ac_exec_ext in '' $ac_executable_extensions; do
8940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8941 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
8942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8951 PROG_SAR=$ac_cv_path_PROG_SAR
8953 if test -n "$PROG_SAR"; then
8954 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
8955 echo "${ECHO_T}$PROG_SAR" >&6
8957 echo "$as_me:$LINENO: result: no" >&5
8958 echo "${ECHO_T}no" >&6
8961 if test -z "$PROG_SAR" ; then
8967 # Extract the first word of "w", so it can be a program name with args.
8968 set dummy w; ac_word=$2
8969 echo "$as_me:$LINENO: checking for $ac_word" >&5
8970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8971 if test "${ac_cv_path_PROG_W+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8986 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
8987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 PROG_W=$ac_cv_path_PROG_W
8998 if test -n "$PROG_W"; then
8999 echo "$as_me:$LINENO: result: $PROG_W" >&5
9000 echo "${ECHO_T}$PROG_W" >&6
9002 echo "$as_me:$LINENO: result: no" >&5
9003 echo "${ECHO_T}no" >&6
9006 if test -z "$PROG_W" ; then
9012 # Extract the first word of "who", so it can be a program name with args.
9013 set dummy who; ac_word=$2
9014 echo "$as_me:$LINENO: checking for $ac_word" >&5
9015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9016 if test "${ac_cv_path_PROG_WHO+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
9032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9041 PROG_WHO=$ac_cv_path_PROG_WHO
9043 if test -n "$PROG_WHO"; then
9044 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
9045 echo "${ECHO_T}$PROG_WHO" >&6
9047 echo "$as_me:$LINENO: result: no" >&5
9048 echo "${ECHO_T}no" >&6
9051 if test -z "$PROG_WHO" ; then
9057 # Extract the first word of "last", so it can be a program name with args.
9058 set dummy last; ac_word=$2
9059 echo "$as_me:$LINENO: checking for $ac_word" >&5
9060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9061 if test "${ac_cv_path_PROG_LAST+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
9069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 test -z "$as_dir" && as_dir=.
9074 for ac_exec_ext in '' $ac_executable_extensions; do
9075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9076 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
9077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 PROG_LAST=$ac_cv_path_PROG_LAST
9088 if test -n "$PROG_LAST"; then
9089 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
9090 echo "${ECHO_T}$PROG_LAST" >&6
9092 echo "$as_me:$LINENO: result: no" >&5
9093 echo "${ECHO_T}no" >&6
9096 if test -z "$PROG_LAST" ; then
9102 # Extract the first word of "lastlog", so it can be a program name with args.
9103 set dummy lastlog; ac_word=$2
9104 echo "$as_me:$LINENO: checking for $ac_word" >&5
9105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9106 if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 case $PROG_LASTLOG in
9111 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
9114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 test -z "$as_dir" && as_dir=.
9119 for ac_exec_ext in '' $ac_executable_extensions; do
9120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9121 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
9122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
9133 if test -n "$PROG_LASTLOG"; then
9134 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
9135 echo "${ECHO_T}$PROG_LASTLOG" >&6
9137 echo "$as_me:$LINENO: result: no" >&5
9138 echo "${ECHO_T}no" >&6
9141 if test -z "$PROG_LASTLOG" ; then
9142 PROG_LASTLOG="undef"
9147 # Extract the first word of "df", so it can be a program name with args.
9148 set dummy df; ac_word=$2
9149 echo "$as_me:$LINENO: checking for $ac_word" >&5
9150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9151 if test "${ac_cv_path_PROG_DF+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9163 test -z "$as_dir" && as_dir=.
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9166 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
9167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 PROG_DF=$ac_cv_path_PROG_DF
9178 if test -n "$PROG_DF"; then
9179 echo "$as_me:$LINENO: result: $PROG_DF" >&5
9180 echo "${ECHO_T}$PROG_DF" >&6
9182 echo "$as_me:$LINENO: result: no" >&5
9183 echo "${ECHO_T}no" >&6
9186 if test -z "$PROG_DF" ; then
9192 # Extract the first word of "vmstat", so it can be a program name with args.
9193 set dummy vmstat; ac_word=$2
9194 echo "$as_me:$LINENO: checking for $ac_word" >&5
9195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9196 if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 case $PROG_VMSTAT in
9201 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
9204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9211 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
9212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9221 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
9223 if test -n "$PROG_VMSTAT"; then
9224 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
9225 echo "${ECHO_T}$PROG_VMSTAT" >&6
9227 echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6
9231 if test -z "$PROG_VMSTAT" ; then
9237 # Extract the first word of "uptime", so it can be a program name with args.
9238 set dummy uptime; ac_word=$2
9239 echo "$as_me:$LINENO: checking for $ac_word" >&5
9240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9241 if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 case $PROG_UPTIME in
9246 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9256 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
9257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
9268 if test -n "$PROG_UPTIME"; then
9269 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
9270 echo "${ECHO_T}$PROG_UPTIME" >&6
9272 echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6
9276 if test -z "$PROG_UPTIME" ; then
9282 # Extract the first word of "ipcs", so it can be a program name with args.
9283 set dummy ipcs; ac_word=$2
9284 echo "$as_me:$LINENO: checking for $ac_word" >&5
9285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9286 if test "${ac_cv_path_PROG_IPCS+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9301 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
9302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 PROG_IPCS=$ac_cv_path_PROG_IPCS
9313 if test -n "$PROG_IPCS"; then
9314 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
9315 echo "${ECHO_T}$PROG_IPCS" >&6
9317 echo "$as_me:$LINENO: result: no" >&5
9318 echo "${ECHO_T}no" >&6
9321 if test -z "$PROG_IPCS" ; then
9327 # Extract the first word of "tail", so it can be a program name with args.
9328 set dummy tail; ac_word=$2
9329 echo "$as_me:$LINENO: checking for $ac_word" >&5
9330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9331 if test "${ac_cv_path_PROG_TAIL+set}" = set; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9346 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
9347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9356 PROG_TAIL=$ac_cv_path_PROG_TAIL
9358 if test -n "$PROG_TAIL"; then
9359 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
9360 echo "${ECHO_T}$PROG_TAIL" >&6
9362 echo "$as_me:$LINENO: result: no" >&5
9363 echo "${ECHO_T}no" >&6
9366 if test -z "$PROG_TAIL" ; then
9374 # Where does ssh-rand-helper get its randomness from?
9375 INSTALL_SSH_PRNG_CMDS=""
9376 if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
9377 if test ! -z "$PRNGD_PORT" ; then
9378 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
9379 elif test ! -z "$PRNGD_SOCKET" ; then
9380 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
9382 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
9383 RAND_HELPER_CMDHASH=yes
9384 INSTALL_SSH_PRNG_CMDS="yes"
9390 # Cheap hack to ensure NEWS-OS libraries are arranged right.
9391 if test ! -z "$SONY" ; then
9392 LIBS="$LIBS -liberty";
9395 # Checks for data types
9396 echo "$as_me:$LINENO: checking for char" >&5
9397 echo $ECHO_N "checking for char... $ECHO_C" >&6
9398 if test "${ac_cv_type_char+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 #include "confdefs.h"
9404 $ac_includes_default
9405 #ifdef F77_DUMMY_MAIN
9409 int F77_DUMMY_MAIN() { return 1; }
9422 rm -f conftest.$ac_objext
9423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424 (eval $ac_compile) 2>&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -s conftest.$ac_objext'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
9436 echo "$as_me: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9440 rm -f conftest.$ac_objext conftest.$ac_ext
9442 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9443 echo "${ECHO_T}$ac_cv_type_char" >&6
9445 echo "$as_me:$LINENO: checking size of char" >&5
9446 echo $ECHO_N "checking size of char... $ECHO_C" >&6
9447 if test "${ac_cv_sizeof_char+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 if test "$ac_cv_type_char" = yes; then
9451 # The cast to unsigned long works around a bug in the HP C Compiler
9452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9454 # This bug is HP SR number 8606223364.
9455 if test "$cross_compiling" = yes; then
9456 # Depending upon the size, compute the lo and hi bounds.
9457 cat >conftest.$ac_ext <<_ACEOF
9458 #line $LINENO "configure"
9459 #include "confdefs.h"
9460 $ac_includes_default
9461 #ifdef F77_DUMMY_MAIN
9465 int F77_DUMMY_MAIN() { return 1; }
9470 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
9471 test_array @<:@0@:>@ = 0
9477 rm -f conftest.$ac_objext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9479 (eval $ac_compile) 2>&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -s conftest.$ac_objext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9491 cat >conftest.$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9493 #include "confdefs.h"
9494 $ac_includes_default
9495 #ifdef F77_DUMMY_MAIN
9499 int F77_DUMMY_MAIN() { return 1; }
9504 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9505 test_array @<:@0@:>@ = 0
9511 rm -f conftest.$ac_objext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9513 (eval $ac_compile) 2>&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -s conftest.$ac_objext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_hi=$ac_mid; break
9525 echo "$as_me: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 ac_lo=`expr $ac_mid + 1`
9528 if test $ac_lo -le $ac_mid; then
9532 ac_mid=`expr 2 '*' $ac_mid + 1`
9534 rm -f conftest.$ac_objext conftest.$ac_ext
9537 echo "$as_me: failed program was:" >&5
9538 cat conftest.$ac_ext >&5
9539 cat >conftest.$ac_ext <<_ACEOF
9540 #line $LINENO "configure"
9541 #include "confdefs.h"
9542 $ac_includes_default
9543 #ifdef F77_DUMMY_MAIN
9547 int F77_DUMMY_MAIN() { return 1; }
9552 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
9553 test_array @<:@0@:>@ = 0
9559 rm -f conftest.$ac_objext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9561 (eval $ac_compile) 2>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -s conftest.$ac_objext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9573 cat >conftest.$ac_ext <<_ACEOF
9574 #line $LINENO "configure"
9575 #include "confdefs.h"
9576 $ac_includes_default
9577 #ifdef F77_DUMMY_MAIN
9581 int F77_DUMMY_MAIN() { return 1; }
9586 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
9587 test_array @<:@0@:>@ = 0
9593 rm -f conftest.$ac_objext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try='test -s conftest.$ac_objext'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 ac_lo=$ac_mid; break
9607 echo "$as_me: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 ac_hi=`expr '(' $ac_mid ')' - 1`
9610 if test $ac_mid -le $ac_hi; then
9614 ac_mid=`expr 2 '*' $ac_mid`
9616 rm -f conftest.$ac_objext conftest.$ac_ext
9619 echo "$as_me: failed program was:" >&5
9620 cat conftest.$ac_ext >&5
9623 rm -f conftest.$ac_objext conftest.$ac_ext
9625 rm -f conftest.$ac_objext conftest.$ac_ext
9626 # Binary search between lo and hi bounds.
9627 while test "x$ac_lo" != "x$ac_hi"; do
9628 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9629 cat >conftest.$ac_ext <<_ACEOF
9630 #line $LINENO "configure"
9631 #include "confdefs.h"
9632 $ac_includes_default
9633 #ifdef F77_DUMMY_MAIN
9637 int F77_DUMMY_MAIN() { return 1; }
9642 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9643 test_array @<:@0@:>@ = 0
9649 rm -f conftest.$ac_objext
9650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9651 (eval $ac_compile) 2>&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -s conftest.$ac_objext'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; }; then
9663 echo "$as_me: failed program was:" >&5
9664 cat conftest.$ac_ext >&5
9665 ac_lo=`expr '(' $ac_mid ')' + 1`
9667 rm -f conftest.$ac_objext conftest.$ac_ext
9670 ?*) ac_cv_sizeof_char=$ac_lo;;
9671 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
9672 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
9673 { (exit 1); exit 1; }; } ;;
9676 if test "$cross_compiling" = yes; then
9677 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9678 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9679 { (exit 1); exit 1; }; }
9681 cat >conftest.$ac_ext <<_ACEOF
9682 #line $LINENO "configure"
9683 #include "confdefs.h"
9684 $ac_includes_default
9685 long longval () { return (long) (sizeof (char)); }
9686 unsigned long ulongval () { return (long) (sizeof (char)); }
9687 @%:@include <stdio.h>
9688 @%:@include <stdlib.h>
9689 #ifdef F77_DUMMY_MAIN
9693 int F77_DUMMY_MAIN() { return 1; }
9699 FILE *f = fopen ("conftest.val", "w");
9702 if (((long) (sizeof (char))) < 0)
9704 long i = longval ();
9705 if (i != ((long) (sizeof (char))))
9707 fprintf (f, "%ld\n", i);
9711 unsigned long i = ulongval ();
9712 if (i != ((long) (sizeof (char))))
9714 fprintf (f, "%lu\n", i);
9716 exit (ferror (f) || fclose (f) != 0);
9722 rm -f conftest$ac_exeext
9723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724 (eval $ac_link) 2>&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_sizeof_char=`cat conftest.val`
9735 echo "$as_me: program exited with status $ac_status" >&5
9736 echo "$as_me: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
9740 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
9741 { (exit 1); exit 1; }; }
9743 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9751 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
9752 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
9753 cat >>confdefs.h <<_ACEOF
9754 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
9758 echo "$as_me:$LINENO: checking for short int" >&5
9759 echo $ECHO_N "checking for short int... $ECHO_C" >&6
9760 if test "${ac_cv_type_short_int+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 cat >conftest.$ac_ext <<_ACEOF
9764 #line $LINENO "configure"
9765 #include "confdefs.h"
9766 $ac_includes_default
9767 #ifdef F77_DUMMY_MAIN
9771 int F77_DUMMY_MAIN() { return 1; }
9776 if ((short int *) 0)
9778 if (sizeof (short int))
9784 rm -f conftest.$ac_objext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9786 (eval $ac_compile) 2>&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -s conftest.$ac_objext'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9796 ac_cv_type_short_int=yes
9798 echo "$as_me: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 ac_cv_type_short_int=no
9802 rm -f conftest.$ac_objext conftest.$ac_ext
9804 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
9805 echo "${ECHO_T}$ac_cv_type_short_int" >&6
9807 echo "$as_me:$LINENO: checking size of short int" >&5
9808 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
9809 if test "${ac_cv_sizeof_short_int+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 if test "$ac_cv_type_short_int" = yes; then
9813 # The cast to unsigned long works around a bug in the HP C Compiler
9814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9816 # This bug is HP SR number 8606223364.
9817 if test "$cross_compiling" = yes; then
9818 # Depending upon the size, compute the lo and hi bounds.
9819 cat >conftest.$ac_ext <<_ACEOF
9820 #line $LINENO "configure"
9821 #include "confdefs.h"
9822 $ac_includes_default
9823 #ifdef F77_DUMMY_MAIN
9827 int F77_DUMMY_MAIN() { return 1; }
9832 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= 0)@:>@;
9833 test_array @<:@0@:>@ = 0
9839 rm -f conftest.$ac_objext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9841 (eval $ac_compile) 2>&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try='test -s conftest.$ac_objext'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9853 cat >conftest.$ac_ext <<_ACEOF
9854 #line $LINENO "configure"
9855 #include "confdefs.h"
9856 $ac_includes_default
9857 #ifdef F77_DUMMY_MAIN
9861 int F77_DUMMY_MAIN() { return 1; }
9866 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
9867 test_array @<:@0@:>@ = 0
9873 rm -f conftest.$ac_objext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9875 (eval $ac_compile) 2>&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -s conftest.$ac_objext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_hi=$ac_mid; break
9887 echo "$as_me: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9889 ac_lo=`expr $ac_mid + 1`
9890 if test $ac_lo -le $ac_mid; then
9894 ac_mid=`expr 2 '*' $ac_mid + 1`
9896 rm -f conftest.$ac_objext conftest.$ac_ext
9899 echo "$as_me: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 cat >conftest.$ac_ext <<_ACEOF
9902 #line $LINENO "configure"
9903 #include "confdefs.h"
9904 $ac_includes_default
9905 #ifdef F77_DUMMY_MAIN
9909 int F77_DUMMY_MAIN() { return 1; }
9914 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) < 0)@:>@;
9915 test_array @<:@0@:>@ = 0
9921 rm -f conftest.$ac_objext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9923 (eval $ac_compile) 2>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -s conftest.$ac_objext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9935 cat >conftest.$ac_ext <<_ACEOF
9936 #line $LINENO "configure"
9937 #include "confdefs.h"
9938 $ac_includes_default
9939 #ifdef F77_DUMMY_MAIN
9943 int F77_DUMMY_MAIN() { return 1; }
9948 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)@:>@;
9949 test_array @<:@0@:>@ = 0
9955 rm -f conftest.$ac_objext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9957 (eval $ac_compile) 2>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -s conftest.$ac_objext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_lo=$ac_mid; break
9969 echo "$as_me: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9971 ac_hi=`expr '(' $ac_mid ')' - 1`
9972 if test $ac_mid -le $ac_hi; then
9976 ac_mid=`expr 2 '*' $ac_mid`
9978 rm -f conftest.$ac_objext conftest.$ac_ext
9981 echo "$as_me: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9985 rm -f conftest.$ac_objext conftest.$ac_ext
9987 rm -f conftest.$ac_objext conftest.$ac_ext
9988 # Binary search between lo and hi bounds.
9989 while test "x$ac_lo" != "x$ac_hi"; do
9990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9991 cat >conftest.$ac_ext <<_ACEOF
9992 #line $LINENO "configure"
9993 #include "confdefs.h"
9994 $ac_includes_default
9995 #ifdef F77_DUMMY_MAIN
9999 int F77_DUMMY_MAIN() { return 1; }
10004 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
10005 test_array @<:@0@:>@ = 0
10011 rm -f conftest.$ac_objext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10013 (eval $ac_compile) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -s conftest.$ac_objext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10025 echo "$as_me: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10027 ac_lo=`expr '(' $ac_mid ')' + 1`
10029 rm -f conftest.$ac_objext conftest.$ac_ext
10032 ?*) ac_cv_sizeof_short_int=$ac_lo;;
10033 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10034 echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10035 { (exit 1); exit 1; }; } ;;
10038 if test "$cross_compiling" = yes; then
10039 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10040 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10041 { (exit 1); exit 1; }; }
10043 cat >conftest.$ac_ext <<_ACEOF
10044 #line $LINENO "configure"
10045 #include "confdefs.h"
10046 $ac_includes_default
10047 long longval () { return (long) (sizeof (short int)); }
10048 unsigned long ulongval () { return (long) (sizeof (short int)); }
10049 @%:@include <stdio.h>
10050 @%:@include <stdlib.h>
10051 #ifdef F77_DUMMY_MAIN
10052 # ifdef __cplusplus
10055 int F77_DUMMY_MAIN() { return 1; }
10061 FILE *f = fopen ("conftest.val", "w");
10064 if (((long) (sizeof (short int))) < 0)
10066 long i = longval ();
10067 if (i != ((long) (sizeof (short int))))
10069 fprintf (f, "%ld\n", i);
10073 unsigned long i = ulongval ();
10074 if (i != ((long) (sizeof (short int))))
10076 fprintf (f, "%lu\n", i);
10078 exit (ferror (f) || fclose (f) != 0);
10084 rm -f conftest$ac_exeext
10085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10086 (eval $ac_link) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_sizeof_short_int=`cat conftest.val`
10097 echo "$as_me: program exited with status $ac_status" >&5
10098 echo "$as_me: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 ( exit $ac_status )
10101 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10102 echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10103 { (exit 1); exit 1; }; }
10105 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10110 ac_cv_sizeof_short_int=0
10113 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
10114 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
10115 cat >>confdefs.h <<_ACEOF
10116 @%:@define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
10120 echo "$as_me:$LINENO: checking for int" >&5
10121 echo $ECHO_N "checking for int... $ECHO_C" >&6
10122 if test "${ac_cv_type_int+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 cat >conftest.$ac_ext <<_ACEOF
10126 #line $LINENO "configure"
10127 #include "confdefs.h"
10128 $ac_includes_default
10129 #ifdef F77_DUMMY_MAIN
10130 # ifdef __cplusplus
10133 int F77_DUMMY_MAIN() { return 1; }
10146 rm -f conftest.$ac_objext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10148 (eval $ac_compile) 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
10152 { ac_try='test -s conftest.$ac_objext'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10160 echo "$as_me: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10164 rm -f conftest.$ac_objext conftest.$ac_ext
10166 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10167 echo "${ECHO_T}$ac_cv_type_int" >&6
10169 echo "$as_me:$LINENO: checking size of int" >&5
10170 echo $ECHO_N "checking size of int... $ECHO_C" >&6
10171 if test "${ac_cv_sizeof_int+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 if test "$ac_cv_type_int" = yes; then
10175 # The cast to unsigned long works around a bug in the HP C Compiler
10176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10178 # This bug is HP SR number 8606223364.
10179 if test "$cross_compiling" = yes; then
10180 # Depending upon the size, compute the lo and hi bounds.
10181 cat >conftest.$ac_ext <<_ACEOF
10182 #line $LINENO "configure"
10183 #include "confdefs.h"
10184 $ac_includes_default
10185 #ifdef F77_DUMMY_MAIN
10186 # ifdef __cplusplus
10189 int F77_DUMMY_MAIN() { return 1; }
10194 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
10195 test_array @<:@0@:>@ = 0
10201 rm -f conftest.$ac_objext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203 (eval $ac_compile) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -s conftest.$ac_objext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10215 cat >conftest.$ac_ext <<_ACEOF
10216 #line $LINENO "configure"
10217 #include "confdefs.h"
10218 $ac_includes_default
10219 #ifdef F77_DUMMY_MAIN
10220 # ifdef __cplusplus
10223 int F77_DUMMY_MAIN() { return 1; }
10228 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10229 test_array @<:@0@:>@ = 0
10235 rm -f conftest.$ac_objext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10237 (eval $ac_compile) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -s conftest.$ac_objext'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 ac_hi=$ac_mid; break
10249 echo "$as_me: failed program was:" >&5
10250 cat conftest.$ac_ext >&5
10251 ac_lo=`expr $ac_mid + 1`
10252 if test $ac_lo -le $ac_mid; then
10256 ac_mid=`expr 2 '*' $ac_mid + 1`
10258 rm -f conftest.$ac_objext conftest.$ac_ext
10261 echo "$as_me: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10263 cat >conftest.$ac_ext <<_ACEOF
10264 #line $LINENO "configure"
10265 #include "confdefs.h"
10266 $ac_includes_default
10267 #ifdef F77_DUMMY_MAIN
10268 # ifdef __cplusplus
10271 int F77_DUMMY_MAIN() { return 1; }
10276 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
10277 test_array @<:@0@:>@ = 0
10283 rm -f conftest.$ac_objext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } &&
10289 { ac_try='test -s conftest.$ac_objext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10297 cat >conftest.$ac_ext <<_ACEOF
10298 #line $LINENO "configure"
10299 #include "confdefs.h"
10300 $ac_includes_default
10301 #ifdef F77_DUMMY_MAIN
10302 # ifdef __cplusplus
10305 int F77_DUMMY_MAIN() { return 1; }
10310 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
10311 test_array @<:@0@:>@ = 0
10317 rm -f conftest.$ac_objext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10319 (eval $ac_compile) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_lo=$ac_mid; break
10331 echo "$as_me: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10333 ac_hi=`expr '(' $ac_mid ')' - 1`
10334 if test $ac_mid -le $ac_hi; then
10338 ac_mid=`expr 2 '*' $ac_mid`
10340 rm -f conftest.$ac_objext conftest.$ac_ext
10343 echo "$as_me: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10347 rm -f conftest.$ac_objext conftest.$ac_ext
10349 rm -f conftest.$ac_objext conftest.$ac_ext
10350 # Binary search between lo and hi bounds.
10351 while test "x$ac_lo" != "x$ac_hi"; do
10352 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
10361 int F77_DUMMY_MAIN() { return 1; }
10366 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10367 test_array @<:@0@:>@ = 0
10373 rm -f conftest.$ac_objext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10375 (eval $ac_compile) 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } &&
10379 { ac_try='test -s conftest.$ac_objext'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
10387 echo "$as_me: failed program was:" >&5
10388 cat conftest.$ac_ext >&5
10389 ac_lo=`expr '(' $ac_mid ')' + 1`
10391 rm -f conftest.$ac_objext conftest.$ac_ext
10394 ?*) ac_cv_sizeof_int=$ac_lo;;
10395 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10396 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10397 { (exit 1); exit 1; }; } ;;
10400 if test "$cross_compiling" = yes; then
10401 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10402 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10403 { (exit 1); exit 1; }; }
10405 cat >conftest.$ac_ext <<_ACEOF
10406 #line $LINENO "configure"
10407 #include "confdefs.h"
10408 $ac_includes_default
10409 long longval () { return (long) (sizeof (int)); }
10410 unsigned long ulongval () { return (long) (sizeof (int)); }
10411 @%:@include <stdio.h>
10412 @%:@include <stdlib.h>
10413 #ifdef F77_DUMMY_MAIN
10414 # ifdef __cplusplus
10417 int F77_DUMMY_MAIN() { return 1; }
10423 FILE *f = fopen ("conftest.val", "w");
10426 if (((long) (sizeof (int))) < 0)
10428 long i = longval ();
10429 if (i != ((long) (sizeof (int))))
10431 fprintf (f, "%ld\n", i);
10435 unsigned long i = ulongval ();
10436 if (i != ((long) (sizeof (int))))
10438 fprintf (f, "%lu\n", i);
10440 exit (ferror (f) || fclose (f) != 0);
10446 rm -f conftest$ac_exeext
10447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10448 (eval $ac_link) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 ac_cv_sizeof_int=`cat conftest.val`
10459 echo "$as_me: program exited with status $ac_status" >&5
10460 echo "$as_me: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 ( exit $ac_status )
10463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10464 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10465 { (exit 1); exit 1; }; }
10467 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10475 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10476 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10477 cat >>confdefs.h <<_ACEOF
10478 @%:@define SIZEOF_INT $ac_cv_sizeof_int
10482 echo "$as_me:$LINENO: checking for long int" >&5
10483 echo $ECHO_N "checking for long int... $ECHO_C" >&6
10484 if test "${ac_cv_type_long_int+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 cat >conftest.$ac_ext <<_ACEOF
10488 #line $LINENO "configure"
10489 #include "confdefs.h"
10490 $ac_includes_default
10491 #ifdef F77_DUMMY_MAIN
10492 # ifdef __cplusplus
10495 int F77_DUMMY_MAIN() { return 1; }
10500 if ((long int *) 0)
10502 if (sizeof (long int))
10508 rm -f conftest.$ac_objext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510 (eval $ac_compile) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
10514 { ac_try='test -s conftest.$ac_objext'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }; then
10520 ac_cv_type_long_int=yes
10522 echo "$as_me: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10524 ac_cv_type_long_int=no
10526 rm -f conftest.$ac_objext conftest.$ac_ext
10528 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
10529 echo "${ECHO_T}$ac_cv_type_long_int" >&6
10531 echo "$as_me:$LINENO: checking size of long int" >&5
10532 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
10533 if test "${ac_cv_sizeof_long_int+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 if test "$ac_cv_type_long_int" = yes; then
10537 # The cast to unsigned long works around a bug in the HP C Compiler
10538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10540 # This bug is HP SR number 8606223364.
10541 if test "$cross_compiling" = yes; then
10542 # Depending upon the size, compute the lo and hi bounds.
10543 cat >conftest.$ac_ext <<_ACEOF
10544 #line $LINENO "configure"
10545 #include "confdefs.h"
10546 $ac_includes_default
10547 #ifdef F77_DUMMY_MAIN
10548 # ifdef __cplusplus
10551 int F77_DUMMY_MAIN() { return 1; }
10556 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= 0)@:>@;
10557 test_array @<:@0@:>@ = 0
10563 rm -f conftest.$ac_objext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10565 (eval $ac_compile) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10577 cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10579 #include "confdefs.h"
10580 $ac_includes_default
10581 #ifdef F77_DUMMY_MAIN
10582 # ifdef __cplusplus
10585 int F77_DUMMY_MAIN() { return 1; }
10590 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10591 test_array @<:@0@:>@ = 0
10597 rm -f conftest.$ac_objext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10599 (eval $ac_compile) 2>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -s conftest.$ac_objext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 ac_hi=$ac_mid; break
10611 echo "$as_me: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 ac_lo=`expr $ac_mid + 1`
10614 if test $ac_lo -le $ac_mid; then
10618 ac_mid=`expr 2 '*' $ac_mid + 1`
10620 rm -f conftest.$ac_objext conftest.$ac_ext
10623 echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10627 #include "confdefs.h"
10628 $ac_includes_default
10629 #ifdef F77_DUMMY_MAIN
10630 # ifdef __cplusplus
10633 int F77_DUMMY_MAIN() { return 1; }
10638 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) < 0)@:>@;
10639 test_array @<:@0@:>@ = 0
10645 rm -f conftest.$ac_objext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10647 (eval $ac_compile) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } &&
10651 { ac_try='test -s conftest.$ac_objext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
10659 cat >conftest.$ac_ext <<_ACEOF
10660 #line $LINENO "configure"
10661 #include "confdefs.h"
10662 $ac_includes_default
10663 #ifdef F77_DUMMY_MAIN
10664 # ifdef __cplusplus
10667 int F77_DUMMY_MAIN() { return 1; }
10672 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)@:>@;
10673 test_array @<:@0@:>@ = 0
10679 rm -f conftest.$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681 (eval $ac_compile) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try='test -s conftest.$ac_objext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 ac_lo=$ac_mid; break
10693 echo "$as_me: failed program was:" >&5
10694 cat conftest.$ac_ext >&5
10695 ac_hi=`expr '(' $ac_mid ')' - 1`
10696 if test $ac_mid -le $ac_hi; then
10700 ac_mid=`expr 2 '*' $ac_mid`
10702 rm -f conftest.$ac_objext conftest.$ac_ext
10705 echo "$as_me: failed program was:" >&5
10706 cat conftest.$ac_ext >&5
10709 rm -f conftest.$ac_objext conftest.$ac_ext
10711 rm -f conftest.$ac_objext conftest.$ac_ext
10712 # Binary search between lo and hi bounds.
10713 while test "x$ac_lo" != "x$ac_hi"; do
10714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
10723 int F77_DUMMY_MAIN() { return 1; }
10728 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10729 test_array @<:@0@:>@ = 0
10735 rm -f conftest.$ac_objext
10736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10737 (eval $ac_compile) 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } &&
10741 { ac_try='test -s conftest.$ac_objext'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10749 echo "$as_me: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10751 ac_lo=`expr '(' $ac_mid ')' + 1`
10753 rm -f conftest.$ac_objext conftest.$ac_ext
10756 ?*) ac_cv_sizeof_long_int=$ac_lo;;
10757 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
10758 echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
10759 { (exit 1); exit 1; }; } ;;
10762 if test "$cross_compiling" = yes; then
10763 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10764 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10765 { (exit 1); exit 1; }; }
10767 cat >conftest.$ac_ext <<_ACEOF
10768 #line $LINENO "configure"
10769 #include "confdefs.h"
10770 $ac_includes_default
10771 long longval () { return (long) (sizeof (long int)); }
10772 unsigned long ulongval () { return (long) (sizeof (long int)); }
10773 @%:@include <stdio.h>
10774 @%:@include <stdlib.h>
10775 #ifdef F77_DUMMY_MAIN
10776 # ifdef __cplusplus
10779 int F77_DUMMY_MAIN() { return 1; }
10785 FILE *f = fopen ("conftest.val", "w");
10788 if (((long) (sizeof (long int))) < 0)
10790 long i = longval ();
10791 if (i != ((long) (sizeof (long int))))
10793 fprintf (f, "%ld\n", i);
10797 unsigned long i = ulongval ();
10798 if (i != ((long) (sizeof (long int))))
10800 fprintf (f, "%lu\n", i);
10802 exit (ferror (f) || fclose (f) != 0);
10808 rm -f conftest$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810 (eval $ac_link) 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_sizeof_long_int=`cat conftest.val`
10821 echo "$as_me: program exited with status $ac_status" >&5
10822 echo "$as_me: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10824 ( exit $ac_status )
10825 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
10826 echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
10827 { (exit 1); exit 1; }; }
10829 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10834 ac_cv_sizeof_long_int=0
10837 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
10838 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
10839 cat >>confdefs.h <<_ACEOF
10840 @%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
10844 echo "$as_me:$LINENO: checking for long long int" >&5
10845 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
10846 if test "${ac_cv_type_long_long_int+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 cat >conftest.$ac_ext <<_ACEOF
10850 #line $LINENO "configure"
10851 #include "confdefs.h"
10852 $ac_includes_default
10853 #ifdef F77_DUMMY_MAIN
10854 # ifdef __cplusplus
10857 int F77_DUMMY_MAIN() { return 1; }
10862 if ((long long int *) 0)
10864 if (sizeof (long long int))
10870 rm -f conftest.$ac_objext
10871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10872 (eval $ac_compile) 2>&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } &&
10876 { ac_try='test -s conftest.$ac_objext'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 ac_cv_type_long_long_int=yes
10884 echo "$as_me: failed program was:" >&5
10885 cat conftest.$ac_ext >&5
10886 ac_cv_type_long_long_int=no
10888 rm -f conftest.$ac_objext conftest.$ac_ext
10890 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
10891 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
10893 echo "$as_me:$LINENO: checking size of long long int" >&5
10894 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
10895 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 if test "$ac_cv_type_long_long_int" = yes; then
10899 # The cast to unsigned long works around a bug in the HP C Compiler
10900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10902 # This bug is HP SR number 8606223364.
10903 if test "$cross_compiling" = yes; then
10904 # Depending upon the size, compute the lo and hi bounds.
10905 cat >conftest.$ac_ext <<_ACEOF
10906 #line $LINENO "configure"
10907 #include "confdefs.h"
10908 $ac_includes_default
10909 #ifdef F77_DUMMY_MAIN
10910 # ifdef __cplusplus
10913 int F77_DUMMY_MAIN() { return 1; }
10918 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= 0)@:>@;
10919 test_array @<:@0@:>@ = 0
10925 rm -f conftest.$ac_objext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927 (eval $ac_compile) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -s conftest.$ac_objext'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10939 cat >conftest.$ac_ext <<_ACEOF
10940 #line $LINENO "configure"
10941 #include "confdefs.h"
10942 $ac_includes_default
10943 #ifdef F77_DUMMY_MAIN
10944 # ifdef __cplusplus
10947 int F77_DUMMY_MAIN() { return 1; }
10952 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
10953 test_array @<:@0@:>@ = 0
10959 rm -f conftest.$ac_objext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try='test -s conftest.$ac_objext'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; }; then
10971 ac_hi=$ac_mid; break
10973 echo "$as_me: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10975 ac_lo=`expr $ac_mid + 1`
10976 if test $ac_lo -le $ac_mid; then
10980 ac_mid=`expr 2 '*' $ac_mid + 1`
10982 rm -f conftest.$ac_objext conftest.$ac_ext
10985 echo "$as_me: failed program was:" >&5
10986 cat conftest.$ac_ext >&5
10987 cat >conftest.$ac_ext <<_ACEOF
10988 #line $LINENO "configure"
10989 #include "confdefs.h"
10990 $ac_includes_default
10991 #ifdef F77_DUMMY_MAIN
10992 # ifdef __cplusplus
10995 int F77_DUMMY_MAIN() { return 1; }
11000 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) < 0)@:>@;
11001 test_array @<:@0@:>@ = 0
11007 rm -f conftest.$ac_objext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11009 (eval $ac_compile) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -s conftest.$ac_objext'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11021 cat >conftest.$ac_ext <<_ACEOF
11022 #line $LINENO "configure"
11023 #include "confdefs.h"
11024 $ac_includes_default
11025 #ifdef F77_DUMMY_MAIN
11026 # ifdef __cplusplus
11029 int F77_DUMMY_MAIN() { return 1; }
11034 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)@:>@;
11035 test_array @<:@0@:>@ = 0
11041 rm -f conftest.$ac_objext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -s conftest.$ac_objext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 ac_lo=$ac_mid; break
11055 echo "$as_me: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11057 ac_hi=`expr '(' $ac_mid ')' - 1`
11058 if test $ac_mid -le $ac_hi; then
11062 ac_mid=`expr 2 '*' $ac_mid`
11064 rm -f conftest.$ac_objext conftest.$ac_ext
11067 echo "$as_me: failed program was:" >&5
11068 cat conftest.$ac_ext >&5
11071 rm -f conftest.$ac_objext conftest.$ac_ext
11073 rm -f conftest.$ac_objext conftest.$ac_ext
11074 # Binary search between lo and hi bounds.
11075 while test "x$ac_lo" != "x$ac_hi"; do
11076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11077 cat >conftest.$ac_ext <<_ACEOF
11078 #line $LINENO "configure"
11079 #include "confdefs.h"
11080 $ac_includes_default
11081 #ifdef F77_DUMMY_MAIN
11082 # ifdef __cplusplus
11085 int F77_DUMMY_MAIN() { return 1; }
11090 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
11091 test_array @<:@0@:>@ = 0
11097 rm -f conftest.$ac_objext
11098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099 (eval $ac_compile) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -s conftest.$ac_objext'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11111 echo "$as_me: failed program was:" >&5
11112 cat conftest.$ac_ext >&5
11113 ac_lo=`expr '(' $ac_mid ')' + 1`
11115 rm -f conftest.$ac_objext conftest.$ac_ext
11118 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
11119 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11120 echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11121 { (exit 1); exit 1; }; } ;;
11124 if test "$cross_compiling" = yes; then
11125 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11126 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11127 { (exit 1); exit 1; }; }
11129 cat >conftest.$ac_ext <<_ACEOF
11130 #line $LINENO "configure"
11131 #include "confdefs.h"
11132 $ac_includes_default
11133 long longval () { return (long) (sizeof (long long int)); }
11134 unsigned long ulongval () { return (long) (sizeof (long long int)); }
11135 @%:@include <stdio.h>
11136 @%:@include <stdlib.h>
11137 #ifdef F77_DUMMY_MAIN
11138 # ifdef __cplusplus
11141 int F77_DUMMY_MAIN() { return 1; }
11147 FILE *f = fopen ("conftest.val", "w");
11150 if (((long) (sizeof (long long int))) < 0)
11152 long i = longval ();
11153 if (i != ((long) (sizeof (long long int))))
11155 fprintf (f, "%ld\n", i);
11159 unsigned long i = ulongval ();
11160 if (i != ((long) (sizeof (long long int))))
11162 fprintf (f, "%lu\n", i);
11164 exit (ferror (f) || fclose (f) != 0);
11170 rm -f conftest$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; }; then
11181 ac_cv_sizeof_long_long_int=`cat conftest.val`
11183 echo "$as_me: program exited with status $ac_status" >&5
11184 echo "$as_me: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11186 ( exit $ac_status )
11187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11188 echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11189 { (exit 1); exit 1; }; }
11191 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11196 ac_cv_sizeof_long_long_int=0
11199 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
11200 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11201 cat >>confdefs.h <<_ACEOF
11202 @%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11207 # Sanity check long long for some platforms (AIX)
11208 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11209 ac_cv_sizeof_long_long_int=0
11212 # More checks for data types
11213 echo "$as_me:$LINENO: checking for u_int type" >&5
11214 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11215 if test "${ac_cv_have_u_int+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11219 cat >conftest.$ac_ext <<_ACEOF
11220 #line $LINENO "configure"
11221 #include "confdefs.h"
11222 #include <sys/types.h>
11223 #ifdef F77_DUMMY_MAIN
11224 # ifdef __cplusplus
11227 int F77_DUMMY_MAIN() { return 1; }
11237 rm -f conftest.$ac_objext
11238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11239 (eval $ac_compile) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 ac_cv_have_u_int="yes"
11251 echo "$as_me: failed program was:" >&5
11252 cat conftest.$ac_ext >&5
11253 ac_cv_have_u_int="no"
11256 rm -f conftest.$ac_objext conftest.$ac_ext
11259 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
11260 echo "${ECHO_T}$ac_cv_have_u_int" >&6
11261 if test "x$ac_cv_have_u_int" = "xyes" ; then
11262 cat >>confdefs.h <<\_ACEOF
11263 @%:@define HAVE_U_INT 1
11269 echo "$as_me:$LINENO: checking for intXX_t types" >&5
11270 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11271 if test "${ac_cv_have_intxx_t+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 cat >conftest.$ac_ext <<_ACEOF
11276 #line $LINENO "configure"
11277 #include "confdefs.h"
11278 #include <sys/types.h>
11279 #ifdef F77_DUMMY_MAIN
11280 # ifdef __cplusplus
11283 int F77_DUMMY_MAIN() { return 1; }
11288 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11293 rm -f conftest.$ac_objext
11294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11295 (eval $ac_compile) 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -s conftest.$ac_objext'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }; then
11305 ac_cv_have_intxx_t="yes"
11307 echo "$as_me: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 ac_cv_have_intxx_t="no"
11312 rm -f conftest.$ac_objext conftest.$ac_ext
11315 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
11316 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11317 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11318 cat >>confdefs.h <<\_ACEOF
11319 @%:@define HAVE_INTXX_T 1
11325 if (test -z "$have_intxx_t" && \
11326 test "x$ac_cv_header_stdint_h" = "xyes")
11328 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
11329 echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
11330 cat >conftest.$ac_ext <<_ACEOF
11331 #line $LINENO "configure"
11332 #include "confdefs.h"
11333 #include <stdint.h>
11334 #ifdef F77_DUMMY_MAIN
11335 # ifdef __cplusplus
11338 int F77_DUMMY_MAIN() { return 1; }
11343 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11348 rm -f conftest.$ac_objext
11349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11350 (eval $ac_compile) 2>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -s conftest.$ac_objext'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }; then
11361 cat >>confdefs.h <<\_ACEOF
11362 @%:@define HAVE_INTXX_T 1
11365 echo "$as_me:$LINENO: result: yes" >&5
11366 echo "${ECHO_T}yes" >&6
11369 echo "$as_me: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11371 echo "$as_me:$LINENO: result: no" >&5
11372 echo "${ECHO_T}no" >&6
11375 rm -f conftest.$ac_objext conftest.$ac_ext
11378 echo "$as_me:$LINENO: checking for int64_t type" >&5
11379 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
11380 if test "${ac_cv_have_int64_t+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 cat >conftest.$ac_ext <<_ACEOF
11385 #line $LINENO "configure"
11386 #include "confdefs.h"
11387 #include <sys/types.h>
11388 #ifdef F77_DUMMY_MAIN
11389 # ifdef __cplusplus
11392 int F77_DUMMY_MAIN() { return 1; }
11402 rm -f conftest.$ac_objext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11404 (eval $ac_compile) 2>&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
11414 ac_cv_have_int64_t="yes"
11416 echo "$as_me: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 ac_cv_have_int64_t="no"
11421 rm -f conftest.$ac_objext conftest.$ac_ext
11424 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
11425 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
11426 if test "x$ac_cv_have_int64_t" = "xyes" ; then
11427 cat >>confdefs.h <<\_ACEOF
11428 @%:@define HAVE_INT64_T 1
11434 if test -z "$have_int64_t" ; then
11435 echo "$as_me:$LINENO: checking for int64_t type in sys/socket.h" >&5
11436 echo $ECHO_N "checking for int64_t type in sys/socket.h... $ECHO_C" >&6
11437 cat >conftest.$ac_ext <<_ACEOF
11438 #line $LINENO "configure"
11439 #include "confdefs.h"
11440 #include <sys/socket.h>
11441 #ifdef F77_DUMMY_MAIN
11442 # ifdef __cplusplus
11445 int F77_DUMMY_MAIN() { return 1; }
11455 rm -f conftest.$ac_objext
11456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11457 (eval $ac_compile) 2>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } &&
11461 { ac_try='test -s conftest.$ac_objext'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11468 cat >>confdefs.h <<\_ACEOF
11469 @%:@define HAVE_INT64_T 1
11472 echo "$as_me:$LINENO: result: yes" >&5
11473 echo "${ECHO_T}yes" >&6
11476 echo "$as_me: failed program was:" >&5
11477 cat conftest.$ac_ext >&5
11478 echo "$as_me:$LINENO: result: no" >&5
11479 echo "${ECHO_T}no" >&6
11482 rm -f conftest.$ac_objext conftest.$ac_ext
11485 if test -z "$have_int64_t" ; then
11486 echo "$as_me:$LINENO: checking for int64_t type in sys/bitypes.h" >&5
11487 echo $ECHO_N "checking for int64_t type in sys/bitypes.h... $ECHO_C" >&6
11488 cat >conftest.$ac_ext <<_ACEOF
11489 #line $LINENO "configure"
11490 #include "confdefs.h"
11491 #include <sys/bitypes.h>
11492 #ifdef F77_DUMMY_MAIN
11493 # ifdef __cplusplus
11496 int F77_DUMMY_MAIN() { return 1; }
11506 rm -f conftest.$ac_objext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11508 (eval $ac_compile) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -s conftest.$ac_objext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11519 cat >>confdefs.h <<\_ACEOF
11520 @%:@define HAVE_INT64_T 1
11523 echo "$as_me:$LINENO: result: yes" >&5
11524 echo "${ECHO_T}yes" >&6
11527 echo "$as_me: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11529 echo "$as_me:$LINENO: result: no" >&5
11530 echo "${ECHO_T}no" >&6
11533 rm -f conftest.$ac_objext conftest.$ac_ext
11536 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
11537 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
11538 if test "${ac_cv_have_u_intxx_t+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 cat >conftest.$ac_ext <<_ACEOF
11543 #line $LINENO "configure"
11544 #include "confdefs.h"
11545 #include <sys/types.h>
11546 #ifdef F77_DUMMY_MAIN
11547 # ifdef __cplusplus
11550 int F77_DUMMY_MAIN() { return 1; }
11555 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11560 rm -f conftest.$ac_objext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11562 (eval $ac_compile) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -s conftest.$ac_objext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_cv_have_u_intxx_t="yes"
11574 echo "$as_me: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11576 ac_cv_have_u_intxx_t="no"
11579 rm -f conftest.$ac_objext conftest.$ac_ext
11582 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
11583 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
11584 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11585 cat >>confdefs.h <<\_ACEOF
11586 @%:@define HAVE_U_INTXX_T 1
11592 if test -z "$have_u_intxx_t" ; then
11593 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
11594 echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
11595 cat >conftest.$ac_ext <<_ACEOF
11596 #line $LINENO "configure"
11597 #include "confdefs.h"
11598 #include <sys/socket.h>
11599 #ifdef F77_DUMMY_MAIN
11600 # ifdef __cplusplus
11603 int F77_DUMMY_MAIN() { return 1; }
11608 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11613 rm -f conftest.$ac_objext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615 (eval $ac_compile) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11626 cat >>confdefs.h <<\_ACEOF
11627 @%:@define HAVE_U_INTXX_T 1
11630 echo "$as_me:$LINENO: result: yes" >&5
11631 echo "${ECHO_T}yes" >&6
11634 echo "$as_me: failed program was:" >&5
11635 cat conftest.$ac_ext >&5
11636 echo "$as_me:$LINENO: result: no" >&5
11637 echo "${ECHO_T}no" >&6
11640 rm -f conftest.$ac_objext conftest.$ac_ext
11643 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
11644 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
11645 if test "${ac_cv_have_u_int64_t+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 cat >conftest.$ac_ext <<_ACEOF
11650 #line $LINENO "configure"
11651 #include "confdefs.h"
11652 #include <sys/types.h>
11653 #ifdef F77_DUMMY_MAIN
11654 # ifdef __cplusplus
11657 int F77_DUMMY_MAIN() { return 1; }
11662 u_int64_t a; a = 1;
11667 rm -f conftest.$ac_objext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669 (eval $ac_compile) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -s conftest.$ac_objext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 ac_cv_have_u_int64_t="yes"
11681 echo "$as_me: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11683 ac_cv_have_u_int64_t="no"
11686 rm -f conftest.$ac_objext conftest.$ac_ext
11689 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
11690 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
11691 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11692 cat >>confdefs.h <<\_ACEOF
11693 @%:@define HAVE_U_INT64_T 1
11699 if test -z "$have_u_int64_t" ; then
11700 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
11701 echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
11702 cat >conftest.$ac_ext <<_ACEOF
11703 #line $LINENO "configure"
11704 #include "confdefs.h"
11705 #include <sys/bitypes.h>
11706 #ifdef F77_DUMMY_MAIN
11707 # ifdef __cplusplus
11710 int F77_DUMMY_MAIN() { return 1; }
11720 rm -f conftest.$ac_objext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11722 (eval $ac_compile) 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try='test -s conftest.$ac_objext'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11733 cat >>confdefs.h <<\_ACEOF
11734 @%:@define HAVE_U_INT64_T 1
11737 echo "$as_me:$LINENO: result: yes" >&5
11738 echo "${ECHO_T}yes" >&6
11741 echo "$as_me: failed program was:" >&5
11742 cat conftest.$ac_ext >&5
11743 echo "$as_me:$LINENO: result: no" >&5
11744 echo "${ECHO_T}no" >&6
11747 rm -f conftest.$ac_objext conftest.$ac_ext
11750 if test -z "$have_u_intxx_t" ; then
11751 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
11752 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
11753 if test "${ac_cv_have_uintxx_t+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 cat >conftest.$ac_ext <<_ACEOF
11758 #line $LINENO "configure"
11759 #include "confdefs.h"
11761 #include <sys/types.h>
11763 #ifdef F77_DUMMY_MAIN
11764 # ifdef __cplusplus
11767 int F77_DUMMY_MAIN() { return 1; }
11772 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11777 rm -f conftest.$ac_objext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11779 (eval $ac_compile) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -s conftest.$ac_objext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 ac_cv_have_uintxx_t="yes"
11791 echo "$as_me: failed program was:" >&5
11792 cat conftest.$ac_ext >&5
11793 ac_cv_have_uintxx_t="no"
11796 rm -f conftest.$ac_objext conftest.$ac_ext
11799 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
11800 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
11801 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
11802 cat >>confdefs.h <<\_ACEOF
11803 @%:@define HAVE_UINTXX_T 1
11809 if test -z "$have_uintxx_t" ; then
11810 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
11811 echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
11812 cat >conftest.$ac_ext <<_ACEOF
11813 #line $LINENO "configure"
11814 #include "confdefs.h"
11815 #include <stdint.h>
11816 #ifdef F77_DUMMY_MAIN
11817 # ifdef __cplusplus
11820 int F77_DUMMY_MAIN() { return 1; }
11825 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11830 rm -f conftest.$ac_objext
11831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11832 (eval $ac_compile) 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -s conftest.$ac_objext'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11843 cat >>confdefs.h <<\_ACEOF
11844 @%:@define HAVE_UINTXX_T 1
11847 echo "$as_me:$LINENO: result: yes" >&5
11848 echo "${ECHO_T}yes" >&6
11851 echo "$as_me: failed program was:" >&5
11852 cat conftest.$ac_ext >&5
11853 echo "$as_me:$LINENO: result: no" >&5
11854 echo "${ECHO_T}no" >&6
11857 rm -f conftest.$ac_objext conftest.$ac_ext
11860 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
11861 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
11863 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
11864 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
11865 cat >conftest.$ac_ext <<_ACEOF
11866 #line $LINENO "configure"
11867 #include "confdefs.h"
11869 #include <sys/bitypes.h>
11871 #ifdef F77_DUMMY_MAIN
11872 # ifdef __cplusplus
11875 int F77_DUMMY_MAIN() { return 1; }
11881 int8_t a; int16_t b; int32_t c;
11882 u_int8_t e; u_int16_t f; u_int32_t g;
11883 a = b = c = e = f = g = 1;
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } &&
11895 { ac_try='test -s conftest.$ac_objext'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11902 cat >>confdefs.h <<\_ACEOF
11903 @%:@define HAVE_U_INTXX_T 1
11906 cat >>confdefs.h <<\_ACEOF
11907 @%:@define HAVE_INTXX_T 1
11910 echo "$as_me:$LINENO: result: yes" >&5
11911 echo "${ECHO_T}yes" >&6
11914 echo "$as_me: failed program was:" >&5
11915 cat conftest.$ac_ext >&5
11916 echo "$as_me:$LINENO: result: no" >&5
11917 echo "${ECHO_T}no" >&6
11920 rm -f conftest.$ac_objext conftest.$ac_ext
11924 echo "$as_me:$LINENO: checking for u_char" >&5
11925 echo $ECHO_N "checking for u_char... $ECHO_C" >&6
11926 if test "${ac_cv_have_u_char+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 cat >conftest.$ac_ext <<_ACEOF
11931 #line $LINENO "configure"
11932 #include "confdefs.h"
11934 #include <sys/types.h>
11936 #ifdef F77_DUMMY_MAIN
11937 # ifdef __cplusplus
11940 int F77_DUMMY_MAIN() { return 1; }
11945 u_char foo; foo = 125;
11950 rm -f conftest.$ac_objext
11951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11952 (eval $ac_compile) 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -s conftest.$ac_objext'
11957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; }; then
11962 ac_cv_have_u_char="yes"
11964 echo "$as_me: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 ac_cv_have_u_char="no"
11969 rm -f conftest.$ac_objext conftest.$ac_ext
11972 echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
11973 echo "${ECHO_T}$ac_cv_have_u_char" >&6
11974 if test "x$ac_cv_have_u_char" = "xyes" ; then
11975 cat >>confdefs.h <<\_ACEOF
11976 @%:@define HAVE_U_CHAR 1
11982 echo "$as_me:$LINENO: checking for socklen_t" >&5
11983 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11984 if test "${ac_cv_type_socklen_t+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 #include "confdefs.h"
11990 #include <sys/types.h>
11991 #include <sys/socket.h>
11993 #ifdef F77_DUMMY_MAIN
11994 # ifdef __cplusplus
11997 int F77_DUMMY_MAIN() { return 1; }
12002 if ((socklen_t *) 0)
12004 if (sizeof (socklen_t))
12010 rm -f conftest.$ac_objext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -s conftest.$ac_objext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_cv_type_socklen_t=yes
12024 echo "$as_me: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12026 ac_cv_type_socklen_t=no
12028 rm -f conftest.$ac_objext conftest.$ac_ext
12030 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12031 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
12032 if test $ac_cv_type_socklen_t = yes; then
12036 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
12037 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
12038 if test "${curl_cv_socklen_t_equiv+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 # Systems have either "struct sockaddr *" or
12043 # "void *" as the second argument to getpeername
12044 curl_cv_socklen_t_equiv=
12045 for arg2 in "struct sockaddr" void; do
12046 for t in int size_t unsigned long "unsigned long"; do
12047 cat >conftest.$ac_ext <<_ACEOF
12048 #line $LINENO "configure"
12049 #include "confdefs.h"
12051 #include <sys/types.h>
12052 #include <sys/socket.h>
12054 int getpeername (int, $arg2 *, $t *);
12056 #ifdef F77_DUMMY_MAIN
12057 # ifdef __cplusplus
12060 int F77_DUMMY_MAIN() { return 1; }
12067 getpeername(0,0,&len);
12073 rm -f conftest.$ac_objext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12075 (eval $ac_compile) 2>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -s conftest.$ac_objext'
12080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081 (eval $ac_try) 2>&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); }; }; then
12086 curl_cv_socklen_t_equiv="$t"
12090 echo "$as_me: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12093 rm -f conftest.$ac_objext conftest.$ac_ext
12097 if test "x$curl_cv_socklen_t_equiv" = x; then
12098 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
12099 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12100 { (exit 1); exit 1; }; }
12105 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
12106 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
12108 cat >>confdefs.h <<_ACEOF
12109 @%:@define socklen_t $curl_cv_socklen_t_equiv
12116 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
12117 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
12118 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 cat >conftest.$ac_ext <<_ACEOF
12122 #line $LINENO "configure"
12123 #include "confdefs.h"
12124 #include <signal.h>
12126 #ifdef F77_DUMMY_MAIN
12127 # ifdef __cplusplus
12130 int F77_DUMMY_MAIN() { return 1; }
12135 if ((sig_atomic_t *) 0)
12137 if (sizeof (sig_atomic_t))
12143 rm -f conftest.$ac_objext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145 (eval $ac_compile) 2>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 ac_cv_type_sig_atomic_t=yes
12157 echo "$as_me: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12159 ac_cv_type_sig_atomic_t=no
12161 rm -f conftest.$ac_objext conftest.$ac_ext
12163 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12164 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12165 if test $ac_cv_type_sig_atomic_t = yes; then
12167 cat >>confdefs.h <<_ACEOF
12168 @%:@define HAVE_SIG_ATOMIC_T 1
12175 echo "$as_me:$LINENO: checking for size_t" >&5
12176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12177 if test "${ac_cv_have_size_t+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 cat >conftest.$ac_ext <<_ACEOF
12182 #line $LINENO "configure"
12183 #include "confdefs.h"
12185 #include <sys/types.h>
12187 #ifdef F77_DUMMY_MAIN
12188 # ifdef __cplusplus
12191 int F77_DUMMY_MAIN() { return 1; }
12196 size_t foo; foo = 1235;
12201 rm -f conftest.$ac_objext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12203 (eval $ac_compile) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -s conftest.$ac_objext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_cv_have_size_t="yes"
12215 echo "$as_me: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12217 ac_cv_have_size_t="no"
12220 rm -f conftest.$ac_objext conftest.$ac_ext
12223 echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
12224 echo "${ECHO_T}$ac_cv_have_size_t" >&6
12225 if test "x$ac_cv_have_size_t" = "xyes" ; then
12226 cat >>confdefs.h <<\_ACEOF
12227 @%:@define HAVE_SIZE_T 1
12232 echo "$as_me:$LINENO: checking for ssize_t" >&5
12233 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12234 if test "${ac_cv_have_ssize_t+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 cat >conftest.$ac_ext <<_ACEOF
12239 #line $LINENO "configure"
12240 #include "confdefs.h"
12242 #include <sys/types.h>
12244 #ifdef F77_DUMMY_MAIN
12245 # ifdef __cplusplus
12248 int F77_DUMMY_MAIN() { return 1; }
12253 ssize_t foo; foo = 1235;
12258 rm -f conftest.$ac_objext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12260 (eval $ac_compile) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -s conftest.$ac_objext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_cv_have_ssize_t="yes"
12272 echo "$as_me: failed program was:" >&5
12273 cat conftest.$ac_ext >&5
12274 ac_cv_have_ssize_t="no"
12277 rm -f conftest.$ac_objext conftest.$ac_ext
12280 echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
12281 echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12282 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12283 cat >>confdefs.h <<\_ACEOF
12284 @%:@define HAVE_SSIZE_T 1
12289 echo "$as_me:$LINENO: checking for clock_t" >&5
12290 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12291 if test "${ac_cv_have_clock_t+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 cat >conftest.$ac_ext <<_ACEOF
12296 #line $LINENO "configure"
12297 #include "confdefs.h"
12301 #ifdef F77_DUMMY_MAIN
12302 # ifdef __cplusplus
12305 int F77_DUMMY_MAIN() { return 1; }
12310 clock_t foo; foo = 1235;
12315 rm -f conftest.$ac_objext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12317 (eval $ac_compile) 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } &&
12321 { ac_try='test -s conftest.$ac_objext'
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 ac_cv_have_clock_t="yes"
12329 echo "$as_me: failed program was:" >&5
12330 cat conftest.$ac_ext >&5
12331 ac_cv_have_clock_t="no"
12334 rm -f conftest.$ac_objext conftest.$ac_ext
12337 echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
12338 echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12339 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12340 cat >>confdefs.h <<\_ACEOF
12341 @%:@define HAVE_CLOCK_T 1
12346 echo "$as_me:$LINENO: checking for sa_family_t" >&5
12347 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12348 if test "${ac_cv_have_sa_family_t+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 cat >conftest.$ac_ext <<_ACEOF
12353 #line $LINENO "configure"
12354 #include "confdefs.h"
12356 #include <sys/types.h>
12357 #include <sys/socket.h>
12359 #ifdef F77_DUMMY_MAIN
12360 # ifdef __cplusplus
12363 int F77_DUMMY_MAIN() { return 1; }
12368 sa_family_t foo; foo = 1235;
12373 rm -f conftest.$ac_objext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12375 (eval $ac_compile) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_have_sa_family_t="yes"
12387 echo "$as_me: failed program was:" >&5
12388 cat conftest.$ac_ext >&5
12389 cat >conftest.$ac_ext <<_ACEOF
12390 #line $LINENO "configure"
12391 #include "confdefs.h"
12393 #include <sys/types.h>
12394 #include <sys/socket.h>
12395 #include <netinet/in.h>
12397 #ifdef F77_DUMMY_MAIN
12398 # ifdef __cplusplus
12401 int F77_DUMMY_MAIN() { return 1; }
12406 sa_family_t foo; foo = 1235;
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 (eval $ac_compile) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -s conftest.$ac_objext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 ac_cv_have_sa_family_t="yes"
12425 echo "$as_me: failed program was:" >&5
12426 cat conftest.$ac_ext >&5
12427 ac_cv_have_sa_family_t="no"
12430 rm -f conftest.$ac_objext conftest.$ac_ext
12433 rm -f conftest.$ac_objext conftest.$ac_ext
12436 echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
12437 echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12438 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12439 cat >>confdefs.h <<\_ACEOF
12440 @%:@define HAVE_SA_FAMILY_T 1
12445 echo "$as_me:$LINENO: checking for pid_t" >&5
12446 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12447 if test "${ac_cv_have_pid_t+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12452 #line $LINENO "configure"
12453 #include "confdefs.h"
12455 #include <sys/types.h>
12457 #ifdef F77_DUMMY_MAIN
12458 # ifdef __cplusplus
12461 int F77_DUMMY_MAIN() { return 1; }
12466 pid_t foo; foo = 1235;
12471 rm -f conftest.$ac_objext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12473 (eval $ac_compile) 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -s conftest.$ac_objext'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_cv_have_pid_t="yes"
12485 echo "$as_me: failed program was:" >&5
12486 cat conftest.$ac_ext >&5
12487 ac_cv_have_pid_t="no"
12490 rm -f conftest.$ac_objext conftest.$ac_ext
12493 echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
12494 echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12495 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12496 cat >>confdefs.h <<\_ACEOF
12497 @%:@define HAVE_PID_T 1
12502 echo "$as_me:$LINENO: checking for mode_t" >&5
12503 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12504 if test "${ac_cv_have_mode_t+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 cat >conftest.$ac_ext <<_ACEOF
12509 #line $LINENO "configure"
12510 #include "confdefs.h"
12512 #include <sys/types.h>
12514 #ifdef F77_DUMMY_MAIN
12515 # ifdef __cplusplus
12518 int F77_DUMMY_MAIN() { return 1; }
12523 mode_t foo; foo = 1235;
12528 rm -f conftest.$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530 (eval $ac_compile) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
12534 { ac_try='test -s conftest.$ac_objext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_cv_have_mode_t="yes"
12542 echo "$as_me: failed program was:" >&5
12543 cat conftest.$ac_ext >&5
12544 ac_cv_have_mode_t="no"
12547 rm -f conftest.$ac_objext conftest.$ac_ext
12550 echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
12551 echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12552 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12553 cat >>confdefs.h <<\_ACEOF
12554 @%:@define HAVE_MODE_T 1
12560 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12561 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12562 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 cat >conftest.$ac_ext <<_ACEOF
12567 #line $LINENO "configure"
12568 #include "confdefs.h"
12570 #include <sys/types.h>
12571 #include <sys/socket.h>
12573 #ifdef F77_DUMMY_MAIN
12574 # ifdef __cplusplus
12577 int F77_DUMMY_MAIN() { return 1; }
12582 struct sockaddr_storage s;
12587 rm -f conftest.$ac_objext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -s conftest.$ac_objext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599 ac_cv_have_struct_sockaddr_storage="yes"
12601 echo "$as_me: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12603 ac_cv_have_struct_sockaddr_storage="no"
12606 rm -f conftest.$ac_objext conftest.$ac_ext
12609 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
12610 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
12611 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12612 cat >>confdefs.h <<\_ACEOF
12613 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
12618 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
12619 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
12620 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 cat >conftest.$ac_ext <<_ACEOF
12625 #line $LINENO "configure"
12626 #include "confdefs.h"
12628 #include <sys/types.h>
12629 #include <netinet/in.h>
12631 #ifdef F77_DUMMY_MAIN
12632 # ifdef __cplusplus
12635 int F77_DUMMY_MAIN() { return 1; }
12640 struct sockaddr_in6 s; s.sin6_family = 0;
12645 rm -f conftest.$ac_objext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647 (eval $ac_compile) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try='test -s conftest.$ac_objext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_cv_have_struct_sockaddr_in6="yes"
12659 echo "$as_me: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12661 ac_cv_have_struct_sockaddr_in6="no"
12664 rm -f conftest.$ac_objext conftest.$ac_ext
12667 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
12668 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
12669 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12670 cat >>confdefs.h <<\_ACEOF
12671 @%:@define HAVE_STRUCT_SOCKADDR_IN6 1
12676 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
12677 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
12678 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 cat >conftest.$ac_ext <<_ACEOF
12683 #line $LINENO "configure"
12684 #include "confdefs.h"
12686 #include <sys/types.h>
12687 #include <netinet/in.h>
12689 #ifdef F77_DUMMY_MAIN
12690 # ifdef __cplusplus
12693 int F77_DUMMY_MAIN() { return 1; }
12698 struct in6_addr s; s.s6_addr[0] = 0;
12703 rm -f conftest.$ac_objext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705 (eval $ac_compile) 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -s conftest.$ac_objext'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 ac_cv_have_struct_in6_addr="yes"
12717 echo "$as_me: failed program was:" >&5
12718 cat conftest.$ac_ext >&5
12719 ac_cv_have_struct_in6_addr="no"
12722 rm -f conftest.$ac_objext conftest.$ac_ext
12725 echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
12726 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
12727 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12728 cat >>confdefs.h <<\_ACEOF
12729 @%:@define HAVE_STRUCT_IN6_ADDR 1
12734 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12735 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12736 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 cat >conftest.$ac_ext <<_ACEOF
12741 #line $LINENO "configure"
12742 #include "confdefs.h"
12744 #include <sys/types.h>
12745 #include <sys/socket.h>
12748 #ifdef F77_DUMMY_MAIN
12749 # ifdef __cplusplus
12752 int F77_DUMMY_MAIN() { return 1; }
12757 struct addrinfo s; s.ai_flags = AI_PASSIVE;
12762 rm -f conftest.$ac_objext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764 (eval $ac_compile) 2>&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } &&
12768 { ac_try='test -s conftest.$ac_objext'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; }; then
12774 ac_cv_have_struct_addrinfo="yes"
12776 echo "$as_me: failed program was:" >&5
12777 cat conftest.$ac_ext >&5
12778 ac_cv_have_struct_addrinfo="no"
12781 rm -f conftest.$ac_objext conftest.$ac_ext
12784 echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
12785 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
12786 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12787 cat >>confdefs.h <<\_ACEOF
12788 @%:@define HAVE_STRUCT_ADDRINFO 1
12793 echo "$as_me:$LINENO: checking for struct timeval" >&5
12794 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
12795 if test "${ac_cv_have_struct_timeval+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 cat >conftest.$ac_ext <<_ACEOF
12800 #line $LINENO "configure"
12801 #include "confdefs.h"
12802 #include <sys/time.h>
12803 #ifdef F77_DUMMY_MAIN
12804 # ifdef __cplusplus
12807 int F77_DUMMY_MAIN() { return 1; }
12812 struct timeval tv; tv.tv_sec = 1;
12817 rm -f conftest.$ac_objext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } &&
12823 { ac_try='test -s conftest.$ac_objext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 ac_cv_have_struct_timeval="yes"
12831 echo "$as_me: failed program was:" >&5
12832 cat conftest.$ac_ext >&5
12833 ac_cv_have_struct_timeval="no"
12836 rm -f conftest.$ac_objext conftest.$ac_ext
12839 echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
12840 echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
12841 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12842 cat >>confdefs.h <<\_ACEOF
12843 @%:@define HAVE_STRUCT_TIMEVAL 1
12846 have_struct_timeval=1
12849 # If we don't have int64_t then we can't compile sftp-server. So don't
12850 # even attempt to do it.
12851 if test "x$ac_cv_have_int64_t" = "xno" -a \
12852 "x$ac_cv_sizeof_long_int" != "x8" -a \
12853 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12856 if test "$cross_compiling" = yes; then
12857 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12858 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12859 { (exit 1); exit 1; }; }
12861 cat >conftest.$ac_ext <<_ACEOF
12862 #line $LINENO "configure"
12863 #include "confdefs.h"
12866 #include <string.h>
12867 #ifdef HAVE_SNPRINTF
12871 char expected_out[50];
12873 #if (SIZEOF_LONG_INT == 8)
12874 long int num = 0x7fffffffffffffff;
12876 long long num = 0x7fffffffffffffffll;
12878 strcpy(expected_out, "9223372036854775807");
12879 snprintf(buf, mazsize, "%lld", num);
12880 if(strcmp(buf, expected_out) != 0)
12885 main() { exit(0); }
12889 rm -f conftest$ac_exeext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12891 (eval $ac_link) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12902 echo "$as_me: program exited with status $ac_status" >&5
12903 echo "$as_me: failed program was:" >&5
12904 cat conftest.$ac_ext >&5
12905 ( exit $ac_status )
12906 cat >>confdefs.h <<\_ACEOF
12907 @%:@define BROKEN_SNPRINTF 1
12912 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12918 # look for field 'ut_host' in header 'utmp.h'
12919 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12920 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12921 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
12922 echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
12923 if eval "test \"\${$ossh_varname+set}\" = set"; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 cat >conftest.$ac_ext <<_ACEOF
12928 #line $LINENO "configure"
12929 #include "confdefs.h"
12933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12934 egrep "ut_host" >/dev/null 2>&1; then
12935 eval "$ossh_varname=yes"
12937 eval "$ossh_varname=no"
12943 ossh_result=`eval 'echo $'"$ossh_varname"`
12944 if test -n "`echo $ossh_varname`"; then
12945 echo "$as_me:$LINENO: result: $ossh_result" >&5
12946 echo "${ECHO_T}$ossh_result" >&6
12947 if test "x$ossh_result" = "xyes"; then
12948 cat >>confdefs.h <<\_ACEOF
12949 @%:@define HAVE_HOST_IN_UTMP 1
12954 echo "$as_me:$LINENO: result: no" >&5
12955 echo "${ECHO_T}no" >&6
12959 # look for field 'ut_host' in header 'utmpx.h'
12960 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12961 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12962 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
12963 echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
12964 if eval "test \"\${$ossh_varname+set}\" = set"; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 cat >conftest.$ac_ext <<_ACEOF
12969 #line $LINENO "configure"
12970 #include "confdefs.h"
12974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12975 egrep "ut_host" >/dev/null 2>&1; then
12976 eval "$ossh_varname=yes"
12978 eval "$ossh_varname=no"
12984 ossh_result=`eval 'echo $'"$ossh_varname"`
12985 if test -n "`echo $ossh_varname`"; then
12986 echo "$as_me:$LINENO: result: $ossh_result" >&5
12987 echo "${ECHO_T}$ossh_result" >&6
12988 if test "x$ossh_result" = "xyes"; then
12989 cat >>confdefs.h <<\_ACEOF
12990 @%:@define HAVE_HOST_IN_UTMPX 1
12995 echo "$as_me:$LINENO: result: no" >&5
12996 echo "${ECHO_T}no" >&6
13000 # look for field 'syslen' in header 'utmpx.h'
13001 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13002 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13003 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
13004 echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
13005 if eval "test \"\${$ossh_varname+set}\" = set"; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 cat >conftest.$ac_ext <<_ACEOF
13010 #line $LINENO "configure"
13011 #include "confdefs.h"
13015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13016 egrep "syslen" >/dev/null 2>&1; then
13017 eval "$ossh_varname=yes"
13019 eval "$ossh_varname=no"
13025 ossh_result=`eval 'echo $'"$ossh_varname"`
13026 if test -n "`echo $ossh_varname`"; then
13027 echo "$as_me:$LINENO: result: $ossh_result" >&5
13028 echo "${ECHO_T}$ossh_result" >&6
13029 if test "x$ossh_result" = "xyes"; then
13030 cat >>confdefs.h <<\_ACEOF
13031 @%:@define HAVE_SYSLEN_IN_UTMPX 1
13036 echo "$as_me:$LINENO: result: no" >&5
13037 echo "${ECHO_T}no" >&6
13041 # look for field 'ut_pid' in header 'utmp.h'
13042 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13043 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13044 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
13045 echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
13046 if eval "test \"\${$ossh_varname+set}\" = set"; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 cat >conftest.$ac_ext <<_ACEOF
13051 #line $LINENO "configure"
13052 #include "confdefs.h"
13056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13057 egrep "ut_pid" >/dev/null 2>&1; then
13058 eval "$ossh_varname=yes"
13060 eval "$ossh_varname=no"
13066 ossh_result=`eval 'echo $'"$ossh_varname"`
13067 if test -n "`echo $ossh_varname`"; then
13068 echo "$as_me:$LINENO: result: $ossh_result" >&5
13069 echo "${ECHO_T}$ossh_result" >&6
13070 if test "x$ossh_result" = "xyes"; then
13071 cat >>confdefs.h <<\_ACEOF
13072 @%:@define HAVE_PID_IN_UTMP 1
13077 echo "$as_me:$LINENO: result: no" >&5
13078 echo "${ECHO_T}no" >&6
13082 # look for field 'ut_type' in header 'utmp.h'
13083 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13084 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13085 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
13086 echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
13087 if eval "test \"\${$ossh_varname+set}\" = set"; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 cat >conftest.$ac_ext <<_ACEOF
13092 #line $LINENO "configure"
13093 #include "confdefs.h"
13097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13098 egrep "ut_type" >/dev/null 2>&1; then
13099 eval "$ossh_varname=yes"
13101 eval "$ossh_varname=no"
13107 ossh_result=`eval 'echo $'"$ossh_varname"`
13108 if test -n "`echo $ossh_varname`"; then
13109 echo "$as_me:$LINENO: result: $ossh_result" >&5
13110 echo "${ECHO_T}$ossh_result" >&6
13111 if test "x$ossh_result" = "xyes"; then
13112 cat >>confdefs.h <<\_ACEOF
13113 @%:@define HAVE_TYPE_IN_UTMP 1
13118 echo "$as_me:$LINENO: result: no" >&5
13119 echo "${ECHO_T}no" >&6
13123 # look for field 'ut_type' in header 'utmpx.h'
13124 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13125 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13126 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
13127 echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
13128 if eval "test \"\${$ossh_varname+set}\" = set"; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 cat >conftest.$ac_ext <<_ACEOF
13133 #line $LINENO "configure"
13134 #include "confdefs.h"
13138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13139 egrep "ut_type" >/dev/null 2>&1; then
13140 eval "$ossh_varname=yes"
13142 eval "$ossh_varname=no"
13148 ossh_result=`eval 'echo $'"$ossh_varname"`
13149 if test -n "`echo $ossh_varname`"; then
13150 echo "$as_me:$LINENO: result: $ossh_result" >&5
13151 echo "${ECHO_T}$ossh_result" >&6
13152 if test "x$ossh_result" = "xyes"; then
13153 cat >>confdefs.h <<\_ACEOF
13154 @%:@define HAVE_TYPE_IN_UTMPX 1
13159 echo "$as_me:$LINENO: result: no" >&5
13160 echo "${ECHO_T}no" >&6
13164 # look for field 'ut_tv' in header 'utmp.h'
13165 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13166 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13167 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
13168 echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
13169 if eval "test \"\${$ossh_varname+set}\" = set"; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 cat >conftest.$ac_ext <<_ACEOF
13174 #line $LINENO "configure"
13175 #include "confdefs.h"
13179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13180 egrep "ut_tv" >/dev/null 2>&1; then
13181 eval "$ossh_varname=yes"
13183 eval "$ossh_varname=no"
13189 ossh_result=`eval 'echo $'"$ossh_varname"`
13190 if test -n "`echo $ossh_varname`"; then
13191 echo "$as_me:$LINENO: result: $ossh_result" >&5
13192 echo "${ECHO_T}$ossh_result" >&6
13193 if test "x$ossh_result" = "xyes"; then
13194 cat >>confdefs.h <<\_ACEOF
13195 @%:@define HAVE_TV_IN_UTMP 1
13200 echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6
13205 # look for field 'ut_id' in header 'utmp.h'
13206 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13207 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13208 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
13209 echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
13210 if eval "test \"\${$ossh_varname+set}\" = set"; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 cat >conftest.$ac_ext <<_ACEOF
13215 #line $LINENO "configure"
13216 #include "confdefs.h"
13220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13221 egrep "ut_id" >/dev/null 2>&1; then
13222 eval "$ossh_varname=yes"
13224 eval "$ossh_varname=no"
13230 ossh_result=`eval 'echo $'"$ossh_varname"`
13231 if test -n "`echo $ossh_varname`"; then
13232 echo "$as_me:$LINENO: result: $ossh_result" >&5
13233 echo "${ECHO_T}$ossh_result" >&6
13234 if test "x$ossh_result" = "xyes"; then
13235 cat >>confdefs.h <<\_ACEOF
13236 @%:@define HAVE_ID_IN_UTMP 1
13241 echo "$as_me:$LINENO: result: no" >&5
13242 echo "${ECHO_T}no" >&6
13246 # look for field 'ut_id' in header 'utmpx.h'
13247 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13248 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13249 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
13250 echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
13251 if eval "test \"\${$ossh_varname+set}\" = set"; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 cat >conftest.$ac_ext <<_ACEOF
13256 #line $LINENO "configure"
13257 #include "confdefs.h"
13261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13262 egrep "ut_id" >/dev/null 2>&1; then
13263 eval "$ossh_varname=yes"
13265 eval "$ossh_varname=no"
13271 ossh_result=`eval 'echo $'"$ossh_varname"`
13272 if test -n "`echo $ossh_varname`"; then
13273 echo "$as_me:$LINENO: result: $ossh_result" >&5
13274 echo "${ECHO_T}$ossh_result" >&6
13275 if test "x$ossh_result" = "xyes"; then
13276 cat >>confdefs.h <<\_ACEOF
13277 @%:@define HAVE_ID_IN_UTMPX 1
13282 echo "$as_me:$LINENO: result: no" >&5
13283 echo "${ECHO_T}no" >&6
13287 # look for field 'ut_addr' in header 'utmp.h'
13288 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13289 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13290 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
13291 echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
13292 if eval "test \"\${$ossh_varname+set}\" = set"; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 cat >conftest.$ac_ext <<_ACEOF
13297 #line $LINENO "configure"
13298 #include "confdefs.h"
13302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13303 egrep "ut_addr" >/dev/null 2>&1; then
13304 eval "$ossh_varname=yes"
13306 eval "$ossh_varname=no"
13312 ossh_result=`eval 'echo $'"$ossh_varname"`
13313 if test -n "`echo $ossh_varname`"; then
13314 echo "$as_me:$LINENO: result: $ossh_result" >&5
13315 echo "${ECHO_T}$ossh_result" >&6
13316 if test "x$ossh_result" = "xyes"; then
13317 cat >>confdefs.h <<\_ACEOF
13318 @%:@define HAVE_ADDR_IN_UTMP 1
13323 echo "$as_me:$LINENO: result: no" >&5
13324 echo "${ECHO_T}no" >&6
13328 # look for field 'ut_addr' in header 'utmpx.h'
13329 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13330 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13331 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
13332 echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
13333 if eval "test \"\${$ossh_varname+set}\" = set"; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 cat >conftest.$ac_ext <<_ACEOF
13338 #line $LINENO "configure"
13339 #include "confdefs.h"
13343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13344 egrep "ut_addr" >/dev/null 2>&1; then
13345 eval "$ossh_varname=yes"
13347 eval "$ossh_varname=no"
13353 ossh_result=`eval 'echo $'"$ossh_varname"`
13354 if test -n "`echo $ossh_varname`"; then
13355 echo "$as_me:$LINENO: result: $ossh_result" >&5
13356 echo "${ECHO_T}$ossh_result" >&6
13357 if test "x$ossh_result" = "xyes"; then
13358 cat >>confdefs.h <<\_ACEOF
13359 @%:@define HAVE_ADDR_IN_UTMPX 1
13364 echo "$as_me:$LINENO: result: no" >&5
13365 echo "${ECHO_T}no" >&6
13369 # look for field 'ut_addr_v6' in header 'utmp.h'
13370 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13371 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13372 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
13373 echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
13374 if eval "test \"\${$ossh_varname+set}\" = set"; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 cat >conftest.$ac_ext <<_ACEOF
13379 #line $LINENO "configure"
13380 #include "confdefs.h"
13384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13385 egrep "ut_addr_v6" >/dev/null 2>&1; then
13386 eval "$ossh_varname=yes"
13388 eval "$ossh_varname=no"
13394 ossh_result=`eval 'echo $'"$ossh_varname"`
13395 if test -n "`echo $ossh_varname`"; then
13396 echo "$as_me:$LINENO: result: $ossh_result" >&5
13397 echo "${ECHO_T}$ossh_result" >&6
13398 if test "x$ossh_result" = "xyes"; then
13399 cat >>confdefs.h <<\_ACEOF
13400 @%:@define HAVE_ADDR_V6_IN_UTMP 1
13405 echo "$as_me:$LINENO: result: no" >&5
13406 echo "${ECHO_T}no" >&6
13410 # look for field 'ut_addr_v6' in header 'utmpx.h'
13411 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13412 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13413 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
13414 echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
13415 if eval "test \"\${$ossh_varname+set}\" = set"; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 cat >conftest.$ac_ext <<_ACEOF
13420 #line $LINENO "configure"
13421 #include "confdefs.h"
13425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13426 egrep "ut_addr_v6" >/dev/null 2>&1; then
13427 eval "$ossh_varname=yes"
13429 eval "$ossh_varname=no"
13435 ossh_result=`eval 'echo $'"$ossh_varname"`
13436 if test -n "`echo $ossh_varname`"; then
13437 echo "$as_me:$LINENO: result: $ossh_result" >&5
13438 echo "${ECHO_T}$ossh_result" >&6
13439 if test "x$ossh_result" = "xyes"; then
13440 cat >>confdefs.h <<\_ACEOF
13441 @%:@define HAVE_ADDR_V6_IN_UTMPX 1
13446 echo "$as_me:$LINENO: result: no" >&5
13447 echo "${ECHO_T}no" >&6
13451 # look for field 'ut_exit' in header 'utmp.h'
13452 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13453 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13454 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
13455 echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
13456 if eval "test \"\${$ossh_varname+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 cat >conftest.$ac_ext <<_ACEOF
13461 #line $LINENO "configure"
13462 #include "confdefs.h"
13466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13467 egrep "ut_exit" >/dev/null 2>&1; then
13468 eval "$ossh_varname=yes"
13470 eval "$ossh_varname=no"
13476 ossh_result=`eval 'echo $'"$ossh_varname"`
13477 if test -n "`echo $ossh_varname`"; then
13478 echo "$as_me:$LINENO: result: $ossh_result" >&5
13479 echo "${ECHO_T}$ossh_result" >&6
13480 if test "x$ossh_result" = "xyes"; then
13481 cat >>confdefs.h <<\_ACEOF
13482 @%:@define HAVE_EXIT_IN_UTMP 1
13487 echo "$as_me:$LINENO: result: no" >&5
13488 echo "${ECHO_T}no" >&6
13492 # look for field 'ut_time' in header 'utmp.h'
13493 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13494 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13495 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
13496 echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
13497 if eval "test \"\${$ossh_varname+set}\" = set"; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 cat >conftest.$ac_ext <<_ACEOF
13502 #line $LINENO "configure"
13503 #include "confdefs.h"
13507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13508 egrep "ut_time" >/dev/null 2>&1; then
13509 eval "$ossh_varname=yes"
13511 eval "$ossh_varname=no"
13517 ossh_result=`eval 'echo $'"$ossh_varname"`
13518 if test -n "`echo $ossh_varname`"; then
13519 echo "$as_me:$LINENO: result: $ossh_result" >&5
13520 echo "${ECHO_T}$ossh_result" >&6
13521 if test "x$ossh_result" = "xyes"; then
13522 cat >>confdefs.h <<\_ACEOF
13523 @%:@define HAVE_TIME_IN_UTMP 1
13528 echo "$as_me:$LINENO: result: no" >&5
13529 echo "${ECHO_T}no" >&6
13533 # look for field 'ut_time' in header 'utmpx.h'
13534 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13535 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13536 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
13537 echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
13538 if eval "test \"\${$ossh_varname+set}\" = set"; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 cat >conftest.$ac_ext <<_ACEOF
13543 #line $LINENO "configure"
13544 #include "confdefs.h"
13548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13549 egrep "ut_time" >/dev/null 2>&1; then
13550 eval "$ossh_varname=yes"
13552 eval "$ossh_varname=no"
13558 ossh_result=`eval 'echo $'"$ossh_varname"`
13559 if test -n "`echo $ossh_varname`"; then
13560 echo "$as_me:$LINENO: result: $ossh_result" >&5
13561 echo "${ECHO_T}$ossh_result" >&6
13562 if test "x$ossh_result" = "xyes"; then
13563 cat >>confdefs.h <<\_ACEOF
13564 @%:@define HAVE_TIME_IN_UTMPX 1
13569 echo "$as_me:$LINENO: result: no" >&5
13570 echo "${ECHO_T}no" >&6
13574 # look for field 'ut_tv' in header 'utmpx.h'
13575 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13576 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13577 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
13578 echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
13579 if eval "test \"\${$ossh_varname+set}\" = set"; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 cat >conftest.$ac_ext <<_ACEOF
13584 #line $LINENO "configure"
13585 #include "confdefs.h"
13589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13590 egrep "ut_tv" >/dev/null 2>&1; then
13591 eval "$ossh_varname=yes"
13593 eval "$ossh_varname=no"
13599 ossh_result=`eval 'echo $'"$ossh_varname"`
13600 if test -n "`echo $ossh_varname`"; then
13601 echo "$as_me:$LINENO: result: $ossh_result" >&5
13602 echo "${ECHO_T}$ossh_result" >&6
13603 if test "x$ossh_result" = "xyes"; then
13604 cat >>confdefs.h <<\_ACEOF
13605 @%:@define HAVE_TV_IN_UTMPX 1
13610 echo "$as_me:$LINENO: result: no" >&5
13611 echo "${ECHO_T}no" >&6
13615 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13616 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13617 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 cat >conftest.$ac_ext <<_ACEOF
13621 #line $LINENO "configure"
13622 #include "confdefs.h"
13623 $ac_includes_default
13624 #ifdef F77_DUMMY_MAIN
13625 # ifdef __cplusplus
13628 int F77_DUMMY_MAIN() { return 1; }
13633 static struct stat ac_aggr;
13634 if (ac_aggr.st_blksize)
13640 rm -f conftest.$ac_objext
13641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13642 (eval $ac_compile) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } &&
13646 { ac_try='test -s conftest.$ac_objext'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
13652 ac_cv_member_struct_stat_st_blksize=yes
13654 echo "$as_me: failed program was:" >&5
13655 cat conftest.$ac_ext >&5
13656 ac_cv_member_struct_stat_st_blksize=no
13658 rm -f conftest.$ac_objext conftest.$ac_ext
13660 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13661 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13662 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13664 cat >>confdefs.h <<_ACEOF
13665 @%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13672 echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
13673 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13674 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 cat >conftest.$ac_ext <<_ACEOF
13679 #line $LINENO "configure"
13680 #include "confdefs.h"
13682 #include <sys/types.h>
13683 #include <sys/socket.h>
13685 #ifdef F77_DUMMY_MAIN
13686 # ifdef __cplusplus
13689 int F77_DUMMY_MAIN() { return 1; }
13694 struct sockaddr_storage s; s.ss_family = 1;
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -s conftest.$ac_objext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_cv_have_ss_family_in_struct_ss="yes"
13713 echo "$as_me: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715 ac_cv_have_ss_family_in_struct_ss="no"
13717 rm -f conftest.$ac_objext conftest.$ac_ext
13720 echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13721 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
13722 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13723 cat >>confdefs.h <<\_ACEOF
13724 @%:@define HAVE_SS_FAMILY_IN_SS 1
13729 echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
13730 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13731 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 cat >conftest.$ac_ext <<_ACEOF
13736 #line $LINENO "configure"
13737 #include "confdefs.h"
13739 #include <sys/types.h>
13740 #include <sys/socket.h>
13742 #ifdef F77_DUMMY_MAIN
13743 # ifdef __cplusplus
13746 int F77_DUMMY_MAIN() { return 1; }
13751 struct sockaddr_storage s; s.__ss_family = 1;
13756 rm -f conftest.$ac_objext
13757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13758 (eval $ac_compile) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try='test -s conftest.$ac_objext'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
13768 ac_cv_have___ss_family_in_struct_ss="yes"
13770 echo "$as_me: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772 ac_cv_have___ss_family_in_struct_ss="no"
13775 rm -f conftest.$ac_objext conftest.$ac_ext
13778 echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13779 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
13780 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13781 cat >>confdefs.h <<\_ACEOF
13782 @%:@define HAVE___SS_FAMILY_IN_SS 1
13787 echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
13788 echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
13789 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
13790 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 cat >conftest.$ac_ext <<_ACEOF
13794 #line $LINENO "configure"
13795 #include "confdefs.h"
13799 #ifdef F77_DUMMY_MAIN
13800 # ifdef __cplusplus
13803 int F77_DUMMY_MAIN() { return 1; }
13808 struct passwd p; p.pw_class = 0;
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815 (eval $ac_compile) 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -s conftest.$ac_objext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 ac_cv_have_pw_class_in_struct_passwd="yes"
13827 echo "$as_me: failed program was:" >&5
13828 cat conftest.$ac_ext >&5
13829 ac_cv_have_pw_class_in_struct_passwd="no"
13832 rm -f conftest.$ac_objext conftest.$ac_ext
13835 echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13836 echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
13837 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13838 cat >>confdefs.h <<\_ACEOF
13839 @%:@define HAVE_PW_CLASS_IN_PASSWD 1
13844 echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
13845 echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
13846 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 cat >conftest.$ac_ext <<_ACEOF
13851 #line $LINENO "configure"
13852 #include "confdefs.h"
13856 #ifdef F77_DUMMY_MAIN
13857 # ifdef __cplusplus
13860 int F77_DUMMY_MAIN() { return 1; }
13865 struct passwd p; p.pw_expire = 0;
13870 rm -f conftest.$ac_objext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872 (eval $ac_compile) 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try='test -s conftest.$ac_objext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_cv_have_pw_expire_in_struct_passwd="yes"
13884 echo "$as_me: failed program was:" >&5
13885 cat conftest.$ac_ext >&5
13886 ac_cv_have_pw_expire_in_struct_passwd="no"
13889 rm -f conftest.$ac_objext conftest.$ac_ext
13892 echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13893 echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
13894 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13895 cat >>confdefs.h <<\_ACEOF
13896 @%:@define HAVE_PW_EXPIRE_IN_PASSWD 1
13901 echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
13902 echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
13903 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 cat >conftest.$ac_ext <<_ACEOF
13908 #line $LINENO "configure"
13909 #include "confdefs.h"
13913 #ifdef F77_DUMMY_MAIN
13914 # ifdef __cplusplus
13917 int F77_DUMMY_MAIN() { return 1; }
13922 struct passwd p; p.pw_change = 0;
13927 rm -f conftest.$ac_objext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929 (eval $ac_compile) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -s conftest.$ac_objext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_have_pw_change_in_struct_passwd="yes"
13941 echo "$as_me: failed program was:" >&5
13942 cat conftest.$ac_ext >&5
13943 ac_cv_have_pw_change_in_struct_passwd="no"
13946 rm -f conftest.$ac_objext conftest.$ac_ext
13949 echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13950 echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
13951 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13952 cat >>confdefs.h <<\_ACEOF
13953 @%:@define HAVE_PW_CHANGE_IN_PASSWD 1
13958 echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
13959 echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
13960 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 cat >conftest.$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13966 #include "confdefs.h"
13968 #include <sys/types.h>
13969 #include <sys/socket.h>
13970 #include <sys/uio.h>
13972 #ifdef F77_DUMMY_MAIN
13973 # ifdef __cplusplus
13976 int F77_DUMMY_MAIN() { return 1; }
13981 struct msghdr m; m.msg_accrights = 0;
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988 (eval $ac_compile) 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -s conftest.$ac_objext'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 ac_cv_have_accrights_in_msghdr="yes"
14000 echo "$as_me: failed program was:" >&5
14001 cat conftest.$ac_ext >&5
14002 ac_cv_have_accrights_in_msghdr="no"
14005 rm -f conftest.$ac_objext conftest.$ac_ext
14008 echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
14009 echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
14010 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14011 cat >>confdefs.h <<\_ACEOF
14012 @%:@define HAVE_ACCRIGHTS_IN_MSGHDR 1
14017 echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
14018 echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
14019 if test "${ac_cv_have_control_in_msghdr+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 #include "confdefs.h"
14027 #include <sys/types.h>
14028 #include <sys/socket.h>
14029 #include <sys/uio.h>
14031 #ifdef F77_DUMMY_MAIN
14032 # ifdef __cplusplus
14035 int F77_DUMMY_MAIN() { return 1; }
14040 struct msghdr m; m.msg_control = 0;
14045 rm -f conftest.$ac_objext
14046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14047 (eval $ac_compile) 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -s conftest.$ac_objext'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; }; then
14057 ac_cv_have_control_in_msghdr="yes"
14059 echo "$as_me: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 ac_cv_have_control_in_msghdr="no"
14064 rm -f conftest.$ac_objext conftest.$ac_ext
14067 echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
14068 echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
14069 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14070 cat >>confdefs.h <<\_ACEOF
14071 @%:@define HAVE_CONTROL_IN_MSGHDR 1
14076 echo "$as_me:$LINENO: checking if libc defines __progname" >&5
14077 echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
14078 if test "${ac_cv_libc_defines___progname+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 cat >conftest.$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14084 #include "confdefs.h"
14086 #ifdef F77_DUMMY_MAIN
14087 # ifdef __cplusplus
14090 int F77_DUMMY_MAIN() { return 1; }
14095 extern char *__progname; printf("%s", __progname);
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14102 (eval $ac_link) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -s conftest$ac_exeext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 ac_cv_libc_defines___progname="yes"
14114 echo "$as_me: failed program was:" >&5
14115 cat conftest.$ac_ext >&5
14116 ac_cv_libc_defines___progname="no"
14119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14122 echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
14123 echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
14124 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14125 cat >>confdefs.h <<\_ACEOF
14126 @%:@define HAVE___PROGNAME 1
14131 echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
14132 echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14133 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 cat >conftest.$ac_ext <<_ACEOF
14138 #line $LINENO "configure"
14139 #include "confdefs.h"
14143 #ifdef F77_DUMMY_MAIN
14144 # ifdef __cplusplus
14147 int F77_DUMMY_MAIN() { return 1; }
14152 printf("%s", __FUNCTION__);
14157 rm -f conftest.$ac_objext conftest$ac_exeext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159 (eval $ac_link) 2>&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
14163 { ac_try='test -s conftest$ac_exeext'
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; }; then
14169 ac_cv_cc_implements___FUNCTION__="yes"
14171 echo "$as_me: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14173 ac_cv_cc_implements___FUNCTION__="no"
14176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14179 echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
14180 echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14181 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14182 cat >>confdefs.h <<\_ACEOF
14183 @%:@define HAVE___FUNCTION__ 1
14188 echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
14189 echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14190 if test "${ac_cv_cc_implements___func__+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14194 cat >conftest.$ac_ext <<_ACEOF
14195 #line $LINENO "configure"
14196 #include "confdefs.h"
14200 #ifdef F77_DUMMY_MAIN
14201 # ifdef __cplusplus
14204 int F77_DUMMY_MAIN() { return 1; }
14209 printf("%s", __func__);
14214 rm -f conftest.$ac_objext conftest$ac_exeext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14216 (eval $ac_link) 2>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -s conftest$ac_exeext'
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 ac_cv_cc_implements___func__="yes"
14228 echo "$as_me: failed program was:" >&5
14229 cat conftest.$ac_ext >&5
14230 ac_cv_cc_implements___func__="no"
14233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14236 echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
14237 echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14238 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14239 cat >>confdefs.h <<\_ACEOF
14240 @%:@define HAVE___func__ 1
14245 echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
14246 echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14247 if test "${ac_cv_have_getopt_optreset+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 cat >conftest.$ac_ext <<_ACEOF
14252 #line $LINENO "configure"
14253 #include "confdefs.h"
14255 #include <getopt.h>
14257 #ifdef F77_DUMMY_MAIN
14258 # ifdef __cplusplus
14261 int F77_DUMMY_MAIN() { return 1; }
14266 extern int optreset; optreset = 0;
14271 rm -f conftest.$ac_objext conftest$ac_exeext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14273 (eval $ac_link) 2>&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
14277 { ac_try='test -s conftest$ac_exeext'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }; then
14283 ac_cv_have_getopt_optreset="yes"
14285 echo "$as_me: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14287 ac_cv_have_getopt_optreset="no"
14290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14293 echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
14294 echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
14295 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14296 cat >>confdefs.h <<\_ACEOF
14297 @%:@define HAVE_GETOPT_OPTRESET 1
14302 echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
14303 echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
14304 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 cat >conftest.$ac_ext <<_ACEOF
14309 #line $LINENO "configure"
14310 #include "confdefs.h"
14312 #ifdef F77_DUMMY_MAIN
14313 # ifdef __cplusplus
14316 int F77_DUMMY_MAIN() { return 1; }
14321 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14326 rm -f conftest.$ac_objext conftest$ac_exeext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328 (eval $ac_link) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } &&
14332 { ac_try='test -s conftest$ac_exeext'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14338 ac_cv_libc_defines_sys_errlist="yes"
14340 echo "$as_me: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14342 ac_cv_libc_defines_sys_errlist="no"
14345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14348 echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
14349 echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14350 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14351 cat >>confdefs.h <<\_ACEOF
14352 @%:@define HAVE_SYS_ERRLIST 1
14358 echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
14359 echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14360 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 #include "confdefs.h"
14368 #ifdef F77_DUMMY_MAIN
14369 # ifdef __cplusplus
14372 int F77_DUMMY_MAIN() { return 1; }
14377 extern int sys_nerr; printf("%i", sys_nerr);
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384 (eval $ac_link) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
14388 { ac_try='test -s conftest$ac_exeext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 ac_cv_libc_defines_sys_nerr="yes"
14396 echo "$as_me: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14398 ac_cv_libc_defines_sys_nerr="no"
14401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14404 echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
14405 echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14406 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14407 cat >>confdefs.h <<\_ACEOF
14408 @%:@define HAVE_SYS_NERR 1
14415 # Check whether user wants sectok support
14417 # Check whether --with-sectok or --without-sectok was given.
14418 if test "${with_sectok+set}" = set; then
14419 withval="$with_sectok"
14421 if test "x$withval" != "xno" ; then
14422 if test "x$withval" != "xyes" ; then
14423 CPPFLAGS="$CPPFLAGS -I${withval}"
14424 LDFLAGS="$LDFLAGS -L${withval}"
14425 if test ! -z "$need_dash_r" ; then
14426 LDFLAGS="$LDFLAGS -R${withval}"
14428 if test ! -z "$blibpath" ; then
14429 blibpath="$blibpath:${withval}"
14433 for ac_header in sectok.h
14435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14437 echo "$as_me:$LINENO: checking for $ac_header" >&5
14438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14445 # Is the header compilable?
14446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14448 cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 #include "confdefs.h"
14451 $ac_includes_default
14452 @%:@include <$ac_header>
14454 rm -f conftest.$ac_objext
14455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456 (eval $ac_compile) 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -s conftest.$ac_objext'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_header_compiler=yes
14468 echo "$as_me: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14470 ac_header_compiler=no
14472 rm -f conftest.$ac_objext conftest.$ac_ext
14473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14474 echo "${ECHO_T}$ac_header_compiler" >&6
14476 # Is the header present?
14477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14479 cat >conftest.$ac_ext <<_ACEOF
14480 #line $LINENO "configure"
14481 #include "confdefs.h"
14482 @%:@include <$ac_header>
14484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14487 egrep -v '^ *\+' conftest.er1 >conftest.err
14489 cat conftest.err >&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } >/dev/null; then
14492 if test -s conftest.err; then
14493 ac_cpp_err=$ac_c_preproc_warn_flag
14500 if test -z "$ac_cpp_err"; then
14501 ac_header_preproc=yes
14503 echo "$as_me: failed program was:" >&5
14504 cat conftest.$ac_ext >&5
14505 ac_header_preproc=no
14507 rm -f conftest.err conftest.$ac_ext
14508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14509 echo "${ECHO_T}$ac_header_preproc" >&6
14511 # So? What about this header?
14512 case $ac_header_compiler:$ac_header_preproc in
14514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14526 echo "$as_me:$LINENO: checking for $ac_header" >&5
14527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 eval "$as_ac_Header=$ac_header_preproc"
14533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14538 cat >>confdefs.h <<_ACEOF
14539 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14546 if test "$ac_cv_header_sectok_h" != yes; then
14547 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
14548 echo "$as_me: error: Can't find sectok.h" >&2;}
14549 { (exit 1); exit 1; }; }
14552 echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
14553 echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14554 if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 ac_check_lib_save_LIBS=$LIBS
14558 LIBS="-lsectok $LIBS"
14559 cat >conftest.$ac_ext <<_ACEOF
14560 #line $LINENO "configure"
14561 #include "confdefs.h"
14563 /* Override any gcc2 internal prototype to avoid an error. */
14567 /* We use char because int might match the return type of a gcc2
14568 builtin and then its argument prototype would still apply. */
14569 char sectok_open ();
14570 #ifdef F77_DUMMY_MAIN
14571 # ifdef __cplusplus
14574 int F77_DUMMY_MAIN() { return 1; }
14584 rm -f conftest.$ac_objext conftest$ac_exeext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586 (eval $ac_link) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -s conftest$ac_exeext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 ac_cv_lib_sectok_sectok_open=yes
14598 echo "$as_me: failed program was:" >&5
14599 cat conftest.$ac_ext >&5
14600 ac_cv_lib_sectok_sectok_open=no
14602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14603 LIBS=$ac_check_lib_save_LIBS
14605 echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
14606 echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14607 if test $ac_cv_lib_sectok_sectok_open = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609 @%:@define HAVE_LIBSECTOK 1
14612 LIBS="-lsectok $LIBS"
14616 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14617 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
14618 echo "$as_me: error: Can't find libsectok" >&2;}
14619 { (exit 1); exit 1; }; }
14621 cat >>confdefs.h <<\_ACEOF
14622 @%:@define SMARTCARD 1
14625 cat >>confdefs.h <<\_ACEOF
14626 @%:@define USE_SECTOK 1
14629 SCARD_MSG="yes, using sectok"
14635 # Check whether user wants OpenSC support
14637 # Check whether --with-opensc or --without-opensc was given.
14638 if test "${with_opensc+set}" = set; then
14639 withval="$with_opensc"
14640 opensc_config_prefix="$withval"
14642 opensc_config_prefix=""
14644 if test x$opensc_config_prefix != x ; then
14645 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
14646 # Extract the first word of "opensc-config", so it can be a program name with args.
14647 set dummy opensc-config; ac_word=$2
14648 echo "$as_me:$LINENO: checking for $ac_word" >&5
14649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14650 if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 case $OPENSC_CONFIG in
14655 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659 for as_dir in $PATH
14662 test -z "$as_dir" && as_dir=.
14663 for ac_exec_ext in '' $ac_executable_extensions; do
14664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14665 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14672 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14676 OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14678 if test -n "$OPENSC_CONFIG"; then
14679 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
14680 echo "${ECHO_T}$OPENSC_CONFIG" >&6
14682 echo "$as_me:$LINENO: result: no" >&5
14683 echo "${ECHO_T}no" >&6
14686 if test "$OPENSC_CONFIG" != "no"; then
14687 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14688 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14689 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14690 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
14691 cat >>confdefs.h <<\_ACEOF
14692 @%:@define SMARTCARD 1
14695 cat >>confdefs.h <<\_ACEOF
14696 @%:@define USE_OPENSC 1
14699 SCARD_MSG="yes, using OpenSC"
14703 # Check whether user wants Kerberos 5 support
14706 # Check whether --with-kerberos5 or --without-kerberos5 was given.
14707 if test "${with_kerberos5+set}" = set; then
14708 withval="$with_kerberos5"
14710 if test "x$withval" != "xno" ; then
14711 if test "x$withval" = "xyes" ; then
14712 KRB5ROOT="/usr/local"
14714 KRB5ROOT=${withval}
14716 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14717 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14718 cat >>confdefs.h <<\_ACEOF
14723 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
14724 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
14725 cat >conftest.$ac_ext <<_ACEOF
14726 #line $LINENO "configure"
14727 #include "confdefs.h"
14729 #ifdef F77_DUMMY_MAIN
14730 # ifdef __cplusplus
14733 int F77_DUMMY_MAIN() { return 1; }
14738 char *tmp = heimdal_version;
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745 (eval $ac_compile) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -s conftest.$ac_objext'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 echo "$as_me:$LINENO: result: yes" >&5
14756 echo "${ECHO_T}yes" >&6
14757 cat >>confdefs.h <<\_ACEOF
14758 @%:@define HEIMDAL 1
14761 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
14764 echo "$as_me: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766 echo "$as_me:$LINENO: result: no" >&5
14767 echo "${ECHO_T}no" >&6
14768 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14772 rm -f conftest.$ac_objext conftest.$ac_ext
14773 if test ! -z "$need_dash_r" ; then
14774 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
14776 if test ! -z "$blibpath" ; then
14777 blibpath="$blibpath:${KRB5ROOT}/lib"
14780 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
14781 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
14782 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 ac_check_lib_save_LIBS=$LIBS
14786 LIBS="-lresolv $LIBS"
14787 cat >conftest.$ac_ext <<_ACEOF
14788 #line $LINENO "configure"
14789 #include "confdefs.h"
14791 /* Override any gcc2 internal prototype to avoid an error. */
14795 /* We use char because int might match the return type of a gcc2
14796 builtin and then its argument prototype would still apply. */
14798 #ifdef F77_DUMMY_MAIN
14799 # ifdef __cplusplus
14802 int F77_DUMMY_MAIN() { return 1; }
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14814 (eval $ac_link) 2>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try='test -s conftest$ac_exeext'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 ac_cv_lib_resolv_dn_expand=yes
14826 echo "$as_me: failed program was:" >&5
14827 cat conftest.$ac_ext >&5
14828 ac_cv_lib_resolv_dn_expand=no
14830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14831 LIBS=$ac_check_lib_save_LIBS
14833 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
14834 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
14835 if test $ac_cv_lib_resolv_dn_expand = yes; then
14836 cat >>confdefs.h <<_ACEOF
14837 @%:@define HAVE_LIBRESOLV 1
14840 LIBS="-lresolv $LIBS"
14850 # Check whether user wants Kerberos 4 support
14853 # Check whether --with-kerberos4 or --without-kerberos4 was given.
14854 if test "${with_kerberos4+set}" = set; then
14855 withval="$with_kerberos4"
14857 if test "x$withval" != "xno" ; then
14858 if test "x$withval" != "xyes" ; then
14859 CPPFLAGS="$CPPFLAGS -I${withval}/include"
14860 LDFLAGS="$LDFLAGS -L${withval}/lib"
14861 if test ! -z "$need_dash_r" ; then
14862 LDFLAGS="$LDFLAGS -R${withval}/lib"
14864 if test ! -z "$blibpath" ; then
14865 blibpath="$blibpath:${withval}/lib"
14868 if test -d /usr/include/kerberosIV ; then
14869 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
14874 for ac_header in krb.h
14876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14878 echo "$as_me:$LINENO: checking for $ac_header" >&5
14879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14886 # Is the header compilable?
14887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14889 cat >conftest.$ac_ext <<_ACEOF
14890 #line $LINENO "configure"
14891 #include "confdefs.h"
14892 $ac_includes_default
14893 @%:@include <$ac_header>
14895 rm -f conftest.$ac_objext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897 (eval $ac_compile) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
14901 { ac_try='test -s conftest.$ac_objext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_header_compiler=yes
14909 echo "$as_me: failed program was:" >&5
14910 cat conftest.$ac_ext >&5
14911 ac_header_compiler=no
14913 rm -f conftest.$ac_objext conftest.$ac_ext
14914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14915 echo "${ECHO_T}$ac_header_compiler" >&6
14917 # Is the header present?
14918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14920 cat >conftest.$ac_ext <<_ACEOF
14921 #line $LINENO "configure"
14922 #include "confdefs.h"
14923 @%:@include <$ac_header>
14925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14928 egrep -v '^ *\+' conftest.er1 >conftest.err
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } >/dev/null; then
14933 if test -s conftest.err; then
14934 ac_cpp_err=$ac_c_preproc_warn_flag
14941 if test -z "$ac_cpp_err"; then
14942 ac_header_preproc=yes
14944 echo "$as_me: failed program was:" >&5
14945 cat conftest.$ac_ext >&5
14946 ac_header_preproc=no
14948 rm -f conftest.err conftest.$ac_ext
14949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950 echo "${ECHO_T}$ac_header_preproc" >&6
14952 # So? What about this header?
14953 case $ac_header_compiler:$ac_header_preproc in
14955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14967 echo "$as_me:$LINENO: checking for $ac_header" >&5
14968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14972 eval "$as_ac_Header=$ac_header_preproc"
14974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14979 cat >>confdefs.h <<_ACEOF
14980 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14987 if test "$ac_cv_header_krb_h" != yes; then
14988 { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5
14989 echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;}
14992 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
14993 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
14994 if test "${ac_cv_lib_krb_main+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 ac_check_lib_save_LIBS=$LIBS
14999 cat >conftest.$ac_ext <<_ACEOF
15000 #line $LINENO "configure"
15001 #include "confdefs.h"
15004 #ifdef F77_DUMMY_MAIN
15005 # ifdef __cplusplus
15008 int F77_DUMMY_MAIN() { return 1; }
15018 rm -f conftest.$ac_objext conftest$ac_exeext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15020 (eval $ac_link) 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try='test -s conftest$ac_exeext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15030 ac_cv_lib_krb_main=yes
15032 echo "$as_me: failed program was:" >&5
15033 cat conftest.$ac_ext >&5
15034 ac_cv_lib_krb_main=no
15036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15037 LIBS=$ac_check_lib_save_LIBS
15039 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
15040 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
15041 if test $ac_cv_lib_krb_main = yes; then
15042 cat >>confdefs.h <<_ACEOF
15043 @%:@define HAVE_LIBKRB 1
15050 if test "$ac_cv_lib_krb_main" != yes; then
15052 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
15053 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
15054 if test "${ac_cv_lib_krb4_main+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 ac_check_lib_save_LIBS=$LIBS
15058 LIBS="-lkrb4 $LIBS"
15059 cat >conftest.$ac_ext <<_ACEOF
15060 #line $LINENO "configure"
15061 #include "confdefs.h"
15064 #ifdef F77_DUMMY_MAIN
15065 # ifdef __cplusplus
15068 int F77_DUMMY_MAIN() { return 1; }
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15080 (eval $ac_link) 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try='test -s conftest$ac_exeext'
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; }; then
15090 ac_cv_lib_krb4_main=yes
15092 echo "$as_me: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15094 ac_cv_lib_krb4_main=no
15096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15097 LIBS=$ac_check_lib_save_LIBS
15099 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
15100 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
15101 if test $ac_cv_lib_krb4_main = yes; then
15102 cat >>confdefs.h <<_ACEOF
15103 @%:@define HAVE_LIBKRB4 1
15106 LIBS="-lkrb4 $LIBS"
15110 if test "$ac_cv_lib_krb4_main" != yes; then
15111 { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5
15112 echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;}
15120 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15121 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15122 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 ac_check_lib_save_LIBS=$LIBS
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15129 #include "confdefs.h"
15131 /* Override any gcc2 internal prototype to avoid an error. */
15135 /* We use char because int might match the return type of a gcc2
15136 builtin and then its argument prototype would still apply. */
15137 char des_cbc_encrypt ();
15138 #ifdef F77_DUMMY_MAIN
15139 # ifdef __cplusplus
15142 int F77_DUMMY_MAIN() { return 1; }
15147 des_cbc_encrypt ();
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15154 (eval $ac_link) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -s conftest$ac_exeext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_lib_des_des_cbc_encrypt=yes
15166 echo "$as_me: failed program was:" >&5
15167 cat conftest.$ac_ext >&5
15168 ac_cv_lib_des_des_cbc_encrypt=no
15170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15173 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15174 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15175 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15176 cat >>confdefs.h <<_ACEOF
15177 @%:@define HAVE_LIBDES 1
15184 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
15186 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15187 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15188 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 ac_check_lib_save_LIBS=$LIBS
15192 LIBS="-ldes425 $LIBS"
15193 cat >conftest.$ac_ext <<_ACEOF
15194 #line $LINENO "configure"
15195 #include "confdefs.h"
15197 /* Override any gcc2 internal prototype to avoid an error. */
15201 /* We use char because int might match the return type of a gcc2
15202 builtin and then its argument prototype would still apply. */
15203 char des_cbc_encrypt ();
15204 #ifdef F77_DUMMY_MAIN
15205 # ifdef __cplusplus
15208 int F77_DUMMY_MAIN() { return 1; }
15213 des_cbc_encrypt ();
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220 (eval $ac_link) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -s conftest$ac_exeext'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; }; then
15230 ac_cv_lib_des425_des_cbc_encrypt=yes
15232 echo "$as_me: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 ac_cv_lib_des425_des_cbc_encrypt=no
15236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15237 LIBS=$ac_check_lib_save_LIBS
15239 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15240 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15241 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 @%:@define HAVE_LIBDES425 1
15246 LIBS="-ldes425 $LIBS"
15250 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
15251 { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5
15252 echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;}
15260 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15261 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15262 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 ac_check_lib_save_LIBS=$LIBS
15266 LIBS="-lresolv $LIBS"
15267 cat >conftest.$ac_ext <<_ACEOF
15268 #line $LINENO "configure"
15269 #include "confdefs.h"
15271 /* Override any gcc2 internal prototype to avoid an error. */
15275 /* We use char because int might match the return type of a gcc2
15276 builtin and then its argument prototype would still apply. */
15278 #ifdef F77_DUMMY_MAIN
15279 # ifdef __cplusplus
15282 int F77_DUMMY_MAIN() { return 1; }
15292 rm -f conftest.$ac_objext conftest$ac_exeext
15293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15294 (eval $ac_link) 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } &&
15298 { ac_try='test -s conftest$ac_exeext'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
15304 ac_cv_lib_resolv_dn_expand=yes
15306 echo "$as_me: failed program was:" >&5
15307 cat conftest.$ac_ext >&5
15308 ac_cv_lib_resolv_dn_expand=no
15310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15311 LIBS=$ac_check_lib_save_LIBS
15313 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15314 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15315 if test $ac_cv_lib_resolv_dn_expand = yes; then
15316 cat >>confdefs.h <<_ACEOF
15317 @%:@define HAVE_LIBRESOLV 1
15320 LIBS="-lresolv $LIBS"
15326 cat >>confdefs.h <<\_ACEOF
15335 # Check whether user wants AFS support
15338 # Check whether --with-afs or --without-afs was given.
15339 if test "${with_afs+set}" = set; then
15340 withval="$with_afs"
15342 if test "x$withval" != "xno" ; then
15344 if test "x$withval" != "xyes" ; then
15345 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15346 LDFLAGS="$LDFLAGS -L${withval}/lib"
15349 if test -z "$KRB4" ; then
15350 { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5
15351 echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;}
15354 LIBS="-lkafs $LIBS"
15355 if test ! -z "$AFS_LIBS" ; then
15356 LIBS="$LIBS $AFS_LIBS"
15358 cat >>confdefs.h <<\_ACEOF
15367 LIBS="$LIBS $KLIBS $K5LIBS"
15369 # Looking for programs, paths and files
15371 # Check whether --with-rsh or --without-rsh was given.
15372 if test "${with_rsh+set}" = set; then
15373 withval="$with_rsh"
15375 if test "x$withval" != "$no" ; then
15381 # Extract the first word of "rsh", so it can be a program name with args.
15382 set dummy rsh; ac_word=$2
15383 echo "$as_me:$LINENO: checking for $ac_word" >&5
15384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15385 if test "${ac_cv_path_rsh_path+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a path.
15393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15394 for as_dir in $PATH
15397 test -z "$as_dir" && as_dir=.
15398 for ac_exec_ext in '' $ac_executable_extensions; do
15399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15400 ac_cv_path_rsh_path="$as_dir/$ac_word$ac_exec_ext"
15401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15410 rsh_path=$ac_cv_path_rsh_path
15412 if test -n "$rsh_path"; then
15413 echo "$as_me:$LINENO: result: $rsh_path" >&5
15414 echo "${ECHO_T}$rsh_path" >&6
15416 echo "$as_me:$LINENO: result: no" >&5
15417 echo "${ECHO_T}no" >&6
15424 PRIVSEP_PATH=/var/empty
15426 # Check whether --with-privsep-path or --without-privsep-path was given.
15427 if test "${with_privsep_path+set}" = set; then
15428 withval="$with_privsep_path"
15430 if test "x$withval" != "$no" ; then
15431 PRIVSEP_PATH=$withval
15439 # Check whether --with-xauth or --without-xauth was given.
15440 if test "${with_xauth+set}" = set; then
15441 withval="$with_xauth"
15443 if test "x$withval" != "xno" ; then
15444 xauth_path=$withval
15449 # Extract the first word of "xauth", so it can be a program name with args.
15450 set dummy xauth; ac_word=$2
15451 echo "$as_me:$LINENO: checking for $ac_word" >&5
15452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15453 if test "${ac_cv_path_xauth_path+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 case $xauth_path in
15458 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462 for as_dir in $PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin
15465 test -z "$as_dir" && as_dir=.
15466 for ac_exec_ext in '' $ac_executable_extensions; do
15467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15468 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15478 xauth_path=$ac_cv_path_xauth_path
15480 if test -n "$xauth_path"; then
15481 echo "$as_me:$LINENO: result: $xauth_path" >&5
15482 echo "${ECHO_T}$xauth_path" >&6
15484 echo "$as_me:$LINENO: result: no" >&5
15485 echo "${ECHO_T}no" >&6
15488 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15489 xauth_path="/usr/openwin/bin/xauth"
15495 if test -z "$xauth_path" ; then
15496 XAUTH_PATH="undefined"
15499 cat >>confdefs.h <<_ACEOF
15500 @%:@define XAUTH_PATH "$xauth_path"
15503 XAUTH_PATH=$xauth_path
15506 if test ! -z "$rsh_path" ; then
15507 cat >>confdefs.h <<_ACEOF
15508 @%:@define RSH_PATH "$rsh_path"
15513 # Check for mail directory (last resort if we cannot get it from headers)
15514 if test ! -z "$MAIL" ; then
15515 maildir=`dirname $MAIL`
15516 cat >>confdefs.h <<_ACEOF
15517 @%:@define MAIL_DIRECTORY "$maildir"
15522 if test -z "$no_dev_ptmx" ; then
15523 if test "x$disable_ptmx_check" != "xyes" ; then
15524 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
15525 echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
15526 if test "${ac_cv_file___dev_ptmx_+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 test "$cross_compiling" = yes &&
15530 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15531 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15532 { (exit 1); exit 1; }; }
15533 if test -r ""/dev/ptmx""; then
15534 ac_cv_file___dev_ptmx_=yes
15536 ac_cv_file___dev_ptmx_=no
15539 echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
15540 echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
15541 if test $ac_cv_file___dev_ptmx_ = yes; then
15543 cat >>confdefs.h <<_ACEOF
15544 @%:@define HAVE_DEV_PTMX 1
15554 echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
15555 echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
15556 if test "${ac_cv_file___dev_ptc_+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 test "$cross_compiling" = yes &&
15560 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15561 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15562 { (exit 1); exit 1; }; }
15563 if test -r ""/dev/ptc""; then
15564 ac_cv_file___dev_ptc_=yes
15566 ac_cv_file___dev_ptc_=no
15569 echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
15570 echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
15571 if test $ac_cv_file___dev_ptc_ = yes; then
15573 cat >>confdefs.h <<_ACEOF
15574 @%:@define HAVE_DEV_PTS_AND_PTC 1
15583 # Options from here on. Some of these are preset by platform above
15585 # Check whether --with-mantype or --without-mantype was given.
15586 if test "${with_mantype+set}" = set; then
15587 withval="$with_mantype"
15594 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
15595 echo "$as_me: error: invalid man type: $withval" >&2;}
15596 { (exit 1); exit 1; }; }
15602 if test -z "$MANTYPE"; then
15603 for ac_prog in nroff awf
15605 # Extract the first word of "$ac_prog", so it can be a program name with args.
15606 set dummy $ac_prog; ac_word=$2
15607 echo "$as_me:$LINENO: checking for $ac_word" >&5
15608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15609 if test "${ac_cv_path_NROFF+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15618 as_dummy="/usr/bin:/usr/ucb"
15619 for as_dir in $as_dummy
15622 test -z "$as_dir" && as_dir=.
15623 for ac_exec_ext in '' $ac_executable_extensions; do
15624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15625 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15635 NROFF=$ac_cv_path_NROFF
15637 if test -n "$NROFF"; then
15638 echo "$as_me:$LINENO: result: $NROFF" >&5
15639 echo "${ECHO_T}$NROFF" >&6
15641 echo "$as_me:$LINENO: result: no" >&5
15642 echo "${ECHO_T}no" >&6
15645 test -n "$NROFF" && break
15647 test -n "$NROFF" || NROFF="/bin/false"
15649 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15651 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15658 if test "$MANTYPE" = "doc"; then
15661 mansubdir=$MANTYPE;
15665 # Check whether to enable MD5 passwords
15668 # Check whether --with-md5-passwords or --without-md5-passwords was given.
15669 if test "${with_md5_passwords+set}" = set; then
15670 withval="$with_md5_passwords"
15672 if test "x$withval" != "xno" ; then
15673 cat >>confdefs.h <<\_ACEOF
15674 @%:@define HAVE_MD5_PASSWORDS 1
15683 # Whether to disable shadow password support
15685 # Check whether --with-shadow or --without-shadow was given.
15686 if test "${with_shadow+set}" = set; then
15687 withval="$with_shadow"
15689 if test "x$withval" = "xno" ; then
15690 cat >>confdefs.h <<\_ACEOF
15691 @%:@define DISABLE_SHADOW 1
15700 if test -z "$disable_shadow" ; then
15701 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
15702 echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
15703 cat >conftest.$ac_ext <<_ACEOF
15704 #line $LINENO "configure"
15705 #include "confdefs.h"
15707 #include <sys/types.h>
15708 #include <shadow.h>
15711 #ifdef F77_DUMMY_MAIN
15712 # ifdef __cplusplus
15715 int F77_DUMMY_MAIN() { return 1; }
15720 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15725 rm -f conftest.$ac_objext
15726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15727 (eval $ac_compile) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -s conftest.$ac_objext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 sp_expire_available=yes
15739 echo "$as_me: failed program was:" >&5
15740 cat conftest.$ac_ext >&5
15744 rm -f conftest.$ac_objext conftest.$ac_ext
15746 if test "x$sp_expire_available" = "xyes" ; then
15747 echo "$as_me:$LINENO: result: yes" >&5
15748 echo "${ECHO_T}yes" >&6
15749 cat >>confdefs.h <<\_ACEOF
15750 @%:@define HAS_SHADOW_EXPIRE 1
15754 echo "$as_me:$LINENO: result: no" >&5
15755 echo "${ECHO_T}no" >&6
15759 # Use ip address instead of hostname in $DISPLAY
15760 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15761 DISPLAY_HACK_MSG="yes"
15762 cat >>confdefs.h <<\_ACEOF
15763 @%:@define IPADDR_IN_DISPLAY 1
15767 DISPLAY_HACK_MSG="no"
15769 # Check whether --with-ipaddr-display or --without-ipaddr-display was given.
15770 if test "${with_ipaddr_display+set}" = set; then
15771 withval="$with_ipaddr_display"
15773 if test "x$withval" != "xno" ; then
15774 cat >>confdefs.h <<\_ACEOF
15775 @%:@define IPADDR_IN_DISPLAY 1
15778 DISPLAY_HACK_MSG="yes"
15785 if test $ac_cv_func_login_getcapbool = "yes" -a \
15786 $ac_cv_header_login_cap_h = "yes" ; then
15787 USES_LOGIN_CONF=yes
15789 # Whether to mess with the default path
15790 SERVER_PATH_MSG="(default)"
15792 # Check whether --with-default-path or --without-default-path was given.
15793 if test "${with_default_path+set}" = set; then
15794 withval="$with_default_path"
15796 if test "$USES_LOGIN_CONF" = "yes" ; then
15797 { echo "$as_me:$LINENO: WARNING:
15798 --with-default-path=PATH has no effect on this system.
15799 Edit /etc/login.conf instead." >&5
15800 echo "$as_me: WARNING:
15801 --with-default-path=PATH has no effect on this system.
15802 Edit /etc/login.conf instead." >&2;}
15803 elif test "x$withval" != "xno" ; then
15804 user_path="$withval"
15805 SERVER_PATH_MSG="$withval"
15809 if test "$USES_LOGIN_CONF" = "yes" ; then
15810 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15811 echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15813 if test "$cross_compiling" = yes; then
15814 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15817 cat >conftest.$ac_ext <<_ACEOF
15818 #line $LINENO "configure"
15819 #include "confdefs.h"
15821 /* find out what STDPATH is */
15823 #ifdef HAVE_PATHS_H
15824 # include <paths.h>
15826 #ifndef _PATH_STDPATH
15827 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15829 #include <sys/types.h>
15830 #include <sys/stat.h>
15832 #define DATA "conftest.stdpath"
15839 fd = fopen(DATA,"w");
15843 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15850 rm -f conftest$ac_exeext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15852 (eval $ac_link) 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 user_path=`cat conftest.stdpath`
15863 echo "$as_me: program exited with status $ac_status" >&5
15864 echo "$as_me: failed program was:" >&5
15865 cat conftest.$ac_ext >&5
15866 ( exit $ac_status )
15867 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15869 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15871 # make sure $bindir is in USER_PATH so scp will work
15872 t_bindir=`eval echo ${bindir}`
15874 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15877 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15879 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
15880 if test $? -ne 0 ; then
15881 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
15882 if test $? -ne 0 ; then
15883 user_path=$user_path:$t_bindir
15884 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15885 echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
15891 if test "$USES_LOGIN_CONF" != "yes" ; then
15892 cat >>confdefs.h <<_ACEOF
15893 @%:@define USER_PATH "$user_path"
15899 # Set superuser path separately to user path
15901 # Check whether --with-superuser-path or --without-superuser-path was given.
15902 if test "${with_superuser_path+set}" = set; then
15903 withval="$with_superuser_path"
15905 if test "x$withval" != "xno" ; then
15906 cat >>confdefs.h <<_ACEOF
15907 @%:@define SUPERUSER_PATH "$withval"
15910 superuser_path=$withval
15917 # Whether to force IPv4 by default (needed on broken glibc Linux)
15920 # Check whether --with-ipv4-default or --without-ipv4-default was given.
15921 if test "${with_ipv4_default+set}" = set; then
15922 withval="$with_ipv4_default"
15924 if test "x$withval" != "xno" ; then
15925 cat >>confdefs.h <<\_ACEOF
15926 @%:@define IPV4_DEFAULT 1
15929 IPV4_HACK_MSG="yes"
15935 echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15936 echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
15937 IPV4_IN6_HACK_MSG="no"
15939 # Check whether --with-4in6 or --without-4in6 was given.
15940 if test "${with_4in6+set}" = set; then
15941 withval="$with_4in6"
15943 if test "x$withval" != "xno" ; then
15944 echo "$as_me:$LINENO: result: yes" >&5
15945 echo "${ECHO_T}yes" >&6
15946 cat >>confdefs.h <<\_ACEOF
15947 @%:@define IPV4_IN_IPV6 1
15950 IPV4_IN6_HACK_MSG="yes"
15952 echo "$as_me:$LINENO: result: no" >&5
15953 echo "${ECHO_T}no" >&6
15958 if test "x$inet6_default_4in6" = "xyes"; then
15959 echo "$as_me:$LINENO: result: yes (default)" >&5
15960 echo "${ECHO_T}yes (default)" >&6
15961 cat >>confdefs.h <<\_ACEOF
15962 @%:@define IPV4_IN_IPV6 1
15965 IPV4_IN6_HACK_MSG="yes"
15967 echo "$as_me:$LINENO: result: no (default)" >&5
15968 echo "${ECHO_T}no (default)" >&6
15974 # Whether to enable BSD auth support
15977 # Check whether --with-bsd-auth or --without-bsd-auth was given.
15978 if test "${with_bsd_auth+set}" = set; then
15979 withval="$with_bsd_auth"
15981 if test "x$withval" != "xno" ; then
15982 cat >>confdefs.h <<\_ACEOF
15983 @%:@define BSD_AUTH 1
15992 echo "$as_me:$LINENO: checking whether to install ssh as suid root" >&5
15993 echo $ECHO_N "checking whether to install ssh as suid root... $ECHO_C" >&6
15994 # Check whether --enable-suid-ssh or --disable-suid-ssh was given.
15995 if test "${enable_suid_ssh+set}" = set; then
15996 enableval="$enable_suid_ssh"
15997 case "$enableval" in
15999 echo "$as_me:$LINENO: result: no" >&5
16000 echo "${ECHO_T}no" >&6
16003 *) echo "$as_me:$LINENO: result: yes" >&5
16004 echo "${ECHO_T}yes" >&6
16009 echo "$as_me:$LINENO: result: yes" >&5
16010 echo "${ECHO_T}yes" >&6
16017 # Where to place sshd.pid
16019 # make sure the directory exists
16020 if test ! -d $piddir ; then
16021 piddir=`eval echo ${sysconfdir}`
16023 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16028 # Check whether --with-pid-dir or --without-pid-dir was given.
16029 if test "${with_pid_dir+set}" = set; then
16030 withval="$with_pid_dir"
16032 if test "x$withval" != "xno" ; then
16034 if test ! -d $piddir ; then
16035 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
16036 echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16043 cat >>confdefs.h <<_ACEOF
16044 @%:@define _PATH_SSH_PIDDIR "$piddir"
16049 # Check whether --enable-lastlog or --disable-lastlog was given.
16050 if test "${enable_lastlog+set}" = set; then
16051 enableval="$enable_lastlog"
16052 cat >>confdefs.h <<\_ACEOF
16053 @%:@define DISABLE_LASTLOG 1
16058 # Check whether --enable-utmp or --disable-utmp was given.
16059 if test "${enable_utmp+set}" = set; then
16060 enableval="$enable_utmp"
16061 cat >>confdefs.h <<\_ACEOF
16062 @%:@define DISABLE_UTMP 1
16067 # Check whether --enable-utmpx or --disable-utmpx was given.
16068 if test "${enable_utmpx+set}" = set; then
16069 enableval="$enable_utmpx"
16070 cat >>confdefs.h <<\_ACEOF
16071 @%:@define DISABLE_UTMPX 1
16076 # Check whether --enable-wtmp or --disable-wtmp was given.
16077 if test "${enable_wtmp+set}" = set; then
16078 enableval="$enable_wtmp"
16079 cat >>confdefs.h <<\_ACEOF
16080 @%:@define DISABLE_WTMP 1
16085 # Check whether --enable-wtmpx or --disable-wtmpx was given.
16086 if test "${enable_wtmpx+set}" = set; then
16087 enableval="$enable_wtmpx"
16088 cat >>confdefs.h <<\_ACEOF
16089 @%:@define DISABLE_WTMPX 1
16094 # Check whether --enable-libutil or --disable-libutil was given.
16095 if test "${enable_libutil+set}" = set; then
16096 enableval="$enable_libutil"
16097 cat >>confdefs.h <<\_ACEOF
16098 @%:@define DISABLE_LOGIN 1
16103 # Check whether --enable-pututline or --disable-pututline was given.
16104 if test "${enable_pututline+set}" = set; then
16105 enableval="$enable_pututline"
16106 cat >>confdefs.h <<\_ACEOF
16107 @%:@define DISABLE_PUTUTLINE 1
16112 # Check whether --enable-pututxline or --disable-pututxline was given.
16113 if test "${enable_pututxline+set}" = set; then
16114 enableval="$enable_pututxline"
16115 cat >>confdefs.h <<\_ACEOF
16116 @%:@define DISABLE_PUTUTXLINE 1
16122 # Check whether --with-lastlog or --without-lastlog was given.
16123 if test "${with_lastlog+set}" = set; then
16124 withval="$with_lastlog"
16126 if test "x$withval" = "xno" ; then
16127 cat >>confdefs.h <<\_ACEOF
16128 @%:@define DISABLE_LASTLOG 1
16132 conf_lastlog_location=$withval
16139 echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
16140 echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
16141 cat >conftest.$ac_ext <<_ACEOF
16142 #line $LINENO "configure"
16143 #include "confdefs.h"
16145 #include <sys/types.h>
16147 #ifdef HAVE_LASTLOG_H
16148 # include <lastlog.h>
16150 #ifdef HAVE_PATHS_H
16151 # include <paths.h>
16153 #ifdef HAVE_LOGIN_H
16154 # include <login.h>
16157 #ifdef F77_DUMMY_MAIN
16158 # ifdef __cplusplus
16161 int F77_DUMMY_MAIN() { return 1; }
16166 char *lastlog = LASTLOG_FILE;
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173 (eval $ac_compile) 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } &&
16177 { ac_try='test -s conftest.$ac_objext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 echo "$as_me:$LINENO: result: yes" >&5
16184 echo "${ECHO_T}yes" >&6
16186 echo "$as_me: failed program was:" >&5
16187 cat conftest.$ac_ext >&5
16189 echo "$as_me:$LINENO: result: no" >&5
16190 echo "${ECHO_T}no" >&6
16191 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
16192 echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
16193 cat >conftest.$ac_ext <<_ACEOF
16194 #line $LINENO "configure"
16195 #include "confdefs.h"
16197 #include <sys/types.h>
16199 #ifdef HAVE_LASTLOG_H
16200 # include <lastlog.h>
16202 #ifdef HAVE_PATHS_H
16203 # include <paths.h>
16206 #ifdef F77_DUMMY_MAIN
16207 # ifdef __cplusplus
16210 int F77_DUMMY_MAIN() { return 1; }
16215 char *lastlog = _PATH_LASTLOG;
16220 rm -f conftest.$ac_objext
16221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16222 (eval $ac_compile) 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
16226 { ac_try='test -s conftest.$ac_objext'
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; }; then
16232 echo "$as_me:$LINENO: result: yes" >&5
16233 echo "${ECHO_T}yes" >&6
16235 echo "$as_me: failed program was:" >&5
16236 cat conftest.$ac_ext >&5
16238 echo "$as_me:$LINENO: result: no" >&5
16239 echo "${ECHO_T}no" >&6
16240 system_lastlog_path=no
16243 rm -f conftest.$ac_objext conftest.$ac_ext
16247 rm -f conftest.$ac_objext conftest.$ac_ext
16249 if test -z "$conf_lastlog_location"; then
16250 if test x"$system_lastlog_path" = x"no" ; then
16251 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16252 if (test -d "$f" || test -f "$f") ; then
16253 conf_lastlog_location=$f
16256 if test -z "$conf_lastlog_location"; then
16257 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
16258 echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16263 if test -n "$conf_lastlog_location"; then
16264 cat >>confdefs.h <<_ACEOF
16265 @%:@define CONF_LASTLOG_FILE "$conf_lastlog_location"
16270 echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
16271 echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
16272 cat >conftest.$ac_ext <<_ACEOF
16273 #line $LINENO "configure"
16274 #include "confdefs.h"
16276 #include <sys/types.h>
16278 #ifdef HAVE_PATHS_H
16279 # include <paths.h>
16282 #ifdef F77_DUMMY_MAIN
16283 # ifdef __cplusplus
16286 int F77_DUMMY_MAIN() { return 1; }
16291 char *utmp = UTMP_FILE;
16296 rm -f conftest.$ac_objext
16297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298 (eval $ac_compile) 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
16302 { ac_try='test -s conftest.$ac_objext'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; }; then
16308 echo "$as_me:$LINENO: result: yes" >&5
16309 echo "${ECHO_T}yes" >&6
16311 echo "$as_me: failed program was:" >&5
16312 cat conftest.$ac_ext >&5
16313 echo "$as_me:$LINENO: result: no" >&5
16314 echo "${ECHO_T}no" >&6
16315 system_utmp_path=no
16318 rm -f conftest.$ac_objext conftest.$ac_ext
16319 if test -z "$conf_utmp_location"; then
16320 if test x"$system_utmp_path" = x"no" ; then
16321 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16322 if test -f $f ; then
16323 conf_utmp_location=$f
16326 if test -z "$conf_utmp_location"; then
16327 cat >>confdefs.h <<\_ACEOF
16328 @%:@define DISABLE_UTMP 1
16334 if test -n "$conf_utmp_location"; then
16335 cat >>confdefs.h <<_ACEOF
16336 @%:@define CONF_UTMP_FILE "$conf_utmp_location"
16341 echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
16342 echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
16343 cat >conftest.$ac_ext <<_ACEOF
16344 #line $LINENO "configure"
16345 #include "confdefs.h"
16347 #include <sys/types.h>
16349 #ifdef HAVE_PATHS_H
16350 # include <paths.h>
16353 #ifdef F77_DUMMY_MAIN
16354 # ifdef __cplusplus
16357 int F77_DUMMY_MAIN() { return 1; }
16362 char *wtmp = WTMP_FILE;
16367 rm -f conftest.$ac_objext
16368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16369 (eval $ac_compile) 2>&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } &&
16373 { ac_try='test -s conftest.$ac_objext'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 echo "$as_me:$LINENO: result: yes" >&5
16380 echo "${ECHO_T}yes" >&6
16382 echo "$as_me: failed program was:" >&5
16383 cat conftest.$ac_ext >&5
16384 echo "$as_me:$LINENO: result: no" >&5
16385 echo "${ECHO_T}no" >&6
16386 system_wtmp_path=no
16389 rm -f conftest.$ac_objext conftest.$ac_ext
16390 if test -z "$conf_wtmp_location"; then
16391 if test x"$system_wtmp_path" = x"no" ; then
16392 for f in /usr/adm/wtmp /var/log/wtmp; do
16393 if test -f $f ; then
16394 conf_wtmp_location=$f
16397 if test -z "$conf_wtmp_location"; then
16398 cat >>confdefs.h <<\_ACEOF
16399 @%:@define DISABLE_WTMP 1
16405 if test -n "$conf_wtmp_location"; then
16406 cat >>confdefs.h <<_ACEOF
16407 @%:@define CONF_WTMP_FILE "$conf_wtmp_location"
16413 echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
16414 echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
16415 cat >conftest.$ac_ext <<_ACEOF
16416 #line $LINENO "configure"
16417 #include "confdefs.h"
16419 #include <sys/types.h>
16421 #ifdef HAVE_UTMPX_H
16424 #ifdef HAVE_PATHS_H
16425 # include <paths.h>
16428 #ifdef F77_DUMMY_MAIN
16429 # ifdef __cplusplus
16432 int F77_DUMMY_MAIN() { return 1; }
16437 char *utmpx = UTMPX_FILE;
16442 rm -f conftest.$ac_objext
16443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16444 (eval $ac_compile) 2>&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
16448 { ac_try='test -s conftest.$ac_objext'
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; }; then
16454 echo "$as_me:$LINENO: result: yes" >&5
16455 echo "${ECHO_T}yes" >&6
16457 echo "$as_me: failed program was:" >&5
16458 cat conftest.$ac_ext >&5
16459 echo "$as_me:$LINENO: result: no" >&5
16460 echo "${ECHO_T}no" >&6
16461 system_utmpx_path=no
16464 rm -f conftest.$ac_objext conftest.$ac_ext
16465 if test -z "$conf_utmpx_location"; then
16466 if test x"$system_utmpx_path" = x"no" ; then
16467 cat >>confdefs.h <<\_ACEOF
16468 @%:@define DISABLE_UTMPX 1
16473 cat >>confdefs.h <<_ACEOF
16474 @%:@define CONF_UTMPX_FILE "$conf_utmpx_location"
16479 echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
16480 echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
16481 cat >conftest.$ac_ext <<_ACEOF
16482 #line $LINENO "configure"
16483 #include "confdefs.h"
16485 #include <sys/types.h>
16487 #ifdef HAVE_UTMPX_H
16490 #ifdef HAVE_PATHS_H
16491 # include <paths.h>
16494 #ifdef F77_DUMMY_MAIN
16495 # ifdef __cplusplus
16498 int F77_DUMMY_MAIN() { return 1; }
16503 char *wtmpx = WTMPX_FILE;
16508 rm -f conftest.$ac_objext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16510 (eval $ac_compile) 2>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try='test -s conftest.$ac_objext'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 echo "$as_me:$LINENO: result: yes" >&5
16521 echo "${ECHO_T}yes" >&6
16523 echo "$as_me: failed program was:" >&5
16524 cat conftest.$ac_ext >&5
16525 echo "$as_me:$LINENO: result: no" >&5
16526 echo "${ECHO_T}no" >&6
16527 system_wtmpx_path=no
16530 rm -f conftest.$ac_objext conftest.$ac_ext
16531 if test -z "$conf_wtmpx_location"; then
16532 if test x"$system_wtmpx_path" = x"no" ; then
16533 cat >>confdefs.h <<\_ACEOF
16534 @%:@define DISABLE_WTMPX 1
16539 cat >>confdefs.h <<_ACEOF
16540 @%:@define CONF_WTMPX_FILE "$conf_wtmpx_location"
16546 if test ! -z "$blibpath" ; then
16547 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
16548 { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5
16549 echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;}
16552 if test "$PAM_MSG" = yes ; then
16553 LIBS=`echo $LIBS | sed 's/-lpam //'`
16555 if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
16556 LIBS=`echo $LIBS | sed 's/-ldl //'`
16560 ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
16562 cat >confcache <<\_ACEOF
16563 # This file is a shell script that caches the results of configure
16564 # tests run on this system so they can be shared between configure
16565 # scripts and configure runs, see configure's option --config-cache.
16566 # It is not useful on other systems. If it contains results you don't
16567 # want to keep, you may remove or edit it.
16569 # config.status only pays attention to the cache file if you give it
16570 # the --recheck option to rerun configure.
16572 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16573 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16574 # following values.
16578 # The following way of writing the cache mishandles newlines in values,
16579 # but we know of no workaround that is simple, portable, and efficient.
16580 # So, don't put newlines in cache variables' values.
16581 # Ultrix sh set writes to stderr and can't be redirected directly,
16582 # and sets the high bit in the cache file unless we assign to the vars.
16585 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16587 # `set' does not quote correctly, so add quotes (double-quote
16588 # substitution turns \\\\ into \\, and sed turns \\ into \).
16591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16594 # `set' quotes correctly as required by POSIX, so do not add quotes.
16596 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16603 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16605 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16607 if cmp -s $cache_file confcache; then :; else
16608 if test -w $cache_file; then
16609 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16610 cat confcache >$cache_file
16612 echo "not updating unwritable cache $cache_file"
16617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16618 # Let make expand exec_prefix.
16619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16621 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16622 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16623 # trailing colons and then remove the whole line if VPATH becomes empty
16624 # (actually we leave an empty line to preserve line numbers).
16625 if test "x$srcdir" = x.; then
16626 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16627 s/:*\$(srcdir):*/:/;
16628 s/:*\${srcdir}:*/:/;
16630 s/^\([^=]*=[ ]*\):*/\1/;
16636 DEFS=-DHAVE_CONFIG_H
16639 : ${CONFIG_STATUS=./config.status}
16640 ac_clean_files_save=$ac_clean_files
16641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16642 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16643 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16644 cat >$CONFIG_STATUS <<_ACEOF
16646 # Generated by $as_me.
16647 # Run this file to recreate the current configuration.
16648 # Compiler output produced by configure, useful for debugging
16649 # configure, is in config.log if it exists.
16652 SHELL=\${CONFIG_SHELL-$SHELL}
16655 cat >>$CONFIG_STATUS <<\_ACEOF
16657 ## --------------------- ##
16658 ## M4sh Initialization. ##
16659 ## --------------------- ##
16661 # Be Bourne compatible
16662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16665 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16670 # Support unset when possible.
16671 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16677 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16678 { $as_unset LANG || test "${LANG+set}" != set; } ||
16679 { LANG=C; export LANG; }
16680 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16681 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16682 { LC_ALL=C; export LC_ALL; }
16683 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16684 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16685 { LC_TIME=C; export LC_TIME; }
16686 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16687 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16688 { LC_CTYPE=C; export LC_CTYPE; }
16689 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16690 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16691 { LANGUAGE=C; export LANGUAGE; }
16692 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16693 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16694 { LC_COLLATE=C; export LC_COLLATE; }
16695 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16696 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16697 { LC_NUMERIC=C; export LC_NUMERIC; }
16698 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16699 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16700 { LC_MESSAGES=C; export LC_MESSAGES; }
16703 # Name of the executable.
16704 as_me=`(basename "$0") 2>/dev/null ||
16705 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16706 X"$0" : 'X\(//\)$' \| \
16707 X"$0" : 'X\(/\)$' \| \
16708 . : '\(.\)' 2>/dev/null ||
16710 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16711 /^X\/\(\/\/\)$/{ s//\1/; q; }
16712 /^X\/\(\/\).*/{ s//\1/; q; }
16715 # PATH needs CR, and LINENO needs CR and PATH.
16716 # Avoid depending upon Character Ranges.
16717 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16718 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16719 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16720 as_cr_digits='0123456789'
16721 as_cr_alnum=$as_cr_Letters$as_cr_digits
16723 # The user is always right.
16724 if test "${PATH_SEPARATOR+set}" != set; then
16725 echo "#! /bin/sh" >conftest.sh
16726 echo "exit 0" >>conftest.sh
16727 chmod +x conftest.sh
16728 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16737 as_lineno_1=$LINENO
16738 as_lineno_2=$LINENO
16739 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16740 test "x$as_lineno_1" != "x$as_lineno_2" &&
16741 test "x$as_lineno_3" = "x$as_lineno_2" || {
16742 # Find who we are. Look in the path if we contain no path at all
16745 *[\\/]* ) as_myself=$0 ;;
16746 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16747 for as_dir in $PATH
16750 test -z "$as_dir" && as_dir=.
16751 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16756 # We did not find ourselves, most probably we were run as `sh COMMAND'
16757 # in which case we are not to be found in the path.
16758 if test "x$as_myself" = x; then
16761 if test ! -f "$as_myself"; then
16762 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16763 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16764 { (exit 1); exit 1; }; }
16766 case $CONFIG_SHELL in
16768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16769 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16772 test -z "$as_dir" && as_dir=.
16773 for as_base in sh bash ksh sh5; do
16776 if ("$as_dir/$as_base" -c '
16777 as_lineno_1=$LINENO
16778 as_lineno_2=$LINENO
16779 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16780 test "x$as_lineno_1" != "x$as_lineno_2" &&
16781 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16782 CONFIG_SHELL=$as_dir/$as_base
16783 export CONFIG_SHELL
16784 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16792 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16793 # uniformly replaced by the line number. The first 'sed' inserts a
16794 # line-number line before each line; the second 'sed' does the real
16795 # work. The second script uses 'N' to pair each line-number line
16796 # with the numbered line, and appends trailing '-' during
16797 # substitution so that $LINENO is not a special case at line end.
16798 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16799 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16800 sed '=' <$as_myself |
16805 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16808 s,^['$as_cr_digits']*\n,,
16809 ' >$as_me.lineno &&
16810 chmod +x $as_me.lineno ||
16811 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16812 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16813 { (exit 1); exit 1; }; }
16815 # Don't try to exec as it changes $[0], causing all sort of problems
16816 # (the dirname of $[0] is not the place where we might find the
16817 # original and so on. Autoconf is especially sensible to this).
16819 # Exit status is that of the last command.
16824 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16825 *c*,-n*) ECHO_N= ECHO_C='
16827 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16828 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16831 if expr a : '\(a\)' >/dev/null 2>&1; then
16837 rm -f conf$$ conf$$.exe conf$$.file
16839 if ln -s conf$$.file conf$$ 2>/dev/null; then
16840 # We could just check for DJGPP; but this test a) works b) is more generic
16841 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16842 if test -f conf$$.exe; then
16843 # Don't use ln at all; we don't have any links
16848 elif ln conf$$.file conf$$ 2>/dev/null; then
16853 rm -f conf$$ conf$$.exe conf$$.file
16855 as_executable_p="test -f"
16857 # Sed expression to map a string onto a valid CPP name.
16858 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16860 # Sed expression to map a string onto a valid variable name.
16861 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16865 # We need space, tab and new line, in precisely that order.
16871 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16875 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16876 # report actual input values of CONFIG_FILES etc. instead of their
16877 # values after options handling. Logging --version etc. is OK.
16881 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16882 @%:@@%:@ Running $as_me. @%:@@%:@
16887 This file was extended by $as_me, which was
16888 generated by GNU Autoconf 2.53. Invocation command line was
16890 CONFIG_FILES = $CONFIG_FILES
16891 CONFIG_HEADERS = $CONFIG_HEADERS
16892 CONFIG_LINKS = $CONFIG_LINKS
16893 CONFIG_COMMANDS = $CONFIG_COMMANDS
16897 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16901 # Files that config.status was made for.
16902 if test -n "$ac_config_files"; then
16903 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16906 if test -n "$ac_config_headers"; then
16907 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16910 if test -n "$ac_config_links"; then
16911 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16914 if test -n "$ac_config_commands"; then
16915 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16918 cat >>$CONFIG_STATUS <<\_ACEOF
16921 \`$as_me' instantiates files from templates according to the
16922 current configuration.
16924 Usage: $0 [OPTIONS] [FILE]...
16926 -h, --help print this help, then exit
16927 -V, --version print version number, then exit
16928 -d, --debug don't remove temporary files
16929 --recheck update $as_me by reconfiguring in the same conditions
16930 --file=FILE[:TEMPLATE]
16931 instantiate the configuration file FILE
16932 --header=FILE[:TEMPLATE]
16933 instantiate the configuration header FILE
16935 Configuration files:
16938 Configuration headers:
16941 Report bugs to <bug-autoconf@gnu.org>."
16944 cat >>$CONFIG_STATUS <<_ACEOF
16947 configured by $0, generated by GNU Autoconf 2.53,
16948 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16950 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16951 Free Software Foundation, Inc.
16952 This config.status script is free software; the Free Software Foundation
16953 gives unlimited permission to copy, distribute and modify it."
16958 cat >>$CONFIG_STATUS <<\_ACEOF
16959 # If no file are specified by the user, then we need to provide default
16960 # value. By we need to know if files were specified by the user.
16966 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16967 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16969 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16973 *) # This is not an option, so the user has probably given explicit
16975 ac_need_defaults=false;;
16979 # Handling of the options.
16981 cat >>$CONFIG_STATUS <<_ACEOF
16982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16983 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16984 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16986 cat >>$CONFIG_STATUS <<\_ACEOF
16987 --version | --vers* | -V )
16988 echo "$ac_cs_version"; exit 0 ;;
16990 # Conflict between --help and --header
16991 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16992 Try \`$0 --help' for more information." >&5
16993 echo "$as_me: error: ambiguous option: $1
16994 Try \`$0 --help' for more information." >&2;}
16995 { (exit 1); exit 1; }; };;
16996 --help | --hel | -h )
16997 echo "$ac_cs_usage"; exit 0 ;;
16998 --debug | --d* | -d )
17000 --file | --fil | --fi | --f )
17002 CONFIG_FILES="$CONFIG_FILES $1"
17003 ac_need_defaults=false;;
17004 --header | --heade | --head | --hea )
17006 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17007 ac_need_defaults=false;;
17009 # This is an error.
17010 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17011 Try \`$0 --help' for more information." >&5
17012 echo "$as_me: error: unrecognized option: $1
17013 Try \`$0 --help' for more information." >&2;}
17014 { (exit 1); exit 1; }; } ;;
17016 *) ac_config_targets="$ac_config_targets $1" ;;
17028 cat >>$CONFIG_STATUS <<\_ACEOF
17029 for ac_config_target in $ac_config_targets
17031 case "$ac_config_target" in
17032 # Handling of arguments.
17033 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17034 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17035 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
17036 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
17037 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17038 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17039 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17040 { (exit 1); exit 1; }; };;
17044 # If the user did not use the arguments to specify the items to instantiate,
17045 # then the envvar interface is used. Set only those that are not.
17046 # We use the long form for the default assignment because of an extremely
17047 # bizarre bug on SunOS 4.1.3.
17048 if $ac_need_defaults; then
17049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17053 # Create a temporary directory, and hook for its removal unless debugging.
17056 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17057 trap '{ (exit 1); exit 1; }' 1 2 13 15
17060 # Create a (secure) tmp directory for tmp files.
17063 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17064 test -n "$tmp" && test -d "$tmp"
17067 tmp=$TMPDIR/cs$$-$RANDOM
17068 (umask 077 && mkdir $tmp)
17071 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17072 { (exit 1); exit 1; }
17077 cat >>$CONFIG_STATUS <<_ACEOF
17080 # CONFIG_FILES section.
17083 # No need to generate the scripts if there are no CONFIG_FILES.
17084 # This happens for instance when ./config.status config.h
17085 if test -n "\$CONFIG_FILES"; then
17086 # Protect against being on the right side of a sed subst in config.status.
17087 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17088 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17089 s,@SHELL@,$SHELL,;t t
17090 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17091 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17092 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17093 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17094 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17095 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17096 s,@exec_prefix@,$exec_prefix,;t t
17097 s,@prefix@,$prefix,;t t
17098 s,@program_transform_name@,$program_transform_name,;t t
17099 s,@bindir@,$bindir,;t t
17100 s,@sbindir@,$sbindir,;t t
17101 s,@libexecdir@,$libexecdir,;t t
17102 s,@datadir@,$datadir,;t t
17103 s,@sysconfdir@,$sysconfdir,;t t
17104 s,@sharedstatedir@,$sharedstatedir,;t t
17105 s,@localstatedir@,$localstatedir,;t t
17106 s,@libdir@,$libdir,;t t
17107 s,@includedir@,$includedir,;t t
17108 s,@oldincludedir@,$oldincludedir,;t t
17109 s,@infodir@,$infodir,;t t
17110 s,@mandir@,$mandir,;t t
17111 s,@build_alias@,$build_alias,;t t
17112 s,@host_alias@,$host_alias,;t t
17113 s,@target_alias@,$target_alias,;t t
17114 s,@DEFS@,$DEFS,;t t
17115 s,@ECHO_C@,$ECHO_C,;t t
17116 s,@ECHO_N@,$ECHO_N,;t t
17117 s,@ECHO_T@,$ECHO_T,;t t
17118 s,@LIBS@,$LIBS,;t t
17120 s,@CFLAGS@,$CFLAGS,;t t
17121 s,@LDFLAGS@,$LDFLAGS,;t t
17122 s,@CPPFLAGS@,$CPPFLAGS,;t t
17123 s,@ac_ct_CC@,$ac_ct_CC,;t t
17124 s,@EXEEXT@,$EXEEXT,;t t
17125 s,@OBJEXT@,$OBJEXT,;t t
17126 s,@build@,$build,;t t
17127 s,@build_cpu@,$build_cpu,;t t
17128 s,@build_vendor@,$build_vendor,;t t
17129 s,@build_os@,$build_os,;t t
17130 s,@host@,$host,;t t
17131 s,@host_cpu@,$host_cpu,;t t
17132 s,@host_vendor@,$host_vendor,;t t
17133 s,@host_os@,$host_os,;t t
17135 s,@RANLIB@,$RANLIB,;t t
17136 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17137 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17138 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17139 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17141 s,@PERL@,$PERL,;t t
17143 s,@FILEPRIV@,$FILEPRIV,;t t
17144 s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
17146 s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
17148 s,@LIBWRAP@,$LIBWRAP,;t t
17149 s,@LIBPAM@,$LIBPAM,;t t
17150 s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
17151 s,@PROG_LS@,$PROG_LS,;t t
17152 s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
17153 s,@PROG_ARP@,$PROG_ARP,;t t
17154 s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17155 s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17156 s,@PROG_PS@,$PROG_PS,;t t
17157 s,@PROG_SAR@,$PROG_SAR,;t t
17158 s,@PROG_W@,$PROG_W,;t t
17159 s,@PROG_WHO@,$PROG_WHO,;t t
17160 s,@PROG_LAST@,$PROG_LAST,;t t
17161 s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17162 s,@PROG_DF@,$PROG_DF,;t t
17163 s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17164 s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17165 s,@PROG_IPCS@,$PROG_IPCS,;t t
17166 s,@PROG_TAIL@,$PROG_TAIL,;t t
17167 s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17168 s,@NO_SFTP@,$NO_SFTP,;t t
17169 s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17170 s,@rsh_path@,$rsh_path,;t t
17171 s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17172 s,@xauth_path@,$xauth_path,;t t
17173 s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17174 s,@NROFF@,$NROFF,;t t
17175 s,@MANTYPE@,$MANTYPE,;t t
17176 s,@mansubdir@,$mansubdir,;t t
17177 s,@user_path@,$user_path,;t t
17178 s,@SSHMODE@,$SSHMODE,;t t
17179 s,@piddir@,$piddir,;t t
17184 cat >>$CONFIG_STATUS <<\_ACEOF
17185 # Split the substitutions into bite-sized pieces for seds with
17186 # small command number limits, like on Digital OSF/1 and HP-UX.
17187 ac_max_sed_lines=48
17188 ac_sed_frag=1 # Number of current file.
17189 ac_beg=1 # First line for current file.
17190 ac_end=$ac_max_sed_lines # Line after last line for current file.
17193 while $ac_more_lines; do
17194 if test $ac_beg -gt 1; then
17195 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17197 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17199 if test ! -s $tmp/subs.frag; then
17200 ac_more_lines=false
17202 # The purpose of the label and of the branching condition is to
17203 # speed up the sed processing (if there are no `@' at all, there
17204 # is no need to browse any of the substitutions).
17205 # These are the two extra sed commands mentioned above.
17207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17208 if test -z "$ac_sed_cmds"; then
17209 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17211 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17213 ac_sed_frag=`expr $ac_sed_frag + 1`
17215 ac_end=`expr $ac_end + $ac_max_sed_lines`
17218 if test -z "$ac_sed_cmds"; then
17221 fi # test -n "$CONFIG_FILES"
17224 cat >>$CONFIG_STATUS <<\_ACEOF
17225 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17228 - | *:- | *:-:* ) # input from stdin
17230 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17232 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17234 * ) ac_file_in=$ac_file.in ;;
17237 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17238 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17240 X"$ac_file" : 'X\(//\)[^/]' \| \
17241 X"$ac_file" : 'X\(//\)$' \| \
17242 X"$ac_file" : 'X\(/\)' \| \
17243 . : '\(.\)' 2>/dev/null ||
17245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17247 /^X\(\/\/\)$/{ s//\1/; q; }
17248 /^X\(\/\).*/{ s//\1/; q; }
17250 { case "$ac_dir" in
17251 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17255 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17256 case $as_mkdir_dir in
17257 # Skip DOS drivespec
17258 ?:) as_incr_dir=$as_mkdir_dir ;;
17260 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17261 test -d "$as_incr_dir" ||
17262 mkdir "$as_incr_dir" ||
17263 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17264 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17265 { (exit 1); exit 1; }; }
17272 if test "$ac_dir" != .; then
17273 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17274 # A "../" for each directory in $ac_dir_suffix.
17275 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17277 ac_dir_suffix= ac_top_builddir=
17281 .) # No --srcdir option. We are building in place.
17283 if test -z "$ac_top_builddir"; then
17286 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17288 [\\/]* | ?:[\\/]* ) # Absolute path.
17289 ac_srcdir=$srcdir$ac_dir_suffix;
17290 ac_top_srcdir=$srcdir ;;
17291 *) # Relative path.
17292 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17293 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17295 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17297 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17298 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17299 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17300 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17304 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17305 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17308 if test x"$ac_file" != x-; then
17309 { echo "$as_me:$LINENO: creating $ac_file" >&5
17310 echo "$as_me: creating $ac_file" >&6;}
17313 # Let's still pretend it is `configure' which instantiates (i.e., don't
17314 # use $as_me), people would be surprised to read:
17315 # /* config.h. Generated by config.status. */
17316 if test x"$ac_file" = x-; then
17319 configure_input="$ac_file. "
17321 configure_input=$configure_input"Generated from `echo $ac_file_in |
17322 sed 's,.*/,,'` by configure."
17324 # First look for the input files in the build tree, otherwise in the
17326 ac_file_inputs=`IFS=:
17327 for f in $ac_file_in; do
17329 -) echo $tmp/stdin ;;
17331 # Absolute (can't be DOS-style, as IFS=:)
17332 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17333 echo "$as_me: error: cannot find input file: $f" >&2;}
17334 { (exit 1); exit 1; }; }
17337 if test -f "$f"; then
17340 elif test -f "$srcdir/$f"; then
17345 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17346 echo "$as_me: error: cannot find input file: $f" >&2;}
17347 { (exit 1); exit 1; }; }
17350 done` || { (exit 1); exit 1; }
17352 cat >>$CONFIG_STATUS <<_ACEOF
17356 cat >>$CONFIG_STATUS <<\_ACEOF
17358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17359 s,@configure_input@,$configure_input,;t t
17360 s,@srcdir@,$ac_srcdir,;t t
17361 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17362 s,@top_srcdir@,$ac_top_srcdir,;t t
17363 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17364 s,@builddir@,$ac_builddir,;t t
17365 s,@abs_builddir@,$ac_abs_builddir,;t t
17366 s,@top_builddir@,$ac_top_builddir,;t t
17367 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17368 s,@INSTALL@,$ac_INSTALL,;t t
17369 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17371 if test x"$ac_file" != x-; then
17372 mv $tmp/out $ac_file
17380 cat >>$CONFIG_STATUS <<\_ACEOF
17383 # CONFIG_HEADER section.
17386 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17387 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17389 # ac_d sets the value in "#define NAME VALUE" lines.
17390 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17391 ac_dB='[ ].*$,\1#\2'
17394 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17395 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17396 ac_uB='$,\1#\2define\3'
17400 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17401 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17403 - | *:- | *:-:* ) # input from stdin
17405 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17406 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17407 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17408 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17409 * ) ac_file_in=$ac_file.in ;;
17412 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17413 echo "$as_me: creating $ac_file" >&6;}
17415 # First look for the input files in the build tree, otherwise in the
17417 ac_file_inputs=`IFS=:
17418 for f in $ac_file_in; do
17420 -) echo $tmp/stdin ;;
17422 # Absolute (can't be DOS-style, as IFS=:)
17423 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17424 echo "$as_me: error: cannot find input file: $f" >&2;}
17425 { (exit 1); exit 1; }; }
17428 if test -f "$f"; then
17431 elif test -f "$srcdir/$f"; then
17436 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17437 echo "$as_me: error: cannot find input file: $f" >&2;}
17438 { (exit 1); exit 1; }; }
17441 done` || { (exit 1); exit 1; }
17442 # Remove the trailing spaces.
17443 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17447 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17448 # `conftest.undefs', that substitutes the proper values into
17449 # config.h.in to produce config.h. The first handles `#define'
17450 # templates, and the second `#undef' templates.
17451 # And first: Protect against being on the right side of a sed subst in
17452 # config.status. Protect against being in an unquoted here document
17453 # in config.status.
17454 rm -f conftest.defines conftest.undefs
17455 # Using a here document instead of a string reduces the quoting nightmare.
17456 # Putting comments in sed scripts is not portable.
17458 # `end' is used to avoid that the second main sed command (meant for
17459 # 0-ary CPP macros) applies to n-ary macro definitions.
17460 # See the Autoconf documentation for `clear'.
17461 cat >confdef2sed.sed <<\_ACEOF
17466 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17468 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17471 # If some macros were called several times there might be several times
17472 # the same #defines, which is useless. Nevertheless, we may not want to
17473 # sort them, since we want the *last* AC-DEFINE to be honored.
17474 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17475 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17476 rm -f confdef2sed.sed
17478 # This sed command replaces #undef with comments. This is necessary, for
17479 # example, in the case of _POSIX_SOURCE, which is predefined and required
17480 # on some systems where configure will not decide to define it.
17481 cat >>conftest.undefs <<\_ACEOF
17482 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17485 # Break up conftest.defines because some shells have a limit on the size
17486 # of here documents, and old seds have small limits too (100 cmds).
17487 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17488 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17489 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17490 echo ' :' >>$CONFIG_STATUS
17491 rm -f conftest.tail
17492 while grep . conftest.defines >/dev/null
17494 # Write a limited-size here document to $tmp/defines.sed.
17495 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17496 # Speed up: don't consider the non `#define' lines.
17497 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17498 # Work around the forget-to-reset-the-flag bug.
17499 echo 't clr' >>$CONFIG_STATUS
17500 echo ': clr' >>$CONFIG_STATUS
17501 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17503 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17505 mv $tmp/out $tmp/in
17507 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17508 rm -f conftest.defines
17509 mv conftest.tail conftest.defines
17511 rm -f conftest.defines
17512 echo ' fi # egrep' >>$CONFIG_STATUS
17513 echo >>$CONFIG_STATUS
17515 # Break up conftest.undefs because some shells have a limit on the size
17516 # of here documents, and old seds have small limits too (100 cmds).
17517 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17518 rm -f conftest.tail
17519 while grep . conftest.undefs >/dev/null
17521 # Write a limited-size here document to $tmp/undefs.sed.
17522 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17523 # Speed up: don't consider the non `#undef'
17524 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17525 # Work around the forget-to-reset-the-flag bug.
17526 echo 't clr' >>$CONFIG_STATUS
17527 echo ': clr' >>$CONFIG_STATUS
17528 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17530 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17532 mv $tmp/out $tmp/in
17534 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17535 rm -f conftest.undefs
17536 mv conftest.tail conftest.undefs
17538 rm -f conftest.undefs
17540 cat >>$CONFIG_STATUS <<\_ACEOF
17541 # Let's still pretend it is `configure' which instantiates (i.e., don't
17542 # use $as_me), people would be surprised to read:
17543 # /* config.h. Generated by config.status. */
17544 if test x"$ac_file" = x-; then
17545 echo "/* Generated by configure. */" >$tmp/config.h
17547 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17549 cat $tmp/in >>$tmp/config.h
17551 if test x"$ac_file" != x-; then
17552 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17553 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17554 echo "$as_me: $ac_file is unchanged" >&6;}
17556 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17558 X"$ac_file" : 'X\(//\)[^/]' \| \
17559 X"$ac_file" : 'X\(//\)$' \| \
17560 X"$ac_file" : 'X\(/\)' \| \
17561 . : '\(.\)' 2>/dev/null ||
17563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17565 /^X\(\/\/\)$/{ s//\1/; q; }
17566 /^X\(\/\).*/{ s//\1/; q; }
17568 { case "$ac_dir" in
17569 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17573 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17574 case $as_mkdir_dir in
17575 # Skip DOS drivespec
17576 ?:) as_incr_dir=$as_mkdir_dir ;;
17578 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17579 test -d "$as_incr_dir" ||
17580 mkdir "$as_incr_dir" ||
17581 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17582 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17583 { (exit 1); exit 1; }; }
17589 mv $tmp/config.h $ac_file
17593 rm -f $tmp/config.h
17598 cat >>$CONFIG_STATUS <<\_ACEOF
17600 { (exit 0); exit 0; }
17602 chmod +x $CONFIG_STATUS
17603 ac_clean_files=$ac_clean_files_save
17606 # configure is writing to config.log, and then calls config.status.
17607 # config.status does its own redirection, appending to config.log.
17608 # Unfortunately, on DOS this fails, as config.log is still kept open
17609 # by configure, so config.status won't be able to write to it; its
17610 # output is simply discarded. So we exec the FD to /dev/null,
17611 # effectively closing config.log, so it can be properly (re)opened and
17612 # appended to by config.status. When coming back to configure, we
17613 # need to make the FD available again.
17614 if test "$no_create" != yes; then
17617 $SHELL $CONFIG_STATUS || ac_cs_success=false
17619 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17620 # would make configure fail if this is the last instruction.
17621 $ac_cs_success || { (exit 1); exit 1; }
17625 # Print summary of options
17627 # Someone please show me a better way :)
17628 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17629 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17630 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17631 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17632 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17633 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17634 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17635 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17636 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17637 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17640 echo "OpenSSH has been configured with the following options:"
17641 echo " User binaries: $B"
17642 echo " System binaries: $C"
17643 echo " Configuration files: $D"
17644 echo " Askpass program: $E"
17645 echo " Manual pages: $F"
17646 echo " PID file: $G"
17647 echo " Privilege separation chroot path: $H"
17648 if test "$USES_LOGIN_CONF" = "yes" ; then
17649 echo " At runtime, sshd will use the path defined in /etc/login.conf"
17651 echo " sshd default user PATH: $I"
17653 if test ! -z "$superuser_path" ; then
17654 echo " sshd superuser user PATH: $J"
17656 echo " Manpage format: $MANTYPE"
17657 echo " PAM support: ${PAM_MSG}"
17658 echo " KerberosIV support: $KRB4_MSG"
17659 echo " KerberosV support: $KRB5_MSG"
17660 echo " Smartcard support: $SCARD_MSG"
17661 echo " AFS support: $AFS_MSG"
17662 echo " S/KEY support: $SKEY_MSG"
17663 echo " TCP Wrappers support: $TCPW_MSG"
17664 echo " MD5 password support: $MD5_MSG"
17665 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17666 echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
17667 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17668 echo " BSD Auth support: $BSD_AUTH_MSG"
17669 echo " Random number source: $RAND_MSG"
17670 if test ! -z "$USE_RAND_HELPER" ; then
17671 echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
17676 echo " Host: ${host}"
17677 echo " Compiler: ${CC}"
17678 echo " Compiler flags: ${CFLAGS}"
17679 echo "Preprocessor flags: ${CPPFLAGS}"
17680 echo " Linker flags: ${LDFLAGS}"
17681 echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
17685 if test "x$PAM_MSG" = "xyes" ; then
17686 echo "PAM is enabled. You may need to install a PAM control file "
17687 echo "for sshd, otherwise password authentication may fail. "
17688 echo "Example PAM control files can be found in the contrib/ "
17689 echo "subdirectory"
17693 if test ! -z "$NO_SFTP"; then
17694 echo "sftp-server will be disabled. Your compiler does not "
17695 echo "support 64bit integers."
17699 if test ! -z "$RAND_HELPER_CMDHASH" ; then
17700 echo "WARNING: you are using the builtin random number collection "
17701 echo "service. Please read WARNING.RNG and request that your OS "
17702 echo "vendor includes kernel-based random number collection in "
17703 echo "future versions of your OS."