]> andersk Git - gssapi-openssh.git/blob - openssh/configure
The man2html from jbasney on pkilab2 works whereas the standard one doesn't.
[gssapi-openssh.git] / openssh / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.367 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60 for OpenSSH Portable.
5 #
6 # Report bugs to <openssh-unix-dev@mindrot.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 fi
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41   echo "#! /bin/sh" >conf$$.sh
42   echo  "exit 0"   >>conf$$.sh
43   chmod +x conf$$.sh
44   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45     PATH_SEPARATOR=';'
46   else
47     PATH_SEPARATOR=:
48   fi
49   rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54   as_unset=unset
55 else
56   as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order.  Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" ""        $as_nl"
68
69 # Find who we are.  Look in the path if we contain no directory separator.
70 case $0 in
71   *[\\/]* ) as_myself=$0 ;;
72   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75   IFS=$as_save_IFS
76   test -z "$as_dir" && as_dir=.
77   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81      ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86   as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90   { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105   LC_TELEPHONE LC_TIME
106 do
107   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108     eval $as_var=C; export $as_var
109   else
110     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111   fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116    test "X`expr 00001 : '.*\(...\)'`" = X001; then
117   as_expr=expr
118 else
119   as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123   as_basename=basename
124 else
125   as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132          X"$0" : 'X\(//\)$' \| \
133          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135     sed '/^.*\/\([^/][^/]*\)\/*$/{
136             s//\1/
137             q
138           }
139           /^X\/\(\/\/\)$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\).*/{
144             s//\1/
145             q
146           }
147           s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154   if (eval ":") 2>/dev/null; then
155   as_have_required=yes
156 else
157   as_have_required=no
158 fi
159
160   if test $as_have_required = yes &&     (eval ":
161 (as_func_return () {
162   (exit \$1)
163 }
164 as_func_success () {
165   as_func_return 0
166 }
167 as_func_failure () {
168   as_func_return 1
169 }
170 as_func_ret_success () {
171   return 0
172 }
173 as_func_ret_failure () {
174   return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179   :
180 else
181   exitcode=1
182   echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186   exitcode=1
187   echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191   :
192 else
193   exitcode=1
194   echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198   exitcode=1
199   echo as_func_ret_failure succeeded.
200 fi
201
202 if (set x; as_func_ret_success y && test x = \"\$1\" ); then
203   :
204 else
205   exitcode=1
206   echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212   as_lineno_1=\$LINENO
213   as_lineno_2=\$LINENO
214   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217   :
218 else
219   as_candidate_shells=
220     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223   IFS=$as_save_IFS
224   test -z "$as_dir" && as_dir=.
225   case $as_dir in
226          /*)
227            for as_base in sh bash ksh sh5; do
228              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229            done;;
230        esac
231 done
232 IFS=$as_save_IFS
233
234
235       for as_shell in $as_candidate_shells $SHELL; do
236          # Try only shells that exist, to save several forks.
237          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238                 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 fi
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
252
253 :
254 _ASEOF
255 }; then
256   CONFIG_SHELL=$as_shell
257                as_have_required=yes
258                if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261   emulate sh
262   NULLCMD=:
263   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264   # is contrary to our usage.  Disable this feature.
265   alias -g '${1+"$@"}'='"$@"'
266   setopt NO_GLOB_SUBST
267 else
268   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 fi
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
272
273 :
274 (as_func_return () {
275   (exit $1)
276 }
277 as_func_success () {
278   as_func_return 0
279 }
280 as_func_failure () {
281   as_func_return 1
282 }
283 as_func_ret_success () {
284   return 0
285 }
286 as_func_ret_failure () {
287   return 1
288 }
289
290 exitcode=0
291 if as_func_success; then
292   :
293 else
294   exitcode=1
295   echo as_func_success failed.
296 fi
297
298 if as_func_failure; then
299   exitcode=1
300   echo as_func_failure succeeded.
301 fi
302
303 if as_func_ret_success; then
304   :
305 else
306   exitcode=1
307   echo as_func_ret_success failed.
308 fi
309
310 if as_func_ret_failure; then
311   exitcode=1
312   echo as_func_ret_failure succeeded.
313 fi
314
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
316   :
317 else
318   exitcode=1
319   echo positional parameters were not saved.
320 fi
321
322 test $exitcode = 0) || { (exit 1); exit 1; }
323
324 (
325   as_lineno_1=$LINENO
326   as_lineno_2=$LINENO
327   test "x$as_lineno_1" != "x$as_lineno_2" &&
328   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330 _ASEOF
331 }; then
332   break
333 fi
334
335 fi
336
337       done
338
339       if test "x$CONFIG_SHELL" != x; then
340   for as_var in BASH_ENV ENV
341         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342         done
343         export CONFIG_SHELL
344         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 fi
346
347
348     if test $as_have_required = no; then
349   echo This script requires a shell more modern than all the
350       echo shells that I found on your system.  Please install a
351       echo modern shell, or manually run the script under such a
352       echo shell if you do have one.
353       { (exit 1); exit 1; }
354 fi
355
356
357 fi
358
359 fi
360
361
362
363 (eval "as_func_return () {
364   (exit \$1)
365 }
366 as_func_success () {
367   as_func_return 0
368 }
369 as_func_failure () {
370   as_func_return 1
371 }
372 as_func_ret_success () {
373   return 0
374 }
375 as_func_ret_failure () {
376   return 1
377 }
378
379 exitcode=0
380 if as_func_success; then
381   :
382 else
383   exitcode=1
384   echo as_func_success failed.
385 fi
386
387 if as_func_failure; then
388   exitcode=1
389   echo as_func_failure succeeded.
390 fi
391
392 if as_func_ret_success; then
393   :
394 else
395   exitcode=1
396   echo as_func_ret_success failed.
397 fi
398
399 if as_func_ret_failure; then
400   exitcode=1
401   echo as_func_ret_failure succeeded.
402 fi
403
404 if (set x; as_func_ret_success y && test x = \"\$1\" ); then
405   :
406 else
407   exitcode=1
408   echo positional parameters were not saved.
409 fi
410
411 test \$exitcode = 0") || {
412   echo No shell found that supports shell functions.
413   echo Please tell autoconf@gnu.org about your system,
414   echo including any error possibly output before this
415   echo message
416 }
417
418
419
420   as_lineno_1=$LINENO
421   as_lineno_2=$LINENO
422   test "x$as_lineno_1" != "x$as_lineno_2" &&
423   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
425   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426   # uniformly replaced by the line number.  The first 'sed' inserts a
427   # line-number line after each line using $LINENO; the second 'sed'
428   # does the real work.  The second script uses 'N' to pair each
429   # line-number line with the line containing $LINENO, and appends
430   # trailing '-' during substitution so that $LINENO is not a special
431   # case at line end.
432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433   # scripts with optimization help from Paolo Bonzini.  Blame Lee
434   # E. McMahon (1931-1989) for sed's syntax.  :-)
435   sed -n '
436     p
437     /[$]LINENO/=
438   ' <$as_myself |
439     sed '
440       s/[$]LINENO.*/&-/
441       t lineno
442       b
443       :lineno
444       N
445       :loop
446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447       t loop
448       s/-\n.*//
449     ' >$as_me.lineno &&
450   chmod +x "$as_me.lineno" ||
451     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452    { (exit 1); exit 1; }; }
453
454   # Don't try to exec as it changes $[0], causing all sort of problems
455   # (the dirname of $[0] is not the place where we might find the
456   # original and so on.  Autoconf is especially sensitive to this).
457   . "./$as_me.lineno"
458   # Exit status is that of the last command.
459   exit
460 }
461
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472   case `echo 'x\c'` in
473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
474   *)   ECHO_C='\c';;
475   esac;;
476 *)
477   ECHO_N='-n';;
478 esac
479
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
482   as_expr=expr
483 else
484   as_expr=false
485 fi
486
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489   rm -f conf$$.dir/conf$$.file
490 else
491   rm -f conf$$.dir
492   mkdir conf$$.dir
493 fi
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496   as_ln_s='ln -s'
497   # ... but there are two gotchas:
498   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500   # In both cases, we have to default to `cp -p'.
501   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502     as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504   as_ln_s=ln
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p=:
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526   as_executable_p="test -x"
527 else
528   as_executable_p=:
529 fi
530 rm -f conf$$.file
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 # Identity of this package.
561 PACKAGE_NAME='OpenSSH'
562 PACKAGE_TARNAME='openssh'
563 PACKAGE_VERSION='Portable'
564 PACKAGE_STRING='OpenSSH Portable'
565 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
566
567 ac_unique_file="ssh.c"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #if HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #if HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #if STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # if HAVE_STDLIB_H
582 #  include <stdlib.h>
583 # endif
584 #endif
585 #if HAVE_STRING_H
586 # if !STDC_HEADERS && HAVE_MEMORY_H
587 #  include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #if HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #if HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #if HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #if HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_subst_vars='SHELL
605 PATH_SEPARATOR
606 PACKAGE_NAME
607 PACKAGE_TARNAME
608 PACKAGE_VERSION
609 PACKAGE_STRING
610 PACKAGE_BUGREPORT
611 exec_prefix
612 prefix
613 program_transform_name
614 bindir
615 sbindir
616 libexecdir
617 datarootdir
618 datadir
619 sysconfdir
620 sharedstatedir
621 localstatedir
622 includedir
623 oldincludedir
624 docdir
625 infodir
626 htmldir
627 dvidir
628 pdfdir
629 psdir
630 libdir
631 localedir
632 mandir
633 DEFS
634 ECHO_C
635 ECHO_N
636 ECHO_T
637 LIBS
638 build_alias
639 host_alias
640 target_alias
641 CC
642 CFLAGS
643 LDFLAGS
644 CPPFLAGS
645 ac_ct_CC
646 EXEEXT
647 OBJEXT
648 build
649 build_cpu
650 build_vendor
651 build_os
652 host
653 host_cpu
654 host_vendor
655 host_os
656 CPP
657 GREP
658 EGREP
659 AWK
660 RANLIB
661 INSTALL_PROGRAM
662 INSTALL_SCRIPT
663 INSTALL_DATA
664 AR
665 CAT
666 KILL
667 PERL
668 SED
669 ENT
670 TEST_MINUS_S_SH
671 SH
672 TEST_SHELL
673 PATH_GROUPADD_PROG
674 PATH_USERADD_PROG
675 MAKE_PACKAGE_SUPPORTED
676 STARTUP_SCRIPT_SHELL
677 LOGIN_PROGRAM_FALLBACK
678 PATH_PASSWD_PROG
679 LD
680 SSHDLIBS
681 LIBWRAP
682 LIBEDIT
683 LIBPAM
684 INSTALL_SSH_RAND_HELPER
685 SSH_PRIVSEP_USER
686 PROG_LS
687 PROG_NETSTAT
688 PROG_ARP
689 PROG_IFCONFIG
690 PROG_JSTAT
691 PROG_PS
692 PROG_SAR
693 PROG_W
694 PROG_WHO
695 PROG_LAST
696 PROG_LASTLOG
697 PROG_DF
698 PROG_VMSTAT
699 PROG_UPTIME
700 PROG_IPCS
701 PROG_TAIL
702 INSTALL_SSH_PRNG_CMDS
703 OPENSC_CONFIG
704 LIBSELINUX
705 PRIVSEP_PATH
706 xauth_path
707 STRIP_OPT
708 XAUTH_PATH
709 NROFF
710 MANTYPE
711 mansubdir
712 user_path
713 piddir
714 LIBOBJS
715 LTLIBOBJS'
716 ac_subst_files=''
717       ac_precious_vars='build_alias
718 host_alias
719 target_alias
720 CC
721 CFLAGS
722 LDFLAGS
723 CPPFLAGS
724 CPP'
725
726
727 # Initialize some variables set by options.
728 ac_init_help=
729 ac_init_version=false
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
732 cache_file=/dev/null
733 exec_prefix=NONE
734 no_create=
735 no_recursion=
736 prefix=NONE
737 program_prefix=NONE
738 program_suffix=NONE
739 program_transform_name=s,x,x,
740 silent=
741 site=
742 srcdir=
743 verbose=
744 x_includes=NONE
745 x_libraries=NONE
746
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
764 infodir='${datarootdir}/info'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
772
773 ac_prev=
774 ac_dashdash=
775 for ac_option
776 do
777   # If the previous option needs an argument, assign it.
778   if test -n "$ac_prev"; then
779     eval $ac_prev=\$ac_option
780     ac_prev=
781     continue
782   fi
783
784   case $ac_option in
785   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786   *)    ac_optarg=yes ;;
787   esac
788
789   # Accept the important Cygnus configure options, so we can diagnose typos.
790
791   case $ac_dashdash$ac_option in
792   --)
793     ac_dashdash=yes ;;
794
795   -bindir | --bindir | --bindi | --bind | --bin | --bi)
796     ac_prev=bindir ;;
797   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798     bindir=$ac_optarg ;;
799
800   -build | --build | --buil | --bui | --bu)
801     ac_prev=build_alias ;;
802   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803     build_alias=$ac_optarg ;;
804
805   -cache-file | --cache-file | --cache-fil | --cache-fi \
806   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807     ac_prev=cache_file ;;
808   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810     cache_file=$ac_optarg ;;
811
812   --config-cache | -C)
813     cache_file=config.cache ;;
814
815   -datadir | --datadir | --datadi | --datad)
816     ac_prev=datadir ;;
817   -datadir=* | --datadir=* | --datadi=* | --datad=*)
818     datadir=$ac_optarg ;;
819
820   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821   | --dataroo | --dataro | --datar)
822     ac_prev=datarootdir ;;
823   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825     datarootdir=$ac_optarg ;;
826
827   -disable-* | --disable-*)
828     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829     # Reject names that are not valid shell variable names.
830     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
831       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
832    { (exit 1); exit 1; }; }
833     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
834     eval enable_$ac_feature=no ;;
835
836   -docdir | --docdir | --docdi | --doc | --do)
837     ac_prev=docdir ;;
838   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839     docdir=$ac_optarg ;;
840
841   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842     ac_prev=dvidir ;;
843   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844     dvidir=$ac_optarg ;;
845
846   -enable-* | --enable-*)
847     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848     # Reject names that are not valid shell variable names.
849     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
850       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
851    { (exit 1); exit 1; }; }
852     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
853     eval enable_$ac_feature=\$ac_optarg ;;
854
855   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
856   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
857   | --exec | --exe | --ex)
858     ac_prev=exec_prefix ;;
859   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
860   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
861   | --exec=* | --exe=* | --ex=*)
862     exec_prefix=$ac_optarg ;;
863
864   -gas | --gas | --ga | --g)
865     # Obsolete; use --with-gas.
866     with_gas=yes ;;
867
868   -help | --help | --hel | --he | -h)
869     ac_init_help=long ;;
870   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
871     ac_init_help=recursive ;;
872   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
873     ac_init_help=short ;;
874
875   -host | --host | --hos | --ho)
876     ac_prev=host_alias ;;
877   -host=* | --host=* | --hos=* | --ho=*)
878     host_alias=$ac_optarg ;;
879
880   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
881     ac_prev=htmldir ;;
882   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
883   | --ht=*)
884     htmldir=$ac_optarg ;;
885
886   -includedir | --includedir | --includedi | --included | --include \
887   | --includ | --inclu | --incl | --inc)
888     ac_prev=includedir ;;
889   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
890   | --includ=* | --inclu=* | --incl=* | --inc=*)
891     includedir=$ac_optarg ;;
892
893   -infodir | --infodir | --infodi | --infod | --info | --inf)
894     ac_prev=infodir ;;
895   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
896     infodir=$ac_optarg ;;
897
898   -libdir | --libdir | --libdi | --libd)
899     ac_prev=libdir ;;
900   -libdir=* | --libdir=* | --libdi=* | --libd=*)
901     libdir=$ac_optarg ;;
902
903   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
904   | --libexe | --libex | --libe)
905     ac_prev=libexecdir ;;
906   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
907   | --libexe=* | --libex=* | --libe=*)
908     libexecdir=$ac_optarg ;;
909
910   -localedir | --localedir | --localedi | --localed | --locale)
911     ac_prev=localedir ;;
912   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
913     localedir=$ac_optarg ;;
914
915   -localstatedir | --localstatedir | --localstatedi | --localstated \
916   | --localstate | --localstat | --localsta | --localst | --locals)
917     ac_prev=localstatedir ;;
918   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
919   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
920     localstatedir=$ac_optarg ;;
921
922   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
923     ac_prev=mandir ;;
924   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925     mandir=$ac_optarg ;;
926
927   -nfp | --nfp | --nf)
928     # Obsolete; use --without-fp.
929     with_fp=no ;;
930
931   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
932   | --no-cr | --no-c | -n)
933     no_create=yes ;;
934
935   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
937     no_recursion=yes ;;
938
939   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
940   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
941   | --oldin | --oldi | --old | --ol | --o)
942     ac_prev=oldincludedir ;;
943   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
944   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
945   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
946     oldincludedir=$ac_optarg ;;
947
948   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
949     ac_prev=prefix ;;
950   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
951     prefix=$ac_optarg ;;
952
953   -program-prefix | --program-prefix | --program-prefi | --program-pref \
954   | --program-pre | --program-pr | --program-p)
955     ac_prev=program_prefix ;;
956   -program-prefix=* | --program-prefix=* | --program-prefi=* \
957   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
958     program_prefix=$ac_optarg ;;
959
960   -program-suffix | --program-suffix | --program-suffi | --program-suff \
961   | --program-suf | --program-su | --program-s)
962     ac_prev=program_suffix ;;
963   -program-suffix=* | --program-suffix=* | --program-suffi=* \
964   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
965     program_suffix=$ac_optarg ;;
966
967   -program-transform-name | --program-transform-name \
968   | --program-transform-nam | --program-transform-na \
969   | --program-transform-n | --program-transform- \
970   | --program-transform | --program-transfor \
971   | --program-transfo | --program-transf \
972   | --program-trans | --program-tran \
973   | --progr-tra | --program-tr | --program-t)
974     ac_prev=program_transform_name ;;
975   -program-transform-name=* | --program-transform-name=* \
976   | --program-transform-nam=* | --program-transform-na=* \
977   | --program-transform-n=* | --program-transform-=* \
978   | --program-transform=* | --program-transfor=* \
979   | --program-transfo=* | --program-transf=* \
980   | --program-trans=* | --program-tran=* \
981   | --progr-tra=* | --program-tr=* | --program-t=*)
982     program_transform_name=$ac_optarg ;;
983
984   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
985     ac_prev=pdfdir ;;
986   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
987     pdfdir=$ac_optarg ;;
988
989   -psdir | --psdir | --psdi | --psd | --ps)
990     ac_prev=psdir ;;
991   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
992     psdir=$ac_optarg ;;
993
994   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
995   | -silent | --silent | --silen | --sile | --sil)
996     silent=yes ;;
997
998   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999     ac_prev=sbindir ;;
1000   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001   | --sbi=* | --sb=*)
1002     sbindir=$ac_optarg ;;
1003
1004   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006   | --sharedst | --shareds | --shared | --share | --shar \
1007   | --sha | --sh)
1008     ac_prev=sharedstatedir ;;
1009   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012   | --sha=* | --sh=*)
1013     sharedstatedir=$ac_optarg ;;
1014
1015   -site | --site | --sit)
1016     ac_prev=site ;;
1017   -site=* | --site=* | --sit=*)
1018     site=$ac_optarg ;;
1019
1020   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021     ac_prev=srcdir ;;
1022   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023     srcdir=$ac_optarg ;;
1024
1025   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026   | --syscon | --sysco | --sysc | --sys | --sy)
1027     ac_prev=sysconfdir ;;
1028   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030     sysconfdir=$ac_optarg ;;
1031
1032   -target | --target | --targe | --targ | --tar | --ta | --t)
1033     ac_prev=target_alias ;;
1034   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035     target_alias=$ac_optarg ;;
1036
1037   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1038     verbose=yes ;;
1039
1040   -version | --version | --versio | --versi | --vers | -V)
1041     ac_init_version=: ;;
1042
1043   -with-* | --with-*)
1044     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1047       { echo "$as_me: error: invalid package name: $ac_package" >&2
1048    { (exit 1); exit 1; }; }
1049     ac_package=`echo $ac_package| sed 's/-/_/g'`
1050     eval with_$ac_package=\$ac_optarg ;;
1051
1052   -without-* | --without-*)
1053     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1056       { echo "$as_me: error: invalid package name: $ac_package" >&2
1057    { (exit 1); exit 1; }; }
1058     ac_package=`echo $ac_package | sed 's/-/_/g'`
1059     eval with_$ac_package=no ;;
1060
1061   --x)
1062     # Obsolete; use --with-x.
1063     with_x=yes ;;
1064
1065   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1066   | --x-incl | --x-inc | --x-in | --x-i)
1067     ac_prev=x_includes ;;
1068   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1069   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1070     x_includes=$ac_optarg ;;
1071
1072   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1073   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1074     ac_prev=x_libraries ;;
1075   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1076   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1077     x_libraries=$ac_optarg ;;
1078
1079   -*) { echo "$as_me: error: unrecognized option: $ac_option
1080 Try \`$0 --help' for more information." >&2
1081    { (exit 1); exit 1; }; }
1082     ;;
1083
1084   *=*)
1085     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1088       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1089    { (exit 1); exit 1; }; }
1090     eval $ac_envvar=\$ac_optarg
1091     export $ac_envvar ;;
1092
1093   *)
1094     # FIXME: should be removed in autoconf 3.0.
1095     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1096     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1098     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1099     ;;
1100
1101   esac
1102 done
1103
1104 if test -n "$ac_prev"; then
1105   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1106   { echo "$as_me: error: missing argument to $ac_option" >&2
1107    { (exit 1); exit 1; }; }
1108 fi
1109
1110 # Be sure to have absolute directory names.
1111 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1112                 datadir sysconfdir sharedstatedir localstatedir includedir \
1113                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1114                 libdir localedir mandir
1115 do
1116   eval ac_val=\$$ac_var
1117   case $ac_val in
1118     [\\/$]* | ?:[\\/]* )  continue;;
1119     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120   esac
1121   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1122    { (exit 1); exit 1; }; }
1123 done
1124
1125 # There might be people who depend on the old broken behavior: `$host'
1126 # used to hold the argument of --host etc.
1127 # FIXME: To remove some day.
1128 build=$build_alias
1129 host=$host_alias
1130 target=$target_alias
1131
1132 # FIXME: To remove some day.
1133 if test "x$host_alias" != x; then
1134   if test "x$build_alias" = x; then
1135     cross_compiling=maybe
1136     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1137     If a cross compiler is detected then cross compile mode will be used." >&2
1138   elif test "x$build_alias" != "x$host_alias"; then
1139     cross_compiling=yes
1140   fi
1141 fi
1142
1143 ac_tool_prefix=
1144 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145
1146 test "$silent" = yes && exec 6>/dev/null
1147
1148
1149 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1150 ac_ls_di=`ls -di .` &&
1151 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1152   { echo "$as_me: error: Working directory cannot be determined" >&2
1153    { (exit 1); exit 1; }; }
1154 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155   { echo "$as_me: error: pwd does not report name of working directory" >&2
1156    { (exit 1); exit 1; }; }
1157
1158
1159 # Find the source files, if location was not specified.
1160 if test -z "$srcdir"; then
1161   ac_srcdir_defaulted=yes
1162   # Try the directory containing this script, then the parent directory.
1163   ac_confdir=`$as_dirname -- "$0" ||
1164 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165          X"$0" : 'X\(//\)[^/]' \| \
1166          X"$0" : 'X\(//\)$' \| \
1167          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1168 echo X"$0" |
1169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170             s//\1/
1171             q
1172           }
1173           /^X\(\/\/\)[^/].*/{
1174             s//\1/
1175             q
1176           }
1177           /^X\(\/\/\)$/{
1178             s//\1/
1179             q
1180           }
1181           /^X\(\/\).*/{
1182             s//\1/
1183             q
1184           }
1185           s/.*/./; q'`
1186   srcdir=$ac_confdir
1187   if test ! -r "$srcdir/$ac_unique_file"; then
1188     srcdir=..
1189   fi
1190 else
1191   ac_srcdir_defaulted=no
1192 fi
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1194   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1196    { (exit 1); exit 1; }; }
1197 fi
1198 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1199 ac_abs_confdir=`(
1200         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1201    { (exit 1); exit 1; }; }
1202         pwd)`
1203 # When building in place, set srcdir=.
1204 if test "$ac_abs_confdir" = "$ac_pwd"; then
1205   srcdir=.
1206 fi
1207 # Remove unnecessary trailing slashes from srcdir.
1208 # Double slashes in file names in object file debugging info
1209 # mess up M-x gdb in Emacs.
1210 case $srcdir in
1211 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212 esac
1213 for ac_var in $ac_precious_vars; do
1214   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215   eval ac_env_${ac_var}_value=\$${ac_var}
1216   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1218 done
1219
1220 #
1221 # Report the --help message.
1222 #
1223 if test "$ac_init_help" = "long"; then
1224   # Omit some internal or obsolete options to make the list less imposing.
1225   # This message is too long to be a string in the A/UX 3.1 sh.
1226   cat <<_ACEOF
1227 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1228
1229 Usage: $0 [OPTION]... [VAR=VALUE]...
1230
1231 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232 VAR=VALUE.  See below for descriptions of some of the useful variables.
1233
1234 Defaults for the options are specified in brackets.
1235
1236 Configuration:
1237   -h, --help              display this help and exit
1238       --help=short        display options specific to this package
1239       --help=recursive    display the short help of all the included packages
1240   -V, --version           display version information and exit
1241   -q, --quiet, --silent   do not print \`checking...' messages
1242       --cache-file=FILE   cache test results in FILE [disabled]
1243   -C, --config-cache      alias for \`--cache-file=config.cache'
1244   -n, --no-create         do not create output files
1245       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1246
1247 Installation directories:
1248   --prefix=PREFIX         install architecture-independent files in PREFIX
1249                           [$ac_default_prefix]
1250   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1251                           [PREFIX]
1252
1253 By default, \`make install' will install all the files in
1254 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1255 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256 for instance \`--prefix=\$HOME'.
1257
1258 For better control, use the options below.
1259
1260 Fine tuning of the installation directories:
1261   --bindir=DIR           user executables [EPREFIX/bin]
1262   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1263   --libexecdir=DIR       program executables [EPREFIX/libexec]
1264   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1265   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1266   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1267   --libdir=DIR           object code libraries [EPREFIX/lib]
1268   --includedir=DIR       C header files [PREFIX/include]
1269   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1270   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1271   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1272   --infodir=DIR          info documentation [DATAROOTDIR/info]
1273   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1274   --mandir=DIR           man documentation [DATAROOTDIR/man]
1275   --docdir=DIR           documentation root [DATAROOTDIR/doc/openssh]
1276   --htmldir=DIR          html documentation [DOCDIR]
1277   --dvidir=DIR           dvi documentation [DOCDIR]
1278   --pdfdir=DIR           pdf documentation [DOCDIR]
1279   --psdir=DIR            ps documentation [DOCDIR]
1280 _ACEOF
1281
1282   cat <<\_ACEOF
1283
1284 System types:
1285   --build=BUILD     configure for building on BUILD [guessed]
1286   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1287 _ACEOF
1288 fi
1289
1290 if test -n "$ac_init_help"; then
1291   case $ac_init_help in
1292      short | recursive ) echo "Configuration of OpenSSH Portable:";;
1293    esac
1294   cat <<\_ACEOF
1295
1296 Optional Features:
1297   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1298   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1299   --disable-largefile     omit support for large files
1300   --disable-strip         Disable calling strip(1) on install
1301   --disable-etc-default-login Disable using PATH from /etc/default/login no
1302   --disable-lastlog       disable use of lastlog even if detected no
1303   --disable-utmp          disable use of utmp even if detected no
1304   --disable-utmpx         disable use of utmpx even if detected no
1305   --disable-wtmp          disable use of wtmp even if detected no
1306   --disable-wtmpx         disable use of wtmpx even if detected no
1307   --disable-libutil       disable use of libutil (login() etc.) no
1308   --disable-pututline     disable use of pututline() etc. (uwtmp) no
1309   --disable-pututxline    disable use of pututxline() etc. (uwtmpx) no
1310
1311 Optional Packages:
1312   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1313   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1314   --without-rpath         Disable auto-added -R linker paths
1315   --with-solaris-contracts Enable Solaris process contracts (experimental)
1316   --with-osfsia           Enable Digital Unix SIA
1317   --with-cflags           Specify additional flags to pass to compiler
1318   --with-cppflags         Specify additional flags to pass to preprocessor
1319   --with-ldflags          Specify additional flags to pass to linker
1320   --with-libs             Specify additional libraries to link with
1321   --with-Werror           Build main code with -Werror
1322   --with-zlib=PATH        Use zlib in PATH
1323   --without-zlib-version-check Disable zlib version check
1324   --with-skey[=PATH]      Enable S/Key support (optionally in PATH)
1325   --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1326   --with-libedit[=PATH]   Enable libedit support for sftp
1327   --with-audit=module     Enable EXPERIMENTAL audit support (modules=debug,bsm)
1328   --with-ssl-dir=PATH     Specify path to OpenSSL installation
1329   --with-ssl-engine       Enable OpenSSL (hardware) ENGINE support
1330   --with-pam              Enable PAM support
1331   --with-rand-helper      Use subprocess to gather strong randomness
1332   --with-prngd-port=PORT  read entropy from PRNGD/EGD TCP localhost:PORT
1333   --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1334   --with-entropy-timeout  Specify entropy gathering command timeout (msec)
1335   --with-privsep-user=user Specify non-privileged user for privilege separation
1336   --with-sectok           Enable smartcard support using libsectok
1337   --with-opensc[=PFX]     Enable smartcard support using OpenSC (optionally in PATH)
1338   --with-selinux   Enable SELinux support
1339   --with-kerberos5=PATH   Enable Kerberos 5 support
1340   --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1341   --with-xauth=PATH       Specify path to xauth program
1342   --with-mantype=man|cat|doc  Set man page type
1343   --with-md5-passwords    Enable use of MD5 passwords
1344   --without-shadow        Disable shadow password support
1345   --with-ipaddr-display   Use ip address instead of hostname in \$DISPLAY
1346   --with-default-path=    Specify default \$PATH environment for server
1347   --with-superuser-path=  Specify different path for super-user
1348   --with-4in6             Check for and convert IPv4 in IPv6 mapped addresses
1349   --with-bsd-auth         Enable BSD auth support
1350   --with-pid-dir=PATH     Specify location of ssh.pid file
1351   --with-lastlog=FILE|DIR specify lastlog location common locations
1352
1353 Some influential environment variables:
1354   CC          C compiler command
1355   CFLAGS      C compiler flags
1356   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1357               nonstandard directory <lib dir>
1358   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1359               you have headers in a nonstandard directory <include dir>
1360   CPP         C preprocessor
1361
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1364
1365 Report bugs to <openssh-unix-dev@mindrot.org>.
1366 _ACEOF
1367 ac_status=$?
1368 fi
1369
1370 if test "$ac_init_help" = "recursive"; then
1371   # If there are subdirs, report their specific --help.
1372   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373     test -d "$ac_dir" || continue
1374     ac_builddir=.
1375
1376 case "$ac_dir" in
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *)
1379   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1380   # A ".." for each directory in $ac_dir_suffix.
1381   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1382   case $ac_top_builddir_sub in
1383   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385   esac ;;
1386 esac
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1391
1392 case $srcdir in
1393   .)  # We are building in place.
1394     ac_srcdir=.
1395     ac_top_srcdir=$ac_top_builddir_sub
1396     ac_abs_top_srcdir=$ac_pwd ;;
1397   [\\/]* | ?:[\\/]* )  # Absolute name.
1398     ac_srcdir=$srcdir$ac_dir_suffix;
1399     ac_top_srcdir=$srcdir
1400     ac_abs_top_srcdir=$srcdir ;;
1401   *) # Relative name.
1402     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403     ac_top_srcdir=$ac_top_build_prefix$srcdir
1404     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 esac
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407
1408     cd "$ac_dir" || { ac_status=$?; continue; }
1409     # Check for guested configure.
1410     if test -f "$ac_srcdir/configure.gnu"; then
1411       echo &&
1412       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413     elif test -f "$ac_srcdir/configure"; then
1414       echo &&
1415       $SHELL "$ac_srcdir/configure" --help=recursive
1416     else
1417       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418     fi || ac_status=$?
1419     cd "$ac_pwd" || { ac_status=$?; break; }
1420   done
1421 fi
1422
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1425   cat <<\_ACEOF
1426 OpenSSH configure Portable
1427 generated by GNU Autoconf 2.60
1428
1429 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1430 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1433 _ACEOF
1434   exit
1435 fi
1436 cat >config.log <<_ACEOF
1437 This file contains any messages produced by compilers while
1438 running configure, to aid debugging if configure makes a mistake.
1439
1440 It was created by OpenSSH $as_me Portable, which was
1441 generated by GNU Autoconf 2.60.  Invocation command line was
1442
1443   $ $0 $@
1444
1445 _ACEOF
1446 exec 5>>config.log
1447 {
1448 cat <<_ASUNAME
1449 ## --------- ##
1450 ## Platform. ##
1451 ## --------- ##
1452
1453 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1454 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1455 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1456 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1457 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458
1459 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1460 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1461
1462 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1463 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1465 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1466 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1467 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1468 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1469
1470 _ASUNAME
1471
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1474 do
1475   IFS=$as_save_IFS
1476   test -z "$as_dir" && as_dir=.
1477   echo "PATH: $as_dir"
1478 done
1479 IFS=$as_save_IFS
1480
1481 } >&5
1482
1483 cat >&5 <<_ACEOF
1484
1485
1486 ## ----------- ##
1487 ## Core tests. ##
1488 ## ----------- ##
1489
1490 _ACEOF
1491
1492
1493 # Keep a trace of the command line.
1494 # Strip out --no-create and --no-recursion so they do not pile up.
1495 # Strip out --silent because we don't want to record it for future runs.
1496 # Also quote any args containing shell meta-characters.
1497 # Make two passes to allow for proper duplicate-argument suppression.
1498 ac_configure_args=
1499 ac_configure_args0=
1500 ac_configure_args1=
1501 ac_must_keep_next=false
1502 for ac_pass in 1 2
1503 do
1504   for ac_arg
1505   do
1506     case $ac_arg in
1507     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1508     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509     | -silent | --silent | --silen | --sile | --sil)
1510       continue ;;
1511     *\'*)
1512       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1513     esac
1514     case $ac_pass in
1515     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516     2)
1517       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1518       if test $ac_must_keep_next = true; then
1519         ac_must_keep_next=false # Got value, back to normal.
1520       else
1521         case $ac_arg in
1522           *=* | --config-cache | -C | -disable-* | --disable-* \
1523           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1524           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1525           | -with-* | --with-* | -without-* | --without-* | --x)
1526             case "$ac_configure_args0 " in
1527               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1528             esac
1529             ;;
1530           -* ) ac_must_keep_next=true ;;
1531         esac
1532       fi
1533       ac_configure_args="$ac_configure_args '$ac_arg'"
1534       ;;
1535     esac
1536   done
1537 done
1538 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1539 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540
1541 # When interrupted or exit'd, cleanup temporary files, and complete
1542 # config.log.  We remove comments because anyway the quotes in there
1543 # would cause problems or look ugly.
1544 # WARNING: Use '\'' to represent an apostrophe within the trap.
1545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1546 trap 'exit_status=$?
1547   # Save into config.log some information that might help in debugging.
1548   {
1549     echo
1550
1551     cat <<\_ASBOX
1552 ## ---------------- ##
1553 ## Cache variables. ##
1554 ## ---------------- ##
1555 _ASBOX
1556     echo
1557     # The following way of writing the cache mishandles newlines in values,
1558 (
1559   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1560     eval ac_val=\$$ac_var
1561     case $ac_val in #(
1562     *${as_nl}*)
1563       case $ac_var in #(
1564       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1565 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1566       esac
1567       case $ac_var in #(
1568       _ | IFS | as_nl) ;; #(
1569       *) $as_unset $ac_var ;;
1570       esac ;;
1571     esac
1572   done
1573   (set) 2>&1 |
1574     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1575     *${as_nl}ac_space=\ *)
1576       sed -n \
1577         "s/'\''/'\''\\\\'\'''\''/g;
1578           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1579       ;; #(
1580     *)
1581       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1582       ;;
1583     esac |
1584     sort
1585 )
1586     echo
1587
1588     cat <<\_ASBOX
1589 ## ----------------- ##
1590 ## Output variables. ##
1591 ## ----------------- ##
1592 _ASBOX
1593     echo
1594     for ac_var in $ac_subst_vars
1595     do
1596       eval ac_val=\$$ac_var
1597       case $ac_val in
1598       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599       esac
1600       echo "$ac_var='\''$ac_val'\''"
1601     done | sort
1602     echo
1603
1604     if test -n "$ac_subst_files"; then
1605       cat <<\_ASBOX
1606 ## ------------------- ##
1607 ## File substitutions. ##
1608 ## ------------------- ##
1609 _ASBOX
1610       echo
1611       for ac_var in $ac_subst_files
1612       do
1613         eval ac_val=\$$ac_var
1614         case $ac_val in
1615         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616         esac
1617         echo "$ac_var='\''$ac_val'\''"
1618       done | sort
1619       echo
1620     fi
1621
1622     if test -s confdefs.h; then
1623       cat <<\_ASBOX
1624 ## ----------- ##
1625 ## confdefs.h. ##
1626 ## ----------- ##
1627 _ASBOX
1628       echo
1629       cat confdefs.h
1630       echo
1631     fi
1632     test "$ac_signal" != 0 &&
1633       echo "$as_me: caught signal $ac_signal"
1634     echo "$as_me: exit $exit_status"
1635   } >&5
1636   rm -f core *.core core.conftest.* &&
1637     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1638     exit $exit_status
1639 ' 0
1640 for ac_signal in 1 2 13 15; do
1641   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1642 done
1643 ac_signal=0
1644
1645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1646 rm -f -r conftest* confdefs.h
1647
1648 # Predefined preprocessor variables.
1649
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_NAME "$PACKAGE_NAME"
1652 _ACEOF
1653
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1657 _ACEOF
1658
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1662 _ACEOF
1663
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_STRING "$PACKAGE_STRING"
1667 _ACEOF
1668
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1672 _ACEOF
1673
1674
1675 # Let the site file select an alternate cache file if it wants to.
1676 # Prefer explicitly selected file to automatically selected ones.
1677 if test -n "$CONFIG_SITE"; then
1678   set x "$CONFIG_SITE"
1679 elif test "x$prefix" != xNONE; then
1680   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 else
1682   set x "$ac_default_prefix/share/config.site" \
1683         "$ac_default_prefix/etc/config.site"
1684 fi
1685 shift
1686 for ac_site_file
1687 do
1688   if test -r "$ac_site_file"; then
1689     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690 echo "$as_me: loading site script $ac_site_file" >&6;}
1691     sed 's/^/| /' "$ac_site_file" >&5
1692     . "$ac_site_file"
1693   fi
1694 done
1695
1696 if test -r "$cache_file"; then
1697   # Some versions of bash will fail to source /dev/null (special
1698   # files actually), so we avoid doing that.
1699   if test -f "$cache_file"; then
1700     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701 echo "$as_me: loading cache $cache_file" >&6;}
1702     case $cache_file in
1703       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704       *)                      . "./$cache_file";;
1705     esac
1706   fi
1707 else
1708   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709 echo "$as_me: creating cache $cache_file" >&6;}
1710   >$cache_file
1711 fi
1712
1713 # Check that the precious variables saved in the cache have kept the same
1714 # value.
1715 ac_cache_corrupted=false
1716 for ac_var in $ac_precious_vars; do
1717   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718   eval ac_new_set=\$ac_env_${ac_var}_set
1719   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720   eval ac_new_val=\$ac_env_${ac_var}_value
1721   case $ac_old_set,$ac_new_set in
1722     set,)
1723       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1724 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725       ac_cache_corrupted=: ;;
1726     ,set)
1727       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1728 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1729       ac_cache_corrupted=: ;;
1730     ,);;
1731     *)
1732       if test "x$ac_old_val" != "x$ac_new_val"; then
1733         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1734 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1735         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1736 echo "$as_me:   former value:  $ac_old_val" >&2;}
1737         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1738 echo "$as_me:   current value: $ac_new_val" >&2;}
1739         ac_cache_corrupted=:
1740       fi;;
1741   esac
1742   # Pass precious variables to config.status.
1743   if test "$ac_new_set" = set; then
1744     case $ac_new_val in
1745     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1746     *) ac_arg=$ac_var=$ac_new_val ;;
1747     esac
1748     case " $ac_configure_args " in
1749       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1750       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1751     esac
1752   fi
1753 done
1754 if $ac_cache_corrupted; then
1755   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1756 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1757   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1758 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1759    { (exit 1); exit 1; }; }
1760 fi
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786 ac_ext=c
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791
1792
1793
1794
1795
1796 ac_config_headers="$ac_config_headers config.h"
1797
1798 ac_ext=c
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 if test -n "$ac_tool_prefix"; then
1804   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1805 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1808 if test "${ac_cv_prog_CC+set}" = set; then
1809   echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811   if test -n "$CC"; then
1812   ac_cv_prog_CC="$CC" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817   IFS=$as_save_IFS
1818   test -z "$as_dir" && as_dir=.
1819   for ac_exec_ext in '' $ac_executable_extensions; do
1820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1821     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823     break 2
1824   fi
1825 done
1826 done
1827 IFS=$as_save_IFS
1828
1829 fi
1830 fi
1831 CC=$ac_cv_prog_CC
1832 if test -n "$CC"; then
1833   { echo "$as_me:$LINENO: result: $CC" >&5
1834 echo "${ECHO_T}$CC" >&6; }
1835 else
1836   { echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6; }
1838 fi
1839
1840
1841 fi
1842 if test -z "$ac_cv_prog_CC"; then
1843   ac_ct_CC=$CC
1844   # Extract the first word of "gcc", so it can be a program name with args.
1845 set dummy gcc; ac_word=$2
1846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849   echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851   if test -n "$ac_ct_CC"; then
1852   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1853 else
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857   IFS=$as_save_IFS
1858   test -z "$as_dir" && as_dir=.
1859   for ac_exec_ext in '' $ac_executable_extensions; do
1860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1861     ac_cv_prog_ac_ct_CC="gcc"
1862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863     break 2
1864   fi
1865 done
1866 done
1867 IFS=$as_save_IFS
1868
1869 fi
1870 fi
1871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872 if test -n "$ac_ct_CC"; then
1873   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874 echo "${ECHO_T}$ac_ct_CC" >&6; }
1875 else
1876   { echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6; }
1878 fi
1879
1880   if test "x$ac_ct_CC" = x; then
1881     CC=""
1882   else
1883     case $cross_compiling:$ac_tool_warned in
1884 yes:)
1885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1886 whose name does not start with the host triplet.  If you think this
1887 configuration is useful to you, please write to autoconf@gnu.org." >&5
1888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1889 whose name does not start with the host triplet.  If you think this
1890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1891 ac_tool_warned=yes ;;
1892 esac
1893     CC=$ac_ct_CC
1894   fi
1895 else
1896   CC="$ac_cv_prog_CC"
1897 fi
1898
1899 if test -z "$CC"; then
1900           if test -n "$ac_tool_prefix"; then
1901     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1902 set dummy ${ac_tool_prefix}cc; ac_word=$2
1903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1905 if test "${ac_cv_prog_CC+set}" = set; then
1906   echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908   if test -n "$CC"; then
1909   ac_cv_prog_CC="$CC" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914   IFS=$as_save_IFS
1915   test -z "$as_dir" && as_dir=.
1916   for ac_exec_ext in '' $ac_executable_extensions; do
1917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1918     ac_cv_prog_CC="${ac_tool_prefix}cc"
1919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920     break 2
1921   fi
1922 done
1923 done
1924 IFS=$as_save_IFS
1925
1926 fi
1927 fi
1928 CC=$ac_cv_prog_CC
1929 if test -n "$CC"; then
1930   { echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6; }
1932 else
1933   { echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6; }
1935 fi
1936
1937
1938   fi
1939 fi
1940 if test -z "$CC"; then
1941   # Extract the first word of "cc", so it can be a program name with args.
1942 set dummy cc; ac_word=$2
1943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1945 if test "${ac_cv_prog_CC+set}" = set; then
1946   echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948   if test -n "$CC"; then
1949   ac_cv_prog_CC="$CC" # Let the user override the test.
1950 else
1951   ac_prog_rejected=no
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955   IFS=$as_save_IFS
1956   test -z "$as_dir" && as_dir=.
1957   for ac_exec_ext in '' $ac_executable_extensions; do
1958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1959     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1960        ac_prog_rejected=yes
1961        continue
1962      fi
1963     ac_cv_prog_CC="cc"
1964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965     break 2
1966   fi
1967 done
1968 done
1969 IFS=$as_save_IFS
1970
1971 if test $ac_prog_rejected = yes; then
1972   # We found a bogon in the path, so make sure we never use it.
1973   set dummy $ac_cv_prog_CC
1974   shift
1975   if test $# != 0; then
1976     # We chose a different compiler from the bogus one.
1977     # However, it has the same basename, so the bogon will be chosen
1978     # first if we set CC to just the basename; use the full file name.
1979     shift
1980     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1981   fi
1982 fi
1983 fi
1984 fi
1985 CC=$ac_cv_prog_CC
1986 if test -n "$CC"; then
1987   { echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6; }
1989 else
1990   { echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6; }
1992 fi
1993
1994
1995 fi
1996 if test -z "$CC"; then
1997   if test -n "$ac_tool_prefix"; then
1998   for ac_prog in cl.exe
1999   do
2000     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2004 if test "${ac_cv_prog_CC+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   if test -n "$CC"; then
2008   ac_cv_prog_CC="$CC" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013   IFS=$as_save_IFS
2014   test -z "$as_dir" && as_dir=.
2015   for ac_exec_ext in '' $ac_executable_extensions; do
2016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2017     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019     break 2
2020   fi
2021 done
2022 done
2023 IFS=$as_save_IFS
2024
2025 fi
2026 fi
2027 CC=$ac_cv_prog_CC
2028 if test -n "$CC"; then
2029   { echo "$as_me:$LINENO: result: $CC" >&5
2030 echo "${ECHO_T}$CC" >&6; }
2031 else
2032   { echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6; }
2034 fi
2035
2036
2037     test -n "$CC" && break
2038   done
2039 fi
2040 if test -z "$CC"; then
2041   ac_ct_CC=$CC
2042   for ac_prog in cl.exe
2043 do
2044   # Extract the first word of "$ac_prog", so it can be a program name with args.
2045 set dummy $ac_prog; ac_word=$2
2046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   if test -n "$ac_ct_CC"; then
2052   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2061     ac_cv_prog_ac_ct_CC="$ac_prog"
2062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063     break 2
2064   fi
2065 done
2066 done
2067 IFS=$as_save_IFS
2068
2069 fi
2070 fi
2071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072 if test -n "$ac_ct_CC"; then
2073   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074 echo "${ECHO_T}$ac_ct_CC" >&6; }
2075 else
2076   { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2078 fi
2079
2080
2081   test -n "$ac_ct_CC" && break
2082 done
2083
2084   if test "x$ac_ct_CC" = x; then
2085     CC=""
2086   else
2087     case $cross_compiling:$ac_tool_warned in
2088 yes:)
2089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2090 whose name does not start with the host triplet.  If you think this
2091 configuration is useful to you, please write to autoconf@gnu.org." >&5
2092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet.  If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2095 ac_tool_warned=yes ;;
2096 esac
2097     CC=$ac_ct_CC
2098   fi
2099 fi
2100
2101 fi
2102
2103
2104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&2;}
2108    { (exit 1); exit 1; }; }
2109
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO: checking for C compiler version" >&5
2112 ac_compiler=`set X $ac_compile; echo $2`
2113 { (ac_try="$ac_compiler --version >&5"
2114 case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119   (eval "$ac_compiler --version >&5") 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }
2123 { (ac_try="$ac_compiler -v >&5"
2124 case "(($ac_try" in
2125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126   *) ac_try_echo=$ac_try;;
2127 esac
2128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2129   (eval "$ac_compiler -v >&5") 2>&5
2130   ac_status=$?
2131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132   (exit $ac_status); }
2133 { (ac_try="$ac_compiler -V >&5"
2134 case "(($ac_try" in
2135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136   *) ac_try_echo=$ac_try;;
2137 esac
2138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139   (eval "$ac_compiler -V >&5") 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }
2143
2144 cat >conftest.$ac_ext <<_ACEOF
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150
2151 int
2152 main ()
2153 {
2154
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2163 # of exeext.
2164 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 #
2168 # List of possible output files, starting from the most likely.
2169 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2170 # only as a last resort.  b.out is created by i960 compilers.
2171 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2172 #
2173 # The IRIX 6 linker writes into existing files which may not be
2174 # executable, retaining their permissions.  Remove them first so a
2175 # subsequent execution test works.
2176 ac_rmfiles=
2177 for ac_file in $ac_files
2178 do
2179   case $ac_file in
2180     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2181     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2182   esac
2183 done
2184 rm -f $ac_rmfiles
2185
2186 if { (ac_try="$ac_link_default"
2187 case "(($ac_try" in
2188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189   *) ac_try_echo=$ac_try;;
2190 esac
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192   (eval "$ac_link_default") 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); }; then
2196   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2198 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2199 # so that the user can short-circuit this test for compilers unknown to
2200 # Autoconf.
2201 for ac_file in $ac_files
2202 do
2203   test -f "$ac_file" || continue
2204   case $ac_file in
2205     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2206         ;;
2207     [ab].out )
2208         # We found the default executable, but exeext='' is most
2209         # certainly right.
2210         break;;
2211     *.* )
2212         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2213         then :; else
2214            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215         fi
2216         # We set ac_cv_exeext here because the later test for it is not
2217         # safe: cross compilers may not add the suffix if given an `-o'
2218         # argument, so we may need to know it at that point already.
2219         # Even if this section looks crufty: it has the advantage of
2220         # actually working.
2221         break;;
2222     * )
2223         break;;
2224   esac
2225 done
2226 test "$ac_cv_exeext" = no && ac_cv_exeext=
2227
2228 else
2229   echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: C compiler cannot create executables
2235 See \`config.log' for more details." >&2;}
2236    { (exit 77); exit 77; }; }
2237 fi
2238
2239 ac_exeext=$ac_cv_exeext
2240 { echo "$as_me:$LINENO: result: $ac_file" >&5
2241 echo "${ECHO_T}$ac_file" >&6; }
2242
2243 # Check that the compiler produces executables we can run.  If not, either
2244 # the compiler is broken, or we cross compile.
2245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2248 # If not cross compiling, check that we can run a simple program.
2249 if test "$cross_compiling" != yes; then
2250   if { ac_try='./$ac_file'
2251   { (case "(($ac_try" in
2252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253   *) ac_try_echo=$ac_try;;
2254 esac
2255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2256   (eval "$ac_try") 2>&5
2257   ac_status=$?
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); }; }; then
2260     cross_compiling=no
2261   else
2262     if test "$cross_compiling" = maybe; then
2263         cross_compiling=yes
2264     else
2265         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&2;}
2271    { (exit 1); exit 1; }; }
2272     fi
2273   fi
2274 fi
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2277
2278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2279 ac_clean_files=$ac_clean_files_save
2280 # Check that the compiler produces executables we can run.  If not, either
2281 # the compiler is broken, or we cross compile.
2282 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2283 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2284 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2285 echo "${ECHO_T}$cross_compiling" >&6; }
2286
2287 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2288 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2289 if { (ac_try="$ac_link"
2290 case "(($ac_try" in
2291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292   *) ac_try_echo=$ac_try;;
2293 esac
2294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2295   (eval "$ac_link") 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }; then
2299   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2301 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 # `rm'.
2303 for ac_file in conftest.exe conftest conftest.*; do
2304   test -f "$ac_file" || continue
2305   case $ac_file in
2306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2307     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308           break;;
2309     * ) break;;
2310   esac
2311 done
2312 else
2313   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317    { (exit 1); exit 1; }; }
2318 fi
2319
2320 rm -f conftest$ac_cv_exeext
2321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2323
2324 rm -f conftest.$ac_ext
2325 EXEEXT=$ac_cv_exeext
2326 ac_exeext=$EXEEXT
2327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2329 if test "${ac_cv_objext+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h.  */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h.  */
2338
2339 int
2340 main ()
2341 {
2342
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 rm -f conftest.o conftest.obj
2348 if { (ac_try="$ac_compile"
2349 case "(($ac_try" in
2350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351   *) ac_try_echo=$ac_try;;
2352 esac
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354   (eval "$ac_compile") 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; then
2358   for ac_file in conftest.o conftest.obj conftest.*; do
2359   test -f "$ac_file" || continue;
2360   case $ac_file in
2361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2362     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2363        break;;
2364   esac
2365 done
2366 else
2367   echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2373 See \`config.log' for more details." >&2;}
2374    { (exit 1); exit 1; }; }
2375 fi
2376
2377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2378 fi
2379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2380 echo "${ECHO_T}$ac_cv_objext" >&6; }
2381 OBJEXT=$ac_cv_objext
2382 ac_objext=$OBJEXT
2383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h.  */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h.  */
2394
2395 int
2396 main ()
2397 {
2398 #ifndef __GNUC__
2399        choke me
2400 #endif
2401
2402   ;
2403   return 0;
2404 }
2405 _ACEOF
2406 rm -f conftest.$ac_objext
2407 if { (ac_try="$ac_compile"
2408 case "(($ac_try" in
2409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410   *) ac_try_echo=$ac_try;;
2411 esac
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413   (eval "$ac_compile") 2>conftest.er1
2414   ac_status=$?
2415   grep -v '^ *+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } &&
2420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2421   { (case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426   (eval "$ac_try") 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; } &&
2430          { ac_try='test -s conftest.$ac_objext'
2431   { (case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436   (eval "$ac_try") 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; }; then
2440   ac_compiler_gnu=yes
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445         ac_compiler_gnu=no
2446 fi
2447
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2450
2451 fi
2452 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2453 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2454 GCC=`test $ac_compiler_gnu = yes && echo yes`
2455 ac_test_CFLAGS=${CFLAGS+set}
2456 ac_save_CFLAGS=$CFLAGS
2457 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2458 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_cc_g+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   ac_save_c_werror_flag=$ac_c_werror_flag
2463    ac_c_werror_flag=yes
2464    ac_cv_prog_cc_g=no
2465    CFLAGS="-g"
2466    cat >conftest.$ac_ext <<_ACEOF
2467 /* confdefs.h.  */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h.  */
2472
2473 int
2474 main ()
2475 {
2476
2477   ;
2478   return 0;
2479 }
2480 _ACEOF
2481 rm -f conftest.$ac_objext
2482 if { (ac_try="$ac_compile"
2483 case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488   (eval "$ac_compile") 2>conftest.er1
2489   ac_status=$?
2490   grep -v '^ *+' conftest.er1 >conftest.err
2491   rm -f conftest.er1
2492   cat conftest.err >&5
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); } &&
2495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2496   { (case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501   (eval "$ac_try") 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; } &&
2505          { ac_try='test -s conftest.$ac_objext'
2506   { (case "(($ac_try" in
2507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508   *) ac_try_echo=$ac_try;;
2509 esac
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511   (eval "$ac_try") 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; }; then
2515   ac_cv_prog_cc_g=yes
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520         CFLAGS=""
2521       cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h.  */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h.  */
2527
2528 int
2529 main ()
2530 {
2531
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (ac_try="$ac_compile"
2538 case "(($ac_try" in
2539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540   *) ac_try_echo=$ac_try;;
2541 esac
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543   (eval "$ac_compile") 2>conftest.er1
2544   ac_status=$?
2545   grep -v '^ *+' conftest.er1 >conftest.err
2546   rm -f conftest.er1
2547   cat conftest.err >&5
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); } &&
2550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551   { (case "(($ac_try" in
2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553   *) ac_try_echo=$ac_try;;
2554 esac
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556   (eval "$ac_try") 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566   (eval "$ac_try") 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; }; then
2570   :
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575         ac_c_werror_flag=$ac_save_c_werror_flag
2576          CFLAGS="-g"
2577          cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h.  */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h.  */
2583
2584 int
2585 main ()
2586 {
2587
2588   ;
2589   return 0;
2590 }
2591 _ACEOF
2592 rm -f conftest.$ac_objext
2593 if { (ac_try="$ac_compile"
2594 case "(($ac_try" in
2595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596   *) ac_try_echo=$ac_try;;
2597 esac
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599   (eval "$ac_compile") 2>conftest.er1
2600   ac_status=$?
2601   grep -v '^ *+' conftest.er1 >conftest.err
2602   rm -f conftest.er1
2603   cat conftest.err >&5
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); } &&
2606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607   { (case "(($ac_try" in
2608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609   *) ac_try_echo=$ac_try;;
2610 esac
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612   (eval "$ac_try") 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622   (eval "$ac_try") 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   ac_cv_prog_cc_g=yes
2627 else
2628   echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631
2632 fi
2633
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 fi
2636
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641    ac_c_werror_flag=$ac_save_c_werror_flag
2642 fi
2643 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2645 if test "$ac_test_CFLAGS" = set; then
2646   CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648   if test "$GCC" = yes; then
2649     CFLAGS="-g -O2"
2650   else
2651     CFLAGS="-g"
2652   fi
2653 else
2654   if test "$GCC" = yes; then
2655     CFLAGS="-O2"
2656   else
2657     CFLAGS=
2658   fi
2659 fi
2660 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2661 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2662 if test "${ac_cv_prog_cc_c89+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   ac_cv_prog_cc_c89=no
2666 ac_save_CC=$CC
2667 cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h.  */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h.  */
2673 #include <stdarg.h>
2674 #include <stdio.h>
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2681      char **p;
2682      int i;
2683 {
2684   return p[i];
2685 }
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2687 {
2688   char *s;
2689   va_list v;
2690   va_start (v,p);
2691   s = g (p, va_arg (v,int));
2692   va_end (v);
2693   return s;
2694 }
2695
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2697    function prototypes and stuff, but not '\xHH' hex character constants.
2698    These don't provoke an error unfortunately, instead are silently treated
2699    as 'x'.  The following induces an error, until -std is added to get
2700    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2701    array size at least.  It's necessary to write '\x00'==0 to get something
2702    that's true only with -std.  */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704
2705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2706    inside strings and character constants.  */
2707 #define FOO(x) 'x'
2708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2709
2710 int test (int i, double x);
2711 struct s1 {int (*f) (int a);};
2712 struct s2 {int (*f) (double a);};
2713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2714 int argc;
2715 char **argv;
2716 int
2717 main ()
2718 {
2719 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2720   ;
2721   return 0;
2722 }
2723 _ACEOF
2724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2725         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 do
2727   CC="$ac_save_CC $ac_arg"
2728   rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2730 case "(($ac_try" in
2731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732   *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735   (eval "$ac_compile") 2>conftest.er1
2736   ac_status=$?
2737   grep -v '^ *+' conftest.er1 >conftest.err
2738   rm -f conftest.er1
2739   cat conftest.err >&5
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); } &&
2742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2743   { (case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_try") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; } &&
2752          { ac_try='test -s conftest.$ac_objext'
2753   { (case "(($ac_try" in
2754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755   *) ac_try_echo=$ac_try;;
2756 esac
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758   (eval "$ac_try") 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }; }; then
2762   ac_cv_prog_cc_c89=$ac_arg
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767
2768 fi
2769
2770 rm -f core conftest.err conftest.$ac_objext
2771   test "x$ac_cv_prog_cc_c89" != "xno" && break
2772 done
2773 rm -f conftest.$ac_ext
2774 CC=$ac_save_CC
2775
2776 fi
2777 # AC_CACHE_VAL
2778 case "x$ac_cv_prog_cc_c89" in
2779   x)
2780     { echo "$as_me:$LINENO: result: none needed" >&5
2781 echo "${ECHO_T}none needed" >&6; } ;;
2782   xno)
2783     { echo "$as_me:$LINENO: result: unsupported" >&5
2784 echo "${ECHO_T}unsupported" >&6; } ;;
2785   *)
2786     CC="$CC $ac_cv_prog_cc_c89"
2787     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2789 esac
2790
2791
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798 ac_aux_dir=
2799 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2800   if test -f "$ac_dir/install-sh"; then
2801     ac_aux_dir=$ac_dir
2802     ac_install_sh="$ac_aux_dir/install-sh -c"
2803     break
2804   elif test -f "$ac_dir/install.sh"; then
2805     ac_aux_dir=$ac_dir
2806     ac_install_sh="$ac_aux_dir/install.sh -c"
2807     break
2808   elif test -f "$ac_dir/shtool"; then
2809     ac_aux_dir=$ac_dir
2810     ac_install_sh="$ac_aux_dir/shtool install -c"
2811     break
2812   fi
2813 done
2814 if test -z "$ac_aux_dir"; then
2815   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2816 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2817    { (exit 1); exit 1; }; }
2818 fi
2819
2820 # These three variables are undocumented and unsupported,
2821 # and are intended to be withdrawn in a future Autoconf release.
2822 # They can cause serious problems if a builder's source tree is in a directory
2823 # whose full name contains unusual characters.
2824 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2825 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2826 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2827
2828
2829 # Make sure we can run config.sub.
2830 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2831   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2832 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2833    { (exit 1); exit 1; }; }
2834
2835 { echo "$as_me:$LINENO: checking build system type" >&5
2836 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2837 if test "${ac_cv_build+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   ac_build_alias=$build_alias
2841 test "x$ac_build_alias" = x &&
2842   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2843 test "x$ac_build_alias" = x &&
2844   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2845 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2846    { (exit 1); exit 1; }; }
2847 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2848   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2849 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2850    { (exit 1); exit 1; }; }
2851
2852 fi
2853 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2854 echo "${ECHO_T}$ac_cv_build" >&6; }
2855 case $ac_cv_build in
2856 *-*-*) ;;
2857 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2858 echo "$as_me: error: invalid value of canonical build" >&2;}
2859    { (exit 1); exit 1; }; };;
2860 esac
2861 build=$ac_cv_build
2862 ac_save_IFS=$IFS; IFS='-'
2863 set x $ac_cv_build
2864 shift
2865 build_cpu=$1
2866 build_vendor=$2
2867 shift; shift
2868 # Remember, the first character of IFS is used to create $*,
2869 # except with old shells:
2870 build_os=$*
2871 IFS=$ac_save_IFS
2872 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2873
2874
2875 { echo "$as_me:$LINENO: checking host system type" >&5
2876 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2877 if test "${ac_cv_host+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   if test "x$host_alias" = x; then
2881   ac_cv_host=$ac_cv_build
2882 else
2883   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2884     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2885 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2886    { (exit 1); exit 1; }; }
2887 fi
2888
2889 fi
2890 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2891 echo "${ECHO_T}$ac_cv_host" >&6; }
2892 case $ac_cv_host in
2893 *-*-*) ;;
2894 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2895 echo "$as_me: error: invalid value of canonical host" >&2;}
2896    { (exit 1); exit 1; }; };;
2897 esac
2898 host=$ac_cv_host
2899 ac_save_IFS=$IFS; IFS='-'
2900 set x $ac_cv_host
2901 shift
2902 host_cpu=$1
2903 host_vendor=$2
2904 shift; shift
2905 # Remember, the first character of IFS is used to create $*,
2906 # except with old shells:
2907 host_os=$*
2908 IFS=$ac_save_IFS
2909 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2910
2911
2912
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2919 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2920 # On Suns, sometimes $CPP names a directory.
2921 if test -n "$CPP" && test -d "$CPP"; then
2922   CPP=
2923 fi
2924 if test -z "$CPP"; then
2925   if test "${ac_cv_prog_CPP+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928       # Double quotes because CPP needs to be expanded
2929     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2930     do
2931       ac_preproc_ok=false
2932 for ac_c_preproc_warn_flag in '' yes
2933 do
2934   # Use a header file that comes with gcc, so configuring glibc
2935   # with a fresh cross-compiler works.
2936   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937   # <limits.h> exists even on freestanding compilers.
2938   # On the NeXT, cc -E runs the code through the compiler's parser,
2939   # not just through cpp. "Syntax error" is here to catch this case.
2940   cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946 #ifdef __STDC__
2947 # include <limits.h>
2948 #else
2949 # include <assert.h>
2950 #endif
2951                      Syntax error
2952 _ACEOF
2953 if { (ac_try="$ac_cpp conftest.$ac_ext"
2954 case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2960   ac_status=$?
2961   grep -v '^ *+' conftest.er1 >conftest.err
2962   rm -f conftest.er1
2963   cat conftest.err >&5
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); } >/dev/null; then
2966   if test -s conftest.err; then
2967     ac_cpp_err=$ac_c_preproc_warn_flag
2968     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2969   else
2970     ac_cpp_err=
2971   fi
2972 else
2973   ac_cpp_err=yes
2974 fi
2975 if test -z "$ac_cpp_err"; then
2976   :
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981   # Broken: fails on valid input.
2982 continue
2983 fi
2984
2985 rm -f conftest.err conftest.$ac_ext
2986
2987   # OK, works on sane cases.  Now check whether nonexistent headers
2988   # can be detected and how.
2989   cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h.  */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h.  */
2995 #include <ac_nonexistent.h>
2996 _ACEOF
2997 if { (ac_try="$ac_cpp conftest.$ac_ext"
2998 case "(($ac_try" in
2999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000   *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3004   ac_status=$?
3005   grep -v '^ *+' conftest.er1 >conftest.err
3006   rm -f conftest.er1
3007   cat conftest.err >&5
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); } >/dev/null; then
3010   if test -s conftest.err; then
3011     ac_cpp_err=$ac_c_preproc_warn_flag
3012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3013   else
3014     ac_cpp_err=
3015   fi
3016 else
3017   ac_cpp_err=yes
3018 fi
3019 if test -z "$ac_cpp_err"; then
3020   # Broken: success on invalid input.
3021 continue
3022 else
3023   echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026   # Passes both tests.
3027 ac_preproc_ok=:
3028 break
3029 fi
3030
3031 rm -f conftest.err conftest.$ac_ext
3032
3033 done
3034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3035 rm -f conftest.err conftest.$ac_ext
3036 if $ac_preproc_ok; then
3037   break
3038 fi
3039
3040     done
3041     ac_cv_prog_CPP=$CPP
3042
3043 fi
3044   CPP=$ac_cv_prog_CPP
3045 else
3046   ac_cv_prog_CPP=$CPP
3047 fi
3048 { echo "$as_me:$LINENO: result: $CPP" >&5
3049 echo "${ECHO_T}$CPP" >&6; }
3050 ac_preproc_ok=false
3051 for ac_c_preproc_warn_flag in '' yes
3052 do
3053   # Use a header file that comes with gcc, so configuring glibc
3054   # with a fresh cross-compiler works.
3055   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056   # <limits.h> exists even on freestanding compilers.
3057   # On the NeXT, cc -E runs the code through the compiler's parser,
3058   # not just through cpp. "Syntax error" is here to catch this case.
3059   cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065 #ifdef __STDC__
3066 # include <limits.h>
3067 #else
3068 # include <assert.h>
3069 #endif
3070                      Syntax error
3071 _ACEOF
3072 if { (ac_try="$ac_cpp conftest.$ac_ext"
3073 case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3079   ac_status=$?
3080   grep -v '^ *+' conftest.er1 >conftest.err
3081   rm -f conftest.er1
3082   cat conftest.err >&5
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); } >/dev/null; then
3085   if test -s conftest.err; then
3086     ac_cpp_err=$ac_c_preproc_warn_flag
3087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3088   else
3089     ac_cpp_err=
3090   fi
3091 else
3092   ac_cpp_err=yes
3093 fi
3094 if test -z "$ac_cpp_err"; then
3095   :
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100   # Broken: fails on valid input.
3101 continue
3102 fi
3103
3104 rm -f conftest.err conftest.$ac_ext
3105
3106   # OK, works on sane cases.  Now check whether nonexistent headers
3107   # can be detected and how.
3108   cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h.  */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h.  */
3114 #include <ac_nonexistent.h>
3115 _ACEOF
3116 if { (ac_try="$ac_cpp conftest.$ac_ext"
3117 case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3123   ac_status=$?
3124   grep -v '^ *+' conftest.er1 >conftest.err
3125   rm -f conftest.er1
3126   cat conftest.err >&5
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } >/dev/null; then
3129   if test -s conftest.err; then
3130     ac_cpp_err=$ac_c_preproc_warn_flag
3131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3132   else
3133     ac_cpp_err=
3134   fi
3135 else
3136   ac_cpp_err=yes
3137 fi
3138 if test -z "$ac_cpp_err"; then
3139   # Broken: success on invalid input.
3140 continue
3141 else
3142   echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3144
3145   # Passes both tests.
3146 ac_preproc_ok=:
3147 break
3148 fi
3149
3150 rm -f conftest.err conftest.$ac_ext
3151
3152 done
3153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3154 rm -f conftest.err conftest.$ac_ext
3155 if $ac_preproc_ok; then
3156   :
3157 else
3158   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3159 See \`config.log' for more details." >&5
3160 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3161 See \`config.log' for more details." >&2;}
3162    { (exit 1); exit 1; }; }
3163 fi
3164
3165 ac_ext=c
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170
3171
3172 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3173 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3174 if test "${ac_cv_path_GREP+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   # Extract the first word of "grep ggrep" to use in msg output
3178 if test -z "$GREP"; then
3179 set dummy grep ggrep; ac_prog_name=$2
3180 if test "${ac_cv_path_GREP+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   ac_path_GREP_found=false
3184 # Loop through the user's path and test for each of PROGNAME-LIST
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3187 do
3188   IFS=$as_save_IFS
3189   test -z "$as_dir" && as_dir=.
3190   for ac_prog in grep ggrep; do
3191   for ac_exec_ext in '' $ac_executable_extensions; do
3192     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3193     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3194     # Check for GNU ac_path_GREP and select it if it is found.
3195   # Check for GNU $ac_path_GREP
3196 case `"$ac_path_GREP" --version 2>&1` in
3197 *GNU*)
3198   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3199 *)
3200   ac_count=0
3201   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3202   while :
3203   do
3204     cat "conftest.in" "conftest.in" >"conftest.tmp"
3205     mv "conftest.tmp" "conftest.in"
3206     cp "conftest.in" "conftest.nl"
3207     echo 'GREP' >> "conftest.nl"
3208     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3209     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3210     ac_count=`expr $ac_count + 1`
3211     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3212       # Best one so far, save it but keep looking for a better one
3213       ac_cv_path_GREP="$ac_path_GREP"
3214       ac_path_GREP_max=$ac_count
3215     fi
3216     # 10*(2^10) chars as input seems more than enough
3217     test $ac_count -gt 10 && break
3218   done
3219   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3220 esac
3221
3222
3223     $ac_path_GREP_found && break 3
3224   done
3225 done
3226
3227 done
3228 IFS=$as_save_IFS
3229
3230
3231 fi
3232
3233 GREP="$ac_cv_path_GREP"
3234 if test -z "$GREP"; then
3235   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3236 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3237    { (exit 1); exit 1; }; }
3238 fi
3239
3240 else
3241   ac_cv_path_GREP=$GREP
3242 fi
3243
3244
3245 fi
3246 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3247 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3248  GREP="$ac_cv_path_GREP"
3249
3250
3251 { echo "$as_me:$LINENO: checking for egrep" >&5
3252 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3253 if test "${ac_cv_path_EGREP+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3257    then ac_cv_path_EGREP="$GREP -E"
3258    else
3259      # Extract the first word of "egrep" to use in msg output
3260 if test -z "$EGREP"; then
3261 set dummy egrep; ac_prog_name=$2
3262 if test "${ac_cv_path_EGREP+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   ac_path_EGREP_found=false
3266 # Loop through the user's path and test for each of PROGNAME-LIST
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3269 do
3270   IFS=$as_save_IFS
3271   test -z "$as_dir" && as_dir=.
3272   for ac_prog in egrep; do
3273   for ac_exec_ext in '' $ac_executable_extensions; do
3274     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3275     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3276     # Check for GNU ac_path_EGREP and select it if it is found.
3277   # Check for GNU $ac_path_EGREP
3278 case `"$ac_path_EGREP" --version 2>&1` in
3279 *GNU*)
3280   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3281 *)
3282   ac_count=0
3283   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3284   while :
3285   do
3286     cat "conftest.in" "conftest.in" >"conftest.tmp"
3287     mv "conftest.tmp" "conftest.in"
3288     cp "conftest.in" "conftest.nl"
3289     echo 'EGREP' >> "conftest.nl"
3290     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3291     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3292     ac_count=`expr $ac_count + 1`
3293     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3294       # Best one so far, save it but keep looking for a better one
3295       ac_cv_path_EGREP="$ac_path_EGREP"
3296       ac_path_EGREP_max=$ac_count
3297     fi
3298     # 10*(2^10) chars as input seems more than enough
3299     test $ac_count -gt 10 && break
3300   done
3301   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3302 esac
3303
3304
3305     $ac_path_EGREP_found && break 3
3306   done
3307 done
3308
3309 done
3310 IFS=$as_save_IFS
3311
3312
3313 fi
3314
3315 EGREP="$ac_cv_path_EGREP"
3316 if test -z "$EGREP"; then
3317   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3318 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3319    { (exit 1); exit 1; }; }
3320 fi
3321
3322 else
3323   ac_cv_path_EGREP=$EGREP
3324 fi
3325
3326
3327    fi
3328 fi
3329 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3330 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3331  EGREP="$ac_cv_path_EGREP"
3332
3333
3334 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3335 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3336 if test "${ac_cv_header_stdc+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h.  */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h.  */
3345 #include <stdlib.h>
3346 #include <stdarg.h>
3347 #include <string.h>
3348 #include <float.h>
3349
3350 int
3351 main ()
3352 {
3353
3354   ;
3355   return 0;
3356 }
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (ac_try="$ac_compile"
3360 case "(($ac_try" in
3361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362   *) ac_try_echo=$ac_try;;
3363 esac
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365   (eval "$ac_compile") 2>conftest.er1
3366   ac_status=$?
3367   grep -v '^ *+' conftest.er1 >conftest.err
3368   rm -f conftest.er1
3369   cat conftest.err >&5
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); } &&
3372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3373   { (case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378   (eval "$ac_try") 2>&5
3379   ac_status=$?
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }; } &&
3382          { ac_try='test -s conftest.$ac_objext'
3383   { (case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388   (eval "$ac_try") 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; }; then
3392   ac_cv_header_stdc=yes
3393 else
3394   echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397         ac_cv_header_stdc=no
3398 fi
3399
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401
3402 if test $ac_cv_header_stdc = yes; then
3403   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410 #include <string.h>
3411
3412 _ACEOF
3413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414   $EGREP "memchr" >/dev/null 2>&1; then
3415   :
3416 else
3417   ac_cv_header_stdc=no
3418 fi
3419 rm -f conftest*
3420
3421 fi
3422
3423 if test $ac_cv_header_stdc = yes; then
3424   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3425   cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431 #include <stdlib.h>
3432
3433 _ACEOF
3434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3435   $EGREP "free" >/dev/null 2>&1; then
3436   :
3437 else
3438   ac_cv_header_stdc=no
3439 fi
3440 rm -f conftest*
3441
3442 fi
3443
3444 if test $ac_cv_header_stdc = yes; then
3445   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3446   if test "$cross_compiling" = yes; then
3447   :
3448 else
3449   cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h.  */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h.  */
3455 #include <ctype.h>
3456 #include <stdlib.h>
3457 #if ((' ' & 0x0FF) == 0x020)
3458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3460 #else
3461 # define ISLOWER(c) \
3462                    (('a' <= (c) && (c) <= 'i') \
3463                      || ('j' <= (c) && (c) <= 'r') \
3464                      || ('s' <= (c) && (c) <= 'z'))
3465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3466 #endif
3467
3468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3469 int
3470 main ()
3471 {
3472   int i;
3473   for (i = 0; i < 256; i++)
3474     if (XOR (islower (i), ISLOWER (i))
3475         || toupper (i) != TOUPPER (i))
3476       return 2;
3477   return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest$ac_exeext
3481 if { (ac_try="$ac_link"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_link") 2>&5
3488   ac_status=$?
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3491   { (case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496   (eval "$ac_try") 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; }; then
3500   :
3501 else
3502   echo "$as_me: program exited with status $ac_status" >&5
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 ( exit $ac_status )
3507 ac_cv_header_stdc=no
3508 fi
3509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3510 fi
3511
3512
3513 fi
3514 fi
3515 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3516 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3517 if test $ac_cv_header_stdc = yes; then
3518
3519 cat >>confdefs.h <<\_ACEOF
3520 #define STDC_HEADERS 1
3521 _ACEOF
3522
3523 fi
3524
3525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3536                   inttypes.h stdint.h unistd.h
3537 do
3538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h.  */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h.  */
3550 $ac_includes_default
3551
3552 #include <$ac_header>
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558   *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561   (eval "$ac_compile") 2>conftest.er1
3562   ac_status=$?
3563   grep -v '^ *+' conftest.er1 >conftest.err
3564   rm -f conftest.er1
3565   cat conftest.err >&5
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); } &&
3568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3569   { (case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574   (eval "$ac_try") 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }; } &&
3578          { ac_try='test -s conftest.$ac_objext'
3579   { (case "(($ac_try" in
3580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581   *) ac_try_echo=$ac_try;;
3582 esac
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584   (eval "$ac_try") 2>&5
3585   ac_status=$?
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); }; }; then
3588   eval "$as_ac_Header=yes"
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593         eval "$as_ac_Header=no"
3594 fi
3595
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 fi
3598 ac_res=`eval echo '${'$as_ac_Header'}'`
3599                { echo "$as_me:$LINENO: result: $ac_res" >&5
3600 echo "${ECHO_T}$ac_res" >&6; }
3601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602   cat >>confdefs.h <<_ACEOF
3603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604 _ACEOF
3605
3606 fi
3607
3608 done
3609
3610
3611 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3612 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3613 if test "${ac_cv_c_bigendian+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   # See if sys/param.h defines the BYTE_ORDER macro.
3617 cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h.  */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h.  */
3623 #include <sys/types.h>
3624 #include <sys/param.h>
3625
3626 int
3627 main ()
3628 {
3629 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3630  bogus endian macros
3631 #endif
3632
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 rm -f conftest.$ac_objext
3638 if { (ac_try="$ac_compile"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644   (eval "$ac_compile") 2>conftest.er1
3645   ac_status=$?
3646   grep -v '^ *+' conftest.er1 >conftest.err
3647   rm -f conftest.er1
3648   cat conftest.err >&5
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } &&
3651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3652   { (case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657   (eval "$ac_try") 2>&5
3658   ac_status=$?
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); }; } &&
3661          { ac_try='test -s conftest.$ac_objext'
3662   { (case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667   (eval "$ac_try") 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); }; }; then
3671   # It does; now see whether it defined to BIG_ENDIAN or not.
3672 cat >conftest.$ac_ext <<_ACEOF
3673 /* confdefs.h.  */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h.  */
3678 #include <sys/types.h>
3679 #include <sys/param.h>
3680
3681 int
3682 main ()
3683 {
3684 #if BYTE_ORDER != BIG_ENDIAN
3685  not big endian
3686 #endif
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699   (eval "$ac_compile") 2>conftest.er1
3700   ac_status=$?
3701   grep -v '^ *+' conftest.er1 >conftest.err
3702   rm -f conftest.er1
3703   cat conftest.err >&5
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } &&
3706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3707   { (case "(($ac_try" in
3708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709   *) ac_try_echo=$ac_try;;
3710 esac
3711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712   (eval "$ac_try") 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }; } &&
3716          { ac_try='test -s conftest.$ac_objext'
3717   { (case "(($ac_try" in
3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719   *) ac_try_echo=$ac_try;;
3720 esac
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722   (eval "$ac_try") 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; }; then
3726   ac_cv_c_bigendian=yes
3727 else
3728   echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731         ac_cv_c_bigendian=no
3732 fi
3733
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 else
3736   echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739         # It does not; compile a test program.
3740 if test "$cross_compiling" = yes; then
3741   # try to guess the endianness by grepping values into an object file
3742   ac_cv_c_bigendian=unknown
3743   cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h.  */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h.  */
3749 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3750 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3751 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3752 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3753 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3754 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3755 int
3756 main ()
3757 {
3758  _ascii (); _ebcdic ();
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 rm -f conftest.$ac_objext
3764 if { (ac_try="$ac_compile"
3765 case "(($ac_try" in
3766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767   *) ac_try_echo=$ac_try;;
3768 esac
3769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3770   (eval "$ac_compile") 2>conftest.er1
3771   ac_status=$?
3772   grep -v '^ *+' conftest.er1 >conftest.err
3773   rm -f conftest.er1
3774   cat conftest.err >&5
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } &&
3777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3778   { (case "(($ac_try" in
3779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780   *) ac_try_echo=$ac_try;;
3781 esac
3782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3783   (eval "$ac_try") 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); }; } &&
3787          { ac_try='test -s conftest.$ac_objext'
3788   { (case "(($ac_try" in
3789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790   *) ac_try_echo=$ac_try;;
3791 esac
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793   (eval "$ac_try") 2>&5
3794   ac_status=$?
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }; }; then
3797   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3798   ac_cv_c_bigendian=yes
3799 fi
3800 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3801   if test "$ac_cv_c_bigendian" = unknown; then
3802     ac_cv_c_bigendian=no
3803   else
3804     # finding both strings is unlikely to happen, but who knows?
3805     ac_cv_c_bigendian=unknown
3806   fi
3807 fi
3808 else
3809   echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812
3813 fi
3814
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 else
3817   cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h.  */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h.  */
3823 $ac_includes_default
3824 int
3825 main ()
3826 {
3827
3828   /* Are we little or big endian?  From Harbison&Steele.  */
3829   union
3830   {
3831     long int l;
3832     char c[sizeof (long int)];
3833   } u;
3834   u.l = 1;
3835   return u.c[sizeof (long int) - 1] == 1;
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 rm -f conftest$ac_exeext
3842 if { (ac_try="$ac_link"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848   (eval "$ac_link") 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3852   { (case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_try") 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; }; then
3861   ac_cv_c_bigendian=no
3862 else
3863   echo "$as_me: program exited with status $ac_status" >&5
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3866
3867 ( exit $ac_status )
3868 ac_cv_c_bigendian=yes
3869 fi
3870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3871 fi
3872
3873
3874 fi
3875
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 fi
3878 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3879 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3880 case $ac_cv_c_bigendian in
3881   yes)
3882
3883 cat >>confdefs.h <<\_ACEOF
3884 #define WORDS_BIGENDIAN 1
3885 _ACEOF
3886  ;;
3887   no)
3888      ;;
3889   *)
3890     { { echo "$as_me:$LINENO: error: unknown endianness
3891 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3892 echo "$as_me: error: unknown endianness
3893 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3894    { (exit 1); exit 1; }; } ;;
3895 esac
3896
3897
3898 # Checks for programs.
3899 for ac_prog in gawk mawk nawk awk
3900 do
3901   # Extract the first word of "$ac_prog", so it can be a program name with args.
3902 set dummy $ac_prog; ac_word=$2
3903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3905 if test "${ac_cv_prog_AWK+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   if test -n "$AWK"; then
3909   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3910 else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916   for ac_exec_ext in '' $ac_executable_extensions; do
3917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3918     ac_cv_prog_AWK="$ac_prog"
3919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920     break 2
3921   fi
3922 done
3923 done
3924 IFS=$as_save_IFS
3925
3926 fi
3927 fi
3928 AWK=$ac_cv_prog_AWK
3929 if test -n "$AWK"; then
3930   { echo "$as_me:$LINENO: result: $AWK" >&5
3931 echo "${ECHO_T}$AWK" >&6; }
3932 else
3933   { echo "$as_me:$LINENO: result: no" >&5
3934 echo "${ECHO_T}no" >&6; }
3935 fi
3936
3937
3938   test -n "$AWK" && break
3939 done
3940
3941 ac_ext=c
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3947 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3948 # On Suns, sometimes $CPP names a directory.
3949 if test -n "$CPP" && test -d "$CPP"; then
3950   CPP=
3951 fi
3952 if test -z "$CPP"; then
3953   if test "${ac_cv_prog_CPP+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956       # Double quotes because CPP needs to be expanded
3957     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3958     do
3959       ac_preproc_ok=false
3960 for ac_c_preproc_warn_flag in '' yes
3961 do
3962   # Use a header file that comes with gcc, so configuring glibc
3963   # with a fresh cross-compiler works.
3964   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3965   # <limits.h> exists even on freestanding compilers.
3966   # On the NeXT, cc -E runs the code through the compiler's parser,
3967   # not just through cpp. "Syntax error" is here to catch this case.
3968   cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h.  */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h.  */
3974 #ifdef __STDC__
3975 # include <limits.h>
3976 #else
3977 # include <assert.h>
3978 #endif
3979                      Syntax error
3980 _ACEOF
3981 if { (ac_try="$ac_cpp conftest.$ac_ext"
3982 case "(($ac_try" in
3983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984   *) ac_try_echo=$ac_try;;
3985 esac
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3988   ac_status=$?
3989   grep -v '^ *+' conftest.er1 >conftest.err
3990   rm -f conftest.er1
3991   cat conftest.err >&5
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } >/dev/null; then
3994   if test -s conftest.err; then
3995     ac_cpp_err=$ac_c_preproc_warn_flag
3996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3997   else
3998     ac_cpp_err=
3999   fi
4000 else
4001   ac_cpp_err=yes
4002 fi
4003 if test -z "$ac_cpp_err"; then
4004   :
4005 else
4006   echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009   # Broken: fails on valid input.
4010 continue
4011 fi
4012
4013 rm -f conftest.err conftest.$ac_ext
4014
4015   # OK, works on sane cases.  Now check whether nonexistent headers
4016   # can be detected and how.
4017   cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h.  */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h.  */
4023 #include <ac_nonexistent.h>
4024 _ACEOF
4025 if { (ac_try="$ac_cpp conftest.$ac_ext"
4026 case "(($ac_try" in
4027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028   *) ac_try_echo=$ac_try;;
4029 esac
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4032   ac_status=$?
4033   grep -v '^ *+' conftest.er1 >conftest.err
4034   rm -f conftest.er1
4035   cat conftest.err >&5
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } >/dev/null; then
4038   if test -s conftest.err; then
4039     ac_cpp_err=$ac_c_preproc_warn_flag
4040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4041   else
4042     ac_cpp_err=
4043   fi
4044 else
4045   ac_cpp_err=yes
4046 fi
4047 if test -z "$ac_cpp_err"; then
4048   # Broken: success on invalid input.
4049 continue
4050 else
4051   echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054   # Passes both tests.
4055 ac_preproc_ok=:
4056 break
4057 fi
4058
4059 rm -f conftest.err conftest.$ac_ext
4060
4061 done
4062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063 rm -f conftest.err conftest.$ac_ext
4064 if $ac_preproc_ok; then
4065   break
4066 fi
4067
4068     done
4069     ac_cv_prog_CPP=$CPP
4070
4071 fi
4072   CPP=$ac_cv_prog_CPP
4073 else
4074   ac_cv_prog_CPP=$CPP
4075 fi
4076 { echo "$as_me:$LINENO: result: $CPP" >&5
4077 echo "${ECHO_T}$CPP" >&6; }
4078 ac_preproc_ok=false
4079 for ac_c_preproc_warn_flag in '' yes
4080 do
4081   # Use a header file that comes with gcc, so configuring glibc
4082   # with a fresh cross-compiler works.
4083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084   # <limits.h> exists even on freestanding compilers.
4085   # On the NeXT, cc -E runs the code through the compiler's parser,
4086   # not just through cpp. "Syntax error" is here to catch this case.
4087   cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093 #ifdef __STDC__
4094 # include <limits.h>
4095 #else
4096 # include <assert.h>
4097 #endif
4098                      Syntax error
4099 _ACEOF
4100 if { (ac_try="$ac_cpp conftest.$ac_ext"
4101 case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } >/dev/null; then
4113   if test -s conftest.err; then
4114     ac_cpp_err=$ac_c_preproc_warn_flag
4115     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4116   else
4117     ac_cpp_err=
4118   fi
4119 else
4120   ac_cpp_err=yes
4121 fi
4122 if test -z "$ac_cpp_err"; then
4123   :
4124 else
4125   echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4127
4128   # Broken: fails on valid input.
4129 continue
4130 fi
4131
4132 rm -f conftest.err conftest.$ac_ext
4133
4134   # OK, works on sane cases.  Now check whether nonexistent headers
4135   # can be detected and how.
4136   cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142 #include <ac_nonexistent.h>
4143 _ACEOF
4144 if { (ac_try="$ac_cpp conftest.$ac_ext"
4145 case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4151   ac_status=$?
4152   grep -v '^ *+' conftest.er1 >conftest.err
4153   rm -f conftest.er1
4154   cat conftest.err >&5
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); } >/dev/null; then
4157   if test -s conftest.err; then
4158     ac_cpp_err=$ac_c_preproc_warn_flag
4159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4160   else
4161     ac_cpp_err=
4162   fi
4163 else
4164   ac_cpp_err=yes
4165 fi
4166 if test -z "$ac_cpp_err"; then
4167   # Broken: success on invalid input.
4168 continue
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173   # Passes both tests.
4174 ac_preproc_ok=:
4175 break
4176 fi
4177
4178 rm -f conftest.err conftest.$ac_ext
4179
4180 done
4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182 rm -f conftest.err conftest.$ac_ext
4183 if $ac_preproc_ok; then
4184   :
4185 else
4186   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4187 See \`config.log' for more details." >&5
4188 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4189 See \`config.log' for more details." >&2;}
4190    { (exit 1); exit 1; }; }
4191 fi
4192
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
4199 if test -n "$ac_tool_prefix"; then
4200   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4201 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4204 if test "${ac_cv_prog_RANLIB+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207   if test -n "$RANLIB"; then
4208   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215   for ac_exec_ext in '' $ac_executable_extensions; do
4216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4217     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222 done
4223 IFS=$as_save_IFS
4224
4225 fi
4226 fi
4227 RANLIB=$ac_cv_prog_RANLIB
4228 if test -n "$RANLIB"; then
4229   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4230 echo "${ECHO_T}$RANLIB" >&6; }
4231 else
4232   { echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6; }
4234 fi
4235
4236
4237 fi
4238 if test -z "$ac_cv_prog_RANLIB"; then
4239   ac_ct_RANLIB=$RANLIB
4240   # Extract the first word of "ranlib", so it can be a program name with args.
4241 set dummy ranlib; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   if test -n "$ac_ct_RANLIB"; then
4248   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4257     ac_cv_prog_ac_ct_RANLIB="ranlib"
4258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262 done
4263 IFS=$as_save_IFS
4264
4265 fi
4266 fi
4267 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4268 if test -n "$ac_ct_RANLIB"; then
4269   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4270 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4271 else
4272   { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4274 fi
4275
4276   if test "x$ac_ct_RANLIB" = x; then
4277     RANLIB=":"
4278   else
4279     case $cross_compiling:$ac_tool_warned in
4280 yes:)
4281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4282 whose name does not start with the host triplet.  If you think this
4283 configuration is useful to you, please write to autoconf@gnu.org." >&5
4284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4285 whose name does not start with the host triplet.  If you think this
4286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4287 ac_tool_warned=yes ;;
4288 esac
4289     RANLIB=$ac_ct_RANLIB
4290   fi
4291 else
4292   RANLIB="$ac_cv_prog_RANLIB"
4293 fi
4294
4295 # Find a good install program.  We prefer a C program (faster),
4296 # so one script is as good as another.  But avoid the broken or
4297 # incompatible versions:
4298 # SysV /etc/install, /usr/sbin/install
4299 # SunOS /usr/etc/install
4300 # IRIX /sbin/install
4301 # AIX /bin/install
4302 # AmigaOS /C/install, which installs bootblocks on floppy discs
4303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4306 # OS/2's system install, which has a completely different semantic
4307 # ./install, which can be erroneously created by make from ./install.sh.
4308 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4309 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4310 if test -z "$INSTALL"; then
4311 if test "${ac_cv_path_install+set}" = set; then
4312   echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4316 do
4317   IFS=$as_save_IFS
4318   test -z "$as_dir" && as_dir=.
4319   # Account for people who put trailing slashes in PATH elements.
4320 case $as_dir/ in
4321   ./ | .// | /cC/* | \
4322   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4323   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4324   /usr/ucb/* ) ;;
4325   *)
4326     # OSF1 and SCO ODT 3.0 have their own names for install.
4327     # Don't use installbsd from OSF since it installs stuff as root
4328     # by default.
4329     for ac_prog in ginstall scoinst install; do
4330       for ac_exec_ext in '' $ac_executable_extensions; do
4331         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4332           if test $ac_prog = install &&
4333             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4334             # AIX install.  It has an incompatible calling convention.
4335             :
4336           elif test $ac_prog = install &&
4337             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4338             # program-specific install script used by HP pwplus--don't use.
4339             :
4340           else
4341             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4342             break 3
4343           fi
4344         fi
4345       done
4346     done
4347     ;;
4348 esac
4349 done
4350 IFS=$as_save_IFS
4351
4352
4353 fi
4354   if test "${ac_cv_path_install+set}" = set; then
4355     INSTALL=$ac_cv_path_install
4356   else
4357     # As a last resort, use the slow shell script.  Don't cache a
4358     # value for INSTALL within a source directory, because that will
4359     # break other packages using the cache if that directory is
4360     # removed, or if the value is a relative name.
4361     INSTALL=$ac_install_sh
4362   fi
4363 fi
4364 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4365 echo "${ECHO_T}$INSTALL" >&6; }
4366
4367 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4368 # It thinks the first close brace ends the variable substitution.
4369 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4370
4371 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4372
4373 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4374
4375 { echo "$as_me:$LINENO: checking for egrep" >&5
4376 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4377 if test "${ac_cv_path_EGREP+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4381    then ac_cv_path_EGREP="$GREP -E"
4382    else
4383      # Extract the first word of "egrep" to use in msg output
4384 if test -z "$EGREP"; then
4385 set dummy egrep; ac_prog_name=$2
4386 if test "${ac_cv_path_EGREP+set}" = set; then
4387   echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389   ac_path_EGREP_found=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4393 do
4394   IFS=$as_save_IFS
4395   test -z "$as_dir" && as_dir=.
4396   for ac_prog in egrep; do
4397   for ac_exec_ext in '' $ac_executable_extensions; do
4398     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4399     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4400     # Check for GNU ac_path_EGREP and select it if it is found.
4401   # Check for GNU $ac_path_EGREP
4402 case `"$ac_path_EGREP" --version 2>&1` in
4403 *GNU*)
4404   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4405 *)
4406   ac_count=0
4407   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4408   while :
4409   do
4410     cat "conftest.in" "conftest.in" >"conftest.tmp"
4411     mv "conftest.tmp" "conftest.in"
4412     cp "conftest.in" "conftest.nl"
4413     echo 'EGREP' >> "conftest.nl"
4414     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416     ac_count=`expr $ac_count + 1`
4417     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4418       # Best one so far, save it but keep looking for a better one
4419       ac_cv_path_EGREP="$ac_path_EGREP"
4420       ac_path_EGREP_max=$ac_count
4421     fi
4422     # 10*(2^10) chars as input seems more than enough
4423     test $ac_count -gt 10 && break
4424   done
4425   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 esac
4427
4428
4429     $ac_path_EGREP_found && break 3
4430   done
4431 done
4432
4433 done
4434 IFS=$as_save_IFS
4435
4436
4437 fi
4438
4439 EGREP="$ac_cv_path_EGREP"
4440 if test -z "$EGREP"; then
4441   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4442 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4443    { (exit 1); exit 1; }; }
4444 fi
4445
4446 else
4447   ac_cv_path_EGREP=$EGREP
4448 fi
4449
4450
4451    fi
4452 fi
4453 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4454 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4455  EGREP="$ac_cv_path_EGREP"
4456
4457
4458 # Extract the first word of "ar", so it can be a program name with args.
4459 set dummy ar; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_path_AR+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   case $AR in
4466   [\\/]* | ?:[\\/]*)
4467   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4468   ;;
4469   *)
4470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473   IFS=$as_save_IFS
4474   test -z "$as_dir" && as_dir=.
4475   for ac_exec_ext in '' $ac_executable_extensions; do
4476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4477     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479     break 2
4480   fi
4481 done
4482 done
4483 IFS=$as_save_IFS
4484
4485   ;;
4486 esac
4487 fi
4488 AR=$ac_cv_path_AR
4489 if test -n "$AR"; then
4490   { echo "$as_me:$LINENO: result: $AR" >&5
4491 echo "${ECHO_T}$AR" >&6; }
4492 else
4493   { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4495 fi
4496
4497
4498 # Extract the first word of "cat", so it can be a program name with args.
4499 set dummy cat; ac_word=$2
4500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4502 if test "${ac_cv_path_CAT+set}" = set; then
4503   echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505   case $CAT in
4506   [\\/]* | ?:[\\/]*)
4507   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4508   ;;
4509   *)
4510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515   for ac_exec_ext in '' $ac_executable_extensions; do
4516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4517     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519     break 2
4520   fi
4521 done
4522 done
4523 IFS=$as_save_IFS
4524
4525   ;;
4526 esac
4527 fi
4528 CAT=$ac_cv_path_CAT
4529 if test -n "$CAT"; then
4530   { echo "$as_me:$LINENO: result: $CAT" >&5
4531 echo "${ECHO_T}$CAT" >&6; }
4532 else
4533   { echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6; }
4535 fi
4536
4537
4538 # Extract the first word of "kill", so it can be a program name with args.
4539 set dummy kill; ac_word=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_path_KILL+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   case $KILL in
4546   [\\/]* | ?:[\\/]*)
4547   ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4548   ;;
4549   *)
4550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555   for ac_exec_ext in '' $ac_executable_extensions; do
4556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4557     ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559     break 2
4560   fi
4561 done
4562 done
4563 IFS=$as_save_IFS
4564
4565   ;;
4566 esac
4567 fi
4568 KILL=$ac_cv_path_KILL
4569 if test -n "$KILL"; then
4570   { echo "$as_me:$LINENO: result: $KILL" >&5
4571 echo "${ECHO_T}$KILL" >&6; }
4572 else
4573   { echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6; }
4575 fi
4576
4577
4578 for ac_prog in perl5 perl
4579 do
4580   # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_path_PERL+set}" = set; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587   case $PERL in
4588   [\\/]* | ?:[\\/]*)
4589   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4590   ;;
4591   *)
4592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595   IFS=$as_save_IFS
4596   test -z "$as_dir" && as_dir=.
4597   for ac_exec_ext in '' $ac_executable_extensions; do
4598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4599     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601     break 2
4602   fi
4603 done
4604 done
4605 IFS=$as_save_IFS
4606
4607   ;;
4608 esac
4609 fi
4610 PERL=$ac_cv_path_PERL
4611 if test -n "$PERL"; then
4612   { echo "$as_me:$LINENO: result: $PERL" >&5
4613 echo "${ECHO_T}$PERL" >&6; }
4614 else
4615   { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4617 fi
4618
4619
4620   test -n "$PERL" && break
4621 done
4622
4623 # Extract the first word of "sed", so it can be a program name with args.
4624 set dummy sed; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_path_SED+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   case $SED in
4631   [\\/]* | ?:[\\/]*)
4632   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4633   ;;
4634   *)
4635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640   for ac_exec_ext in '' $ac_executable_extensions; do
4641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4642     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650   ;;
4651 esac
4652 fi
4653 SED=$ac_cv_path_SED
4654 if test -n "$SED"; then
4655   { echo "$as_me:$LINENO: result: $SED" >&5
4656 echo "${ECHO_T}$SED" >&6; }
4657 else
4658   { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4660 fi
4661
4662
4663
4664 # Extract the first word of "ent", so it can be a program name with args.
4665 set dummy ent; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_path_ENT+set}" = set; then
4669   echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671   case $ENT in
4672   [\\/]* | ?:[\\/]*)
4673   ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4674   ;;
4675   *)
4676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679   IFS=$as_save_IFS
4680   test -z "$as_dir" && as_dir=.
4681   for ac_exec_ext in '' $ac_executable_extensions; do
4682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4683     ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685     break 2
4686   fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691   ;;
4692 esac
4693 fi
4694 ENT=$ac_cv_path_ENT
4695 if test -n "$ENT"; then
4696   { echo "$as_me:$LINENO: result: $ENT" >&5
4697 echo "${ECHO_T}$ENT" >&6; }
4698 else
4699   { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4701 fi
4702
4703
4704
4705 # Extract the first word of "bash", so it can be a program name with args.
4706 set dummy bash; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   case $TEST_MINUS_S_SH in
4713   [\\/]* | ?:[\\/]*)
4714   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4715   ;;
4716   *)
4717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722   for ac_exec_ext in '' $ac_executable_extensions; do
4723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4724     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732   ;;
4733 esac
4734 fi
4735 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4736 if test -n "$TEST_MINUS_S_SH"; then
4737   { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4738 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4739 else
4740   { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4742 fi
4743
4744
4745 # Extract the first word of "ksh", so it can be a program name with args.
4746 set dummy ksh; ac_word=$2
4747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752   case $TEST_MINUS_S_SH in
4753   [\\/]* | ?:[\\/]*)
4754   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4755   ;;
4756   *)
4757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762   for ac_exec_ext in '' $ac_executable_extensions; do
4763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4764     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769 done
4770 IFS=$as_save_IFS
4771
4772   ;;
4773 esac
4774 fi
4775 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4776 if test -n "$TEST_MINUS_S_SH"; then
4777   { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4778 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4779 else
4780   { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4782 fi
4783
4784
4785 # Extract the first word of "sh", so it can be a program name with args.
4786 set dummy sh; ac_word=$2
4787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4789 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   case $TEST_MINUS_S_SH in
4793   [\\/]* | ?:[\\/]*)
4794   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4795   ;;
4796   *)
4797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800   IFS=$as_save_IFS
4801   test -z "$as_dir" && as_dir=.
4802   for ac_exec_ext in '' $ac_executable_extensions; do
4803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4804     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806     break 2
4807   fi
4808 done
4809 done
4810 IFS=$as_save_IFS
4811
4812   ;;
4813 esac
4814 fi
4815 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4816 if test -n "$TEST_MINUS_S_SH"; then
4817   { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4818 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4819 else
4820   { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4822 fi
4823
4824
4825 # Extract the first word of "sh", so it can be a program name with args.
4826 set dummy sh; ac_word=$2
4827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829 if test "${ac_cv_path_SH+set}" = set; then
4830   echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832   case $SH in
4833   [\\/]* | ?:[\\/]*)
4834   ac_cv_path_SH="$SH" # Let the user override the test with a path.
4835   ;;
4836   *)
4837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842   for ac_exec_ext in '' $ac_executable_extensions; do
4843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4844     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846     break 2
4847   fi
4848 done
4849 done
4850 IFS=$as_save_IFS
4851
4852   ;;
4853 esac
4854 fi
4855 SH=$ac_cv_path_SH
4856 if test -n "$SH"; then
4857   { echo "$as_me:$LINENO: result: $SH" >&5
4858 echo "${ECHO_T}$SH" >&6; }
4859 else
4860   { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4862 fi
4863
4864
4865 TEST_SHELL=sh
4866
4867
4868 # Extract the first word of "groupadd", so it can be a program name with args.
4869 set dummy groupadd; ac_word=$2
4870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872 if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875   case $PATH_GROUPADD_PROG in
4876   [\\/]* | ?:[\\/]*)
4877   ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4878   ;;
4879   *)
4880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885   for ac_exec_ext in '' $ac_executable_extensions; do
4886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4887     ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889     break 2
4890   fi
4891 done
4892 done
4893 IFS=$as_save_IFS
4894
4895   test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4896   ;;
4897 esac
4898 fi
4899 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4900 if test -n "$PATH_GROUPADD_PROG"; then
4901   { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4902 echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4903 else
4904   { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4906 fi
4907
4908
4909 # Extract the first word of "useradd", so it can be a program name with args.
4910 set dummy useradd; ac_word=$2
4911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4913 if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   case $PATH_USERADD_PROG in
4917   [\\/]* | ?:[\\/]*)
4918   ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4919   ;;
4920   *)
4921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4923 do
4924   IFS=$as_save_IFS
4925   test -z "$as_dir" && as_dir=.
4926   for ac_exec_ext in '' $ac_executable_extensions; do
4927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4928     ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930     break 2
4931   fi
4932 done
4933 done
4934 IFS=$as_save_IFS
4935
4936   test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4937   ;;
4938 esac
4939 fi
4940 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4941 if test -n "$PATH_USERADD_PROG"; then
4942   { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4943 echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4944 else
4945   { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4947 fi
4948
4949
4950 # Extract the first word of "pkgmk", so it can be a program name with args.
4951 set dummy pkgmk; ac_word=$2
4952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4954 if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4958   ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965   for ac_exec_ext in '' $ac_executable_extensions; do
4966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4967     ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972 done
4973 IFS=$as_save_IFS
4974
4975   test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4976 fi
4977 fi
4978 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4979 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4980   { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4981 echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4982 else
4983   { echo "$as_me:$LINENO: result: no" >&5
4984 echo "${ECHO_T}no" >&6; }
4985 fi
4986
4987
4988 if test -x /sbin/sh; then
4989         STARTUP_SCRIPT_SHELL=/sbin/sh
4990
4991 else
4992         STARTUP_SCRIPT_SHELL=/bin/sh
4993
4994 fi
4995
4996 # System features
4997 # Check whether --enable-largefile was given.
4998 if test "${enable_largefile+set}" = set; then
4999   enableval=$enable_largefile;
5000 fi
5001
5002 if test "$enable_largefile" != no; then
5003
5004   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5005 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5006 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   ac_cv_sys_largefile_CC=no
5010      if test "$GCC" != yes; then
5011        ac_save_CC=$CC
5012        while :; do
5013          # IRIX 6.2 and later do not support large files by default,
5014          # so use the C compiler's -n32 option if that helps.
5015          cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h.  */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h.  */
5021 #include <sys/types.h>
5022  /* Check that off_t can represent 2**63 - 1 correctly.
5023     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5024     since some C++ compilers masquerading as C compilers
5025     incorrectly reject 9223372036854775807.  */
5026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5027   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5028                        && LARGE_OFF_T % 2147483647 == 1)
5029                       ? 1 : -1];
5030 int
5031 main ()
5032 {
5033
5034   ;
5035   return 0;
5036 }
5037 _ACEOF
5038          rm -f conftest.$ac_objext
5039 if { (ac_try="$ac_compile"
5040 case "(($ac_try" in
5041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042   *) ac_try_echo=$ac_try;;
5043 esac
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045   (eval "$ac_compile") 2>conftest.er1
5046   ac_status=$?
5047   grep -v '^ *+' conftest.er1 >conftest.err
5048   rm -f conftest.er1
5049   cat conftest.err >&5
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); } &&
5052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5053   { (case "(($ac_try" in
5054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055   *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058   (eval "$ac_try") 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; } &&
5062          { ac_try='test -s conftest.$ac_objext'
5063   { (case "(($ac_try" in
5064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065   *) ac_try_echo=$ac_try;;
5066 esac
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068   (eval "$ac_try") 2>&5
5069   ac_status=$?
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); }; }; then
5072   break
5073 else
5074   echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077
5078 fi
5079
5080 rm -f core conftest.err conftest.$ac_objext
5081          CC="$CC -n32"
5082          rm -f conftest.$ac_objext
5083 if { (ac_try="$ac_compile"
5084 case "(($ac_try" in
5085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086   *) ac_try_echo=$ac_try;;
5087 esac
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089   (eval "$ac_compile") 2>conftest.er1
5090   ac_status=$?
5091   grep -v '^ *+' conftest.er1 >conftest.err
5092   rm -f conftest.er1
5093   cat conftest.err >&5
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } &&
5096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5097   { (case "(($ac_try" in
5098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099   *) ac_try_echo=$ac_try;;
5100 esac
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102   (eval "$ac_try") 2>&5
5103   ac_status=$?
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); }; } &&
5106          { ac_try='test -s conftest.$ac_objext'
5107   { (case "(($ac_try" in
5108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109   *) ac_try_echo=$ac_try;;
5110 esac
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112   (eval "$ac_try") 2>&5
5113   ac_status=$?
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); }; }; then
5116   ac_cv_sys_largefile_CC=' -n32'; break
5117 else
5118   echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121
5122 fi
5123
5124 rm -f core conftest.err conftest.$ac_objext
5125          break
5126        done
5127        CC=$ac_save_CC
5128        rm -f conftest.$ac_ext
5129     fi
5130 fi
5131 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5132 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5133   if test "$ac_cv_sys_largefile_CC" != no; then
5134     CC=$CC$ac_cv_sys_largefile_CC
5135   fi
5136
5137   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5138 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5139 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5140   echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142   while :; do
5143   ac_cv_sys_file_offset_bits=no
5144   cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h.  */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h.  */
5150 #include <sys/types.h>
5151  /* Check that off_t can represent 2**63 - 1 correctly.
5152     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5153     since some C++ compilers masquerading as C compilers
5154     incorrectly reject 9223372036854775807.  */
5155 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5156   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5157                        && LARGE_OFF_T % 2147483647 == 1)
5158                       ? 1 : -1];
5159 int
5160 main ()
5161 {
5162
5163   ;
5164   return 0;
5165 }
5166 _ACEOF
5167 rm -f conftest.$ac_objext
5168 if { (ac_try="$ac_compile"
5169 case "(($ac_try" in
5170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171   *) ac_try_echo=$ac_try;;
5172 esac
5173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174   (eval "$ac_compile") 2>conftest.er1
5175   ac_status=$?
5176   grep -v '^ *+' conftest.er1 >conftest.err
5177   rm -f conftest.er1
5178   cat conftest.err >&5
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); } &&
5181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5182   { (case "(($ac_try" in
5183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184   *) ac_try_echo=$ac_try;;
5185 esac
5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187   (eval "$ac_try") 2>&5
5188   ac_status=$?
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); }; } &&
5191          { ac_try='test -s conftest.$ac_objext'
5192   { (case "(($ac_try" in
5193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194   *) ac_try_echo=$ac_try;;
5195 esac
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197   (eval "$ac_try") 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }; }; then
5201   break
5202 else
5203   echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5205
5206
5207 fi
5208
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210   cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h.  */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h.  */
5216 #define _FILE_OFFSET_BITS 64
5217 #include <sys/types.h>
5218  /* Check that off_t can represent 2**63 - 1 correctly.
5219     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5220     since some C++ compilers masquerading as C compilers
5221     incorrectly reject 9223372036854775807.  */
5222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5223   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5224                        && LARGE_OFF_T % 2147483647 == 1)
5225                       ? 1 : -1];
5226 int
5227 main ()
5228 {
5229
5230   ;
5231   return 0;
5232 }
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (ac_try="$ac_compile"
5236 case "(($ac_try" in
5237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238   *) ac_try_echo=$ac_try;;
5239 esac
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241   (eval "$ac_compile") 2>conftest.er1
5242   ac_status=$?
5243   grep -v '^ *+' conftest.er1 >conftest.err
5244   rm -f conftest.er1
5245   cat conftest.err >&5
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); } &&
5248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5249   { (case "(($ac_try" in
5250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251   *) ac_try_echo=$ac_try;;
5252 esac
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254   (eval "$ac_try") 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }; } &&
5258          { ac_try='test -s conftest.$ac_objext'
5259   { (case "(($ac_try" in
5260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261   *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264   (eval "$ac_try") 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); }; }; then
5268   ac_cv_sys_file_offset_bits=64; break
5269 else
5270   echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5272
5273
5274 fi
5275
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277   break
5278 done
5279 fi
5280 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5281 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5282 if test "$ac_cv_sys_file_offset_bits" != no; then
5283
5284 cat >>confdefs.h <<_ACEOF
5285 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5286 _ACEOF
5287
5288 fi
5289 rm -f conftest*
5290   { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5291 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5292 if test "${ac_cv_sys_large_files+set}" = set; then
5293   echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295   while :; do
5296   ac_cv_sys_large_files=no
5297   cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h.  */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h.  */
5303 #include <sys/types.h>
5304  /* Check that off_t can represent 2**63 - 1 correctly.
5305     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5306     since some C++ compilers masquerading as C compilers
5307     incorrectly reject 9223372036854775807.  */
5308 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5309   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5310                        && LARGE_OFF_T % 2147483647 == 1)
5311                       ? 1 : -1];
5312 int
5313 main ()
5314 {
5315
5316   ;
5317   return 0;
5318 }
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (ac_try="$ac_compile"
5322 case "(($ac_try" in
5323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324   *) ac_try_echo=$ac_try;;
5325 esac
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327   (eval "$ac_compile") 2>conftest.er1
5328   ac_status=$?
5329   grep -v '^ *+' conftest.er1 >conftest.err
5330   rm -f conftest.er1
5331   cat conftest.err >&5
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); } &&
5334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5335   { (case "(($ac_try" in
5336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337   *) ac_try_echo=$ac_try;;
5338 esac
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340   (eval "$ac_try") 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; } &&
5344          { ac_try='test -s conftest.$ac_objext'
5345   { (case "(($ac_try" in
5346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347   *) ac_try_echo=$ac_try;;
5348 esac
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350   (eval "$ac_try") 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; }; then
5354   break
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5358
5359
5360 fi
5361
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363   cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h.  */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h.  */
5369 #define _LARGE_FILES 1
5370 #include <sys/types.h>
5371  /* Check that off_t can represent 2**63 - 1 correctly.
5372     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5373     since some C++ compilers masquerading as C compilers
5374     incorrectly reject 9223372036854775807.  */
5375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5376   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5377                        && LARGE_OFF_T % 2147483647 == 1)
5378                       ? 1 : -1];
5379 int
5380 main ()
5381 {
5382
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (ac_try="$ac_compile"
5389 case "(($ac_try" in
5390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391   *) ac_try_echo=$ac_try;;
5392 esac
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394   (eval "$ac_compile") 2>conftest.er1
5395   ac_status=$?
5396   grep -v '^ *+' conftest.er1 >conftest.err
5397   rm -f conftest.er1
5398   cat conftest.err >&5
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); } &&
5401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5402   { (case "(($ac_try" in
5403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404   *) ac_try_echo=$ac_try;;
5405 esac
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407   (eval "$ac_try") 2>&5
5408   ac_status=$?
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); }; } &&
5411          { ac_try='test -s conftest.$ac_objext'
5412   { (case "(($ac_try" in
5413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414   *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417   (eval "$ac_try") 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); }; }; then
5421   ac_cv_sys_large_files=1; break
5422 else
5423   echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426
5427 fi
5428
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430   break
5431 done
5432 fi
5433 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5434 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5435 if test "$ac_cv_sys_large_files" != no; then
5436
5437 cat >>confdefs.h <<_ACEOF
5438 #define _LARGE_FILES $ac_cv_sys_large_files
5439 _ACEOF
5440
5441 fi
5442 rm -f conftest*
5443 fi
5444
5445
5446 if test -z "$AR" ; then
5447         { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5448 echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5449    { (exit 1); exit 1; }; }
5450 fi
5451
5452 # Use LOGIN_PROGRAM from environment if possible
5453 if test ! -z "$LOGIN_PROGRAM" ; then
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5457 _ACEOF
5458
5459 else
5460         # Search for login
5461         # Extract the first word of "login", so it can be a program name with args.
5462 set dummy login; ac_word=$2
5463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5465 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   case $LOGIN_PROGRAM_FALLBACK in
5469   [\\/]* | ?:[\\/]*)
5470   ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5471   ;;
5472   *)
5473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478   for ac_exec_ext in '' $ac_executable_extensions; do
5479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5480     ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485 done
5486 IFS=$as_save_IFS
5487
5488   ;;
5489 esac
5490 fi
5491 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5492 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5493   { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5494 echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5495 else
5496   { echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6; }
5498 fi
5499
5500
5501         if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5502                 cat >>confdefs.h <<_ACEOF
5503 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5504 _ACEOF
5505
5506         fi
5507 fi
5508
5509 # Extract the first word of "passwd", so it can be a program name with args.
5510 set dummy passwd; ac_word=$2
5511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5513 if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5514   echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516   case $PATH_PASSWD_PROG in
5517   [\\/]* | ?:[\\/]*)
5518   ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5519   ;;
5520   *)
5521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524   IFS=$as_save_IFS
5525   test -z "$as_dir" && as_dir=.
5526   for ac_exec_ext in '' $ac_executable_extensions; do
5527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5528     ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530     break 2
5531   fi
5532 done
5533 done
5534 IFS=$as_save_IFS
5535
5536   ;;
5537 esac
5538 fi
5539 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5540 if test -n "$PATH_PASSWD_PROG"; then
5541   { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5542 echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5543 else
5544   { echo "$as_me:$LINENO: result: no" >&5
5545 echo "${ECHO_T}no" >&6; }
5546 fi
5547
5548
5549 if test ! -z "$PATH_PASSWD_PROG" ; then
5550
5551 cat >>confdefs.h <<_ACEOF
5552 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5553 _ACEOF
5554
5555 fi
5556
5557 if test -z "$LD" ; then
5558         LD=$CC
5559 fi
5560
5561
5562 { echo "$as_me:$LINENO: checking for inline" >&5
5563 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5564 if test "${ac_cv_c_inline+set}" = set; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567   ac_cv_c_inline=no
5568 for ac_kw in inline __inline__ __inline; do
5569   cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h.  */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h.  */
5575 #ifndef __cplusplus
5576 typedef int foo_t;
5577 static $ac_kw foo_t static_foo () {return 0; }
5578 $ac_kw foo_t foo () {return 0; }
5579 #endif
5580
5581 _ACEOF
5582 rm -f conftest.$ac_objext
5583 if { (ac_try="$ac_compile"
5584 case "(($ac_try" in
5585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586   *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589   (eval "$ac_compile") 2>conftest.er1
5590   ac_status=$?
5591   grep -v '^ *+' conftest.er1 >conftest.err
5592   rm -f conftest.er1
5593   cat conftest.err >&5
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); } &&
5596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5597   { (case "(($ac_try" in
5598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599   *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602   (eval "$ac_try") 2>&5
5603   ac_status=$?
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); }; } &&
5606          { ac_try='test -s conftest.$ac_objext'
5607   { (case "(($ac_try" in
5608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609   *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612   (eval "$ac_try") 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; }; then
5616   ac_cv_c_inline=$ac_kw
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621
5622 fi
5623
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625   test "$ac_cv_c_inline" != no && break
5626 done
5627
5628 fi
5629 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5630 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5631
5632
5633 case $ac_cv_c_inline in
5634   inline | yes) ;;
5635   *)
5636     case $ac_cv_c_inline in
5637       no) ac_val=;;
5638       *) ac_val=$ac_cv_c_inline;;
5639     esac
5640     cat >>confdefs.h <<_ACEOF
5641 #ifndef __cplusplus
5642 #define inline $ac_val
5643 #endif
5644 _ACEOF
5645     ;;
5646 esac
5647
5648
5649 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5650 echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5651 if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660 #include <limits.h>
5661
5662 int
5663 main ()
5664 {
5665 #ifndef LLONG_MAX
5666   char *p = (char *) LLONG_MAX;
5667   return !p;
5668 #endif
5669
5670   ;
5671   return 0;
5672 }
5673 _ACEOF
5674 rm -f conftest.$ac_objext
5675 if { (ac_try="$ac_compile"
5676 case "(($ac_try" in
5677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678   *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681   (eval "$ac_compile") 2>conftest.er1
5682   ac_status=$?
5683   grep -v '^ *+' conftest.er1 >conftest.err
5684   rm -f conftest.er1
5685   cat conftest.err >&5
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); } &&
5688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5689   { (case "(($ac_try" in
5690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691   *) ac_try_echo=$ac_try;;
5692 esac
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694   (eval "$ac_try") 2>&5
5695   ac_status=$?
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); }; } &&
5698          { ac_try='test -s conftest.$ac_objext'
5699   { (case "(($ac_try" in
5700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701   *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704   (eval "$ac_try") 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; }; then
5708   ac_cv_have_decl_LLONG_MAX=yes
5709 else
5710   echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713         ac_cv_have_decl_LLONG_MAX=no
5714 fi
5715
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 fi
5718 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5719 echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5720 if test $ac_cv_have_decl_LLONG_MAX = yes; then
5721   have_llong_max=1
5722 fi
5723
5724
5725 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5726         CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5727         GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5728         case $GCC_VER in
5729                 1.*) ;;
5730                 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5731                 2.*) ;;
5732                 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;;
5733                 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;;
5734                 *) ;;
5735         esac
5736
5737         if test -z "$have_llong_max"; then
5738                 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5739                 unset ac_cv_have_decl_LLONG_MAX
5740                 saved_CFLAGS="$CFLAGS"
5741                 CFLAGS="$CFLAGS -std=gnu99"
5742                 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5743 echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5744 if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753 #include <limits.h>
5754
5755
5756 int
5757 main ()
5758 {
5759 #ifndef LLONG_MAX
5760   char *p = (char *) LLONG_MAX;
5761   return !p;
5762 #endif
5763
5764   ;
5765   return 0;
5766 }
5767 _ACEOF
5768 rm -f conftest.$ac_objext
5769 if { (ac_try="$ac_compile"
5770 case "(($ac_try" in
5771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772   *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775   (eval "$ac_compile") 2>conftest.er1
5776   ac_status=$?
5777   grep -v '^ *+' conftest.er1 >conftest.err
5778   rm -f conftest.er1
5779   cat conftest.err >&5
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); } &&
5782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5783   { (case "(($ac_try" in
5784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785   *) ac_try_echo=$ac_try;;
5786 esac
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788   (eval "$ac_try") 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; } &&
5792          { ac_try='test -s conftest.$ac_objext'
5793   { (case "(($ac_try" in
5794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795   *) ac_try_echo=$ac_try;;
5796 esac
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798   (eval "$ac_try") 2>&5
5799   ac_status=$?
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); }; }; then
5802   ac_cv_have_decl_LLONG_MAX=yes
5803 else
5804   echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5806
5807         ac_cv_have_decl_LLONG_MAX=no
5808 fi
5809
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811 fi
5812 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5813 echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5814 if test $ac_cv_have_decl_LLONG_MAX = yes; then
5815   have_llong_max=1
5816 else
5817   CFLAGS="$saved_CFLAGS"
5818 fi
5819
5820         fi
5821 fi
5822
5823
5824 # Check whether --with-rpath was given.
5825 if test "${with_rpath+set}" = set; then
5826   withval=$with_rpath;
5827                 if test "x$withval" = "xno" ; then
5828                         need_dash_r=""
5829                 fi
5830                 if test "x$withval" = "xyes" ; then
5831                         need_dash_r=1
5832                 fi
5833
5834
5835 fi
5836
5837
5838 # Messages for features tested for in target-specific section
5839 SIA_MSG="no"
5840 SPC_MSG="no"
5841
5842 # Check for some target-specific stuff
5843 case "$host" in
5844 *-*-aix*)
5845         # Some versions of VAC won't allow macro redefinitions at
5846         # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
5847         # particularly with older versions of vac or xlc.
5848         # It also throws errors about null macro argments, but these are
5849         # not fatal.
5850         { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
5851 echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
5852         cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h.  */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h.  */
5858
5859 #define testmacro foo
5860 #define testmacro bar
5861 int main(void) { exit(0); }
5862
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (ac_try="$ac_compile"
5866 case "(($ac_try" in
5867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868   *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871   (eval "$ac_compile") 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } &&
5878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5879   { (case "(($ac_try" in
5880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881   *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884   (eval "$ac_try") 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }; } &&
5888          { ac_try='test -s conftest.$ac_objext'
5889   { (case "(($ac_try" in
5890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891   *) ac_try_echo=$ac_try;;
5892 esac
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894   (eval "$ac_try") 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); }; }; then
5898    { echo "$as_me:$LINENO: result: yes" >&5
5899 echo "${ECHO_T}yes" >&6; }
5900 else
5901   echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904          { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5906               CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
5907               LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
5908               CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
5909               CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
5910
5911
5912 fi
5913
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915
5916         { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
5917 echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
5918         if (test -z "$blibpath"); then
5919                 blibpath="/usr/lib:/lib"
5920         fi
5921         saved_LDFLAGS="$LDFLAGS"
5922         if test "$GCC" = "yes"; then
5923                 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
5924         else
5925                 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
5926         fi
5927         for tryflags in $flags ;do
5928                 if (test -z "$blibflags"); then
5929                         LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
5930                         cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936
5937 int
5938 main ()
5939 {
5940
5941   ;
5942   return 0;
5943 }
5944 _ACEOF
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (ac_try="$ac_link"
5947 case "(($ac_try" in
5948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949   *) ac_try_echo=$ac_try;;
5950 esac
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952   (eval "$ac_link") 2>conftest.er1
5953   ac_status=$?
5954   grep -v '^ *+' conftest.er1 >conftest.err
5955   rm -f conftest.er1
5956   cat conftest.err >&5
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } &&
5959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5960   { (case "(($ac_try" in
5961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962   *) ac_try_echo=$ac_try;;
5963 esac
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965   (eval "$ac_try") 2>&5
5966   ac_status=$?
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); }; } &&
5969          { ac_try='test -s conftest$ac_exeext'
5970   { (case "(($ac_try" in
5971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972   *) ac_try_echo=$ac_try;;
5973 esac
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975   (eval "$ac_try") 2>&5
5976   ac_status=$?
5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); }; }; then
5979   blibflags=$tryflags
5980 else
5981   echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984
5985 fi
5986
5987 rm -f core conftest.err conftest.$ac_objext \
5988       conftest$ac_exeext conftest.$ac_ext
5989                 fi
5990         done
5991         if (test -z "$blibflags"); then
5992                 { echo "$as_me:$LINENO: result: not found" >&5
5993 echo "${ECHO_T}not found" >&6; }
5994                 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
5995 echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
5996    { (exit 1); exit 1; }; }
5997         else
5998                 { echo "$as_me:$LINENO: result: $blibflags" >&5
5999 echo "${ECHO_T}$blibflags" >&6; }
6000         fi
6001         LDFLAGS="$saved_LDFLAGS"
6002                 { echo "$as_me:$LINENO: checking for authenticate" >&5
6003 echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6004 if test "${ac_cv_func_authenticate+set}" = set; then
6005   echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007   cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h.  */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h.  */
6013 /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6015 #define authenticate innocuous_authenticate
6016
6017 /* System header to define __stub macros and hopefully few prototypes,
6018     which can conflict with char authenticate (); below.
6019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6020     <limits.h> exists even on freestanding compilers.  */
6021
6022 #ifdef __STDC__
6023 # include <limits.h>
6024 #else
6025 # include <assert.h>
6026 #endif
6027
6028 #undef authenticate
6029
6030 /* Override any GCC internal prototype to avoid an error.
6031    Use char because int might match the return type of a GCC
6032    builtin and then its argument prototype would still apply.  */
6033 #ifdef __cplusplus
6034 extern "C"
6035 #endif
6036 char authenticate ();
6037 /* The GNU C library defines this for functions which it implements
6038     to always fail with ENOSYS.  Some functions are actually named
6039     something starting with __ and the normal name is an alias.  */
6040 #if defined __stub_authenticate || defined __stub___authenticate
6041 choke me
6042 #endif
6043
6044 int
6045 main ()
6046 {
6047 return authenticate ();
6048   ;
6049   return 0;
6050 }
6051 _ACEOF
6052 rm -f conftest.$ac_objext conftest$ac_exeext
6053 if { (ac_try="$ac_link"
6054 case "(($ac_try" in
6055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056   *) ac_try_echo=$ac_try;;
6057 esac
6058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059   (eval "$ac_link") 2>conftest.er1
6060   ac_status=$?
6061   grep -v '^ *+' conftest.er1 >conftest.err
6062   rm -f conftest.er1
6063   cat conftest.err >&5
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } &&
6066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6067   { (case "(($ac_try" in
6068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069   *) ac_try_echo=$ac_try;;
6070 esac
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072   (eval "$ac_try") 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }; } &&
6076          { ac_try='test -s conftest$ac_exeext'
6077   { (case "(($ac_try" in
6078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079   *) ac_try_echo=$ac_try;;
6080 esac
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082   (eval "$ac_try") 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); }; }; then
6086   ac_cv_func_authenticate=yes
6087 else
6088   echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6090
6091         ac_cv_func_authenticate=no
6092 fi
6093
6094 rm -f core conftest.err conftest.$ac_objext \
6095       conftest$ac_exeext conftest.$ac_ext
6096 fi
6097 { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6098 echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6099 if test $ac_cv_func_authenticate = yes; then
6100
6101 cat >>confdefs.h <<\_ACEOF
6102 #define WITH_AIXAUTHENTICATE 1
6103 _ACEOF
6104
6105 else
6106   { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6107 echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6108 if test "${ac_cv_lib_s_authenticate+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   ac_check_lib_save_LIBS=$LIBS
6112 LIBS="-ls  $LIBS"
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h.  */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h.  */
6119
6120 /* Override any GCC internal prototype to avoid an error.
6121    Use char because int might match the return type of a GCC
6122    builtin and then its argument prototype would still apply.  */
6123 #ifdef __cplusplus
6124 extern "C"
6125 #endif
6126 char authenticate ();
6127 int
6128 main ()
6129 {
6130 return authenticate ();
6131   ;
6132   return 0;
6133 }
6134 _ACEOF
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (ac_try="$ac_link"
6137 case "(($ac_try" in
6138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139   *) ac_try_echo=$ac_try;;
6140 esac
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142   (eval "$ac_link") 2>conftest.er1
6143   ac_status=$?
6144   grep -v '^ *+' conftest.er1 >conftest.err
6145   rm -f conftest.er1
6146   cat conftest.err >&5
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); } &&
6149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6150   { (case "(($ac_try" in
6151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152   *) ac_try_echo=$ac_try;;
6153 esac
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155   (eval "$ac_try") 2>&5
6156   ac_status=$?
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); }; } &&
6159          { ac_try='test -s conftest$ac_exeext'
6160   { (case "(($ac_try" in
6161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162   *) ac_try_echo=$ac_try;;
6163 esac
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165   (eval "$ac_try") 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); }; }; then
6169   ac_cv_lib_s_authenticate=yes
6170 else
6171   echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6173
6174         ac_cv_lib_s_authenticate=no
6175 fi
6176
6177 rm -f core conftest.err conftest.$ac_objext \
6178       conftest$ac_exeext conftest.$ac_ext
6179 LIBS=$ac_check_lib_save_LIBS
6180 fi
6181 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6182 echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6183 if test $ac_cv_lib_s_authenticate = yes; then
6184    cat >>confdefs.h <<\_ACEOF
6185 #define WITH_AIXAUTHENTICATE 1
6186 _ACEOF
6187
6188                                 LIBS="$LIBS -ls"
6189
6190 fi
6191
6192
6193 fi
6194
6195                 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6196 echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6197 if test "${ac_cv_have_decl_authenticate+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206 #include <usersec.h>
6207
6208 int
6209 main ()
6210 {
6211 #ifndef authenticate
6212   char *p = (char *) authenticate;
6213   return !p;
6214 #endif
6215
6216   ;
6217   return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6222 case "(($ac_try" in
6223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224   *) ac_try_echo=$ac_try;;
6225 esac
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227   (eval "$ac_compile") 2>conftest.er1
6228   ac_status=$?
6229   grep -v '^ *+' conftest.er1 >conftest.err
6230   rm -f conftest.er1
6231   cat conftest.err >&5
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); } &&
6234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6235   { (case "(($ac_try" in
6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237   *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240   (eval "$ac_try") 2>&5
6241   ac_status=$?
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); }; } &&
6244          { ac_try='test -s conftest.$ac_objext'
6245   { (case "(($ac_try" in
6246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247   *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250   (eval "$ac_try") 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); }; }; then
6254   ac_cv_have_decl_authenticate=yes
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259         ac_cv_have_decl_authenticate=no
6260 fi
6261
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 fi
6264 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6265 echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6266 if test $ac_cv_have_decl_authenticate = yes; then
6267
6268 cat >>confdefs.h <<_ACEOF
6269 #define HAVE_DECL_AUTHENTICATE 1
6270 _ACEOF
6271
6272
6273 else
6274   cat >>confdefs.h <<_ACEOF
6275 #define HAVE_DECL_AUTHENTICATE 0
6276 _ACEOF
6277
6278
6279 fi
6280 { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6281 echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6282 if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6283   echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285   cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h.  */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h.  */
6291 #include <usersec.h>
6292
6293 int
6294 main ()
6295 {
6296 #ifndef loginrestrictions
6297   char *p = (char *) loginrestrictions;
6298   return !p;
6299 #endif
6300
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6307 case "(($ac_try" in
6308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309   *) ac_try_echo=$ac_try;;
6310 esac
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312   (eval "$ac_compile") 2>conftest.er1
6313   ac_status=$?
6314   grep -v '^ *+' conftest.er1 >conftest.err
6315   rm -f conftest.er1
6316   cat conftest.err >&5
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); } &&
6319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6320   { (case "(($ac_try" in
6321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322   *) ac_try_echo=$ac_try;;
6323 esac
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325   (eval "$ac_try") 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); }; } &&
6329          { ac_try='test -s conftest.$ac_objext'
6330   { (case "(($ac_try" in
6331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332   *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335   (eval "$ac_try") 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; }; then
6339   ac_cv_have_decl_loginrestrictions=yes
6340 else
6341   echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344         ac_cv_have_decl_loginrestrictions=no
6345 fi
6346
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 fi
6349 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6350 echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6351 if test $ac_cv_have_decl_loginrestrictions = yes; then
6352
6353 cat >>confdefs.h <<_ACEOF
6354 #define HAVE_DECL_LOGINRESTRICTIONS 1
6355 _ACEOF
6356
6357
6358 else
6359   cat >>confdefs.h <<_ACEOF
6360 #define HAVE_DECL_LOGINRESTRICTIONS 0
6361 _ACEOF
6362
6363
6364 fi
6365 { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6366 echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6367 if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h.  */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h.  */
6376 #include <usersec.h>
6377
6378 int
6379 main ()
6380 {
6381 #ifndef loginsuccess
6382   char *p = (char *) loginsuccess;
6383   return !p;
6384 #endif
6385
6386   ;
6387   return 0;
6388 }
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (ac_try="$ac_compile"
6392 case "(($ac_try" in
6393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394   *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397   (eval "$ac_compile") 2>conftest.er1
6398   ac_status=$?
6399   grep -v '^ *+' conftest.er1 >conftest.err
6400   rm -f conftest.er1
6401   cat conftest.err >&5
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } &&
6404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6405   { (case "(($ac_try" in
6406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407   *) ac_try_echo=$ac_try;;
6408 esac
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410   (eval "$ac_try") 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }; } &&
6414          { ac_try='test -s conftest.$ac_objext'
6415   { (case "(($ac_try" in
6416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417   *) ac_try_echo=$ac_try;;
6418 esac
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420   (eval "$ac_try") 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; }; then
6424   ac_cv_have_decl_loginsuccess=yes
6425 else
6426   echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6428
6429         ac_cv_have_decl_loginsuccess=no
6430 fi
6431
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433 fi
6434 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6435 echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6436 if test $ac_cv_have_decl_loginsuccess = yes; then
6437
6438 cat >>confdefs.h <<_ACEOF
6439 #define HAVE_DECL_LOGINSUCCESS 1
6440 _ACEOF
6441
6442
6443 else
6444   cat >>confdefs.h <<_ACEOF
6445 #define HAVE_DECL_LOGINSUCCESS 0
6446 _ACEOF
6447
6448
6449 fi
6450 { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6451 echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6452 if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455   cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h.  */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h.  */
6461 #include <usersec.h>
6462
6463 int
6464 main ()
6465 {
6466 #ifndef passwdexpired
6467   char *p = (char *) passwdexpired;
6468   return !p;
6469 #endif
6470
6471   ;
6472   return 0;
6473 }
6474 _ACEOF
6475 rm -f conftest.$ac_objext
6476 if { (ac_try="$ac_compile"
6477 case "(($ac_try" in
6478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479   *) ac_try_echo=$ac_try;;
6480 esac
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482   (eval "$ac_compile") 2>conftest.er1
6483   ac_status=$?
6484   grep -v '^ *+' conftest.er1 >conftest.err
6485   rm -f conftest.er1
6486   cat conftest.err >&5
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); } &&
6489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6490   { (case "(($ac_try" in
6491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492   *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495   (eval "$ac_try") 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }; } &&
6499          { ac_try='test -s conftest.$ac_objext'
6500   { (case "(($ac_try" in
6501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502   *) ac_try_echo=$ac_try;;
6503 esac
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505   (eval "$ac_try") 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }; }; then
6509   ac_cv_have_decl_passwdexpired=yes
6510 else
6511   echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6513
6514         ac_cv_have_decl_passwdexpired=no
6515 fi
6516
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 fi
6519 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6520 echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6521 if test $ac_cv_have_decl_passwdexpired = yes; then
6522
6523 cat >>confdefs.h <<_ACEOF
6524 #define HAVE_DECL_PASSWDEXPIRED 1
6525 _ACEOF
6526
6527
6528 else
6529   cat >>confdefs.h <<_ACEOF
6530 #define HAVE_DECL_PASSWDEXPIRED 0
6531 _ACEOF
6532
6533
6534 fi
6535 { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6536 echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6537 if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h.  */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h.  */
6546 #include <usersec.h>
6547
6548 int
6549 main ()
6550 {
6551 #ifndef setauthdb
6552   char *p = (char *) setauthdb;
6553   return !p;
6554 #endif
6555
6556   ;
6557   return 0;
6558 }
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (ac_try="$ac_compile"
6562 case "(($ac_try" in
6563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564   *) ac_try_echo=$ac_try;;
6565 esac
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567   (eval "$ac_compile") 2>conftest.er1
6568   ac_status=$?
6569   grep -v '^ *+' conftest.er1 >conftest.err
6570   rm -f conftest.er1
6571   cat conftest.err >&5
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); } &&
6574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6575   { (case "(($ac_try" in
6576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577   *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580   (eval "$ac_try") 2>&5
6581   ac_status=$?
6582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583   (exit $ac_status); }; } &&
6584          { ac_try='test -s conftest.$ac_objext'
6585   { (case "(($ac_try" in
6586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587   *) ac_try_echo=$ac_try;;
6588 esac
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590   (eval "$ac_try") 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; }; then
6594   ac_cv_have_decl_setauthdb=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599         ac_cv_have_decl_setauthdb=no
6600 fi
6601
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 fi
6604 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6605 echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6606 if test $ac_cv_have_decl_setauthdb = yes; then
6607
6608 cat >>confdefs.h <<_ACEOF
6609 #define HAVE_DECL_SETAUTHDB 1
6610 _ACEOF
6611
6612
6613 else
6614   cat >>confdefs.h <<_ACEOF
6615 #define HAVE_DECL_SETAUTHDB 0
6616 _ACEOF
6617
6618
6619 fi
6620
6621
6622                 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6623 echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6624 if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h.  */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h.  */
6633 #include <usersec.h>
6634
6635
6636 int
6637 main ()
6638 {
6639 #ifndef loginfailed
6640   char *p = (char *) loginfailed;
6641   return !p;
6642 #endif
6643
6644   ;
6645   return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext
6649 if { (ac_try="$ac_compile"
6650 case "(($ac_try" in
6651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652   *) ac_try_echo=$ac_try;;
6653 esac
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655   (eval "$ac_compile") 2>conftest.er1
6656   ac_status=$?
6657   grep -v '^ *+' conftest.er1 >conftest.err
6658   rm -f conftest.er1
6659   cat conftest.err >&5
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); } &&
6662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6663   { (case "(($ac_try" in
6664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665   *) ac_try_echo=$ac_try;;
6666 esac
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668   (eval "$ac_try") 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); }; } &&
6672          { ac_try='test -s conftest.$ac_objext'
6673   { (case "(($ac_try" in
6674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675   *) ac_try_echo=$ac_try;;
6676 esac
6677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6678   (eval "$ac_try") 2>&5
6679   ac_status=$?
6680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681   (exit $ac_status); }; }; then
6682   ac_cv_have_decl_loginfailed=yes
6683 else
6684   echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6686
6687         ac_cv_have_decl_loginfailed=no
6688 fi
6689
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 fi
6692 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6693 echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6694 if test $ac_cv_have_decl_loginfailed = yes; then
6695
6696 cat >>confdefs.h <<_ACEOF
6697 #define HAVE_DECL_LOGINFAILED 1
6698 _ACEOF
6699
6700 { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6701 echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6702                   cat >conftest.$ac_ext <<_ACEOF
6703 /* confdefs.h.  */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h.  */
6708 #include <usersec.h>
6709 int
6710 main ()
6711 {
6712 (void)loginfailed("user","host","tty",0);
6713   ;
6714   return 0;
6715 }
6716 _ACEOF
6717 rm -f conftest.$ac_objext
6718 if { (ac_try="$ac_compile"
6719 case "(($ac_try" in
6720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721   *) ac_try_echo=$ac_try;;
6722 esac
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724   (eval "$ac_compile") 2>conftest.er1
6725   ac_status=$?
6726   grep -v '^ *+' conftest.er1 >conftest.err
6727   rm -f conftest.er1
6728   cat conftest.err >&5
6729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730   (exit $ac_status); } &&
6731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6732   { (case "(($ac_try" in
6733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734   *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737   (eval "$ac_try") 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; } &&
6741          { ac_try='test -s conftest.$ac_objext'
6742   { (case "(($ac_try" in
6743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744   *) ac_try_echo=$ac_try;;
6745 esac
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747   (eval "$ac_try") 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; }; then
6751   { echo "$as_me:$LINENO: result: yes" >&5
6752 echo "${ECHO_T}yes" >&6; }
6753
6754 cat >>confdefs.h <<\_ACEOF
6755 #define AIX_LOGINFAILED_4ARG 1
6756 _ACEOF
6757
6758 else
6759   echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762         { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6764
6765 fi
6766
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 else
6769   cat >>confdefs.h <<_ACEOF
6770 #define HAVE_DECL_LOGINFAILED 0
6771 _ACEOF
6772
6773
6774 fi
6775
6776
6777
6778 for ac_func in setauthdb
6779 do
6780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h.  */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h.  */
6792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6794 #define $ac_func innocuous_$ac_func
6795
6796 /* System header to define __stub macros and hopefully few prototypes,
6797     which can conflict with char $ac_func (); below.
6798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6799     <limits.h> exists even on freestanding compilers.  */
6800
6801 #ifdef __STDC__
6802 # include <limits.h>
6803 #else
6804 # include <assert.h>
6805 #endif
6806
6807 #undef $ac_func
6808
6809 /* Override any GCC internal prototype to avoid an error.
6810    Use char because int might match the return type of a GCC
6811    builtin and then its argument prototype would still apply.  */
6812 #ifdef __cplusplus
6813 extern "C"
6814 #endif
6815 char $ac_func ();
6816 /* The GNU C library defines this for functions which it implements
6817     to always fail with ENOSYS.  Some functions are actually named
6818     something starting with __ and the normal name is an alias.  */
6819 #if defined __stub_$ac_func || defined __stub___$ac_func
6820 choke me
6821 #endif
6822
6823 int
6824 main ()
6825 {
6826 return $ac_func ();
6827   ;
6828   return 0;
6829 }
6830 _ACEOF
6831 rm -f conftest.$ac_objext conftest$ac_exeext
6832 if { (ac_try="$ac_link"
6833 case "(($ac_try" in
6834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835   *) ac_try_echo=$ac_try;;
6836 esac
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838   (eval "$ac_link") 2>conftest.er1
6839   ac_status=$?
6840   grep -v '^ *+' conftest.er1 >conftest.err
6841   rm -f conftest.er1
6842   cat conftest.err >&5
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); } &&
6845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6846   { (case "(($ac_try" in
6847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848   *) ac_try_echo=$ac_try;;
6849 esac
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851   (eval "$ac_try") 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); }; } &&
6855          { ac_try='test -s conftest$ac_exeext'
6856   { (case "(($ac_try" in
6857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858   *) ac_try_echo=$ac_try;;
6859 esac
6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861   (eval "$ac_try") 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); }; }; then
6865   eval "$as_ac_var=yes"
6866 else
6867   echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6869
6870         eval "$as_ac_var=no"
6871 fi
6872
6873 rm -f core conftest.err conftest.$ac_objext \
6874       conftest$ac_exeext conftest.$ac_ext
6875 fi
6876 ac_res=`eval echo '${'$as_ac_var'}'`
6877                { echo "$as_me:$LINENO: result: $ac_res" >&5
6878 echo "${ECHO_T}$ac_res" >&6; }
6879 if test `eval echo '${'$as_ac_var'}'` = yes; then
6880   cat >>confdefs.h <<_ACEOF
6881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6882 _ACEOF
6883
6884 fi
6885 done
6886
6887         { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
6888 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
6889 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
6890   echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892   cat >conftest.$ac_ext <<_ACEOF
6893 /* confdefs.h.  */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h.  */
6898  #include <limits.h>
6899               #include <fcntl.h>
6900
6901
6902 int
6903 main ()
6904 {
6905 #ifndef F_CLOSEM
6906   char *p = (char *) F_CLOSEM;
6907   return !p;
6908 #endif
6909
6910   ;
6911   return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext
6915 if { (ac_try="$ac_compile"
6916 case "(($ac_try" in
6917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918   *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921   (eval "$ac_compile") 2>conftest.er1
6922   ac_status=$?
6923   grep -v '^ *+' conftest.er1 >conftest.err
6924   rm -f conftest.er1
6925   cat conftest.err >&5
6926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927   (exit $ac_status); } &&
6928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6929   { (case "(($ac_try" in
6930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931   *) ac_try_echo=$ac_try;;
6932 esac
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934   (eval "$ac_try") 2>&5
6935   ac_status=$?
6936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937   (exit $ac_status); }; } &&
6938          { ac_try='test -s conftest.$ac_objext'
6939   { (case "(($ac_try" in
6940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941   *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944   (eval "$ac_try") 2>&5
6945   ac_status=$?
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); }; }; then
6948   ac_cv_have_decl_F_CLOSEM=yes
6949 else
6950   echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6952
6953         ac_cv_have_decl_F_CLOSEM=no
6954 fi
6955
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 fi
6958 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
6959 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
6960 if test $ac_cv_have_decl_F_CLOSEM = yes; then
6961
6962 cat >>confdefs.h <<\_ACEOF
6963 #define HAVE_FCNTL_CLOSEM 1
6964 _ACEOF
6965
6966 fi
6967
6968         check_for_aix_broken_getaddrinfo=1
6969
6970 cat >>confdefs.h <<\_ACEOF
6971 #define BROKEN_REALPATH 1
6972 _ACEOF
6973
6974
6975 cat >>confdefs.h <<\_ACEOF
6976 #define SETEUID_BREAKS_SETUID 1
6977 _ACEOF
6978
6979
6980 cat >>confdefs.h <<\_ACEOF
6981 #define BROKEN_SETREUID 1
6982 _ACEOF
6983
6984
6985 cat >>confdefs.h <<\_ACEOF
6986 #define BROKEN_SETREGID 1
6987 _ACEOF
6988
6989
6990 cat >>confdefs.h <<\_ACEOF
6991 #define DISABLE_LASTLOG 1
6992 _ACEOF
6993
6994
6995 cat >>confdefs.h <<\_ACEOF
6996 #define LOGIN_NEEDS_UTMPX 1
6997 _ACEOF
6998
6999
7000 cat >>confdefs.h <<\_ACEOF
7001 #define SPT_TYPE SPT_REUSEARGV
7002 _ACEOF
7003
7004
7005 cat >>confdefs.h <<\_ACEOF
7006 #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7007 _ACEOF
7008
7009
7010 cat >>confdefs.h <<\_ACEOF
7011 #define PTY_ZEROREAD 1
7012 _ACEOF
7013
7014         ;;
7015 *-*-cygwin*)
7016         check_for_libcrypt_later=1
7017         LIBS="$LIBS /usr/lib/textmode.o"
7018
7019 cat >>confdefs.h <<\_ACEOF
7020 #define HAVE_CYGWIN 1
7021 _ACEOF
7022
7023
7024 cat >>confdefs.h <<\_ACEOF
7025 #define USE_PIPES 1
7026 _ACEOF
7027
7028
7029 cat >>confdefs.h <<\_ACEOF
7030 #define DISABLE_SHADOW 1
7031 _ACEOF
7032
7033
7034 cat >>confdefs.h <<\_ACEOF
7035 #define IP_TOS_IS_BROKEN 1
7036 _ACEOF
7037
7038
7039 cat >>confdefs.h <<\_ACEOF
7040 #define NO_X11_UNIX_SOCKETS 1
7041 _ACEOF
7042
7043
7044 cat >>confdefs.h <<\_ACEOF
7045 #define NO_IPPORT_RESERVED_CONCEPT 1
7046 _ACEOF
7047
7048
7049 cat >>confdefs.h <<\_ACEOF
7050 #define DISABLE_FD_PASSING 1
7051 _ACEOF
7052
7053         ;;
7054 *-*-dgux*)
7055         cat >>confdefs.h <<\_ACEOF
7056 #define IP_TOS_IS_BROKEN 1
7057 _ACEOF
7058
7059         cat >>confdefs.h <<\_ACEOF
7060 #define SETEUID_BREAKS_SETUID 1
7061 _ACEOF
7062
7063         cat >>confdefs.h <<\_ACEOF
7064 #define BROKEN_SETREUID 1
7065 _ACEOF
7066
7067         cat >>confdefs.h <<\_ACEOF
7068 #define BROKEN_SETREGID 1
7069 _ACEOF
7070
7071         ;;
7072 *-*-darwin*)
7073         { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7074 echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7075         if test "$cross_compiling" = yes; then
7076   { echo "$as_me:$LINENO: result: assume it is working" >&5
7077 echo "${ECHO_T}assume it is working" >&6; }
7078 else
7079   cat >conftest.$ac_ext <<_ACEOF
7080 /* confdefs.h.  */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h.  */
7085 #include <mach-o/dyld.h>
7086 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7087                 exit(0);
7088         else
7089                 exit(1);
7090 }
7091 _ACEOF
7092 rm -f conftest$ac_exeext
7093 if { (ac_try="$ac_link"
7094 case "(($ac_try" in
7095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096   *) ac_try_echo=$ac_try;;
7097 esac
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099   (eval "$ac_link") 2>&5
7100   ac_status=$?
7101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7103   { (case "(($ac_try" in
7104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105   *) ac_try_echo=$ac_try;;
7106 esac
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108   (eval "$ac_try") 2>&5
7109   ac_status=$?
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); }; }; then
7112   { echo "$as_me:$LINENO: result: working" >&5
7113 echo "${ECHO_T}working" >&6; }
7114 else
7115   echo "$as_me: program exited with status $ac_status" >&5
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 ( exit $ac_status )
7120 { echo "$as_me:$LINENO: result: buggy" >&5
7121 echo "${ECHO_T}buggy" >&6; }
7122
7123 cat >>confdefs.h <<\_ACEOF
7124 #define BROKEN_GETADDRINFO 1
7125 _ACEOF
7126
7127 fi
7128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7129 fi
7130
7131
7132         cat >>confdefs.h <<\_ACEOF
7133 #define SETEUID_BREAKS_SETUID 1
7134 _ACEOF
7135
7136         cat >>confdefs.h <<\_ACEOF
7137 #define BROKEN_SETREUID 1
7138 _ACEOF
7139
7140         cat >>confdefs.h <<\_ACEOF
7141 #define BROKEN_SETREGID 1
7142 _ACEOF
7143
7144
7145 cat >>confdefs.h <<_ACEOF
7146 #define BIND_8_COMPAT 1
7147 _ACEOF
7148
7149
7150 cat >>confdefs.h <<\_ACEOF
7151 #define SSH_TUN_FREEBSD 1
7152 _ACEOF
7153
7154
7155 cat >>confdefs.h <<\_ACEOF
7156 #define SSH_TUN_COMPAT_AF 1
7157 _ACEOF
7158
7159
7160 cat >>confdefs.h <<\_ACEOF
7161 #define SSH_TUN_PREPEND_AF 1
7162 _ACEOF
7163
7164         ;;
7165 *-*-dragonfly*)
7166         SSHDLIBS="$SSHDLIBS -lcrypt"
7167         ;;
7168 *-*-hpux*)
7169         # first we define all of the options common to all HP-UX releases
7170         CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7171         IPADDR_IN_DISPLAY=yes
7172         cat >>confdefs.h <<\_ACEOF
7173 #define USE_PIPES 1
7174 _ACEOF
7175
7176
7177 cat >>confdefs.h <<\_ACEOF
7178 #define LOGIN_NO_ENDOPT 1
7179 _ACEOF
7180
7181         cat >>confdefs.h <<\_ACEOF
7182 #define LOGIN_NEEDS_UTMPX 1
7183 _ACEOF
7184
7185
7186 cat >>confdefs.h <<\_ACEOF
7187 #define LOCKED_PASSWD_STRING "*"
7188 _ACEOF
7189
7190         cat >>confdefs.h <<\_ACEOF
7191 #define SPT_TYPE SPT_PSTAT
7192 _ACEOF
7193
7194         MAIL="/var/mail/username"
7195         LIBS="$LIBS -lsec"
7196
7197 { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7198 echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7199 if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7200   echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202   ac_check_lib_save_LIBS=$LIBS
7203 LIBS="-lxnet  $LIBS"
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h.  */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h.  */
7210
7211 /* Override any GCC internal prototype to avoid an error.
7212    Use char because int might match the return type of a GCC
7213    builtin and then its argument prototype would still apply.  */
7214 #ifdef __cplusplus
7215 extern "C"
7216 #endif
7217 char t_error ();
7218 int
7219 main ()
7220 {
7221 return t_error ();
7222   ;
7223   return 0;
7224 }
7225 _ACEOF
7226 rm -f conftest.$ac_objext conftest$ac_exeext
7227 if { (ac_try="$ac_link"
7228 case "(($ac_try" in
7229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230   *) ac_try_echo=$ac_try;;
7231 esac
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233   (eval "$ac_link") 2>conftest.er1
7234   ac_status=$?
7235   grep -v '^ *+' conftest.er1 >conftest.err
7236   rm -f conftest.er1
7237   cat conftest.err >&5
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); } &&
7240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7241   { (case "(($ac_try" in
7242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243   *) ac_try_echo=$ac_try;;
7244 esac
7245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246   (eval "$ac_try") 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; } &&
7250          { ac_try='test -s conftest$ac_exeext'
7251   { (case "(($ac_try" in
7252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253   *) ac_try_echo=$ac_try;;
7254 esac
7255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7256   (eval "$ac_try") 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); }; }; then
7260   ac_cv_lib_xnet_t_error=yes
7261 else
7262   echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7264
7265         ac_cv_lib_xnet_t_error=no
7266 fi
7267
7268 rm -f core conftest.err conftest.$ac_objext \
7269       conftest$ac_exeext conftest.$ac_ext
7270 LIBS=$ac_check_lib_save_LIBS
7271 fi
7272 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7273 echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7274 if test $ac_cv_lib_xnet_t_error = yes; then
7275   cat >>confdefs.h <<_ACEOF
7276 #define HAVE_LIBXNET 1
7277 _ACEOF
7278
7279   LIBS="-lxnet $LIBS"
7280
7281 else
7282   { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7283 echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7284    { (exit 1); exit 1; }; }
7285 fi
7286
7287
7288         # next, we define all of the options specific to major releases
7289         case "$host" in
7290         *-*-hpux10*)
7291                 if test -z "$GCC"; then
7292                         CFLAGS="$CFLAGS -Ae"
7293                 fi
7294                 ;;
7295         *-*-hpux11*)
7296
7297 cat >>confdefs.h <<\_ACEOF
7298 #define PAM_SUN_CODEBASE 1
7299 _ACEOF
7300
7301
7302 cat >>confdefs.h <<\_ACEOF
7303 #define DISABLE_UTMP 1
7304 _ACEOF
7305
7306
7307 cat >>confdefs.h <<\_ACEOF
7308 #define USE_BTMP 1
7309 _ACEOF
7310
7311                 check_for_hpux_broken_getaddrinfo=1
7312                 check_for_conflicting_getspnam=1
7313                 ;;
7314         esac
7315
7316         # lastly, we define options specific to minor releases
7317         case "$host" in
7318         *-*-hpux10.26)
7319
7320 cat >>confdefs.h <<\_ACEOF
7321 #define HAVE_SECUREWARE 1
7322 _ACEOF
7323
7324                 disable_ptmx_check=yes
7325                 LIBS="$LIBS -lsecpw"
7326                 ;;
7327         esac
7328         ;;
7329 *-*-irix5*)
7330         PATH="$PATH:/usr/etc"
7331
7332 cat >>confdefs.h <<\_ACEOF
7333 #define BROKEN_INET_NTOA 1
7334 _ACEOF
7335
7336         cat >>confdefs.h <<\_ACEOF
7337 #define SETEUID_BREAKS_SETUID 1
7338 _ACEOF
7339
7340         cat >>confdefs.h <<\_ACEOF
7341 #define BROKEN_SETREUID 1
7342 _ACEOF
7343
7344         cat >>confdefs.h <<\_ACEOF
7345 #define BROKEN_SETREGID 1
7346 _ACEOF
7347
7348
7349 cat >>confdefs.h <<\_ACEOF
7350 #define WITH_ABBREV_NO_TTY 1
7351 _ACEOF
7352
7353         cat >>confdefs.h <<\_ACEOF
7354 #define LOCKED_PASSWD_STRING "*LK*"
7355 _ACEOF
7356
7357         ;;
7358 *-*-irix6*)
7359         PATH="$PATH:/usr/etc"
7360
7361 cat >>confdefs.h <<\_ACEOF
7362 #define WITH_IRIX_ARRAY 1
7363 _ACEOF
7364
7365
7366 cat >>confdefs.h <<\_ACEOF
7367 #define WITH_IRIX_PROJECT 1
7368 _ACEOF
7369
7370
7371 cat >>confdefs.h <<\_ACEOF
7372 #define WITH_IRIX_AUDIT 1
7373 _ACEOF
7374
7375         { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7376 echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7377 if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7378   echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380   cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h.  */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h.  */
7386 /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7388 #define jlimit_startjob innocuous_jlimit_startjob
7389
7390 /* System header to define __stub macros and hopefully few prototypes,
7391     which can conflict with char jlimit_startjob (); below.
7392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7393     <limits.h> exists even on freestanding compilers.  */
7394
7395 #ifdef __STDC__
7396 # include <limits.h>
7397 #else
7398 # include <assert.h>
7399 #endif
7400
7401 #undef jlimit_startjob
7402
7403 /* Override any GCC internal prototype to avoid an error.
7404    Use char because int might match the return type of a GCC
7405    builtin and then its argument prototype would still apply.  */
7406 #ifdef __cplusplus
7407 extern "C"
7408 #endif
7409 char jlimit_startjob ();
7410 /* The GNU C library defines this for functions which it implements
7411     to always fail with ENOSYS.  Some functions are actually named
7412     something starting with __ and the normal name is an alias.  */
7413 #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7414 choke me
7415 #endif
7416
7417 int
7418 main ()
7419 {
7420 return jlimit_startjob ();
7421   ;
7422   return 0;
7423 }
7424 _ACEOF
7425 rm -f conftest.$ac_objext conftest$ac_exeext
7426 if { (ac_try="$ac_link"
7427 case "(($ac_try" in
7428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429   *) ac_try_echo=$ac_try;;
7430 esac
7431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432   (eval "$ac_link") 2>conftest.er1
7433   ac_status=$?
7434   grep -v '^ *+' conftest.er1 >conftest.err
7435   rm -f conftest.er1
7436   cat conftest.err >&5
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); } &&
7439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7440   { (case "(($ac_try" in
7441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442   *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445   (eval "$ac_try") 2>&5
7446   ac_status=$?
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); }; } &&
7449          { ac_try='test -s conftest$ac_exeext'
7450   { (case "(($ac_try" in
7451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452   *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455   (eval "$ac_try") 2>&5
7456   ac_status=$?
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); }; }; then
7459   ac_cv_func_jlimit_startjob=yes
7460 else
7461   echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7463
7464         ac_cv_func_jlimit_startjob=no
7465 fi
7466
7467 rm -f core conftest.err conftest.$ac_objext \
7468       conftest$ac_exeext conftest.$ac_ext
7469 fi
7470 { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7471 echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7472 if test $ac_cv_func_jlimit_startjob = yes; then
7473
7474 cat >>confdefs.h <<\_ACEOF
7475 #define WITH_IRIX_JOBS 1
7476 _ACEOF
7477
7478 fi
7479
7480         cat >>confdefs.h <<\_ACEOF
7481 #define BROKEN_INET_NTOA 1
7482 _ACEOF
7483
7484         cat >>confdefs.h <<\_ACEOF
7485 #define SETEUID_BREAKS_SETUID 1
7486 _ACEOF
7487
7488         cat >>confdefs.h <<\_ACEOF
7489 #define BROKEN_SETREUID 1
7490 _ACEOF
7491
7492         cat >>confdefs.h <<\_ACEOF
7493 #define BROKEN_SETREGID 1
7494 _ACEOF
7495
7496
7497 cat >>confdefs.h <<\_ACEOF
7498 #define BROKEN_UPDWTMPX 1
7499 _ACEOF
7500
7501         cat >>confdefs.h <<\_ACEOF
7502 #define WITH_ABBREV_NO_TTY 1
7503 _ACEOF
7504
7505         cat >>confdefs.h <<\_ACEOF
7506 #define LOCKED_PASSWD_STRING "*LK*"
7507 _ACEOF
7508
7509         ;;
7510 *-*-linux*)
7511         no_dev_ptmx=1
7512         check_for_libcrypt_later=1
7513         check_for_openpty_ctty_bug=1
7514
7515 cat >>confdefs.h <<\_ACEOF
7516 #define DONT_TRY_OTHER_AF 1
7517 _ACEOF
7518
7519
7520 cat >>confdefs.h <<\_ACEOF
7521 #define PAM_TTY_KLUDGE 1
7522 _ACEOF
7523
7524
7525 cat >>confdefs.h <<\_ACEOF
7526 #define LOCKED_PASSWD_PREFIX "!"
7527 _ACEOF
7528
7529         cat >>confdefs.h <<\_ACEOF
7530 #define SPT_TYPE SPT_REUSEARGV
7531 _ACEOF
7532
7533
7534 cat >>confdefs.h <<\_ACEOF
7535 #define LINK_OPNOTSUPP_ERRNO EPERM
7536 _ACEOF
7537
7538
7539 cat >>confdefs.h <<\_ACEOF
7540 #define _PATH_BTMP "/var/log/btmp"
7541 _ACEOF
7542
7543         cat >>confdefs.h <<\_ACEOF
7544 #define USE_BTMP 1
7545 _ACEOF
7546
7547         inet6_default_4in6=yes
7548         case `uname -r` in
7549         1.*|2.0.*)
7550
7551 cat >>confdefs.h <<\_ACEOF
7552 #define BROKEN_CMSG_TYPE 1
7553 _ACEOF
7554
7555                 ;;
7556         esac
7557         # tun(4) forwarding compat code
7558
7559 for ac_header in linux/if_tun.h
7560 do
7561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7563   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7566   echo $ECHO_N "(cached) $ECHO_C" >&6
7567 fi
7568 ac_res=`eval echo '${'$as_ac_Header'}'`
7569                { echo "$as_me:$LINENO: result: $ac_res" >&5
7570 echo "${ECHO_T}$ac_res" >&6; }
7571 else
7572   # Is the header compilable?
7573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h.  */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h.  */
7581 $ac_includes_default
7582 #include <$ac_header>
7583 _ACEOF
7584 rm -f conftest.$ac_objext
7585 if { (ac_try="$ac_compile"
7586 case "(($ac_try" in
7587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588   *) ac_try_echo=$ac_try;;
7589 esac
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591   (eval "$ac_compile") 2>conftest.er1
7592   ac_status=$?
7593   grep -v '^ *+' conftest.er1 >conftest.err
7594   rm -f conftest.er1
7595   cat conftest.err >&5
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); } &&
7598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7599   { (case "(($ac_try" in
7600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601   *) ac_try_echo=$ac_try;;
7602 esac
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604   (eval "$ac_try") 2>&5
7605   ac_status=$?
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); }; } &&
7608          { ac_try='test -s conftest.$ac_objext'
7609   { (case "(($ac_try" in
7610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611   *) ac_try_echo=$ac_try;;
7612 esac
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614   (eval "$ac_try") 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); }; }; then
7618   ac_header_compiler=yes
7619 else
7620   echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623         ac_header_compiler=no
7624 fi
7625
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7628 echo "${ECHO_T}$ac_header_compiler" >&6; }
7629
7630 # Is the header present?
7631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7633 cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h.  */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h.  */
7639 #include <$ac_header>
7640 _ACEOF
7641 if { (ac_try="$ac_cpp conftest.$ac_ext"
7642 case "(($ac_try" in
7643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644   *) ac_try_echo=$ac_try;;
7645 esac
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7648   ac_status=$?
7649   grep -v '^ *+' conftest.er1 >conftest.err
7650   rm -f conftest.er1
7651   cat conftest.err >&5
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); } >/dev/null; then
7654   if test -s conftest.err; then
7655     ac_cpp_err=$ac_c_preproc_warn_flag
7656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7657   else
7658     ac_cpp_err=
7659   fi
7660 else
7661   ac_cpp_err=yes
7662 fi
7663 if test -z "$ac_cpp_err"; then
7664   ac_header_preproc=yes
7665 else
7666   echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7668
7669   ac_header_preproc=no
7670 fi
7671
7672 rm -f conftest.err conftest.$ac_ext
7673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7674 echo "${ECHO_T}$ac_header_preproc" >&6; }
7675
7676 # So?  What about this header?
7677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7678   yes:no: )
7679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7683     ac_header_preproc=yes
7684     ;;
7685   no:yes:* )
7686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7698     ( cat <<\_ASBOX
7699 ## ------------------------------------------- ##
7700 ## Report this to openssh-unix-dev@mindrot.org ##
7701 ## ------------------------------------------- ##
7702 _ASBOX
7703      ) | sed "s/^/$as_me: WARNING:     /" >&2
7704     ;;
7705 esac
7706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   eval "$as_ac_Header=\$ac_header_preproc"
7712 fi
7713 ac_res=`eval echo '${'$as_ac_Header'}'`
7714                { echo "$as_me:$LINENO: result: $ac_res" >&5
7715 echo "${ECHO_T}$ac_res" >&6; }
7716
7717 fi
7718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7719   cat >>confdefs.h <<_ACEOF
7720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7721 _ACEOF
7722
7723 fi
7724
7725 done
7726
7727         if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7728
7729 cat >>confdefs.h <<\_ACEOF
7730 #define SSH_TUN_LINUX 1
7731 _ACEOF
7732
7733
7734 cat >>confdefs.h <<\_ACEOF
7735 #define SSH_TUN_COMPAT_AF 1
7736 _ACEOF
7737
7738
7739 cat >>confdefs.h <<\_ACEOF
7740 #define SSH_TUN_PREPEND_AF 1
7741 _ACEOF
7742
7743         fi
7744         ;;
7745 mips-sony-bsd|mips-sony-newsos4)
7746
7747 cat >>confdefs.h <<\_ACEOF
7748 #define NEED_SETPGRP 1
7749 _ACEOF
7750
7751         SONY=1
7752         ;;
7753 *-*-netbsd*)
7754         check_for_libcrypt_before=1
7755         if test "x$withval" != "xno" ; then
7756                 need_dash_r=1
7757         fi
7758
7759 cat >>confdefs.h <<\_ACEOF
7760 #define SSH_TUN_FREEBSD 1
7761 _ACEOF
7762
7763         if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7764   { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7765 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7766 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7767   echo $ECHO_N "(cached) $ECHO_C" >&6
7768 fi
7769 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7770 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7771 else
7772   # Is the header compilable?
7773 { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7774 echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7775 cat >conftest.$ac_ext <<_ACEOF
7776 /* confdefs.h.  */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h.  */
7781 $ac_includes_default
7782 #include <net/if_tap.h>
7783 _ACEOF
7784 rm -f conftest.$ac_objext
7785 if { (ac_try="$ac_compile"
7786 case "(($ac_try" in
7787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788   *) ac_try_echo=$ac_try;;
7789 esac
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791   (eval "$ac_compile") 2>conftest.er1
7792   ac_status=$?
7793   grep -v '^ *+' conftest.er1 >conftest.err
7794   rm -f conftest.er1
7795   cat conftest.err >&5
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); } &&
7798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7799   { (case "(($ac_try" in
7800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801   *) ac_try_echo=$ac_try;;
7802 esac
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804   (eval "$ac_try") 2>&5
7805   ac_status=$?
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); }; } &&
7808          { ac_try='test -s conftest.$ac_objext'
7809   { (case "(($ac_try" in
7810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811   *) ac_try_echo=$ac_try;;
7812 esac
7813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814   (eval "$ac_try") 2>&5
7815   ac_status=$?
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); }; }; then
7818   ac_header_compiler=yes
7819 else
7820   echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823         ac_header_compiler=no
7824 fi
7825
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7828 echo "${ECHO_T}$ac_header_compiler" >&6; }
7829
7830 # Is the header present?
7831 { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
7832 echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
7833 cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h.  */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h.  */
7839 #include <net/if_tap.h>
7840 _ACEOF
7841 if { (ac_try="$ac_cpp conftest.$ac_ext"
7842 case "(($ac_try" in
7843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844   *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7848   ac_status=$?
7849   grep -v '^ *+' conftest.er1 >conftest.err
7850   rm -f conftest.er1
7851   cat conftest.err >&5
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); } >/dev/null; then
7854   if test -s conftest.err; then
7855     ac_cpp_err=$ac_c_preproc_warn_flag
7856     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7857   else
7858     ac_cpp_err=
7859   fi
7860 else
7861   ac_cpp_err=yes
7862 fi
7863 if test -z "$ac_cpp_err"; then
7864   ac_header_preproc=yes
7865 else
7866   echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7868
7869   ac_header_preproc=no
7870 fi
7871
7872 rm -f conftest.err conftest.$ac_ext
7873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874 echo "${ECHO_T}$ac_header_preproc" >&6; }
7875
7876 # So?  What about this header?
7877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7878   yes:no: )
7879     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7880 echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
7882 echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
7883     ac_header_preproc=yes
7884     ;;
7885   no:yes:* )
7886     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
7888     { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&2;}
7890     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
7891 echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
7892     { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&5
7893 echo "$as_me: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7894     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
7895 echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
7896     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
7897 echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
7898     ( cat <<\_ASBOX
7899 ## ------------------------------------------- ##
7900 ## Report this to openssh-unix-dev@mindrot.org ##
7901 ## ------------------------------------------- ##
7902 _ASBOX
7903      ) | sed "s/^/$as_me: WARNING:     /" >&2
7904     ;;
7905 esac
7906 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7907 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7908 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   ac_cv_header_net_if_tap_h=$ac_header_preproc
7912 fi
7913 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7914 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7915
7916 fi
7917 if test $ac_cv_header_net_if_tap_h = yes; then
7918   :
7919 else
7920
7921 cat >>confdefs.h <<\_ACEOF
7922 #define SSH_TUN_NO_L2 1
7923 _ACEOF
7924
7925 fi
7926
7927
7928
7929 cat >>confdefs.h <<\_ACEOF
7930 #define SSH_TUN_PREPEND_AF 1
7931 _ACEOF
7932
7933         ;;
7934 *-*-freebsd*)
7935         check_for_libcrypt_later=1
7936
7937 cat >>confdefs.h <<\_ACEOF
7938 #define LOCKED_PASSWD_PREFIX "*LOCKED*"
7939 _ACEOF
7940
7941
7942 cat >>confdefs.h <<\_ACEOF
7943 #define SSH_TUN_FREEBSD 1
7944 _ACEOF
7945
7946         if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7947   { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
7948 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
7949 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 fi
7952 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
7953 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7954 else
7955   # Is the header compilable?
7956 { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
7957 echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
7958 cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964 $ac_includes_default
7965 #include <net/if_tap.h>
7966 _ACEOF
7967 rm -f conftest.$ac_objext
7968 if { (ac_try="$ac_compile"
7969 case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_compile") 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } &&
7981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7982   { (case "(($ac_try" in
7983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984   *) ac_try_echo=$ac_try;;
7985 esac
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987   (eval "$ac_try") 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; } &&
7991          { ac_try='test -s conftest.$ac_objext'
7992   { (case "(($ac_try" in
7993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994   *) ac_try_echo=$ac_try;;
7995 esac
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997   (eval "$ac_try") 2>&5
7998   ac_status=$?
7999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000   (exit $ac_status); }; }; then
8001   ac_header_compiler=yes
8002 else
8003   echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8005
8006         ac_header_compiler=no
8007 fi
8008
8009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8011 echo "${ECHO_T}$ac_header_compiler" >&6; }
8012
8013 # Is the header present?
8014 { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8015 echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022 #include <net/if_tap.h>
8023 _ACEOF
8024 if { (ac_try="$ac_cpp conftest.$ac_ext"
8025 case "(($ac_try" in
8026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027   *) ac_try_echo=$ac_try;;
8028 esac
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8031   ac_status=$?
8032   grep -v '^ *+' conftest.er1 >conftest.err
8033   rm -f conftest.er1
8034   cat conftest.err >&5
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); } >/dev/null; then
8037   if test -s conftest.err; then
8038     ac_cpp_err=$ac_c_preproc_warn_flag
8039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8040   else
8041     ac_cpp_err=
8042   fi
8043 else
8044   ac_cpp_err=yes
8045 fi
8046 if test -z "$ac_cpp_err"; then
8047   ac_header_preproc=yes
8048 else
8049   echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052   ac_header_preproc=no
8053 fi
8054
8055 rm -f conftest.err conftest.$ac_ext
8056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8057 echo "${ECHO_T}$ac_header_preproc" >&6; }
8058
8059 # So?  What about this header?
8060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8061   yes:no: )
8062     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8063 echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8064     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8065 echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8066     ac_header_preproc=yes
8067     ;;
8068   no:yes:* )
8069     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8070 echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8071     { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&5
8072 echo "$as_me: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&2;}
8073     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8074 echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8075     { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&5
8076 echo "$as_me: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8077     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8078 echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8079     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8080 echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8081     ( cat <<\_ASBOX
8082 ## ------------------------------------------- ##
8083 ## Report this to openssh-unix-dev@mindrot.org ##
8084 ## ------------------------------------------- ##
8085 _ASBOX
8086      ) | sed "s/^/$as_me: WARNING:     /" >&2
8087     ;;
8088 esac
8089 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8090 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8091 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8092   echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094   ac_cv_header_net_if_tap_h=$ac_header_preproc
8095 fi
8096 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8097 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8098
8099 fi
8100 if test $ac_cv_header_net_if_tap_h = yes; then
8101   :
8102 else
8103
8104 cat >>confdefs.h <<\_ACEOF
8105 #define SSH_TUN_NO_L2 1
8106 _ACEOF
8107
8108 fi
8109
8110
8111         ;;
8112 *-*-bsdi*)
8113         cat >>confdefs.h <<\_ACEOF
8114 #define SETEUID_BREAKS_SETUID 1
8115 _ACEOF
8116
8117         cat >>confdefs.h <<\_ACEOF
8118 #define BROKEN_SETREUID 1
8119 _ACEOF
8120
8121         cat >>confdefs.h <<\_ACEOF
8122 #define BROKEN_SETREGID 1
8123 _ACEOF
8124
8125         ;;
8126 *-next-*)
8127         conf_lastlog_location="/usr/adm/lastlog"
8128         conf_utmp_location=/etc/utmp
8129         conf_wtmp_location=/usr/adm/wtmp
8130         MAIL=/usr/spool/mail
8131
8132 cat >>confdefs.h <<\_ACEOF
8133 #define HAVE_NEXT 1
8134 _ACEOF
8135
8136         cat >>confdefs.h <<\_ACEOF
8137 #define BROKEN_REALPATH 1
8138 _ACEOF
8139
8140         cat >>confdefs.h <<\_ACEOF
8141 #define USE_PIPES 1
8142 _ACEOF
8143
8144
8145 cat >>confdefs.h <<\_ACEOF
8146 #define BROKEN_SAVED_UIDS 1
8147 _ACEOF
8148
8149         ;;
8150 *-*-openbsd*)
8151
8152 cat >>confdefs.h <<\_ACEOF
8153 #define HAVE_ATTRIBUTE__SENTINEL__ 1
8154 _ACEOF
8155
8156
8157 cat >>confdefs.h <<\_ACEOF
8158 #define HAVE_ATTRIBUTE__BOUNDED__ 1
8159 _ACEOF
8160
8161
8162 cat >>confdefs.h <<\_ACEOF
8163 #define SSH_TUN_OPENBSD 1
8164 _ACEOF
8165
8166
8167 cat >>confdefs.h <<\_ACEOF
8168 #define SYSLOG_R_SAFE_IN_SIGHAND 1
8169 _ACEOF
8170
8171         ;;
8172 *-*-solaris*)
8173         if test "x$withval" != "xno" ; then
8174                 need_dash_r=1
8175         fi
8176         cat >>confdefs.h <<\_ACEOF
8177 #define PAM_SUN_CODEBASE 1
8178 _ACEOF
8179
8180         cat >>confdefs.h <<\_ACEOF
8181 #define LOGIN_NEEDS_UTMPX 1
8182 _ACEOF
8183
8184
8185 cat >>confdefs.h <<\_ACEOF
8186 #define LOGIN_NEEDS_TERM 1
8187 _ACEOF
8188
8189         cat >>confdefs.h <<\_ACEOF
8190 #define PAM_TTY_KLUDGE 1
8191 _ACEOF
8192
8193
8194 cat >>confdefs.h <<\_ACEOF
8195 #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8196 _ACEOF
8197
8198         cat >>confdefs.h <<\_ACEOF
8199 #define LOCKED_PASSWD_STRING "*LK*"
8200 _ACEOF
8201
8202         # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8203
8204 cat >>confdefs.h <<\_ACEOF
8205 #define SSHD_ACQUIRES_CTTY 1
8206 _ACEOF
8207
8208
8209 cat >>confdefs.h <<\_ACEOF
8210 #define PASSWD_NEEDS_USERNAME 1
8211 _ACEOF
8212
8213         external_path_file=/etc/default/login
8214         # hardwire lastlog location (can't detect it on some versions)
8215         conf_lastlog_location="/var/adm/lastlog"
8216         { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8217 echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8218         sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8219         if test "$sol2ver" -ge 8; then
8220                 { echo "$as_me:$LINENO: result: yes" >&5
8221 echo "${ECHO_T}yes" >&6; }
8222                 cat >>confdefs.h <<\_ACEOF
8223 #define DISABLE_UTMP 1
8224 _ACEOF
8225
8226
8227 cat >>confdefs.h <<\_ACEOF
8228 #define DISABLE_WTMP 1
8229 _ACEOF
8230
8231         else
8232                 { echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6; }
8234         fi
8235
8236 # Check whether --with-solaris-contracts was given.
8237 if test "${with_solaris_contracts+set}" = set; then
8238   withval=$with_solaris_contracts;
8239                 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8240 echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8241 if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8242   echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244   ac_check_lib_save_LIBS=$LIBS
8245 LIBS="-lcontract  $LIBS"
8246 cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h.  */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h.  */
8252
8253 /* Override any GCC internal prototype to avoid an error.
8254    Use char because int might match the return type of a GCC
8255    builtin and then its argument prototype would still apply.  */
8256 #ifdef __cplusplus
8257 extern "C"
8258 #endif
8259 char ct_tmpl_activate ();
8260 int
8261 main ()
8262 {
8263 return ct_tmpl_activate ();
8264   ;
8265   return 0;
8266 }
8267 _ACEOF
8268 rm -f conftest.$ac_objext conftest$ac_exeext
8269 if { (ac_try="$ac_link"
8270 case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275   (eval "$ac_link") 2>conftest.er1
8276   ac_status=$?
8277   grep -v '^ *+' conftest.er1 >conftest.err
8278   rm -f conftest.er1
8279   cat conftest.err >&5
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); } &&
8282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8283   { (case "(($ac_try" in
8284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285   *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288   (eval "$ac_try") 2>&5
8289   ac_status=$?
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); }; } &&
8292          { ac_try='test -s conftest$ac_exeext'
8293   { (case "(($ac_try" in
8294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295   *) ac_try_echo=$ac_try;;
8296 esac
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298   (eval "$ac_try") 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; }; then
8302   ac_cv_lib_contract_ct_tmpl_activate=yes
8303 else
8304   echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8306
8307         ac_cv_lib_contract_ct_tmpl_activate=no
8308 fi
8309
8310 rm -f core conftest.err conftest.$ac_objext \
8311       conftest$ac_exeext conftest.$ac_ext
8312 LIBS=$ac_check_lib_save_LIBS
8313 fi
8314 { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8315 echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8316 if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8317
8318 cat >>confdefs.h <<\_ACEOF
8319 #define USE_SOLARIS_PROCESS_CONTRACTS 1
8320 _ACEOF
8321
8322                           SSHDLIBS="$SSHDLIBS -lcontract"
8323
8324                           SPC_MSG="yes"
8325 fi
8326
8327
8328 fi
8329
8330         ;;
8331 *-*-sunos4*)
8332         CPPFLAGS="$CPPFLAGS -DSUNOS4"
8333
8334 for ac_func in getpwanam
8335 do
8336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h.  */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h.  */
8348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8350 #define $ac_func innocuous_$ac_func
8351
8352 /* System header to define __stub macros and hopefully few prototypes,
8353     which can conflict with char $ac_func (); below.
8354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8355     <limits.h> exists even on freestanding compilers.  */
8356
8357 #ifdef __STDC__
8358 # include <limits.h>
8359 #else
8360 # include <assert.h>
8361 #endif
8362
8363 #undef $ac_func
8364
8365 /* Override any GCC internal prototype to avoid an error.
8366    Use char because int might match the return type of a GCC
8367    builtin and then its argument prototype would still apply.  */
8368 #ifdef __cplusplus
8369 extern "C"
8370 #endif
8371 char $ac_func ();
8372 /* The GNU C library defines this for functions which it implements
8373     to always fail with ENOSYS.  Some functions are actually named
8374     something starting with __ and the normal name is an alias.  */
8375 #if defined __stub_$ac_func || defined __stub___$ac_func
8376 choke me
8377 #endif
8378
8379 int
8380 main ()
8381 {
8382 return $ac_func ();
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (ac_try="$ac_link"
8389 case "(($ac_try" in
8390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391   *) ac_try_echo=$ac_try;;
8392 esac
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394   (eval "$ac_link") 2>conftest.er1
8395   ac_status=$?
8396   grep -v '^ *+' conftest.er1 >conftest.err
8397   rm -f conftest.er1
8398   cat conftest.err >&5
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); } &&
8401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8402   { (case "(($ac_try" in
8403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404   *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407   (eval "$ac_try") 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; } &&
8411          { ac_try='test -s conftest$ac_exeext'
8412   { (case "(($ac_try" in
8413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414   *) ac_try_echo=$ac_try;;
8415 esac
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417   (eval "$ac_try") 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }; }; then
8421   eval "$as_ac_var=yes"
8422 else
8423   echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8425
8426         eval "$as_ac_var=no"
8427 fi
8428
8429 rm -f core conftest.err conftest.$ac_objext \
8430       conftest$ac_exeext conftest.$ac_ext
8431 fi
8432 ac_res=`eval echo '${'$as_ac_var'}'`
8433                { echo "$as_me:$LINENO: result: $ac_res" >&5
8434 echo "${ECHO_T}$ac_res" >&6; }
8435 if test `eval echo '${'$as_ac_var'}'` = yes; then
8436   cat >>confdefs.h <<_ACEOF
8437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8438 _ACEOF
8439
8440 fi
8441 done
8442
8443         cat >>confdefs.h <<\_ACEOF
8444 #define PAM_SUN_CODEBASE 1
8445 _ACEOF
8446
8447         conf_utmp_location=/etc/utmp
8448         conf_wtmp_location=/var/adm/wtmp
8449         conf_lastlog_location=/var/adm/lastlog
8450         cat >>confdefs.h <<\_ACEOF
8451 #define USE_PIPES 1
8452 _ACEOF
8453
8454         ;;
8455 *-ncr-sysv*)
8456         LIBS="$LIBS -lc89"
8457         cat >>confdefs.h <<\_ACEOF
8458 #define USE_PIPES 1
8459 _ACEOF
8460
8461         cat >>confdefs.h <<\_ACEOF
8462 #define SSHD_ACQUIRES_CTTY 1
8463 _ACEOF
8464
8465         cat >>confdefs.h <<\_ACEOF
8466 #define SETEUID_BREAKS_SETUID 1
8467 _ACEOF
8468
8469         cat >>confdefs.h <<\_ACEOF
8470 #define BROKEN_SETREUID 1
8471 _ACEOF
8472
8473         cat >>confdefs.h <<\_ACEOF
8474 #define BROKEN_SETREGID 1
8475 _ACEOF
8476
8477         ;;
8478 *-sni-sysv*)
8479         # /usr/ucblib MUST NOT be searched on ReliantUNIX
8480
8481 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8482 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8483 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8484   echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486   ac_check_lib_save_LIBS=$LIBS
8487 LIBS="-ldl  $LIBS"
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h.  */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h.  */
8494
8495 /* Override any GCC internal prototype to avoid an error.
8496    Use char because int might match the return type of a GCC
8497    builtin and then its argument prototype would still apply.  */
8498 #ifdef __cplusplus
8499 extern "C"
8500 #endif
8501 char dlsym ();
8502 int
8503 main ()
8504 {
8505 return dlsym ();
8506   ;
8507   return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8512 case "(($ac_try" in
8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514   *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517   (eval "$ac_link") 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } &&
8524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525   { (case "(($ac_try" in
8526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527   *) ac_try_echo=$ac_try;;
8528 esac
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530   (eval "$ac_try") 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; } &&
8534          { ac_try='test -s conftest$ac_exeext'
8535   { (case "(($ac_try" in
8536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537   *) ac_try_echo=$ac_try;;
8538 esac
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540   (eval "$ac_try") 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; }; then
8544   ac_cv_lib_dl_dlsym=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549         ac_cv_lib_dl_dlsym=no
8550 fi
8551
8552 rm -f core conftest.err conftest.$ac_objext \
8553       conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8555 fi
8556 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8557 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8558 if test $ac_cv_lib_dl_dlsym = yes; then
8559   cat >>confdefs.h <<_ACEOF
8560 #define HAVE_LIBDL 1
8561 _ACEOF
8562
8563   LIBS="-ldl $LIBS"
8564
8565 fi
8566
8567         # -lresolv needs to be at the end of LIBS or DNS lookups break
8568         { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8569 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8570 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   ac_check_lib_save_LIBS=$LIBS
8574 LIBS="-lresolv  $LIBS"
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h.  */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h.  */
8581
8582 /* Override any GCC internal prototype to avoid an error.
8583    Use char because int might match the return type of a GCC
8584    builtin and then its argument prototype would still apply.  */
8585 #ifdef __cplusplus
8586 extern "C"
8587 #endif
8588 char res_query ();
8589 int
8590 main ()
8591 {
8592 return res_query ();
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (ac_try="$ac_link"
8599 case "(($ac_try" in
8600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601   *) ac_try_echo=$ac_try;;
8602 esac
8603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604   (eval "$ac_link") 2>conftest.er1
8605   ac_status=$?
8606   grep -v '^ *+' conftest.er1 >conftest.err
8607   rm -f conftest.er1
8608   cat conftest.err >&5
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } &&
8611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8612   { (case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_try") 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; } &&
8621          { ac_try='test -s conftest$ac_exeext'
8622   { (case "(($ac_try" in
8623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624   *) ac_try_echo=$ac_try;;
8625 esac
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627   (eval "$ac_try") 2>&5
8628   ac_status=$?
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); }; }; then
8631   ac_cv_lib_resolv_res_query=yes
8632 else
8633   echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8635
8636         ac_cv_lib_resolv_res_query=no
8637 fi
8638
8639 rm -f core conftest.err conftest.$ac_objext \
8640       conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_lib_save_LIBS
8642 fi
8643 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8644 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8645 if test $ac_cv_lib_resolv_res_query = yes; then
8646    LIBS="$LIBS -lresolv"
8647 fi
8648
8649         IPADDR_IN_DISPLAY=yes
8650         cat >>confdefs.h <<\_ACEOF
8651 #define USE_PIPES 1
8652 _ACEOF
8653
8654         cat >>confdefs.h <<\_ACEOF
8655 #define IP_TOS_IS_BROKEN 1
8656 _ACEOF
8657
8658         cat >>confdefs.h <<\_ACEOF
8659 #define SETEUID_BREAKS_SETUID 1
8660 _ACEOF
8661
8662         cat >>confdefs.h <<\_ACEOF
8663 #define BROKEN_SETREUID 1
8664 _ACEOF
8665
8666         cat >>confdefs.h <<\_ACEOF
8667 #define BROKEN_SETREGID 1
8668 _ACEOF
8669
8670         cat >>confdefs.h <<\_ACEOF
8671 #define SSHD_ACQUIRES_CTTY 1
8672 _ACEOF
8673
8674         external_path_file=/etc/default/login
8675         # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8676         # Attention: always take care to bind libsocket and libnsl before libc,
8677         # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8678         ;;
8679 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8680 *-*-sysv4.2*)
8681         cat >>confdefs.h <<\_ACEOF
8682 #define USE_PIPES 1
8683 _ACEOF
8684
8685         cat >>confdefs.h <<\_ACEOF
8686 #define SETEUID_BREAKS_SETUID 1
8687 _ACEOF
8688
8689         cat >>confdefs.h <<\_ACEOF
8690 #define BROKEN_SETREUID 1
8691 _ACEOF
8692
8693         cat >>confdefs.h <<\_ACEOF
8694 #define BROKEN_SETREGID 1
8695 _ACEOF
8696
8697
8698 cat >>confdefs.h <<\_ACEOF
8699 #define PASSWD_NEEDS_USERNAME 1
8700 _ACEOF
8701
8702         cat >>confdefs.h <<\_ACEOF
8703 #define LOCKED_PASSWD_STRING "*LK*"
8704 _ACEOF
8705
8706         ;;
8707 # UnixWare 7.x, OpenUNIX 8
8708 *-*-sysv5*)
8709         check_for_libcrypt_later=1
8710
8711 cat >>confdefs.h <<\_ACEOF
8712 #define UNIXWARE_LONG_PASSWORDS 1
8713 _ACEOF
8714
8715         cat >>confdefs.h <<\_ACEOF
8716 #define USE_PIPES 1
8717 _ACEOF
8718
8719         cat >>confdefs.h <<\_ACEOF
8720 #define SETEUID_BREAKS_SETUID 1
8721 _ACEOF
8722
8723         cat >>confdefs.h <<\_ACEOF
8724 #define BROKEN_SETREUID 1
8725 _ACEOF
8726
8727         cat >>confdefs.h <<\_ACEOF
8728 #define BROKEN_SETREGID 1
8729 _ACEOF
8730
8731         cat >>confdefs.h <<\_ACEOF
8732 #define PASSWD_NEEDS_USERNAME 1
8733 _ACEOF
8734
8735         case "$host" in
8736         *-*-sysv5SCO_SV*)       # SCO OpenServer 6.x
8737                 TEST_SHELL=/u95/bin/sh
8738
8739 cat >>confdefs.h <<\_ACEOF
8740 #define BROKEN_LIBIAF 1
8741 _ACEOF
8742
8743                 cat >>confdefs.h <<\_ACEOF
8744 #define BROKEN_UPDWTMPX 1
8745 _ACEOF
8746
8747                 ;;
8748         *)      cat >>confdefs.h <<\_ACEOF
8749 #define LOCKED_PASSWD_STRING "*LK*"
8750 _ACEOF
8751
8752                 ;;
8753         esac
8754         ;;
8755 *-*-sysv*)
8756         ;;
8757 # SCO UNIX and OEM versions of SCO UNIX
8758 *-*-sco3.2v4*)
8759         { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
8760 echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
8761    { (exit 1); exit 1; }; }
8762         ;;
8763 # SCO OpenServer 5.x
8764 *-*-sco3.2v5*)
8765         if test -z "$GCC"; then
8766                 CFLAGS="$CFLAGS -belf"
8767         fi
8768         LIBS="$LIBS -lprot -lx -ltinfo -lm"
8769         no_dev_ptmx=1
8770         cat >>confdefs.h <<\_ACEOF
8771 #define USE_PIPES 1
8772 _ACEOF
8773
8774         cat >>confdefs.h <<\_ACEOF
8775 #define HAVE_SECUREWARE 1
8776 _ACEOF
8777
8778         cat >>confdefs.h <<\_ACEOF
8779 #define DISABLE_SHADOW 1
8780 _ACEOF
8781
8782         cat >>confdefs.h <<\_ACEOF
8783 #define DISABLE_FD_PASSING 1
8784 _ACEOF
8785
8786         cat >>confdefs.h <<\_ACEOF
8787 #define SETEUID_BREAKS_SETUID 1
8788 _ACEOF
8789
8790         cat >>confdefs.h <<\_ACEOF
8791 #define BROKEN_SETREUID 1
8792 _ACEOF
8793
8794         cat >>confdefs.h <<\_ACEOF
8795 #define BROKEN_SETREGID 1
8796 _ACEOF
8797
8798         cat >>confdefs.h <<\_ACEOF
8799 #define WITH_ABBREV_NO_TTY 1
8800 _ACEOF
8801
8802         cat >>confdefs.h <<\_ACEOF
8803 #define BROKEN_UPDWTMPX 1
8804 _ACEOF
8805
8806         cat >>confdefs.h <<\_ACEOF
8807 #define PASSWD_NEEDS_USERNAME 1
8808 _ACEOF
8809
8810
8811
8812 for ac_func in getluid setluid
8813 do
8814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8818   echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820   cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8828 #define $ac_func innocuous_$ac_func
8829
8830 /* System header to define __stub macros and hopefully few prototypes,
8831     which can conflict with char $ac_func (); below.
8832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833     <limits.h> exists even on freestanding compilers.  */
8834
8835 #ifdef __STDC__
8836 # include <limits.h>
8837 #else
8838 # include <assert.h>
8839 #endif
8840
8841 #undef $ac_func
8842
8843 /* Override any GCC internal prototype to avoid an error.
8844    Use char because int might match the return type of a GCC
8845    builtin and then its argument prototype would still apply.  */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 char $ac_func ();
8850 /* The GNU C library defines this for functions which it implements
8851     to always fail with ENOSYS.  Some functions are actually named
8852     something starting with __ and the normal name is an alias.  */
8853 #if defined __stub_$ac_func || defined __stub___$ac_func
8854 choke me
8855 #endif
8856
8857 int
8858 main ()
8859 {
8860 return $ac_func ();
8861   ;
8862   return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest.$ac_objext conftest$ac_exeext
8866 if { (ac_try="$ac_link"
8867 case "(($ac_try" in
8868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869   *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872   (eval "$ac_link") 2>conftest.er1
8873   ac_status=$?
8874   grep -v '^ *+' conftest.er1 >conftest.err
8875   rm -f conftest.er1
8876   cat conftest.err >&5
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); } &&
8879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8880   { (case "(($ac_try" in
8881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882   *) ac_try_echo=$ac_try;;
8883 esac
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885   (eval "$ac_try") 2>&5
8886   ac_status=$?
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); }; } &&
8889          { ac_try='test -s conftest$ac_exeext'
8890   { (case "(($ac_try" in
8891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892   *) ac_try_echo=$ac_try;;
8893 esac
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895   (eval "$ac_try") 2>&5
8896   ac_status=$?
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); }; }; then
8899   eval "$as_ac_var=yes"
8900 else
8901   echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8903
8904         eval "$as_ac_var=no"
8905 fi
8906
8907 rm -f core conftest.err conftest.$ac_objext \
8908       conftest$ac_exeext conftest.$ac_ext
8909 fi
8910 ac_res=`eval echo '${'$as_ac_var'}'`
8911                { echo "$as_me:$LINENO: result: $ac_res" >&5
8912 echo "${ECHO_T}$ac_res" >&6; }
8913 if test `eval echo '${'$as_ac_var'}'` = yes; then
8914   cat >>confdefs.h <<_ACEOF
8915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8916 _ACEOF
8917
8918 fi
8919 done
8920
8921         MANTYPE=man
8922         TEST_SHELL=ksh
8923         ;;
8924 *-*-unicosmk*)
8925
8926 cat >>confdefs.h <<\_ACEOF
8927 #define NO_SSH_LASTLOG 1
8928 _ACEOF
8929
8930         cat >>confdefs.h <<\_ACEOF
8931 #define SETEUID_BREAKS_SETUID 1
8932 _ACEOF
8933
8934         cat >>confdefs.h <<\_ACEOF
8935 #define BROKEN_SETREUID 1
8936 _ACEOF
8937
8938         cat >>confdefs.h <<\_ACEOF
8939 #define BROKEN_SETREGID 1
8940 _ACEOF
8941
8942         cat >>confdefs.h <<\_ACEOF
8943 #define USE_PIPES 1
8944 _ACEOF
8945
8946         cat >>confdefs.h <<\_ACEOF
8947 #define DISABLE_FD_PASSING 1
8948 _ACEOF
8949
8950         LDFLAGS="$LDFLAGS"
8951         LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8952         MANTYPE=cat
8953         ;;
8954 *-*-unicosmp*)
8955         cat >>confdefs.h <<\_ACEOF
8956 #define SETEUID_BREAKS_SETUID 1
8957 _ACEOF
8958
8959         cat >>confdefs.h <<\_ACEOF
8960 #define BROKEN_SETREUID 1
8961 _ACEOF
8962
8963         cat >>confdefs.h <<\_ACEOF
8964 #define BROKEN_SETREGID 1
8965 _ACEOF
8966
8967         cat >>confdefs.h <<\_ACEOF
8968 #define WITH_ABBREV_NO_TTY 1
8969 _ACEOF
8970
8971         cat >>confdefs.h <<\_ACEOF
8972 #define USE_PIPES 1
8973 _ACEOF
8974
8975         cat >>confdefs.h <<\_ACEOF
8976 #define DISABLE_FD_PASSING 1
8977 _ACEOF
8978
8979         LDFLAGS="$LDFLAGS"
8980         LIBS="$LIBS -lgen -lacid -ldb"
8981         MANTYPE=cat
8982         ;;
8983 *-*-unicos*)
8984         cat >>confdefs.h <<\_ACEOF
8985 #define SETEUID_BREAKS_SETUID 1
8986 _ACEOF
8987
8988         cat >>confdefs.h <<\_ACEOF
8989 #define BROKEN_SETREUID 1
8990 _ACEOF
8991
8992         cat >>confdefs.h <<\_ACEOF
8993 #define BROKEN_SETREGID 1
8994 _ACEOF
8995
8996         cat >>confdefs.h <<\_ACEOF
8997 #define USE_PIPES 1
8998 _ACEOF
8999
9000         cat >>confdefs.h <<\_ACEOF
9001 #define DISABLE_FD_PASSING 1
9002 _ACEOF
9003
9004         cat >>confdefs.h <<\_ACEOF
9005 #define NO_SSH_LASTLOG 1
9006 _ACEOF
9007
9008         LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9009         LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9010         MANTYPE=cat
9011         ;;
9012 *-dec-osf*)
9013         { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9014 echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
9015         no_osfsia=""
9016
9017 # Check whether --with-osfsia was given.
9018 if test "${with_osfsia+set}" = set; then
9019   withval=$with_osfsia;
9020                         if test "x$withval" = "xno" ; then
9021                                 { echo "$as_me:$LINENO: result: disabled" >&5
9022 echo "${ECHO_T}disabled" >&6; }
9023                                 no_osfsia=1
9024                         fi
9025
9026 fi
9027
9028         if test -z "$no_osfsia" ; then
9029                 if test -f /etc/sia/matrix.conf; then
9030                         { echo "$as_me:$LINENO: result: yes" >&5
9031 echo "${ECHO_T}yes" >&6; }
9032
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_OSF_SIA 1
9035 _ACEOF
9036
9037
9038 cat >>confdefs.h <<\_ACEOF
9039 #define DISABLE_LOGIN 1
9040 _ACEOF
9041
9042                         cat >>confdefs.h <<\_ACEOF
9043 #define DISABLE_FD_PASSING 1
9044 _ACEOF
9045
9046                         LIBS="$LIBS -lsecurity -ldb -lm -laud"
9047                         SIA_MSG="yes"
9048                 else
9049                         { echo "$as_me:$LINENO: result: no" >&5
9050 echo "${ECHO_T}no" >&6; }
9051
9052 cat >>confdefs.h <<\_ACEOF
9053 #define LOCKED_PASSWD_SUBSTR "Nologin"
9054 _ACEOF
9055
9056                 fi
9057         fi
9058         cat >>confdefs.h <<\_ACEOF
9059 #define BROKEN_GETADDRINFO 1
9060 _ACEOF
9061
9062         cat >>confdefs.h <<\_ACEOF
9063 #define SETEUID_BREAKS_SETUID 1
9064 _ACEOF
9065
9066         cat >>confdefs.h <<\_ACEOF
9067 #define BROKEN_SETREUID 1
9068 _ACEOF
9069
9070         cat >>confdefs.h <<\_ACEOF
9071 #define BROKEN_SETREGID 1
9072 _ACEOF
9073
9074         ;;
9075
9076 *-*-nto-qnx*)
9077         cat >>confdefs.h <<\_ACEOF
9078 #define USE_PIPES 1
9079 _ACEOF
9080
9081         cat >>confdefs.h <<\_ACEOF
9082 #define NO_X11_UNIX_SOCKETS 1
9083 _ACEOF
9084
9085
9086 cat >>confdefs.h <<\_ACEOF
9087 #define MISSING_NFDBITS 1
9088 _ACEOF
9089
9090
9091 cat >>confdefs.h <<\_ACEOF
9092 #define MISSING_HOWMANY 1
9093 _ACEOF
9094
9095
9096 cat >>confdefs.h <<\_ACEOF
9097 #define MISSING_FD_MASK 1
9098 _ACEOF
9099
9100         cat >>confdefs.h <<\_ACEOF
9101 #define DISABLE_LASTLOG 1
9102 _ACEOF
9103
9104         cat >>confdefs.h <<\_ACEOF
9105 #define SSHD_ACQUIRES_CTTY 1
9106 _ACEOF
9107
9108         enable_etc_default_login=no     # has incompatible /etc/default/login
9109         ;;
9110
9111 *-*-ultrix*)
9112
9113 cat >>confdefs.h <<\_ACEOF
9114 #define BROKEN_GETGROUPS 1
9115 _ACEOF
9116
9117
9118 cat >>confdefs.h <<\_ACEOF
9119 #define BROKEN_MMAP 1
9120 _ACEOF
9121
9122         cat >>confdefs.h <<\_ACEOF
9123 #define NEED_SETPGRP 1
9124 _ACEOF
9125
9126
9127 cat >>confdefs.h <<\_ACEOF
9128 #define HAVE_SYS_SYSLOG_H 1
9129 _ACEOF
9130
9131         ;;
9132
9133 *-*-lynxos)
9134         CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9135         cat >>confdefs.h <<\_ACEOF
9136 #define MISSING_HOWMANY 1
9137 _ACEOF
9138
9139
9140 cat >>confdefs.h <<\_ACEOF
9141 #define BROKEN_SETVBUF 1
9142 _ACEOF
9143
9144         ;;
9145 esac
9146
9147 # Allow user to specify flags
9148
9149 # Check whether --with-cflags was given.
9150 if test "${with_cflags+set}" = set; then
9151   withval=$with_cflags;
9152                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
9153                     test "x${withval}" != "xyes"; then
9154                         CFLAGS="$CFLAGS $withval"
9155                 fi
9156
9157
9158 fi
9159
9160
9161 # Check whether --with-cppflags was given.
9162 if test "${with_cppflags+set}" = set; then
9163   withval=$with_cppflags;
9164                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
9165                     test "x${withval}" != "xyes"; then
9166                         CPPFLAGS="$CPPFLAGS $withval"
9167                 fi
9168
9169
9170 fi
9171
9172
9173 # Check whether --with-ldflags was given.
9174 if test "${with_ldflags+set}" = set; then
9175   withval=$with_ldflags;
9176                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
9177                     test "x${withval}" != "xyes"; then
9178                         LDFLAGS="$LDFLAGS $withval"
9179                 fi
9180
9181
9182 fi
9183
9184
9185 # Check whether --with-libs was given.
9186 if test "${with_libs+set}" = set; then
9187   withval=$with_libs;
9188                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
9189                     test "x${withval}" != "xyes"; then
9190                         LIBS="$LIBS $withval"
9191                 fi
9192
9193
9194 fi
9195
9196
9197 # Check whether --with-Werror was given.
9198 if test "${with_Werror+set}" = set; then
9199   withval=$with_Werror;
9200                 if test -n "$withval"  &&  test "x$withval" != "xno"; then
9201                         werror_flags="-Werror"
9202                         if test "x${withval}" != "xyes"; then
9203                                 werror_flags="$withval"
9204                         fi
9205                 fi
9206
9207
9208 fi
9209
9210
9211 { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
9212 echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
9213 if test "$cross_compiling" = yes; then
9214         { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
9215 echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
9216
9217 else
9218   cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h.  */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h.  */
9224
9225 #include <stdio.h>
9226 int main(){exit(0);}
9227
9228 _ACEOF
9229 rm -f conftest$ac_exeext
9230 if { (ac_try="$ac_link"
9231 case "(($ac_try" in
9232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233   *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236   (eval "$ac_link") 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9240   { (case "(($ac_try" in
9241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242   *) ac_try_echo=$ac_try;;
9243 esac
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245   (eval "$ac_try") 2>&5
9246   ac_status=$?
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); }; }; then
9249         { echo "$as_me:$LINENO: result: yes" >&5
9250 echo "${ECHO_T}yes" >&6; }
9251 else
9252   echo "$as_me: program exited with status $ac_status" >&5
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9255
9256 ( exit $ac_status )
9257
9258                 { echo "$as_me:$LINENO: result: no" >&5
9259 echo "${ECHO_T}no" >&6; }
9260                 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
9261 echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
9262    { (exit 1); exit 1; }; }
9263
9264 fi
9265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9266 fi
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329 for ac_header in \
9330         bstring.h \
9331         crypt.h \
9332         crypto/sha2.h \
9333         dirent.h \
9334         endian.h \
9335         features.h \
9336         fcntl.h \
9337         floatingpoint.h \
9338         getopt.h \
9339         glob.h \
9340         ia.h \
9341         iaf.h \
9342         limits.h \
9343         login.h \
9344         maillock.h \
9345         ndir.h \
9346         net/if_tun.h \
9347         netdb.h \
9348         netgroup.h \
9349         pam/pam_appl.h \
9350         paths.h \
9351         pty.h \
9352         readpassphrase.h \
9353         rpc/types.h \
9354         security/pam_appl.h \
9355         sha2.h \
9356         shadow.h \
9357         stddef.h \
9358         stdint.h \
9359         string.h \
9360         strings.h \
9361         sys/audit.h \
9362         sys/bitypes.h \
9363         sys/bsdtty.h \
9364         sys/cdefs.h \
9365         sys/dir.h \
9366         sys/mman.h \
9367         sys/ndir.h \
9368         sys/prctl.h \
9369         sys/pstat.h \
9370         sys/select.h \
9371         sys/stat.h \
9372         sys/stream.h \
9373         sys/stropts.h \
9374         sys/strtio.h \
9375         sys/sysmacros.h \
9376         sys/time.h \
9377         sys/timers.h \
9378         sys/un.h \
9379         time.h \
9380         tmpdir.h \
9381         ttyent.h \
9382         unistd.h \
9383         usersec.h \
9384         util.h \
9385         utime.h \
9386         utmp.h \
9387         utmpx.h \
9388         vis.h \
9389
9390 do
9391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9393   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9396   echo $ECHO_N "(cached) $ECHO_C" >&6
9397 fi
9398 ac_res=`eval echo '${'$as_ac_Header'}'`
9399                { echo "$as_me:$LINENO: result: $ac_res" >&5
9400 echo "${ECHO_T}$ac_res" >&6; }
9401 else
9402   # Is the header compilable?
9403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411 $ac_includes_default
9412 #include <$ac_header>
9413 _ACEOF
9414 rm -f conftest.$ac_objext
9415 if { (ac_try="$ac_compile"
9416 case "(($ac_try" in
9417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418   *) ac_try_echo=$ac_try;;
9419 esac
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421   (eval "$ac_compile") 2>conftest.er1
9422   ac_status=$?
9423   grep -v '^ *+' conftest.er1 >conftest.err
9424   rm -f conftest.er1
9425   cat conftest.err >&5
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } &&
9428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9429   { (case "(($ac_try" in
9430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431   *) ac_try_echo=$ac_try;;
9432 esac
9433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434   (eval "$ac_try") 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; } &&
9438          { ac_try='test -s conftest.$ac_objext'
9439   { (case "(($ac_try" in
9440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441   *) ac_try_echo=$ac_try;;
9442 esac
9443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444   (eval "$ac_try") 2>&5
9445   ac_status=$?
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); }; }; then
9448   ac_header_compiler=yes
9449 else
9450   echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9452
9453         ac_header_compiler=no
9454 fi
9455
9456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9458 echo "${ECHO_T}$ac_header_compiler" >&6; }
9459
9460 # Is the header present?
9461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h.  */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h.  */
9469 #include <$ac_header>
9470 _ACEOF
9471 if { (ac_try="$ac_cpp conftest.$ac_ext"
9472 case "(($ac_try" in
9473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474   *) ac_try_echo=$ac_try;;
9475 esac
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9478   ac_status=$?
9479   grep -v '^ *+' conftest.er1 >conftest.err
9480   rm -f conftest.er1
9481   cat conftest.err >&5
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); } >/dev/null; then
9484   if test -s conftest.err; then
9485     ac_cpp_err=$ac_c_preproc_warn_flag
9486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9487   else
9488     ac_cpp_err=
9489   fi
9490 else
9491   ac_cpp_err=yes
9492 fi
9493 if test -z "$ac_cpp_err"; then
9494   ac_header_preproc=yes
9495 else
9496   echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9498
9499   ac_header_preproc=no
9500 fi
9501
9502 rm -f conftest.err conftest.$ac_ext
9503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9504 echo "${ECHO_T}$ac_header_preproc" >&6; }
9505
9506 # So?  What about this header?
9507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9508   yes:no: )
9509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9513     ac_header_preproc=yes
9514     ;;
9515   no:yes:* )
9516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9528     ( cat <<\_ASBOX
9529 ## ------------------------------------------- ##
9530 ## Report this to openssh-unix-dev@mindrot.org ##
9531 ## ------------------------------------------- ##
9532 _ASBOX
9533      ) | sed "s/^/$as_me: WARNING:     /" >&2
9534     ;;
9535 esac
9536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9539   echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541   eval "$as_ac_Header=\$ac_header_preproc"
9542 fi
9543 ac_res=`eval echo '${'$as_ac_Header'}'`
9544                { echo "$as_me:$LINENO: result: $ac_res" >&5
9545 echo "${ECHO_T}$ac_res" >&6; }
9546
9547 fi
9548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9549   cat >>confdefs.h <<_ACEOF
9550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9551 _ACEOF
9552
9553 fi
9554
9555 done
9556
9557
9558 # lastlog.h requires sys/time.h to be included first on Solaris
9559
9560 for ac_header in lastlog.h
9561 do
9562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9566   echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568   cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h.  */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h.  */
9574
9575 #ifdef HAVE_SYS_TIME_H
9576 # include <sys/time.h>
9577 #endif
9578
9579
9580 #include <$ac_header>
9581 _ACEOF
9582 rm -f conftest.$ac_objext
9583 if { (ac_try="$ac_compile"
9584 case "(($ac_try" in
9585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586   *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589   (eval "$ac_compile") 2>conftest.er1
9590   ac_status=$?
9591   grep -v '^ *+' conftest.er1 >conftest.err
9592   rm -f conftest.er1
9593   cat conftest.err >&5
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); } &&
9596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9597   { (case "(($ac_try" in
9598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599   *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602   (eval "$ac_try") 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; } &&
9606          { ac_try='test -s conftest.$ac_objext'
9607   { (case "(($ac_try" in
9608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609   *) ac_try_echo=$ac_try;;
9610 esac
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612   (eval "$ac_try") 2>&5
9613   ac_status=$?
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); }; }; then
9616   eval "$as_ac_Header=yes"
9617 else
9618   echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9620
9621         eval "$as_ac_Header=no"
9622 fi
9623
9624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625 fi
9626 ac_res=`eval echo '${'$as_ac_Header'}'`
9627                { echo "$as_me:$LINENO: result: $ac_res" >&5
9628 echo "${ECHO_T}$ac_res" >&6; }
9629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9630   cat >>confdefs.h <<_ACEOF
9631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9632 _ACEOF
9633
9634 fi
9635
9636 done
9637
9638
9639 # sys/ptms.h requires sys/stream.h to be included first on Solaris
9640
9641 for ac_header in sys/ptms.h
9642 do
9643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649   cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h.  */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h.  */
9655
9656 #ifdef HAVE_SYS_STREAM_H
9657 # include <sys/stream.h>
9658 #endif
9659
9660
9661 #include <$ac_header>
9662 _ACEOF
9663 rm -f conftest.$ac_objext
9664 if { (ac_try="$ac_compile"
9665 case "(($ac_try" in
9666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667   *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670   (eval "$ac_compile") 2>conftest.er1
9671   ac_status=$?
9672   grep -v '^ *+' conftest.er1 >conftest.err
9673   rm -f conftest.er1
9674   cat conftest.err >&5
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } &&
9677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9678   { (case "(($ac_try" in
9679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680   *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683   (eval "$ac_try") 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; } &&
9687          { ac_try='test -s conftest.$ac_objext'
9688   { (case "(($ac_try" in
9689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690   *) ac_try_echo=$ac_try;;
9691 esac
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693   (eval "$ac_try") 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); }; }; then
9697   eval "$as_ac_Header=yes"
9698 else
9699   echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702         eval "$as_ac_Header=no"
9703 fi
9704
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706 fi
9707 ac_res=`eval echo '${'$as_ac_Header'}'`
9708                { echo "$as_me:$LINENO: result: $ac_res" >&5
9709 echo "${ECHO_T}$ac_res" >&6; }
9710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9711   cat >>confdefs.h <<_ACEOF
9712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9713 _ACEOF
9714
9715 fi
9716
9717 done
9718
9719
9720 # login_cap.h requires sys/types.h on NetBSD
9721
9722 for ac_header in login_cap.h
9723 do
9724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730   cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736
9737 #include <sys/types.h>
9738
9739
9740 #include <$ac_header>
9741 _ACEOF
9742 rm -f conftest.$ac_objext
9743 if { (ac_try="$ac_compile"
9744 case "(($ac_try" in
9745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746   *) ac_try_echo=$ac_try;;
9747 esac
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749   (eval "$ac_compile") 2>conftest.er1
9750   ac_status=$?
9751   grep -v '^ *+' conftest.er1 >conftest.err
9752   rm -f conftest.er1
9753   cat conftest.err >&5
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); } &&
9756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9757   { (case "(($ac_try" in
9758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759   *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762   (eval "$ac_try") 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; } &&
9766          { ac_try='test -s conftest.$ac_objext'
9767   { (case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772   (eval "$ac_try") 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776   eval "$as_ac_Header=yes"
9777 else
9778   echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781         eval "$as_ac_Header=no"
9782 fi
9783
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 ac_res=`eval echo '${'$as_ac_Header'}'`
9787                { echo "$as_me:$LINENO: result: $ac_res" >&5
9788 echo "${ECHO_T}$ac_res" >&6; }
9789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9790   cat >>confdefs.h <<_ACEOF
9791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9792 _ACEOF
9793
9794 fi
9795
9796 done
9797
9798
9799 # Checks for libraries.
9800 { echo "$as_me:$LINENO: checking for yp_match" >&5
9801 echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
9802 if test "${ac_cv_func_yp_match+set}" = set; then
9803   echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805   cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h.  */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h.  */
9811 /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
9812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9813 #define yp_match innocuous_yp_match
9814
9815 /* System header to define __stub macros and hopefully few prototypes,
9816     which can conflict with char yp_match (); below.
9817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9818     <limits.h> exists even on freestanding compilers.  */
9819
9820 #ifdef __STDC__
9821 # include <limits.h>
9822 #else
9823 # include <assert.h>
9824 #endif
9825
9826 #undef yp_match
9827
9828 /* Override any GCC internal prototype to avoid an error.
9829    Use char because int might match the return type of a GCC
9830    builtin and then its argument prototype would still apply.  */
9831 #ifdef __cplusplus
9832 extern "C"
9833 #endif
9834 char yp_match ();
9835 /* The GNU C library defines this for functions which it implements
9836     to always fail with ENOSYS.  Some functions are actually named
9837     something starting with __ and the normal name is an alias.  */
9838 #if defined __stub_yp_match || defined __stub___yp_match
9839 choke me
9840 #endif
9841
9842 int
9843 main ()
9844 {
9845 return yp_match ();
9846   ;
9847   return 0;
9848 }
9849 _ACEOF
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (ac_try="$ac_link"
9852 case "(($ac_try" in
9853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854   *) ac_try_echo=$ac_try;;
9855 esac
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857   (eval "$ac_link") 2>conftest.er1
9858   ac_status=$?
9859   grep -v '^ *+' conftest.er1 >conftest.err
9860   rm -f conftest.er1
9861   cat conftest.err >&5
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); } &&
9864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9865   { (case "(($ac_try" in
9866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867   *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870   (eval "$ac_try") 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); }; } &&
9874          { ac_try='test -s conftest$ac_exeext'
9875   { (case "(($ac_try" in
9876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877   *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880   (eval "$ac_try") 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; }; then
9884   ac_cv_func_yp_match=yes
9885 else
9886   echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889         ac_cv_func_yp_match=no
9890 fi
9891
9892 rm -f core conftest.err conftest.$ac_objext \
9893       conftest$ac_exeext conftest.$ac_ext
9894 fi
9895 { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9896 echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9897 if test $ac_cv_func_yp_match = yes; then
9898   :
9899 else
9900
9901 { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9902 echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9903 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906   ac_check_lib_save_LIBS=$LIBS
9907 LIBS="-lnsl  $LIBS"
9908 cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h.  */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h.  */
9914
9915 /* Override any GCC internal prototype to avoid an error.
9916    Use char because int might match the return type of a GCC
9917    builtin and then its argument prototype would still apply.  */
9918 #ifdef __cplusplus
9919 extern "C"
9920 #endif
9921 char yp_match ();
9922 int
9923 main ()
9924 {
9925 return yp_match ();
9926   ;
9927   return 0;
9928 }
9929 _ACEOF
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (ac_try="$ac_link"
9932 case "(($ac_try" in
9933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934   *) ac_try_echo=$ac_try;;
9935 esac
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937   (eval "$ac_link") 2>conftest.er1
9938   ac_status=$?
9939   grep -v '^ *+' conftest.er1 >conftest.err
9940   rm -f conftest.er1
9941   cat conftest.err >&5
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); } &&
9944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9945   { (case "(($ac_try" in
9946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947   *) ac_try_echo=$ac_try;;
9948 esac
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950   (eval "$ac_try") 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; } &&
9954          { ac_try='test -s conftest$ac_exeext'
9955   { (case "(($ac_try" in
9956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957   *) ac_try_echo=$ac_try;;
9958 esac
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960   (eval "$ac_try") 2>&5
9961   ac_status=$?
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); }; }; then
9964   ac_cv_lib_nsl_yp_match=yes
9965 else
9966   echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9968
9969         ac_cv_lib_nsl_yp_match=no
9970 fi
9971
9972 rm -f core conftest.err conftest.$ac_objext \
9973       conftest$ac_exeext conftest.$ac_ext
9974 LIBS=$ac_check_lib_save_LIBS
9975 fi
9976 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9977 echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9978 if test $ac_cv_lib_nsl_yp_match = yes; then
9979   cat >>confdefs.h <<_ACEOF
9980 #define HAVE_LIBNSL 1
9981 _ACEOF
9982
9983   LIBS="-lnsl $LIBS"
9984
9985 fi
9986
9987 fi
9988
9989 { echo "$as_me:$LINENO: checking for setsockopt" >&5
9990 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9991 if test "${ac_cv_func_setsockopt+set}" = set; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
10001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10002 #define setsockopt innocuous_setsockopt
10003
10004 /* System header to define __stub macros and hopefully few prototypes,
10005     which can conflict with char setsockopt (); below.
10006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007     <limits.h> exists even on freestanding compilers.  */
10008
10009 #ifdef __STDC__
10010 # include <limits.h>
10011 #else
10012 # include <assert.h>
10013 #endif
10014
10015 #undef setsockopt
10016
10017 /* Override any GCC internal prototype to avoid an error.
10018    Use char because int might match the return type of a GCC
10019    builtin and then its argument prototype would still apply.  */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 char setsockopt ();
10024 /* The GNU C library defines this for functions which it implements
10025     to always fail with ENOSYS.  Some functions are actually named
10026     something starting with __ and the normal name is an alias.  */
10027 #if defined __stub_setsockopt || defined __stub___setsockopt
10028 choke me
10029 #endif
10030
10031 int
10032 main ()
10033 {
10034 return setsockopt ();
10035   ;
10036   return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043   *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046   (eval "$ac_link") 2>conftest.er1
10047   ac_status=$?
10048   grep -v '^ *+' conftest.er1 >conftest.err
10049   rm -f conftest.er1
10050   cat conftest.err >&5
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); } &&
10053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054   { (case "(($ac_try" in
10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056   *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059   (eval "$ac_try") 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; } &&
10063          { ac_try='test -s conftest$ac_exeext'
10064   { (case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069   (eval "$ac_try") 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; }; then
10073   ac_cv_func_setsockopt=yes
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078         ac_cv_func_setsockopt=no
10079 fi
10080
10081 rm -f core conftest.err conftest.$ac_objext \
10082       conftest$ac_exeext conftest.$ac_ext
10083 fi
10084 { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10085 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
10086 if test $ac_cv_func_setsockopt = yes; then
10087   :
10088 else
10089
10090 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10091 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10093   echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095   ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-lsocket  $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103
10104 /* Override any GCC internal prototype to avoid an error.
10105    Use char because int might match the return type of a GCC
10106    builtin and then its argument prototype would still apply.  */
10107 #ifdef __cplusplus
10108 extern "C"
10109 #endif
10110 char setsockopt ();
10111 int
10112 main ()
10113 {
10114 return setsockopt ();
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_link") 2>conftest.er1
10127   ac_status=$?
10128   grep -v '^ *+' conftest.er1 >conftest.err
10129   rm -f conftest.er1
10130   cat conftest.err >&5
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); } &&
10133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134   { (case "(($ac_try" in
10135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136   *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139   (eval "$ac_try") 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); }; } &&
10143          { ac_try='test -s conftest$ac_exeext'
10144   { (case "(($ac_try" in
10145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146   *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149   (eval "$ac_try") 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); }; }; then
10153   ac_cv_lib_socket_setsockopt=yes
10154 else
10155   echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158         ac_cv_lib_socket_setsockopt=no
10159 fi
10160
10161 rm -f core conftest.err conftest.$ac_objext \
10162       conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10164 fi
10165 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10166 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
10167 if test $ac_cv_lib_socket_setsockopt = yes; then
10168   cat >>confdefs.h <<_ACEOF
10169 #define HAVE_LIBSOCKET 1
10170 _ACEOF
10171
10172   LIBS="-lsocket $LIBS"
10173
10174 fi
10175
10176 fi
10177
10178
10179
10180 for ac_func in dirname
10181 do
10182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10186   echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188   cat >conftest.$ac_ext <<_ACEOF
10189 /* confdefs.h.  */
10190 _ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h.  */
10194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10196 #define $ac_func innocuous_$ac_func
10197
10198 /* System header to define __stub macros and hopefully few prototypes,
10199     which can conflict with char $ac_func (); below.
10200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10201     <limits.h> exists even on freestanding compilers.  */
10202
10203 #ifdef __STDC__
10204 # include <limits.h>
10205 #else
10206 # include <assert.h>
10207 #endif
10208
10209 #undef $ac_func
10210
10211 /* Override any GCC internal prototype to avoid an error.
10212    Use char because int might match the return type of a GCC
10213    builtin and then its argument prototype would still apply.  */
10214 #ifdef __cplusplus
10215 extern "C"
10216 #endif
10217 char $ac_func ();
10218 /* The GNU C library defines this for functions which it implements
10219     to always fail with ENOSYS.  Some functions are actually named
10220     something starting with __ and the normal name is an alias.  */
10221 #if defined __stub_$ac_func || defined __stub___$ac_func
10222 choke me
10223 #endif
10224
10225 int
10226 main ()
10227 {
10228 return $ac_func ();
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (ac_try="$ac_link"
10235 case "(($ac_try" in
10236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237   *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240   (eval "$ac_link") 2>conftest.er1
10241   ac_status=$?
10242   grep -v '^ *+' conftest.er1 >conftest.err
10243   rm -f conftest.er1
10244   cat conftest.err >&5
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); } &&
10247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10248   { (case "(($ac_try" in
10249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250   *) ac_try_echo=$ac_try;;
10251 esac
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253   (eval "$ac_try") 2>&5
10254   ac_status=$?
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); }; } &&
10257          { ac_try='test -s conftest$ac_exeext'
10258   { (case "(($ac_try" in
10259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260   *) ac_try_echo=$ac_try;;
10261 esac
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263   (eval "$ac_try") 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; }; then
10267   eval "$as_ac_var=yes"
10268 else
10269   echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10271
10272         eval "$as_ac_var=no"
10273 fi
10274
10275 rm -f core conftest.err conftest.$ac_objext \
10276       conftest$ac_exeext conftest.$ac_ext
10277 fi
10278 ac_res=`eval echo '${'$as_ac_var'}'`
10279                { echo "$as_me:$LINENO: result: $ac_res" >&5
10280 echo "${ECHO_T}$ac_res" >&6; }
10281 if test `eval echo '${'$as_ac_var'}'` = yes; then
10282   cat >>confdefs.h <<_ACEOF
10283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10284 _ACEOF
10285
10286 for ac_header in libgen.h
10287 do
10288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10290   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10293   echo $ECHO_N "(cached) $ECHO_C" >&6
10294 fi
10295 ac_res=`eval echo '${'$as_ac_Header'}'`
10296                { echo "$as_me:$LINENO: result: $ac_res" >&5
10297 echo "${ECHO_T}$ac_res" >&6; }
10298 else
10299   # Is the header compilable?
10300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10302 cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308 $ac_includes_default
10309 #include <$ac_header>
10310 _ACEOF
10311 rm -f conftest.$ac_objext
10312 if { (ac_try="$ac_compile"
10313 case "(($ac_try" in
10314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315   *) ac_try_echo=$ac_try;;
10316 esac
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318   (eval "$ac_compile") 2>conftest.er1
10319   ac_status=$?
10320   grep -v '^ *+' conftest.er1 >conftest.err
10321   rm -f conftest.er1
10322   cat conftest.err >&5
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); } &&
10325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10326   { (case "(($ac_try" in
10327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328   *) ac_try_echo=$ac_try;;
10329 esac
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331   (eval "$ac_try") 2>&5
10332   ac_status=$?
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); }; } &&
10335          { ac_try='test -s conftest.$ac_objext'
10336   { (case "(($ac_try" in
10337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338   *) ac_try_echo=$ac_try;;
10339 esac
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341   (eval "$ac_try") 2>&5
10342   ac_status=$?
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); }; }; then
10345   ac_header_compiler=yes
10346 else
10347   echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10349
10350         ac_header_compiler=no
10351 fi
10352
10353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10355 echo "${ECHO_T}$ac_header_compiler" >&6; }
10356
10357 # Is the header present?
10358 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h.  */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h.  */
10366 #include <$ac_header>
10367 _ACEOF
10368 if { (ac_try="$ac_cpp conftest.$ac_ext"
10369 case "(($ac_try" in
10370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371   *) ac_try_echo=$ac_try;;
10372 esac
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10375   ac_status=$?
10376   grep -v '^ *+' conftest.er1 >conftest.err
10377   rm -f conftest.er1
10378   cat conftest.err >&5
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } >/dev/null; then
10381   if test -s conftest.err; then
10382     ac_cpp_err=$ac_c_preproc_warn_flag
10383     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10384   else
10385     ac_cpp_err=
10386   fi
10387 else
10388   ac_cpp_err=yes
10389 fi
10390 if test -z "$ac_cpp_err"; then
10391   ac_header_preproc=yes
10392 else
10393   echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10395
10396   ac_header_preproc=no
10397 fi
10398
10399 rm -f conftest.err conftest.$ac_ext
10400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10401 echo "${ECHO_T}$ac_header_preproc" >&6; }
10402
10403 # So?  What about this header?
10404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10405   yes:no: )
10406     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10410     ac_header_preproc=yes
10411     ;;
10412   no:yes:* )
10413     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10415     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10416 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10417     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10419     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10420 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10423     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10425     ( cat <<\_ASBOX
10426 ## ------------------------------------------- ##
10427 ## Report this to openssh-unix-dev@mindrot.org ##
10428 ## ------------------------------------------- ##
10429 _ASBOX
10430      ) | sed "s/^/$as_me: WARNING:     /" >&2
10431     ;;
10432 esac
10433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10436   echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438   eval "$as_ac_Header=\$ac_header_preproc"
10439 fi
10440 ac_res=`eval echo '${'$as_ac_Header'}'`
10441                { echo "$as_me:$LINENO: result: $ac_res" >&5
10442 echo "${ECHO_T}$ac_res" >&6; }
10443
10444 fi
10445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10446   cat >>confdefs.h <<_ACEOF
10447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10448 _ACEOF
10449
10450 fi
10451
10452 done
10453
10454 else
10455
10456         { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
10457 echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
10458 if test "${ac_cv_lib_gen_dirname+set}" = set; then
10459   echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461   ac_check_lib_save_LIBS=$LIBS
10462 LIBS="-lgen  $LIBS"
10463 cat >conftest.$ac_ext <<_ACEOF
10464 /* confdefs.h.  */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h.  */
10469
10470 /* Override any GCC internal prototype to avoid an error.
10471    Use char because int might match the return type of a GCC
10472    builtin and then its argument prototype would still apply.  */
10473 #ifdef __cplusplus
10474 extern "C"
10475 #endif
10476 char dirname ();
10477 int
10478 main ()
10479 {
10480 return dirname ();
10481   ;
10482   return 0;
10483 }
10484 _ACEOF
10485 rm -f conftest.$ac_objext conftest$ac_exeext
10486 if { (ac_try="$ac_link"
10487 case "(($ac_try" in
10488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489   *) ac_try_echo=$ac_try;;
10490 esac
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492   (eval "$ac_link") 2>conftest.er1
10493   ac_status=$?
10494   grep -v '^ *+' conftest.er1 >conftest.err
10495   rm -f conftest.er1
10496   cat conftest.err >&5
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } &&
10499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10500   { (case "(($ac_try" in
10501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502   *) ac_try_echo=$ac_try;;
10503 esac
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505   (eval "$ac_try") 2>&5
10506   ac_status=$?
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); }; } &&
10509          { ac_try='test -s conftest$ac_exeext'
10510   { (case "(($ac_try" in
10511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512   *) ac_try_echo=$ac_try;;
10513 esac
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515   (eval "$ac_try") 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); }; }; then
10519   ac_cv_lib_gen_dirname=yes
10520 else
10521   echo "$as_me: failed program was:" >&5
10522 sed 's/^/| /' conftest.$ac_ext >&5
10523
10524         ac_cv_lib_gen_dirname=no
10525 fi
10526
10527 rm -f core conftest.err conftest.$ac_objext \
10528       conftest$ac_exeext conftest.$ac_ext
10529 LIBS=$ac_check_lib_save_LIBS
10530 fi
10531 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
10532 echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
10533 if test $ac_cv_lib_gen_dirname = yes; then
10534
10535                 { echo "$as_me:$LINENO: checking for broken dirname" >&5
10536 echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
10537 if test "${ac_cv_have_broken_dirname+set}" = set; then
10538   echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540
10541                         save_LIBS="$LIBS"
10542                         LIBS="$LIBS -lgen"
10543                         if test "$cross_compiling" = yes; then
10544    ac_cv_have_broken_dirname="no"
10545 else
10546   cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h.  */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h.  */
10552
10553 #include <libgen.h>
10554 #include <string.h>
10555
10556 int main(int argc, char **argv) {
10557     char *s, buf[32];
10558
10559     strncpy(buf,"/etc", 32);
10560     s = dirname(buf);
10561     if (!s || strncmp(s, "/", 32) != 0) {
10562         exit(1);
10563     } else {
10564         exit(0);
10565     }
10566 }
10567
10568 _ACEOF
10569 rm -f conftest$ac_exeext
10570 if { (ac_try="$ac_link"
10571 case "(($ac_try" in
10572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573   *) ac_try_echo=$ac_try;;
10574 esac
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576   (eval "$ac_link") 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10580   { (case "(($ac_try" in
10581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582   *) ac_try_echo=$ac_try;;
10583 esac
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585   (eval "$ac_try") 2>&5
10586   ac_status=$?
10587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588   (exit $ac_status); }; }; then
10589    ac_cv_have_broken_dirname="no"
10590 else
10591   echo "$as_me: program exited with status $ac_status" >&5
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595 ( exit $ac_status )
10596  ac_cv_have_broken_dirname="yes"
10597 fi
10598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10599 fi
10600
10601
10602                         LIBS="$save_LIBS"
10603
10604 fi
10605 { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
10606 echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
10607                 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
10608                         LIBS="$LIBS -lgen"
10609                         cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_DIRNAME 1
10611 _ACEOF
10612
10613
10614 for ac_header in libgen.h
10615 do
10616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10618   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10621   echo $ECHO_N "(cached) $ECHO_C" >&6
10622 fi
10623 ac_res=`eval echo '${'$as_ac_Header'}'`
10624                { echo "$as_me:$LINENO: result: $ac_res" >&5
10625 echo "${ECHO_T}$ac_res" >&6; }
10626 else
10627   # Is the header compilable?
10628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h.  */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h.  */
10636 $ac_includes_default
10637 #include <$ac_header>
10638 _ACEOF
10639 rm -f conftest.$ac_objext
10640 if { (ac_try="$ac_compile"
10641 case "(($ac_try" in
10642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643   *) ac_try_echo=$ac_try;;
10644 esac
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646   (eval "$ac_compile") 2>conftest.er1
10647   ac_status=$?
10648   grep -v '^ *+' conftest.er1 >conftest.err
10649   rm -f conftest.er1
10650   cat conftest.err >&5
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); } &&
10653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10654   { (case "(($ac_try" in
10655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656   *) ac_try_echo=$ac_try;;
10657 esac
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659   (eval "$ac_try") 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); }; } &&
10663          { ac_try='test -s conftest.$ac_objext'
10664   { (case "(($ac_try" in
10665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666   *) ac_try_echo=$ac_try;;
10667 esac
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669   (eval "$ac_try") 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; }; then
10673   ac_header_compiler=yes
10674 else
10675   echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678         ac_header_compiler=no
10679 fi
10680
10681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10683 echo "${ECHO_T}$ac_header_compiler" >&6; }
10684
10685 # Is the header present?
10686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h.  */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h.  */
10694 #include <$ac_header>
10695 _ACEOF
10696 if { (ac_try="$ac_cpp conftest.$ac_ext"
10697 case "(($ac_try" in
10698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699   *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10703   ac_status=$?
10704   grep -v '^ *+' conftest.er1 >conftest.err
10705   rm -f conftest.er1
10706   cat conftest.err >&5
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); } >/dev/null; then
10709   if test -s conftest.err; then
10710     ac_cpp_err=$ac_c_preproc_warn_flag
10711     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10712   else
10713     ac_cpp_err=
10714   fi
10715 else
10716   ac_cpp_err=yes
10717 fi
10718 if test -z "$ac_cpp_err"; then
10719   ac_header_preproc=yes
10720 else
10721   echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724   ac_header_preproc=no
10725 fi
10726
10727 rm -f conftest.err conftest.$ac_ext
10728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10729 echo "${ECHO_T}$ac_header_preproc" >&6; }
10730
10731 # So?  What about this header?
10732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10733   yes:no: )
10734     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10738     ac_header_preproc=yes
10739     ;;
10740   no:yes:* )
10741     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10743     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10744 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10745     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10747     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10748 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10751     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10753     ( cat <<\_ASBOX
10754 ## ------------------------------------------- ##
10755 ## Report this to openssh-unix-dev@mindrot.org ##
10756 ## ------------------------------------------- ##
10757 _ASBOX
10758      ) | sed "s/^/$as_me: WARNING:     /" >&2
10759     ;;
10760 esac
10761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764   echo $ECHO_N "(cached) $ECHO_C" >&6
10765 else
10766   eval "$as_ac_Header=\$ac_header_preproc"
10767 fi
10768 ac_res=`eval echo '${'$as_ac_Header'}'`
10769                { echo "$as_me:$LINENO: result: $ac_res" >&5
10770 echo "${ECHO_T}$ac_res" >&6; }
10771
10772 fi
10773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10774   cat >>confdefs.h <<_ACEOF
10775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10776 _ACEOF
10777
10778 fi
10779
10780 done
10781
10782                 fi
10783
10784 fi
10785
10786
10787 fi
10788 done
10789
10790
10791 { echo "$as_me:$LINENO: checking for getspnam" >&5
10792 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10793 if test "${ac_cv_func_getspnam+set}" = set; then
10794   echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796   cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h.  */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h.  */
10802 /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
10803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10804 #define getspnam innocuous_getspnam
10805
10806 /* System header to define __stub macros and hopefully few prototypes,
10807     which can conflict with char getspnam (); below.
10808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10809     <limits.h> exists even on freestanding compilers.  */
10810
10811 #ifdef __STDC__
10812 # include <limits.h>
10813 #else
10814 # include <assert.h>
10815 #endif
10816
10817 #undef getspnam
10818
10819 /* Override any GCC internal prototype to avoid an error.
10820    Use char because int might match the return type of a GCC
10821    builtin and then its argument prototype would still apply.  */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 char getspnam ();
10826 /* The GNU C library defines this for functions which it implements
10827     to always fail with ENOSYS.  Some functions are actually named
10828     something starting with __ and the normal name is an alias.  */
10829 #if defined __stub_getspnam || defined __stub___getspnam
10830 choke me
10831 #endif
10832
10833 int
10834 main ()
10835 {
10836 return getspnam ();
10837   ;
10838   return 0;
10839 }
10840 _ACEOF
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (ac_try="$ac_link"
10843 case "(($ac_try" in
10844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845   *) ac_try_echo=$ac_try;;
10846 esac
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848   (eval "$ac_link") 2>conftest.er1
10849   ac_status=$?
10850   grep -v '^ *+' conftest.er1 >conftest.err
10851   rm -f conftest.er1
10852   cat conftest.err >&5
10853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854   (exit $ac_status); } &&
10855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10856   { (case "(($ac_try" in
10857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858   *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861   (eval "$ac_try") 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); }; } &&
10865          { ac_try='test -s conftest$ac_exeext'
10866   { (case "(($ac_try" in
10867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868   *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871   (eval "$ac_try") 2>&5
10872   ac_status=$?
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); }; }; then
10875   ac_cv_func_getspnam=yes
10876 else
10877   echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10879
10880         ac_cv_func_getspnam=no
10881 fi
10882
10883 rm -f core conftest.err conftest.$ac_objext \
10884       conftest$ac_exeext conftest.$ac_ext
10885 fi
10886 { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
10887 echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
10888 if test $ac_cv_func_getspnam = yes; then
10889   :
10890 else
10891   { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
10892 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
10893 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
10894   echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896   ac_check_lib_save_LIBS=$LIBS
10897 LIBS="-lgen  $LIBS"
10898 cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904
10905 /* Override any GCC internal prototype to avoid an error.
10906    Use char because int might match the return type of a GCC
10907    builtin and then its argument prototype would still apply.  */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 char getspnam ();
10912 int
10913 main ()
10914 {
10915 return getspnam ();
10916   ;
10917   return 0;
10918 }
10919 _ACEOF
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (ac_try="$ac_link"
10922 case "(($ac_try" in
10923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924   *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927   (eval "$ac_link") 2>conftest.er1
10928   ac_status=$?
10929   grep -v '^ *+' conftest.er1 >conftest.err
10930   rm -f conftest.er1
10931   cat conftest.err >&5
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); } &&
10934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10935   { (case "(($ac_try" in
10936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937   *) ac_try_echo=$ac_try;;
10938 esac
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940   (eval "$ac_try") 2>&5
10941   ac_status=$?
10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); }; } &&
10944          { ac_try='test -s conftest$ac_exeext'
10945   { (case "(($ac_try" in
10946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947   *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950   (eval "$ac_try") 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; }; then
10954   ac_cv_lib_gen_getspnam=yes
10955 else
10956   echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959         ac_cv_lib_gen_getspnam=no
10960 fi
10961
10962 rm -f core conftest.err conftest.$ac_objext \
10963       conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_lib_save_LIBS
10965 fi
10966 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
10967 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
10968 if test $ac_cv_lib_gen_getspnam = yes; then
10969   LIBS="$LIBS -lgen"
10970 fi
10971
10972 fi
10973
10974 { echo "$as_me:$LINENO: checking for library containing basename" >&5
10975 echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
10976 if test "${ac_cv_search_basename+set}" = set; then
10977   echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979   ac_func_search_save_LIBS=$LIBS
10980 cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h.  */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h.  */
10986
10987 /* Override any GCC internal prototype to avoid an error.
10988    Use char because int might match the return type of a GCC
10989    builtin and then its argument prototype would still apply.  */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 char basename ();
10994 int
10995 main ()
10996 {
10997 return basename ();
10998   ;
10999   return 0;
11000 }
11001 _ACEOF
11002 for ac_lib in '' gen; do
11003   if test -z "$ac_lib"; then
11004     ac_res="none required"
11005   else
11006     ac_res=-l$ac_lib
11007     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11008   fi
11009   rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (ac_try="$ac_link"
11011 case "(($ac_try" in
11012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013   *) ac_try_echo=$ac_try;;
11014 esac
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016   (eval "$ac_link") 2>conftest.er1
11017   ac_status=$?
11018   grep -v '^ *+' conftest.er1 >conftest.err
11019   rm -f conftest.er1
11020   cat conftest.err >&5
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); } &&
11023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11024   { (case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_try") 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; } &&
11033          { ac_try='test -s conftest$ac_exeext'
11034   { (case "(($ac_try" in
11035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036   *) ac_try_echo=$ac_try;;
11037 esac
11038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039   (eval "$ac_try") 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }; }; then
11043   ac_cv_search_basename=$ac_res
11044 else
11045   echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048
11049 fi
11050
11051 rm -f core conftest.err conftest.$ac_objext \
11052       conftest$ac_exeext
11053   if test "${ac_cv_search_basename+set}" = set; then
11054   break
11055 fi
11056 done
11057 if test "${ac_cv_search_basename+set}" = set; then
11058   :
11059 else
11060   ac_cv_search_basename=no
11061 fi
11062 rm conftest.$ac_ext
11063 LIBS=$ac_func_search_save_LIBS
11064 fi
11065 { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
11066 echo "${ECHO_T}$ac_cv_search_basename" >&6; }
11067 ac_res=$ac_cv_search_basename
11068 if test "$ac_res" != no; then
11069   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11070
11071 cat >>confdefs.h <<\_ACEOF
11072 #define HAVE_BASENAME 1
11073 _ACEOF
11074
11075 fi
11076
11077
11078
11079 # Check whether --with-zlib was given.
11080 if test "${with_zlib+set}" = set; then
11081   withval=$with_zlib;  if test "x$withval" = "xno" ; then
11082                 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
11083 echo "$as_me: error: *** zlib is required ***" >&2;}
11084    { (exit 1); exit 1; }; }
11085           elif test "x$withval" != "xyes"; then
11086                 if test -d "$withval/lib"; then
11087                         if test -n "${need_dash_r}"; then
11088                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11089                         else
11090                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11091                         fi
11092                 else
11093                         if test -n "${need_dash_r}"; then
11094                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11095                         else
11096                                 LDFLAGS="-L${withval} ${LDFLAGS}"
11097                         fi
11098                 fi
11099                 if test -d "$withval/include"; then
11100                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11101                 else
11102                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
11103                 fi
11104         fi
11105
11106 fi
11107
11108
11109
11110 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
11111 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
11112 if test "${ac_cv_lib_z_deflate+set}" = set; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115   ac_check_lib_save_LIBS=$LIBS
11116 LIBS="-lz  $LIBS"
11117 cat >conftest.$ac_ext <<_ACEOF
11118 /* confdefs.h.  */
11119 _ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h.  */
11123
11124 /* Override any GCC internal prototype to avoid an error.
11125    Use char because int might match the return type of a GCC
11126    builtin and then its argument prototype would still apply.  */
11127 #ifdef __cplusplus
11128 extern "C"
11129 #endif
11130 char deflate ();
11131 int
11132 main ()
11133 {
11134 return deflate ();
11135   ;
11136   return 0;
11137 }
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_link") 2>conftest.er1
11147   ac_status=$?
11148   grep -v '^ *+' conftest.er1 >conftest.err
11149   rm -f conftest.er1
11150   cat conftest.err >&5
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); } &&
11153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11154   { (case "(($ac_try" in
11155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156   *) ac_try_echo=$ac_try;;
11157 esac
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159   (eval "$ac_try") 2>&5
11160   ac_status=$?
11161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); }; } &&
11163          { ac_try='test -s conftest$ac_exeext'
11164   { (case "(($ac_try" in
11165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166   *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169   (eval "$ac_try") 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; }; then
11173   ac_cv_lib_z_deflate=yes
11174 else
11175   echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11177
11178         ac_cv_lib_z_deflate=no
11179 fi
11180
11181 rm -f core conftest.err conftest.$ac_objext \
11182       conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_lib_save_LIBS
11184 fi
11185 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
11186 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
11187 if test $ac_cv_lib_z_deflate = yes; then
11188   cat >>confdefs.h <<_ACEOF
11189 #define HAVE_LIBZ 1
11190 _ACEOF
11191
11192   LIBS="-lz $LIBS"
11193
11194 else
11195
11196                 saved_CPPFLAGS="$CPPFLAGS"
11197                 saved_LDFLAGS="$LDFLAGS"
11198                 save_LIBS="$LIBS"
11199                                 if test -n "${need_dash_r}"; then
11200                         LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
11201                 else
11202                         LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
11203                 fi
11204                 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
11205                 LIBS="$LIBS -lz"
11206                 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212
11213 /* Override any GCC internal prototype to avoid an error.
11214    Use char because int might match the return type of a GCC
11215    builtin and then its argument prototype would still apply.  */
11216 #ifdef __cplusplus
11217 extern "C"
11218 #endif
11219 char deflate ();
11220 int
11221 main ()
11222 {
11223 return deflate ();
11224   ;
11225   return 0;
11226 }
11227 _ACEOF
11228 rm -f conftest.$ac_objext conftest$ac_exeext
11229 if { (ac_try="$ac_link"
11230 case "(($ac_try" in
11231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232   *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235   (eval "$ac_link") 2>conftest.er1
11236   ac_status=$?
11237   grep -v '^ *+' conftest.er1 >conftest.err
11238   rm -f conftest.er1
11239   cat conftest.err >&5
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); } &&
11242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11243   { (case "(($ac_try" in
11244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245   *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248   (eval "$ac_try") 2>&5
11249   ac_status=$?
11250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251   (exit $ac_status); }; } &&
11252          { ac_try='test -s conftest$ac_exeext'
11253   { (case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258   (eval "$ac_try") 2>&5
11259   ac_status=$?
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); }; }; then
11262   cat >>confdefs.h <<\_ACEOF
11263 #define HAVE_LIBZ 1
11264 _ACEOF
11265
11266 else
11267   echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11269
11270
11271                                 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
11272 echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
11273    { (exit 1); exit 1; }; }
11274
11275
11276 fi
11277
11278 rm -f core conftest.err conftest.$ac_objext \
11279       conftest$ac_exeext conftest.$ac_ext
11280
11281
11282 fi
11283
11284 if test "${ac_cv_header_zlib_h+set}" = set; then
11285   { echo "$as_me:$LINENO: checking for zlib.h" >&5
11286 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11287 if test "${ac_cv_header_zlib_h+set}" = set; then
11288   echo $ECHO_N "(cached) $ECHO_C" >&6
11289 fi
11290 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11291 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11292 else
11293   # Is the header compilable?
11294 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11295 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11296 cat >conftest.$ac_ext <<_ACEOF
11297 /* confdefs.h.  */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h.  */
11302 $ac_includes_default
11303 #include <zlib.h>
11304 _ACEOF
11305 rm -f conftest.$ac_objext
11306 if { (ac_try="$ac_compile"
11307 case "(($ac_try" in
11308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309   *) ac_try_echo=$ac_try;;
11310 esac
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312   (eval "$ac_compile") 2>conftest.er1
11313   ac_status=$?
11314   grep -v '^ *+' conftest.er1 >conftest.err
11315   rm -f conftest.er1
11316   cat conftest.err >&5
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); } &&
11319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11320   { (case "(($ac_try" in
11321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322   *) ac_try_echo=$ac_try;;
11323 esac
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325   (eval "$ac_try") 2>&5
11326   ac_status=$?
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); }; } &&
11329          { ac_try='test -s conftest.$ac_objext'
11330   { (case "(($ac_try" in
11331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332   *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335   (eval "$ac_try") 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; }; then
11339   ac_header_compiler=yes
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344         ac_header_compiler=no
11345 fi
11346
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 echo "${ECHO_T}$ac_header_compiler" >&6; }
11350
11351 # Is the header present?
11352 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11353 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h.  */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h.  */
11360 #include <zlib.h>
11361 _ACEOF
11362 if { (ac_try="$ac_cpp conftest.$ac_ext"
11363 case "(($ac_try" in
11364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365   *) ac_try_echo=$ac_try;;
11366 esac
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11369   ac_status=$?
11370   grep -v '^ *+' conftest.er1 >conftest.err
11371   rm -f conftest.er1
11372   cat conftest.err >&5
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); } >/dev/null; then
11375   if test -s conftest.err; then
11376     ac_cpp_err=$ac_c_preproc_warn_flag
11377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11378   else
11379     ac_cpp_err=
11380   fi
11381 else
11382   ac_cpp_err=yes
11383 fi
11384 if test -z "$ac_cpp_err"; then
11385   ac_header_preproc=yes
11386 else
11387   echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390   ac_header_preproc=no
11391 fi
11392
11393 rm -f conftest.err conftest.$ac_ext
11394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11395 echo "${ECHO_T}$ac_header_preproc" >&6; }
11396
11397 # So?  What about this header?
11398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11399   yes:no: )
11400     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11401 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11402     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11403 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11404     ac_header_preproc=yes
11405     ;;
11406   no:yes:* )
11407     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11408 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11409     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
11410 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
11411     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11412 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11413     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
11414 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11415     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11416 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11417     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11418 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11419     ( cat <<\_ASBOX
11420 ## ------------------------------------------- ##
11421 ## Report this to openssh-unix-dev@mindrot.org ##
11422 ## ------------------------------------------- ##
11423 _ASBOX
11424      ) | sed "s/^/$as_me: WARNING:     /" >&2
11425     ;;
11426 esac
11427 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11428 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11429 if test "${ac_cv_header_zlib_h+set}" = set; then
11430   echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432   ac_cv_header_zlib_h=$ac_header_preproc
11433 fi
11434 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11435 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11436
11437 fi
11438 if test $ac_cv_header_zlib_h = yes; then
11439   :
11440 else
11441   { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
11442 echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
11443    { (exit 1); exit 1; }; }
11444 fi
11445
11446
11447
11448
11449 # Check whether --with-zlib-version-check was given.
11450 if test "${with_zlib_version_check+set}" = set; then
11451   withval=$with_zlib_version_check;   if test "x$withval" = "xno" ; then
11452                 zlib_check_nonfatal=1
11453            fi
11454
11455
11456 fi
11457
11458
11459 { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
11460 echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
11461 if test "$cross_compiling" = yes; then
11462         { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
11463 echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
11464
11465 else
11466   cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h.  */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h.  */
11472
11473 #include <stdio.h>
11474 #include <zlib.h>
11475 int main()
11476 {
11477         int a=0, b=0, c=0, d=0, n, v;
11478         n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
11479         if (n != 3 && n != 4)
11480                 exit(1);
11481         v = a*1000000 + b*10000 + c*100 + d;
11482         fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
11483
11484         /* 1.1.4 is OK */
11485         if (a == 1 && b == 1 && c >= 4)
11486                 exit(0);
11487
11488         /* 1.2.3 and up are OK */
11489         if (v >= 1020300)
11490                 exit(0);
11491
11492         exit(2);
11493 }
11494
11495 _ACEOF
11496 rm -f conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500   *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503   (eval "$ac_link") 2>&5
11504   ac_status=$?
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11507   { (case "(($ac_try" in
11508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509   *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512   (eval "$ac_try") 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; }; then
11516   { echo "$as_me:$LINENO: result: no" >&5
11517 echo "${ECHO_T}no" >&6; }
11518 else
11519   echo "$as_me: program exited with status $ac_status" >&5
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11522
11523 ( exit $ac_status )
11524  { echo "$as_me:$LINENO: result: yes" >&5
11525 echo "${ECHO_T}yes" >&6; }
11526           if test -z "$zlib_check_nonfatal" ; then
11527                 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
11528 Your reported zlib version has known security problems.  It's possible your
11529 vendor has fixed these problems without changing the version number.  If you
11530 are sure this is the case, you can disable the check by running
11531 \"./configure --without-zlib-version-check\".
11532 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11533 See http://www.gzip.org/zlib/ for details." >&5
11534 echo "$as_me: error: *** zlib too old - check config.log ***
11535 Your reported zlib version has known security problems.  It's possible your
11536 vendor has fixed these problems without changing the version number.  If you
11537 are sure this is the case, you can disable the check by running
11538 \"./configure --without-zlib-version-check\".
11539 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11540 See http://www.gzip.org/zlib/ for details." >&2;}
11541    { (exit 1); exit 1; }; }
11542           else
11543                 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
11544 echo "$as_me: WARNING: zlib version may have security problems" >&2;}
11545           fi
11546
11547 fi
11548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11549 fi
11550
11551
11552
11553 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
11554 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
11555 if test "${ac_cv_func_strcasecmp+set}" = set; then
11556   echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558   cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h.  */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h.  */
11564 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
11565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11566 #define strcasecmp innocuous_strcasecmp
11567
11568 /* System header to define __stub macros and hopefully few prototypes,
11569     which can conflict with char strcasecmp (); below.
11570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11571     <limits.h> exists even on freestanding compilers.  */
11572
11573 #ifdef __STDC__
11574 # include <limits.h>
11575 #else
11576 # include <assert.h>
11577 #endif
11578
11579 #undef strcasecmp
11580
11581 /* Override any GCC internal prototype to avoid an error.
11582    Use char because int might match the return type of a GCC
11583    builtin and then its argument prototype would still apply.  */
11584 #ifdef __cplusplus
11585 extern "C"
11586 #endif
11587 char strcasecmp ();
11588 /* The GNU C library defines this for functions which it implements
11589     to always fail with ENOSYS.  Some functions are actually named
11590     something starting with __ and the normal name is an alias.  */
11591 #if defined __stub_strcasecmp || defined __stub___strcasecmp
11592 choke me
11593 #endif
11594
11595 int
11596 main ()
11597 {
11598 return strcasecmp ();
11599   ;
11600   return 0;
11601 }
11602 _ACEOF
11603 rm -f conftest.$ac_objext conftest$ac_exeext
11604 if { (ac_try="$ac_link"
11605 case "(($ac_try" in
11606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607   *) ac_try_echo=$ac_try;;
11608 esac
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610   (eval "$ac_link") 2>conftest.er1
11611   ac_status=$?
11612   grep -v '^ *+' conftest.er1 >conftest.err
11613   rm -f conftest.er1
11614   cat conftest.err >&5
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); } &&
11617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11618   { (case "(($ac_try" in
11619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620   *) ac_try_echo=$ac_try;;
11621 esac
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623   (eval "$ac_try") 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); }; } &&
11627          { ac_try='test -s conftest$ac_exeext'
11628   { (case "(($ac_try" in
11629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630   *) ac_try_echo=$ac_try;;
11631 esac
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633   (eval "$ac_try") 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; }; then
11637   ac_cv_func_strcasecmp=yes
11638 else
11639   echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642         ac_cv_func_strcasecmp=no
11643 fi
11644
11645 rm -f core conftest.err conftest.$ac_objext \
11646       conftest$ac_exeext conftest.$ac_ext
11647 fi
11648 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
11649 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
11650 if test $ac_cv_func_strcasecmp = yes; then
11651   :
11652 else
11653    { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
11654 echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
11655 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
11656   echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658   ac_check_lib_save_LIBS=$LIBS
11659 LIBS="-lresolv  $LIBS"
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h.  */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h.  */
11666
11667 /* Override any GCC internal prototype to avoid an error.
11668    Use char because int might match the return type of a GCC
11669    builtin and then its argument prototype would still apply.  */
11670 #ifdef __cplusplus
11671 extern "C"
11672 #endif
11673 char strcasecmp ();
11674 int
11675 main ()
11676 {
11677 return strcasecmp ();
11678   ;
11679   return 0;
11680 }
11681 _ACEOF
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (ac_try="$ac_link"
11684 case "(($ac_try" in
11685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686   *) ac_try_echo=$ac_try;;
11687 esac
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689   (eval "$ac_link") 2>conftest.er1
11690   ac_status=$?
11691   grep -v '^ *+' conftest.er1 >conftest.err
11692   rm -f conftest.er1
11693   cat conftest.err >&5
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); } &&
11696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11697   { (case "(($ac_try" in
11698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699   *) ac_try_echo=$ac_try;;
11700 esac
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702   (eval "$ac_try") 2>&5
11703   ac_status=$?
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); }; } &&
11706          { ac_try='test -s conftest$ac_exeext'
11707   { (case "(($ac_try" in
11708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709   *) ac_try_echo=$ac_try;;
11710 esac
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712   (eval "$ac_try") 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); }; }; then
11716   ac_cv_lib_resolv_strcasecmp=yes
11717 else
11718   echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11720
11721         ac_cv_lib_resolv_strcasecmp=no
11722 fi
11723
11724 rm -f core conftest.err conftest.$ac_objext \
11725       conftest$ac_exeext conftest.$ac_ext
11726 LIBS=$ac_check_lib_save_LIBS
11727 fi
11728 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
11729 echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
11730 if test $ac_cv_lib_resolv_strcasecmp = yes; then
11731   LIBS="$LIBS -lresolv"
11732 fi
11733
11734
11735 fi
11736
11737
11738 for ac_func in utimes
11739 do
11740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h.  */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h.  */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11754 #define $ac_func innocuous_$ac_func
11755
11756 /* System header to define __stub macros and hopefully few prototypes,
11757     which can conflict with char $ac_func (); below.
11758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759     <limits.h> exists even on freestanding compilers.  */
11760
11761 #ifdef __STDC__
11762 # include <limits.h>
11763 #else
11764 # include <assert.h>
11765 #endif
11766
11767 #undef $ac_func
11768
11769 /* Override any GCC internal prototype to avoid an error.
11770    Use char because int might match the return type of a GCC
11771    builtin and then its argument prototype would still apply.  */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 char $ac_func ();
11776 /* The GNU C library defines this for functions which it implements
11777     to always fail with ENOSYS.  Some functions are actually named
11778     something starting with __ and the normal name is an alias.  */
11779 #if defined __stub_$ac_func || defined __stub___$ac_func
11780 choke me
11781 #endif
11782
11783 int
11784 main ()
11785 {
11786 return $ac_func ();
11787   ;
11788   return 0;
11789 }
11790 _ACEOF
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795   *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798   (eval "$ac_link") 2>conftest.er1
11799   ac_status=$?
11800   grep -v '^ *+' conftest.er1 >conftest.err
11801   rm -f conftest.er1
11802   cat conftest.err >&5
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); } &&
11805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806   { (case "(($ac_try" in
11807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808   *) ac_try_echo=$ac_try;;
11809 esac
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811   (eval "$ac_try") 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; } &&
11815          { ac_try='test -s conftest$ac_exeext'
11816   { (case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_try") 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }; }; then
11825   eval "$as_ac_var=yes"
11826 else
11827   echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830         eval "$as_ac_var=no"
11831 fi
11832
11833 rm -f core conftest.err conftest.$ac_objext \
11834       conftest$ac_exeext conftest.$ac_ext
11835 fi
11836 ac_res=`eval echo '${'$as_ac_var'}'`
11837                { echo "$as_me:$LINENO: result: $ac_res" >&5
11838 echo "${ECHO_T}$ac_res" >&6; }
11839 if test `eval echo '${'$as_ac_var'}'` = yes; then
11840   cat >>confdefs.h <<_ACEOF
11841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11842 _ACEOF
11843
11844 else
11845    { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
11846 echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
11847 if test "${ac_cv_lib_c89_utimes+set}" = set; then
11848   echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850   ac_check_lib_save_LIBS=$LIBS
11851 LIBS="-lc89  $LIBS"
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h.  */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h.  */
11858
11859 /* Override any GCC internal prototype to avoid an error.
11860    Use char because int might match the return type of a GCC
11861    builtin and then its argument prototype would still apply.  */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 char utimes ();
11866 int
11867 main ()
11868 {
11869 return utimes ();
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (ac_try="$ac_link"
11876 case "(($ac_try" in
11877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878   *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881   (eval "$ac_link") 2>conftest.er1
11882   ac_status=$?
11883   grep -v '^ *+' conftest.er1 >conftest.err
11884   rm -f conftest.er1
11885   cat conftest.err >&5
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } &&
11888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889   { (case "(($ac_try" in
11890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891   *) ac_try_echo=$ac_try;;
11892 esac
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894   (eval "$ac_try") 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); }; } &&
11898          { ac_try='test -s conftest$ac_exeext'
11899   { (case "(($ac_try" in
11900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901   *) ac_try_echo=$ac_try;;
11902 esac
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904   (eval "$ac_try") 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }; }; then
11908   ac_cv_lib_c89_utimes=yes
11909 else
11910   echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11912
11913         ac_cv_lib_c89_utimes=no
11914 fi
11915
11916 rm -f core conftest.err conftest.$ac_objext \
11917       conftest$ac_exeext conftest.$ac_ext
11918 LIBS=$ac_check_lib_save_LIBS
11919 fi
11920 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11921 echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11922 if test $ac_cv_lib_c89_utimes = yes; then
11923   cat >>confdefs.h <<\_ACEOF
11924 #define HAVE_UTIMES 1
11925 _ACEOF
11926
11927                                         LIBS="$LIBS -lc89"
11928 fi
11929
11930
11931 fi
11932 done
11933
11934
11935
11936 for ac_header in libutil.h
11937 do
11938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 fi
11945 ac_res=`eval echo '${'$as_ac_Header'}'`
11946                { echo "$as_me:$LINENO: result: $ac_res" >&5
11947 echo "${ECHO_T}$ac_res" >&6; }
11948 else
11949   # Is the header compilable?
11950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h.  */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h.  */
11958 $ac_includes_default
11959 #include <$ac_header>
11960 _ACEOF
11961 rm -f conftest.$ac_objext
11962 if { (ac_try="$ac_compile"
11963 case "(($ac_try" in
11964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965   *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968   (eval "$ac_compile") 2>conftest.er1
11969   ac_status=$?
11970   grep -v '^ *+' conftest.er1 >conftest.err
11971   rm -f conftest.er1
11972   cat conftest.err >&5
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); } &&
11975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11976   { (case "(($ac_try" in
11977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978   *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981   (eval "$ac_try") 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest.$ac_objext'
11986   { (case "(($ac_try" in
11987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988   *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991   (eval "$ac_try") 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); }; }; then
11995   ac_header_compiler=yes
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000         ac_header_compiler=no
12001 fi
12002
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12005 echo "${ECHO_T}$ac_header_compiler" >&6; }
12006
12007 # Is the header present?
12008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016 #include <$ac_header>
12017 _ACEOF
12018 if { (ac_try="$ac_cpp conftest.$ac_ext"
12019 case "(($ac_try" in
12020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021   *) ac_try_echo=$ac_try;;
12022 esac
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12025   ac_status=$?
12026   grep -v '^ *+' conftest.er1 >conftest.err
12027   rm -f conftest.er1
12028   cat conftest.err >&5
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); } >/dev/null; then
12031   if test -s conftest.err; then
12032     ac_cpp_err=$ac_c_preproc_warn_flag
12033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12034   else
12035     ac_cpp_err=
12036   fi
12037 else
12038   ac_cpp_err=yes
12039 fi
12040 if test -z "$ac_cpp_err"; then
12041   ac_header_preproc=yes
12042 else
12043   echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12045
12046   ac_header_preproc=no
12047 fi
12048
12049 rm -f conftest.err conftest.$ac_ext
12050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12051 echo "${ECHO_T}$ac_header_preproc" >&6; }
12052
12053 # So?  What about this header?
12054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12055   yes:no: )
12056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12060     ac_header_preproc=yes
12061     ;;
12062   no:yes:* )
12063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12075     ( cat <<\_ASBOX
12076 ## ------------------------------------------- ##
12077 ## Report this to openssh-unix-dev@mindrot.org ##
12078 ## ------------------------------------------- ##
12079 _ASBOX
12080      ) | sed "s/^/$as_me: WARNING:     /" >&2
12081     ;;
12082 esac
12083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12086   echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088   eval "$as_ac_Header=\$ac_header_preproc"
12089 fi
12090 ac_res=`eval echo '${'$as_ac_Header'}'`
12091                { echo "$as_me:$LINENO: result: $ac_res" >&5
12092 echo "${ECHO_T}$ac_res" >&6; }
12093
12094 fi
12095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12096   cat >>confdefs.h <<_ACEOF
12097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12098 _ACEOF
12099
12100 fi
12101
12102 done
12103
12104 { echo "$as_me:$LINENO: checking for library containing login" >&5
12105 echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
12106 if test "${ac_cv_search_login+set}" = set; then
12107   echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109   ac_func_search_save_LIBS=$LIBS
12110 cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h.  */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h.  */
12116
12117 /* Override any GCC internal prototype to avoid an error.
12118    Use char because int might match the return type of a GCC
12119    builtin and then its argument prototype would still apply.  */
12120 #ifdef __cplusplus
12121 extern "C"
12122 #endif
12123 char login ();
12124 int
12125 main ()
12126 {
12127 return login ();
12128   ;
12129   return 0;
12130 }
12131 _ACEOF
12132 for ac_lib in '' util bsd; do
12133   if test -z "$ac_lib"; then
12134     ac_res="none required"
12135   else
12136     ac_res=-l$ac_lib
12137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12138   fi
12139   rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (ac_try="$ac_link"
12141 case "(($ac_try" in
12142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143   *) ac_try_echo=$ac_try;;
12144 esac
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146   (eval "$ac_link") 2>conftest.er1
12147   ac_status=$?
12148   grep -v '^ *+' conftest.er1 >conftest.err
12149   rm -f conftest.er1
12150   cat conftest.err >&5
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); } &&
12153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12154   { (case "(($ac_try" in
12155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156   *) ac_try_echo=$ac_try;;
12157 esac
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159   (eval "$ac_try") 2>&5
12160   ac_status=$?
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); }; } &&
12163          { ac_try='test -s conftest$ac_exeext'
12164   { (case "(($ac_try" in
12165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166   *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169   (eval "$ac_try") 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); }; }; then
12173   ac_cv_search_login=$ac_res
12174 else
12175   echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12177
12178
12179 fi
12180
12181 rm -f core conftest.err conftest.$ac_objext \
12182       conftest$ac_exeext
12183   if test "${ac_cv_search_login+set}" = set; then
12184   break
12185 fi
12186 done
12187 if test "${ac_cv_search_login+set}" = set; then
12188   :
12189 else
12190   ac_cv_search_login=no
12191 fi
12192 rm conftest.$ac_ext
12193 LIBS=$ac_func_search_save_LIBS
12194 fi
12195 { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
12196 echo "${ECHO_T}$ac_cv_search_login" >&6; }
12197 ac_res=$ac_cv_search_login
12198 if test "$ac_res" != no; then
12199   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12200
12201 cat >>confdefs.h <<\_ACEOF
12202 #define HAVE_LOGIN 1
12203 _ACEOF
12204
12205 fi
12206
12207
12208
12209
12210 for ac_func in logout updwtmp logwtmp
12211 do
12212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12216   echo $ECHO_N "(cached) $ECHO_C" >&6
12217 else
12218   cat >conftest.$ac_ext <<_ACEOF
12219 /* confdefs.h.  */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h.  */
12224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12226 #define $ac_func innocuous_$ac_func
12227
12228 /* System header to define __stub macros and hopefully few prototypes,
12229     which can conflict with char $ac_func (); below.
12230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12231     <limits.h> exists even on freestanding compilers.  */
12232
12233 #ifdef __STDC__
12234 # include <limits.h>
12235 #else
12236 # include <assert.h>
12237 #endif
12238
12239 #undef $ac_func
12240
12241 /* Override any GCC internal prototype to avoid an error.
12242    Use char because int might match the return type of a GCC
12243    builtin and then its argument prototype would still apply.  */
12244 #ifdef __cplusplus
12245 extern "C"
12246 #endif
12247 char $ac_func ();
12248 /* The GNU C library defines this for functions which it implements
12249     to always fail with ENOSYS.  Some functions are actually named
12250     something starting with __ and the normal name is an alias.  */
12251 #if defined __stub_$ac_func || defined __stub___$ac_func
12252 choke me
12253 #endif
12254
12255 int
12256 main ()
12257 {
12258 return $ac_func ();
12259   ;
12260   return 0;
12261 }
12262 _ACEOF
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (ac_try="$ac_link"
12265 case "(($ac_try" in
12266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267   *) ac_try_echo=$ac_try;;
12268 esac
12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270   (eval "$ac_link") 2>conftest.er1
12271   ac_status=$?
12272   grep -v '^ *+' conftest.er1 >conftest.err
12273   rm -f conftest.er1
12274   cat conftest.err >&5
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); } &&
12277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12278   { (case "(($ac_try" in
12279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280   *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283   (eval "$ac_try") 2>&5
12284   ac_status=$?
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); }; } &&
12287          { ac_try='test -s conftest$ac_exeext'
12288   { (case "(($ac_try" in
12289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290   *) ac_try_echo=$ac_try;;
12291 esac
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293   (eval "$ac_try") 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; }; then
12297   eval "$as_ac_var=yes"
12298 else
12299   echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302         eval "$as_ac_var=no"
12303 fi
12304
12305 rm -f core conftest.err conftest.$ac_objext \
12306       conftest$ac_exeext conftest.$ac_ext
12307 fi
12308 ac_res=`eval echo '${'$as_ac_var'}'`
12309                { echo "$as_me:$LINENO: result: $ac_res" >&5
12310 echo "${ECHO_T}$ac_res" >&6; }
12311 if test `eval echo '${'$as_ac_var'}'` = yes; then
12312   cat >>confdefs.h <<_ACEOF
12313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12314 _ACEOF
12315
12316 fi
12317 done
12318
12319
12320
12321 for ac_func in strftime
12322 do
12323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12327   echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329   cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h.  */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h.  */
12335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12337 #define $ac_func innocuous_$ac_func
12338
12339 /* System header to define __stub macros and hopefully few prototypes,
12340     which can conflict with char $ac_func (); below.
12341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12342     <limits.h> exists even on freestanding compilers.  */
12343
12344 #ifdef __STDC__
12345 # include <limits.h>
12346 #else
12347 # include <assert.h>
12348 #endif
12349
12350 #undef $ac_func
12351
12352 /* Override any GCC internal prototype to avoid an error.
12353    Use char because int might match the return type of a GCC
12354    builtin and then its argument prototype would still apply.  */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 char $ac_func ();
12359 /* The GNU C library defines this for functions which it implements
12360     to always fail with ENOSYS.  Some functions are actually named
12361     something starting with __ and the normal name is an alias.  */
12362 #if defined __stub_$ac_func || defined __stub___$ac_func
12363 choke me
12364 #endif
12365
12366 int
12367 main ()
12368 {
12369 return $ac_func ();
12370   ;
12371   return 0;
12372 }
12373 _ACEOF
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381   (eval "$ac_link") 2>conftest.er1
12382   ac_status=$?
12383   grep -v '^ *+' conftest.er1 >conftest.err
12384   rm -f conftest.er1
12385   cat conftest.err >&5
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } &&
12388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12389   { (case "(($ac_try" in
12390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391   *) ac_try_echo=$ac_try;;
12392 esac
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394   (eval "$ac_try") 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; } &&
12398          { ac_try='test -s conftest$ac_exeext'
12399   { (case "(($ac_try" in
12400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401   *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404   (eval "$ac_try") 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; }; then
12408   eval "$as_ac_var=yes"
12409 else
12410   echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413         eval "$as_ac_var=no"
12414 fi
12415
12416 rm -f core conftest.err conftest.$ac_objext \
12417       conftest$ac_exeext conftest.$ac_ext
12418 fi
12419 ac_res=`eval echo '${'$as_ac_var'}'`
12420                { echo "$as_me:$LINENO: result: $ac_res" >&5
12421 echo "${ECHO_T}$ac_res" >&6; }
12422 if test `eval echo '${'$as_ac_var'}'` = yes; then
12423   cat >>confdefs.h <<_ACEOF
12424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12425 _ACEOF
12426
12427 else
12428   # strftime is in -lintl on SCO UNIX.
12429 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12430 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
12431 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12432   echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434   ac_check_lib_save_LIBS=$LIBS
12435 LIBS="-lintl  $LIBS"
12436 cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h.  */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h.  */
12442
12443 /* Override any GCC internal prototype to avoid an error.
12444    Use char because int might match the return type of a GCC
12445    builtin and then its argument prototype would still apply.  */
12446 #ifdef __cplusplus
12447 extern "C"
12448 #endif
12449 char strftime ();
12450 int
12451 main ()
12452 {
12453 return strftime ();
12454   ;
12455   return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (ac_try="$ac_link"
12460 case "(($ac_try" in
12461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462   *) ac_try_echo=$ac_try;;
12463 esac
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465   (eval "$ac_link") 2>conftest.er1
12466   ac_status=$?
12467   grep -v '^ *+' conftest.er1 >conftest.err
12468   rm -f conftest.er1
12469   cat conftest.err >&5
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); } &&
12472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12473   { (case "(($ac_try" in
12474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475   *) ac_try_echo=$ac_try;;
12476 esac
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478   (eval "$ac_try") 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; } &&
12482          { ac_try='test -s conftest$ac_exeext'
12483   { (case "(($ac_try" in
12484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485   *) ac_try_echo=$ac_try;;
12486 esac
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488   (eval "$ac_try") 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); }; }; then
12492   ac_cv_lib_intl_strftime=yes
12493 else
12494   echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12496
12497         ac_cv_lib_intl_strftime=no
12498 fi
12499
12500 rm -f core conftest.err conftest.$ac_objext \
12501       conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12503 fi
12504 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12505 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
12506 if test $ac_cv_lib_intl_strftime = yes; then
12507   cat >>confdefs.h <<\_ACEOF
12508 #define HAVE_STRFTIME 1
12509 _ACEOF
12510
12511 LIBS="-lintl $LIBS"
12512 fi
12513
12514 fi
12515 done
12516
12517
12518 # Check for ALTDIRFUNC glob() extension
12519 { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
12520 echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h.  */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h.  */
12527
12528                 #include <glob.h>
12529                 #ifdef GLOB_ALTDIRFUNC
12530                 FOUNDIT
12531                 #endif
12532
12533 _ACEOF
12534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12535   $EGREP "FOUNDIT" >/dev/null 2>&1; then
12536
12537
12538 cat >>confdefs.h <<\_ACEOF
12539 #define GLOB_HAS_ALTDIRFUNC 1
12540 _ACEOF
12541
12542                 { echo "$as_me:$LINENO: result: yes" >&5
12543 echo "${ECHO_T}yes" >&6; }
12544
12545 else
12546
12547                 { echo "$as_me:$LINENO: result: no" >&5
12548 echo "${ECHO_T}no" >&6; }
12549
12550
12551 fi
12552 rm -f conftest*
12553
12554
12555 # Check for g.gl_matchc glob() extension
12556 { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
12557 echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
12558 cat >conftest.$ac_ext <<_ACEOF
12559 /* confdefs.h.  */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h.  */
12564  #include <glob.h>
12565 int
12566 main ()
12567 {
12568 glob_t g; g.gl_matchc = 1;
12569   ;
12570   return 0;
12571 }
12572 _ACEOF
12573 rm -f conftest.$ac_objext
12574 if { (ac_try="$ac_compile"
12575 case "(($ac_try" in
12576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577   *) ac_try_echo=$ac_try;;
12578 esac
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580   (eval "$ac_compile") 2>conftest.er1
12581   ac_status=$?
12582   grep -v '^ *+' conftest.er1 >conftest.err
12583   rm -f conftest.er1
12584   cat conftest.err >&5
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); } &&
12587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12588   { (case "(($ac_try" in
12589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590   *) ac_try_echo=$ac_try;;
12591 esac
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593   (eval "$ac_try") 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); }; } &&
12597          { ac_try='test -s conftest.$ac_objext'
12598   { (case "(($ac_try" in
12599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600   *) ac_try_echo=$ac_try;;
12601 esac
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603   (eval "$ac_try") 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); }; }; then
12607
12608
12609 cat >>confdefs.h <<\_ACEOF
12610 #define GLOB_HAS_GL_MATCHC 1
12611 _ACEOF
12612
12613                 { echo "$as_me:$LINENO: result: yes" >&5
12614 echo "${ECHO_T}yes" >&6; }
12615
12616 else
12617   echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620
12621                 { echo "$as_me:$LINENO: result: no" >&5
12622 echo "${ECHO_T}no" >&6; }
12623
12624
12625 fi
12626
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628
12629 { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
12630 echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
12631 if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
12632   echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634   cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640 #include <glob.h>
12641
12642 int
12643 main ()
12644 {
12645 #ifndef GLOB_NOMATCH
12646   char *p = (char *) GLOB_NOMATCH;
12647   return !p;
12648 #endif
12649
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext
12655 if { (ac_try="$ac_compile"
12656 case "(($ac_try" in
12657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658   *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661   (eval "$ac_compile") 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } &&
12668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12669   { (case "(($ac_try" in
12670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671   *) ac_try_echo=$ac_try;;
12672 esac
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674   (eval "$ac_try") 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; } &&
12678          { ac_try='test -s conftest.$ac_objext'
12679   { (case "(($ac_try" in
12680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681   *) ac_try_echo=$ac_try;;
12682 esac
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684   (eval "$ac_try") 2>&5
12685   ac_status=$?
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); }; }; then
12688   ac_cv_have_decl_GLOB_NOMATCH=yes
12689 else
12690   echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693         ac_cv_have_decl_GLOB_NOMATCH=no
12694 fi
12695
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 fi
12698 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
12699 echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
12700 if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
12701
12702 cat >>confdefs.h <<_ACEOF
12703 #define HAVE_DECL_GLOB_NOMATCH 1
12704 _ACEOF
12705
12706
12707 else
12708   cat >>confdefs.h <<_ACEOF
12709 #define HAVE_DECL_GLOB_NOMATCH 0
12710 _ACEOF
12711
12712
12713 fi
12714
12715
12716
12717 { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
12718 echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
12719 if test "$cross_compiling" = yes; then
12720
12721                 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
12722 echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
12723                 cat >>confdefs.h <<\_ACEOF
12724 #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12725 _ACEOF
12726
12727
12728
12729 else
12730   cat >conftest.$ac_ext <<_ACEOF
12731 /* confdefs.h.  */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h.  */
12736
12737 #include <sys/types.h>
12738 #include <dirent.h>
12739 int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
12740
12741 _ACEOF
12742 rm -f conftest$ac_exeext
12743 if { (ac_try="$ac_link"
12744 case "(($ac_try" in
12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746   *) ac_try_echo=$ac_try;;
12747 esac
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749   (eval "$ac_link") 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12753   { (case "(($ac_try" in
12754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755   *) ac_try_echo=$ac_try;;
12756 esac
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758   (eval "$ac_try") 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; }; then
12762   { echo "$as_me:$LINENO: result: yes" >&5
12763 echo "${ECHO_T}yes" >&6; }
12764 else
12765   echo "$as_me: program exited with status $ac_status" >&5
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769 ( exit $ac_status )
12770
12771                 { echo "$as_me:$LINENO: result: no" >&5
12772 echo "${ECHO_T}no" >&6; }
12773
12774 cat >>confdefs.h <<\_ACEOF
12775 #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12776 _ACEOF
12777
12778
12779 fi
12780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12781 fi
12782
12783
12784
12785 { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
12786 echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
12787 if test -d "/proc/$$/fd" ; then
12788
12789 cat >>confdefs.h <<\_ACEOF
12790 #define HAVE_PROC_PID 1
12791 _ACEOF
12792
12793         { echo "$as_me:$LINENO: result: yes" >&5
12794 echo "${ECHO_T}yes" >&6; }
12795 else
12796         { echo "$as_me:$LINENO: result: no" >&5
12797 echo "${ECHO_T}no" >&6; }
12798 fi
12799
12800 # Check whether user wants S/Key support
12801 SKEY_MSG="no"
12802
12803 # Check whether --with-skey was given.
12804 if test "${with_skey+set}" = set; then
12805   withval=$with_skey;
12806                 if test "x$withval" != "xno" ; then
12807
12808                         if test "x$withval" != "xyes" ; then
12809                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12810                                 LDFLAGS="$LDFLAGS -L${withval}/lib"
12811                         fi
12812
12813
12814 cat >>confdefs.h <<\_ACEOF
12815 #define SKEY 1
12816 _ACEOF
12817
12818                         LIBS="-lskey $LIBS"
12819                         SKEY_MSG="yes"
12820
12821                         { echo "$as_me:$LINENO: checking for s/key support" >&5
12822 echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
12823                         cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h.  */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h.  */
12829
12830 #include <stdio.h>
12831 #include <skey.h>
12832 int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
12833
12834 _ACEOF
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (ac_try="$ac_link"
12837 case "(($ac_try" in
12838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839   *) ac_try_echo=$ac_try;;
12840 esac
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842   (eval "$ac_link") 2>conftest.er1
12843   ac_status=$?
12844   grep -v '^ *+' conftest.er1 >conftest.err
12845   rm -f conftest.er1
12846   cat conftest.err >&5
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } &&
12849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12850   { (case "(($ac_try" in
12851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852   *) ac_try_echo=$ac_try;;
12853 esac
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855   (eval "$ac_try") 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; } &&
12859          { ac_try='test -s conftest$ac_exeext'
12860   { (case "(($ac_try" in
12861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12862   *) ac_try_echo=$ac_try;;
12863 esac
12864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12865   (eval "$ac_try") 2>&5
12866   ac_status=$?
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); }; }; then
12869   { echo "$as_me:$LINENO: result: yes" >&5
12870 echo "${ECHO_T}yes" >&6; }
12871 else
12872   echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12874
12875
12876                                         { echo "$as_me:$LINENO: result: no" >&5
12877 echo "${ECHO_T}no" >&6; }
12878                                         { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
12879 echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
12880    { (exit 1); exit 1; }; }
12881
12882 fi
12883
12884 rm -f core conftest.err conftest.$ac_objext \
12885       conftest$ac_exeext conftest.$ac_ext
12886                         { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
12887 echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
12888                         cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h.  */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h.  */
12894 #include <stdio.h>
12895                                  #include <skey.h>
12896 int
12897 main ()
12898 {
12899 (void)skeychallenge(NULL,"name","",0);
12900   ;
12901   return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext
12905 if { (ac_try="$ac_compile"
12906 case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_compile") 2>conftest.er1
12912   ac_status=$?
12913   grep -v '^ *+' conftest.er1 >conftest.err
12914   rm -f conftest.er1
12915   cat conftest.err >&5
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); } &&
12918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919   { (case "(($ac_try" in
12920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921   *) ac_try_echo=$ac_try;;
12922 esac
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924   (eval "$ac_try") 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; } &&
12928          { ac_try='test -s conftest.$ac_objext'
12929   { (case "(($ac_try" in
12930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931   *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934   (eval "$ac_try") 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; }; then
12938   { echo "$as_me:$LINENO: result: yes" >&5
12939 echo "${ECHO_T}yes" >&6; }
12940
12941 cat >>confdefs.h <<\_ACEOF
12942 #define SKEYCHALLENGE_4ARG 1
12943 _ACEOF
12944
12945 else
12946   echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949         { echo "$as_me:$LINENO: result: no" >&5
12950 echo "${ECHO_T}no" >&6; }
12951
12952 fi
12953
12954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955                 fi
12956
12957
12958 fi
12959
12960
12961 # Check whether user wants TCP wrappers support
12962 TCPW_MSG="no"
12963
12964 # Check whether --with-tcp-wrappers was given.
12965 if test "${with_tcp_wrappers+set}" = set; then
12966   withval=$with_tcp_wrappers;
12967                 if test "x$withval" != "xno" ; then
12968                         saved_LIBS="$LIBS"
12969                         saved_LDFLAGS="$LDFLAGS"
12970                         saved_CPPFLAGS="$CPPFLAGS"
12971                         if test -n "${withval}" && \
12972                             test "x${withval}" != "xyes"; then
12973                                 if test -d "${withval}/lib"; then
12974                                         if test -n "${need_dash_r}"; then
12975                                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12976                                         else
12977                                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12978                                         fi
12979                                 else
12980                                         if test -n "${need_dash_r}"; then
12981                                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12982                                         else
12983                                                 LDFLAGS="-L${withval} ${LDFLAGS}"
12984                                         fi
12985                                 fi
12986                                 if test -d "${withval}/include"; then
12987                                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12988                                 else
12989                                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
12990                                 fi
12991                         fi
12992                         LIBWRAP="-lwrap"
12993                         LIBS="$LIBWRAP $LIBS"
12994                         { echo "$as_me:$LINENO: checking for libwrap" >&5
12995 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
12996                         cat >conftest.$ac_ext <<_ACEOF
12997 /* confdefs.h.  */
12998 _ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h.  */
13002
13003 #include <sys/types.h>
13004 #include <sys/socket.h>
13005 #include <netinet/in.h>
13006 #include <tcpd.h>
13007                                         int deny_severity = 0, allow_severity = 0;
13008
13009 int
13010 main ()
13011 {
13012 hosts_access(0);
13013   ;
13014   return 0;
13015 }
13016 _ACEOF
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (ac_try="$ac_link"
13019 case "(($ac_try" in
13020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021   *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024   (eval "$ac_link") 2>conftest.er1
13025   ac_status=$?
13026   grep -v '^ *+' conftest.er1 >conftest.err
13027   rm -f conftest.er1
13028   cat conftest.err >&5
13029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030   (exit $ac_status); } &&
13031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13032   { (case "(($ac_try" in
13033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034   *) ac_try_echo=$ac_try;;
13035 esac
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037   (eval "$ac_try") 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; } &&
13041          { ac_try='test -s conftest$ac_exeext'
13042   { (case "(($ac_try" in
13043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044   *) ac_try_echo=$ac_try;;
13045 esac
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047   (eval "$ac_try") 2>&5
13048   ac_status=$?
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); }; }; then
13051
13052                                         { echo "$as_me:$LINENO: result: yes" >&5
13053 echo "${ECHO_T}yes" >&6; }
13054
13055 cat >>confdefs.h <<\_ACEOF
13056 #define LIBWRAP 1
13057 _ACEOF
13058
13059
13060                                         TCPW_MSG="yes"
13061
13062 else
13063   echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13065
13066
13067                                         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
13068 echo "$as_me: error: *** libwrap missing" >&2;}
13069    { (exit 1); exit 1; }; }
13070
13071
13072 fi
13073
13074 rm -f core conftest.err conftest.$ac_objext \
13075       conftest$ac_exeext conftest.$ac_ext
13076                         LIBS="$saved_LIBS"
13077                 fi
13078
13079
13080 fi
13081
13082
13083 # Check whether user wants libedit support
13084 LIBEDIT_MSG="no"
13085
13086 # Check whether --with-libedit was given.
13087 if test "${with_libedit+set}" = set; then
13088   withval=$with_libedit;  if test "x$withval" != "xno" ; then
13089                 if test "x$withval" != "xyes"; then
13090                         CPPFLAGS="$CPPFLAGS -I${withval}/include"
13091                         if test -n "${need_dash_r}"; then
13092                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13093                         else
13094                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13095                         fi
13096                 fi
13097                 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
13098 echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
13099 if test "${ac_cv_lib_edit_el_init+set}" = set; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102   ac_check_lib_save_LIBS=$LIBS
13103 LIBS="-ledit  -lcurses
13104                  $LIBS"
13105 cat >conftest.$ac_ext <<_ACEOF
13106 /* confdefs.h.  */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h.  */
13111
13112 /* Override any GCC internal prototype to avoid an error.
13113    Use char because int might match the return type of a GCC
13114    builtin and then its argument prototype would still apply.  */
13115 #ifdef __cplusplus
13116 extern "C"
13117 #endif
13118 char el_init ();
13119 int
13120 main ()
13121 {
13122 return el_init ();
13123   ;
13124   return 0;
13125 }
13126 _ACEOF
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_link") 2>conftest.er1
13135   ac_status=$?
13136   grep -v '^ *+' conftest.er1 >conftest.err
13137   rm -f conftest.er1
13138   cat conftest.err >&5
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); } &&
13141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142   { (case "(($ac_try" in
13143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144   *) ac_try_echo=$ac_try;;
13145 esac
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147   (eval "$ac_try") 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; } &&
13151          { ac_try='test -s conftest$ac_exeext'
13152   { (case "(($ac_try" in
13153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154   *) ac_try_echo=$ac_try;;
13155 esac
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157   (eval "$ac_try") 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); }; }; then
13161   ac_cv_lib_edit_el_init=yes
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166         ac_cv_lib_edit_el_init=no
13167 fi
13168
13169 rm -f core conftest.err conftest.$ac_objext \
13170       conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13172 fi
13173 { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
13174 echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
13175 if test $ac_cv_lib_edit_el_init = yes; then
13176
13177 cat >>confdefs.h <<\_ACEOF
13178 #define USE_LIBEDIT 1
13179 _ACEOF
13180
13181                           LIBEDIT="-ledit -lcurses"
13182                           LIBEDIT_MSG="yes"
13183
13184
13185 else
13186    { { echo "$as_me:$LINENO: error: libedit not found" >&5
13187 echo "$as_me: error: libedit not found" >&2;}
13188    { (exit 1); exit 1; }; }
13189 fi
13190
13191                 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
13192 echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
13193                 cat >conftest.$ac_ext <<_ACEOF
13194 /* confdefs.h.  */
13195 _ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h.  */
13199
13200 #include <histedit.h>
13201 int main(void)
13202 {
13203         int i = H_SETSIZE;
13204         el_init("", NULL, NULL, NULL);
13205         exit(0);
13206 }
13207
13208 _ACEOF
13209 rm -f conftest.$ac_objext
13210 if { (ac_try="$ac_compile"
13211 case "(($ac_try" in
13212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213   *) ac_try_echo=$ac_try;;
13214 esac
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216   (eval "$ac_compile") 2>conftest.er1
13217   ac_status=$?
13218   grep -v '^ *+' conftest.er1 >conftest.err
13219   rm -f conftest.er1
13220   cat conftest.err >&5
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); } &&
13223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13224   { (case "(($ac_try" in
13225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226   *) ac_try_echo=$ac_try;;
13227 esac
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229   (eval "$ac_try") 2>&5
13230   ac_status=$?
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); }; } &&
13233          { ac_try='test -s conftest.$ac_objext'
13234   { (case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239   (eval "$ac_try") 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); }; }; then
13243    { echo "$as_me:$LINENO: result: yes" >&5
13244 echo "${ECHO_T}yes" >&6; }
13245 else
13246   echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13248
13249          { echo "$as_me:$LINENO: result: no" >&5
13250 echo "${ECHO_T}no" >&6; }
13251                       { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
13252 echo "$as_me: error: libedit version is not compatible" >&2;}
13253    { (exit 1); exit 1; }; }
13254
13255 fi
13256
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258         fi
13259
13260 fi
13261
13262
13263 AUDIT_MODULE=none
13264
13265 # Check whether --with-audit was given.
13266 if test "${with_audit+set}" = set; then
13267   withval=$with_audit;
13268           { echo "$as_me:$LINENO: checking for supported audit module" >&5
13269 echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
13270           case "$withval" in
13271           bsm)
13272                 { echo "$as_me:$LINENO: result: bsm" >&5
13273 echo "${ECHO_T}bsm" >&6; }
13274                 AUDIT_MODULE=bsm
13275
13276 for ac_header in bsm/audit.h
13277 do
13278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13282   echo $ECHO_N "(cached) $ECHO_C" >&6
13283 else
13284   cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290
13291 #ifdef HAVE_TIME_H
13292 # include <time.h>
13293 #endif
13294
13295
13296
13297 #include <$ac_header>
13298 _ACEOF
13299 rm -f conftest.$ac_objext
13300 if { (ac_try="$ac_compile"
13301 case "(($ac_try" in
13302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303   *) ac_try_echo=$ac_try;;
13304 esac
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306   (eval "$ac_compile") 2>conftest.er1
13307   ac_status=$?
13308   grep -v '^ *+' conftest.er1 >conftest.err
13309   rm -f conftest.er1
13310   cat conftest.err >&5
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } &&
13313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13314   { (case "(($ac_try" in
13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316   *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319   (eval "$ac_try") 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; } &&
13323          { ac_try='test -s conftest.$ac_objext'
13324   { (case "(($ac_try" in
13325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326   *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329   (eval "$ac_try") 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); }; }; then
13333   eval "$as_ac_Header=yes"
13334 else
13335   echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13337
13338         eval "$as_ac_Header=no"
13339 fi
13340
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342 fi
13343 ac_res=`eval echo '${'$as_ac_Header'}'`
13344                { echo "$as_me:$LINENO: result: $ac_res" >&5
13345 echo "${ECHO_T}$ac_res" >&6; }
13346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13347   cat >>confdefs.h <<_ACEOF
13348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13349 _ACEOF
13350
13351 else
13352   { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
13353 echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
13354    { (exit 1); exit 1; }; }
13355 fi
13356
13357 done
13358
13359
13360 { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
13361 echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
13362 if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
13363   echo $ECHO_N "(cached) $ECHO_C" >&6
13364 else
13365   ac_check_lib_save_LIBS=$LIBS
13366 LIBS="-lbsm  $LIBS"
13367 cat >conftest.$ac_ext <<_ACEOF
13368 /* confdefs.h.  */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h.  */
13373
13374 /* Override any GCC internal prototype to avoid an error.
13375    Use char because int might match the return type of a GCC
13376    builtin and then its argument prototype would still apply.  */
13377 #ifdef __cplusplus
13378 extern "C"
13379 #endif
13380 char getaudit ();
13381 int
13382 main ()
13383 {
13384 return getaudit ();
13385   ;
13386   return 0;
13387 }
13388 _ACEOF
13389 rm -f conftest.$ac_objext conftest$ac_exeext
13390 if { (ac_try="$ac_link"
13391 case "(($ac_try" in
13392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393   *) ac_try_echo=$ac_try;;
13394 esac
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396   (eval "$ac_link") 2>conftest.er1
13397   ac_status=$?
13398   grep -v '^ *+' conftest.er1 >conftest.err
13399   rm -f conftest.er1
13400   cat conftest.err >&5
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); } &&
13403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13404   { (case "(($ac_try" in
13405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406   *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409   (eval "$ac_try") 2>&5
13410   ac_status=$?
13411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); }; } &&
13413          { ac_try='test -s conftest$ac_exeext'
13414   { (case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_try") 2>&5
13420   ac_status=$?
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); }; }; then
13423   ac_cv_lib_bsm_getaudit=yes
13424 else
13425   echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13427
13428         ac_cv_lib_bsm_getaudit=no
13429 fi
13430
13431 rm -f core conftest.err conftest.$ac_objext \
13432       conftest$ac_exeext conftest.$ac_ext
13433 LIBS=$ac_check_lib_save_LIBS
13434 fi
13435 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
13436 echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
13437 if test $ac_cv_lib_bsm_getaudit = yes; then
13438   cat >>confdefs.h <<_ACEOF
13439 #define HAVE_LIBBSM 1
13440 _ACEOF
13441
13442   LIBS="-lbsm $LIBS"
13443
13444 else
13445   { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
13446 echo "$as_me: error: BSM enabled and required library not found" >&2;}
13447    { (exit 1); exit 1; }; }
13448 fi
13449
13450
13451 for ac_func in getaudit
13452 do
13453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13457   echo $ECHO_N "(cached) $ECHO_C" >&6
13458 else
13459   cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h.  */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h.  */
13465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13467 #define $ac_func innocuous_$ac_func
13468
13469 /* System header to define __stub macros and hopefully few prototypes,
13470     which can conflict with char $ac_func (); below.
13471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13472     <limits.h> exists even on freestanding compilers.  */
13473
13474 #ifdef __STDC__
13475 # include <limits.h>
13476 #else
13477 # include <assert.h>
13478 #endif
13479
13480 #undef $ac_func
13481
13482 /* Override any GCC internal prototype to avoid an error.
13483    Use char because int might match the return type of a GCC
13484    builtin and then its argument prototype would still apply.  */
13485 #ifdef __cplusplus
13486 extern "C"
13487 #endif
13488 char $ac_func ();
13489 /* The GNU C library defines this for functions which it implements
13490     to always fail with ENOSYS.  Some functions are actually named
13491     something starting with __ and the normal name is an alias.  */
13492 #if defined __stub_$ac_func || defined __stub___$ac_func
13493 choke me
13494 #endif
13495
13496 int
13497 main ()
13498 {
13499 return $ac_func ();
13500   ;
13501   return 0;
13502 }
13503 _ACEOF
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (ac_try="$ac_link"
13506 case "(($ac_try" in
13507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508   *) ac_try_echo=$ac_try;;
13509 esac
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511   (eval "$ac_link") 2>conftest.er1
13512   ac_status=$?
13513   grep -v '^ *+' conftest.er1 >conftest.err
13514   rm -f conftest.er1
13515   cat conftest.err >&5
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } &&
13518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13519   { (case "(($ac_try" in
13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521   *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524   (eval "$ac_try") 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; } &&
13528          { ac_try='test -s conftest$ac_exeext'
13529   { (case "(($ac_try" in
13530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531   *) ac_try_echo=$ac_try;;
13532 esac
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534   (eval "$ac_try") 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; }; then
13538   eval "$as_ac_var=yes"
13539 else
13540   echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543         eval "$as_ac_var=no"
13544 fi
13545
13546 rm -f core conftest.err conftest.$ac_objext \
13547       conftest$ac_exeext conftest.$ac_ext
13548 fi
13549 ac_res=`eval echo '${'$as_ac_var'}'`
13550                { echo "$as_me:$LINENO: result: $ac_res" >&5
13551 echo "${ECHO_T}$ac_res" >&6; }
13552 if test `eval echo '${'$as_ac_var'}'` = yes; then
13553   cat >>confdefs.h <<_ACEOF
13554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13555 _ACEOF
13556
13557 else
13558   { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
13559 echo "$as_me: error: BSM enabled and required function not found" >&2;}
13560    { (exit 1); exit 1; }; }
13561 fi
13562 done
13563
13564                 # These are optional
13565
13566 for ac_func in getaudit_addr
13567 do
13568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13572   echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574   cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h.  */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h.  */
13580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13582 #define $ac_func innocuous_$ac_func
13583
13584 /* System header to define __stub macros and hopefully few prototypes,
13585     which can conflict with char $ac_func (); below.
13586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13587     <limits.h> exists even on freestanding compilers.  */
13588
13589 #ifdef __STDC__
13590 # include <limits.h>
13591 #else
13592 # include <assert.h>
13593 #endif
13594
13595 #undef $ac_func
13596
13597 /* Override any GCC internal prototype to avoid an error.
13598    Use char because int might match the return type of a GCC
13599    builtin and then its argument prototype would still apply.  */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 char $ac_func ();
13604 /* The GNU C library defines this for functions which it implements
13605     to always fail with ENOSYS.  Some functions are actually named
13606     something starting with __ and the normal name is an alias.  */
13607 #if defined __stub_$ac_func || defined __stub___$ac_func
13608 choke me
13609 #endif
13610
13611 int
13612 main ()
13613 {
13614 return $ac_func ();
13615   ;
13616   return 0;
13617 }
13618 _ACEOF
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (ac_try="$ac_link"
13621 case "(($ac_try" in
13622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623   *) ac_try_echo=$ac_try;;
13624 esac
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626   (eval "$ac_link") 2>conftest.er1
13627   ac_status=$?
13628   grep -v '^ *+' conftest.er1 >conftest.err
13629   rm -f conftest.er1
13630   cat conftest.err >&5
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); } &&
13633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13634   { (case "(($ac_try" in
13635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636   *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639   (eval "$ac_try") 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); }; } &&
13643          { ac_try='test -s conftest$ac_exeext'
13644   { (case "(($ac_try" in
13645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646   *) ac_try_echo=$ac_try;;
13647 esac
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649   (eval "$ac_try") 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); }; }; then
13653   eval "$as_ac_var=yes"
13654 else
13655   echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13657
13658         eval "$as_ac_var=no"
13659 fi
13660
13661 rm -f core conftest.err conftest.$ac_objext \
13662       conftest$ac_exeext conftest.$ac_ext
13663 fi
13664 ac_res=`eval echo '${'$as_ac_var'}'`
13665                { echo "$as_me:$LINENO: result: $ac_res" >&5
13666 echo "${ECHO_T}$ac_res" >&6; }
13667 if test `eval echo '${'$as_ac_var'}'` = yes; then
13668   cat >>confdefs.h <<_ACEOF
13669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13670 _ACEOF
13671
13672 fi
13673 done
13674
13675
13676 cat >>confdefs.h <<\_ACEOF
13677 #define USE_BSM_AUDIT 1
13678 _ACEOF
13679
13680                 ;;
13681           debug)
13682                 AUDIT_MODULE=debug
13683                 { echo "$as_me:$LINENO: result: debug" >&5
13684 echo "${ECHO_T}debug" >&6; }
13685
13686 cat >>confdefs.h <<\_ACEOF
13687 #define SSH_AUDIT_EVENTS 1
13688 _ACEOF
13689
13690                 ;;
13691           no)
13692                 { echo "$as_me:$LINENO: result: no" >&5
13693 echo "${ECHO_T}no" >&6; }
13694                 ;;
13695           *)
13696                 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
13697 echo "$as_me: error: Unknown audit module $withval" >&2;}
13698    { (exit 1); exit 1; }; }
13699                 ;;
13700         esac
13701
13702 fi
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786 for ac_func in \
13787         arc4random \
13788         asprintf \
13789         b64_ntop \
13790         __b64_ntop \
13791         b64_pton \
13792         __b64_pton \
13793         bcopy \
13794         bindresvport_sa \
13795         clock \
13796         closefrom \
13797         dirfd \
13798         fchmod \
13799         fchown \
13800         freeaddrinfo \
13801         futimes \
13802         getaddrinfo \
13803         getcwd \
13804         getgrouplist \
13805         getnameinfo \
13806         getopt \
13807         getpeereid \
13808         _getpty \
13809         getrlimit \
13810         getttyent \
13811         glob \
13812         inet_aton \
13813         inet_ntoa \
13814         inet_ntop \
13815         innetgr \
13816         login_getcapbool \
13817         md5_crypt \
13818         memmove \
13819         mkdtemp \
13820         mmap \
13821         ngetaddrinfo \
13822         nsleep \
13823         ogetaddrinfo \
13824         openlog_r \
13825         openpty \
13826         prctl \
13827         pstat \
13828         readpassphrase \
13829         realpath \
13830         recvmsg \
13831         rresvport_af \
13832         sendmsg \
13833         setdtablesize \
13834         setegid \
13835         setenv \
13836         seteuid \
13837         setgroups \
13838         setlogin \
13839         setpcred \
13840         setproctitle \
13841         setregid \
13842         setreuid \
13843         setrlimit \
13844         setsid \
13845         setvbuf \
13846         sigaction \
13847         sigvec \
13848         snprintf \
13849         socketpair \
13850         strdup \
13851         strerror \
13852         strlcat \
13853         strlcpy \
13854         strmode \
13855         strnvis \
13856         strtonum \
13857         strtoll \
13858         strtoul \
13859         sysconf \
13860         tcgetpgrp \
13861         truncate \
13862         unsetenv \
13863         updwtmpx \
13864         vasprintf \
13865         vhangup \
13866         vsnprintf \
13867         waitpid \
13868
13869 do
13870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h.  */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h.  */
13882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13884 #define $ac_func innocuous_$ac_func
13885
13886 /* System header to define __stub macros and hopefully few prototypes,
13887     which can conflict with char $ac_func (); below.
13888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13889     <limits.h> exists even on freestanding compilers.  */
13890
13891 #ifdef __STDC__
13892 # include <limits.h>
13893 #else
13894 # include <assert.h>
13895 #endif
13896
13897 #undef $ac_func
13898
13899 /* Override any GCC internal prototype to avoid an error.
13900    Use char because int might match the return type of a GCC
13901    builtin and then its argument prototype would still apply.  */
13902 #ifdef __cplusplus
13903 extern "C"
13904 #endif
13905 char $ac_func ();
13906 /* The GNU C library defines this for functions which it implements
13907     to always fail with ENOSYS.  Some functions are actually named
13908     something starting with __ and the normal name is an alias.  */
13909 #if defined __stub_$ac_func || defined __stub___$ac_func
13910 choke me
13911 #endif
13912
13913 int
13914 main ()
13915 {
13916 return $ac_func ();
13917   ;
13918   return 0;
13919 }
13920 _ACEOF
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (ac_try="$ac_link"
13923 case "(($ac_try" in
13924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925   *) ac_try_echo=$ac_try;;
13926 esac
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928   (eval "$ac_link") 2>conftest.er1
13929   ac_status=$?
13930   grep -v '^ *+' conftest.er1 >conftest.err
13931   rm -f conftest.er1
13932   cat conftest.err >&5
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); } &&
13935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13936   { (case "(($ac_try" in
13937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938   *) ac_try_echo=$ac_try;;
13939 esac
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941   (eval "$ac_try") 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; } &&
13945          { ac_try='test -s conftest$ac_exeext'
13946   { (case "(($ac_try" in
13947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948   *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951   (eval "$ac_try") 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); }; }; then
13955   eval "$as_ac_var=yes"
13956 else
13957   echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13959
13960         eval "$as_ac_var=no"
13961 fi
13962
13963 rm -f core conftest.err conftest.$ac_objext \
13964       conftest$ac_exeext conftest.$ac_ext
13965 fi
13966 ac_res=`eval echo '${'$as_ac_var'}'`
13967                { echo "$as_me:$LINENO: result: $ac_res" >&5
13968 echo "${ECHO_T}$ac_res" >&6; }
13969 if test `eval echo '${'$as_ac_var'}'` = yes; then
13970   cat >>confdefs.h <<_ACEOF
13971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13972 _ACEOF
13973
13974 fi
13975 done
13976
13977
13978 # IRIX has a const char return value for gai_strerror()
13979
13980 for ac_func in gai_strerror
13981 do
13982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13986   echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988   cat >conftest.$ac_ext <<_ACEOF
13989 /* confdefs.h.  */
13990 _ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h.  */
13994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13996 #define $ac_func innocuous_$ac_func
13997
13998 /* System header to define __stub macros and hopefully few prototypes,
13999     which can conflict with char $ac_func (); below.
14000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14001     <limits.h> exists even on freestanding compilers.  */
14002
14003 #ifdef __STDC__
14004 # include <limits.h>
14005 #else
14006 # include <assert.h>
14007 #endif
14008
14009 #undef $ac_func
14010
14011 /* Override any GCC internal prototype to avoid an error.
14012    Use char because int might match the return type of a GCC
14013    builtin and then its argument prototype would still apply.  */
14014 #ifdef __cplusplus
14015 extern "C"
14016 #endif
14017 char $ac_func ();
14018 /* The GNU C library defines this for functions which it implements
14019     to always fail with ENOSYS.  Some functions are actually named
14020     something starting with __ and the normal name is an alias.  */
14021 #if defined __stub_$ac_func || defined __stub___$ac_func
14022 choke me
14023 #endif
14024
14025 int
14026 main ()
14027 {
14028 return $ac_func ();
14029   ;
14030   return 0;
14031 }
14032 _ACEOF
14033 rm -f conftest.$ac_objext conftest$ac_exeext
14034 if { (ac_try="$ac_link"
14035 case "(($ac_try" in
14036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037   *) ac_try_echo=$ac_try;;
14038 esac
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040   (eval "$ac_link") 2>conftest.er1
14041   ac_status=$?
14042   grep -v '^ *+' conftest.er1 >conftest.err
14043   rm -f conftest.er1
14044   cat conftest.err >&5
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); } &&
14047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14048   { (case "(($ac_try" in
14049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050   *) ac_try_echo=$ac_try;;
14051 esac
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053   (eval "$ac_try") 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; } &&
14057          { ac_try='test -s conftest$ac_exeext'
14058   { (case "(($ac_try" in
14059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060   *) ac_try_echo=$ac_try;;
14061 esac
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063   (eval "$ac_try") 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); }; }; then
14067   eval "$as_ac_var=yes"
14068 else
14069   echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072         eval "$as_ac_var=no"
14073 fi
14074
14075 rm -f core conftest.err conftest.$ac_objext \
14076       conftest$ac_exeext conftest.$ac_ext
14077 fi
14078 ac_res=`eval echo '${'$as_ac_var'}'`
14079                { echo "$as_me:$LINENO: result: $ac_res" >&5
14080 echo "${ECHO_T}$ac_res" >&6; }
14081 if test `eval echo '${'$as_ac_var'}'` = yes; then
14082   cat >>confdefs.h <<_ACEOF
14083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14084 _ACEOF
14085
14086         cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_GAI_STRERROR 1
14088 _ACEOF
14089
14090         cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h.  */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h.  */
14096
14097 #include <sys/types.h>
14098 #include <sys/socket.h>
14099 #include <netdb.h>
14100
14101 const char *gai_strerror(int);
14102 int
14103 main ()
14104 {
14105
14106 char *str;
14107
14108 str = gai_strerror(0);
14109   ;
14110   return 0;
14111 }
14112 _ACEOF
14113 rm -f conftest.$ac_objext
14114 if { (ac_try="$ac_compile"
14115 case "(($ac_try" in
14116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117   *) ac_try_echo=$ac_try;;
14118 esac
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120   (eval "$ac_compile") 2>conftest.er1
14121   ac_status=$?
14122   grep -v '^ *+' conftest.er1 >conftest.err
14123   rm -f conftest.er1
14124   cat conftest.err >&5
14125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126   (exit $ac_status); } &&
14127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14128   { (case "(($ac_try" in
14129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130   *) ac_try_echo=$ac_try;;
14131 esac
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133   (eval "$ac_try") 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; } &&
14137          { ac_try='test -s conftest.$ac_objext'
14138   { (case "(($ac_try" in
14139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140   *) ac_try_echo=$ac_try;;
14141 esac
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143   (eval "$ac_try") 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; }; then
14147
14148
14149 cat >>confdefs.h <<\_ACEOF
14150 #define HAVE_CONST_GAI_STRERROR_PROTO 1
14151 _ACEOF
14152
14153 else
14154   echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14156
14157
14158 fi
14159
14160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161 fi
14162 done
14163
14164
14165 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
14166 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
14167 if test "${ac_cv_search_nanosleep+set}" = set; then
14168   echo $ECHO_N "(cached) $ECHO_C" >&6
14169 else
14170   ac_func_search_save_LIBS=$LIBS
14171 cat >conftest.$ac_ext <<_ACEOF
14172 /* confdefs.h.  */
14173 _ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h.  */
14177
14178 /* Override any GCC internal prototype to avoid an error.
14179    Use char because int might match the return type of a GCC
14180    builtin and then its argument prototype would still apply.  */
14181 #ifdef __cplusplus
14182 extern "C"
14183 #endif
14184 char nanosleep ();
14185 int
14186 main ()
14187 {
14188 return nanosleep ();
14189   ;
14190   return 0;
14191 }
14192 _ACEOF
14193 for ac_lib in '' rt posix4; do
14194   if test -z "$ac_lib"; then
14195     ac_res="none required"
14196   else
14197     ac_res=-l$ac_lib
14198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14199   fi
14200   rm -f conftest.$ac_objext conftest$ac_exeext
14201 if { (ac_try="$ac_link"
14202 case "(($ac_try" in
14203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204   *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207   (eval "$ac_link") 2>conftest.er1
14208   ac_status=$?
14209   grep -v '^ *+' conftest.er1 >conftest.err
14210   rm -f conftest.er1
14211   cat conftest.err >&5
14212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213   (exit $ac_status); } &&
14214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14215   { (case "(($ac_try" in
14216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217   *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220   (eval "$ac_try") 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); }; } &&
14224          { ac_try='test -s conftest$ac_exeext'
14225   { (case "(($ac_try" in
14226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227   *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230   (eval "$ac_try") 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); }; }; then
14234   ac_cv_search_nanosleep=$ac_res
14235 else
14236   echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14238
14239
14240 fi
14241
14242 rm -f core conftest.err conftest.$ac_objext \
14243       conftest$ac_exeext
14244   if test "${ac_cv_search_nanosleep+set}" = set; then
14245   break
14246 fi
14247 done
14248 if test "${ac_cv_search_nanosleep+set}" = set; then
14249   :
14250 else
14251   ac_cv_search_nanosleep=no
14252 fi
14253 rm conftest.$ac_ext
14254 LIBS=$ac_func_search_save_LIBS
14255 fi
14256 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
14257 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
14258 ac_res=$ac_cv_search_nanosleep
14259 if test "$ac_res" != no; then
14260   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14261
14262 cat >>confdefs.h <<\_ACEOF
14263 #define HAVE_NANOSLEEP 1
14264 _ACEOF
14265
14266 fi
14267
14268
14269 { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
14270 echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
14271 if test "${ac_cv_have_decl_getrusage+set}" = set; then
14272   echo $ECHO_N "(cached) $ECHO_C" >&6
14273 else
14274   cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h.  */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h.  */
14280 $ac_includes_default
14281 int
14282 main ()
14283 {
14284 #ifndef getrusage
14285   char *p = (char *) getrusage;
14286   return !p;
14287 #endif
14288
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297   *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300   (eval "$ac_compile") 2>conftest.er1
14301   ac_status=$?
14302   grep -v '^ *+' conftest.er1 >conftest.err
14303   rm -f conftest.er1
14304   cat conftest.err >&5
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); } &&
14307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308   { (case "(($ac_try" in
14309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310   *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313   (eval "$ac_try") 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; } &&
14317          { ac_try='test -s conftest.$ac_objext'
14318   { (case "(($ac_try" in
14319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320   *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323   (eval "$ac_try") 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; }; then
14327   ac_cv_have_decl_getrusage=yes
14328 else
14329   echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332         ac_cv_have_decl_getrusage=no
14333 fi
14334
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 fi
14337 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
14338 echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
14339 if test $ac_cv_have_decl_getrusage = yes; then
14340
14341 for ac_func in getrusage
14342 do
14343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14357 #define $ac_func innocuous_$ac_func
14358
14359 /* System header to define __stub macros and hopefully few prototypes,
14360     which can conflict with char $ac_func (); below.
14361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14362     <limits.h> exists even on freestanding compilers.  */
14363
14364 #ifdef __STDC__
14365 # include <limits.h>
14366 #else
14367 # include <assert.h>
14368 #endif
14369
14370 #undef $ac_func
14371
14372 /* Override any GCC internal prototype to avoid an error.
14373    Use char because int might match the return type of a GCC
14374    builtin and then its argument prototype would still apply.  */
14375 #ifdef __cplusplus
14376 extern "C"
14377 #endif
14378 char $ac_func ();
14379 /* The GNU C library defines this for functions which it implements
14380     to always fail with ENOSYS.  Some functions are actually named
14381     something starting with __ and the normal name is an alias.  */
14382 #if defined __stub_$ac_func || defined __stub___$ac_func
14383 choke me
14384 #endif
14385
14386 int
14387 main ()
14388 {
14389 return $ac_func ();
14390   ;
14391   return 0;
14392 }
14393 _ACEOF
14394 rm -f conftest.$ac_objext conftest$ac_exeext
14395 if { (ac_try="$ac_link"
14396 case "(($ac_try" in
14397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398   *) ac_try_echo=$ac_try;;
14399 esac
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401   (eval "$ac_link") 2>conftest.er1
14402   ac_status=$?
14403   grep -v '^ *+' conftest.er1 >conftest.err
14404   rm -f conftest.er1
14405   cat conftest.err >&5
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); } &&
14408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14409   { (case "(($ac_try" in
14410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411   *) ac_try_echo=$ac_try;;
14412 esac
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414   (eval "$ac_try") 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; } &&
14418          { ac_try='test -s conftest$ac_exeext'
14419   { (case "(($ac_try" in
14420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421   *) ac_try_echo=$ac_try;;
14422 esac
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424   (eval "$ac_try") 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; }; then
14428   eval "$as_ac_var=yes"
14429 else
14430   echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14432
14433         eval "$as_ac_var=no"
14434 fi
14435
14436 rm -f core conftest.err conftest.$ac_objext \
14437       conftest$ac_exeext conftest.$ac_ext
14438 fi
14439 ac_res=`eval echo '${'$as_ac_var'}'`
14440                { echo "$as_me:$LINENO: result: $ac_res" >&5
14441 echo "${ECHO_T}$ac_res" >&6; }
14442 if test `eval echo '${'$as_ac_var'}'` = yes; then
14443   cat >>confdefs.h <<_ACEOF
14444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14445 _ACEOF
14446
14447 fi
14448 done
14449
14450 fi
14451
14452 { echo "$as_me:$LINENO: checking whether strsep is declared" >&5
14453 echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
14454 if test "${ac_cv_have_decl_strsep+set}" = set; then
14455   echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457   cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463
14464 #ifdef HAVE_STRING_H
14465 # include <string.h>
14466 #endif
14467
14468
14469 int
14470 main ()
14471 {
14472 #ifndef strsep
14473   char *p = (char *) strsep;
14474   return !p;
14475 #endif
14476
14477   ;
14478   return 0;
14479 }
14480 _ACEOF
14481 rm -f conftest.$ac_objext
14482 if { (ac_try="$ac_compile"
14483 case "(($ac_try" in
14484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485   *) ac_try_echo=$ac_try;;
14486 esac
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488   (eval "$ac_compile") 2>conftest.er1
14489   ac_status=$?
14490   grep -v '^ *+' conftest.er1 >conftest.err
14491   rm -f conftest.er1
14492   cat conftest.err >&5
14493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494   (exit $ac_status); } &&
14495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14496   { (case "(($ac_try" in
14497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498   *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501   (eval "$ac_try") 2>&5
14502   ac_status=$?
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); }; } &&
14505          { ac_try='test -s conftest.$ac_objext'
14506   { (case "(($ac_try" in
14507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508   *) ac_try_echo=$ac_try;;
14509 esac
14510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14511   (eval "$ac_try") 2>&5
14512   ac_status=$?
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); }; }; then
14515   ac_cv_have_decl_strsep=yes
14516 else
14517   echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14519
14520         ac_cv_have_decl_strsep=no
14521 fi
14522
14523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14524 fi
14525 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
14526 echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
14527 if test $ac_cv_have_decl_strsep = yes; then
14528
14529 for ac_func in strsep
14530 do
14531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14535   echo $ECHO_N "(cached) $ECHO_C" >&6
14536 else
14537   cat >conftest.$ac_ext <<_ACEOF
14538 /* confdefs.h.  */
14539 _ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h.  */
14543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14545 #define $ac_func innocuous_$ac_func
14546
14547 /* System header to define __stub macros and hopefully few prototypes,
14548     which can conflict with char $ac_func (); below.
14549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14550     <limits.h> exists even on freestanding compilers.  */
14551
14552 #ifdef __STDC__
14553 # include <limits.h>
14554 #else
14555 # include <assert.h>
14556 #endif
14557
14558 #undef $ac_func
14559
14560 /* Override any GCC internal prototype to avoid an error.
14561    Use char because int might match the return type of a GCC
14562    builtin and then its argument prototype would still apply.  */
14563 #ifdef __cplusplus
14564 extern "C"
14565 #endif
14566 char $ac_func ();
14567 /* The GNU C library defines this for functions which it implements
14568     to always fail with ENOSYS.  Some functions are actually named
14569     something starting with __ and the normal name is an alias.  */
14570 #if defined __stub_$ac_func || defined __stub___$ac_func
14571 choke me
14572 #endif
14573
14574 int
14575 main ()
14576 {
14577 return $ac_func ();
14578   ;
14579   return 0;
14580 }
14581 _ACEOF
14582 rm -f conftest.$ac_objext conftest$ac_exeext
14583 if { (ac_try="$ac_link"
14584 case "(($ac_try" in
14585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586   *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589   (eval "$ac_link") 2>conftest.er1
14590   ac_status=$?
14591   grep -v '^ *+' conftest.er1 >conftest.err
14592   rm -f conftest.er1
14593   cat conftest.err >&5
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } &&
14596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14597   { (case "(($ac_try" in
14598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599   *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602   (eval "$ac_try") 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); }; } &&
14606          { ac_try='test -s conftest$ac_exeext'
14607   { (case "(($ac_try" in
14608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609   *) ac_try_echo=$ac_try;;
14610 esac
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612   (eval "$ac_try") 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); }; }; then
14616   eval "$as_ac_var=yes"
14617 else
14618   echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621         eval "$as_ac_var=no"
14622 fi
14623
14624 rm -f core conftest.err conftest.$ac_objext \
14625       conftest$ac_exeext conftest.$ac_ext
14626 fi
14627 ac_res=`eval echo '${'$as_ac_var'}'`
14628                { echo "$as_me:$LINENO: result: $ac_res" >&5
14629 echo "${ECHO_T}$ac_res" >&6; }
14630 if test `eval echo '${'$as_ac_var'}'` = yes; then
14631   cat >>confdefs.h <<_ACEOF
14632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14633 _ACEOF
14634
14635 fi
14636 done
14637
14638 fi
14639
14640
14641 { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
14642 echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
14643 if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
14644   echo $ECHO_N "(cached) $ECHO_C" >&6
14645 else
14646   cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h.  */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h.  */
14652 #include <termios.h>
14653
14654
14655 int
14656 main ()
14657 {
14658 #ifndef tcsendbreak
14659   char *p = (char *) tcsendbreak;
14660   return !p;
14661 #endif
14662
14663   ;
14664   return 0;
14665 }
14666 _ACEOF
14667 rm -f conftest.$ac_objext
14668 if { (ac_try="$ac_compile"
14669 case "(($ac_try" in
14670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671   *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674   (eval "$ac_compile") 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } &&
14681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14682   { (case "(($ac_try" in
14683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684   *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687   (eval "$ac_try") 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }; } &&
14691          { ac_try='test -s conftest.$ac_objext'
14692   { (case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697   (eval "$ac_try") 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }; }; then
14701   ac_cv_have_decl_tcsendbreak=yes
14702 else
14703   echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14705
14706         ac_cv_have_decl_tcsendbreak=no
14707 fi
14708
14709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14710 fi
14711 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
14712 echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
14713 if test $ac_cv_have_decl_tcsendbreak = yes; then
14714   cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_TCSENDBREAK 1
14716 _ACEOF
14717
14718 else
14719
14720 for ac_func in tcsendbreak
14721 do
14722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14726   echo $ECHO_N "(cached) $ECHO_C" >&6
14727 else
14728   cat >conftest.$ac_ext <<_ACEOF
14729 /* confdefs.h.  */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h.  */
14734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14736 #define $ac_func innocuous_$ac_func
14737
14738 /* System header to define __stub macros and hopefully few prototypes,
14739     which can conflict with char $ac_func (); below.
14740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14741     <limits.h> exists even on freestanding compilers.  */
14742
14743 #ifdef __STDC__
14744 # include <limits.h>
14745 #else
14746 # include <assert.h>
14747 #endif
14748
14749 #undef $ac_func
14750
14751 /* Override any GCC internal prototype to avoid an error.
14752    Use char because int might match the return type of a GCC
14753    builtin and then its argument prototype would still apply.  */
14754 #ifdef __cplusplus
14755 extern "C"
14756 #endif
14757 char $ac_func ();
14758 /* The GNU C library defines this for functions which it implements
14759     to always fail with ENOSYS.  Some functions are actually named
14760     something starting with __ and the normal name is an alias.  */
14761 #if defined __stub_$ac_func || defined __stub___$ac_func
14762 choke me
14763 #endif
14764
14765 int
14766 main ()
14767 {
14768 return $ac_func ();
14769   ;
14770   return 0;
14771 }
14772 _ACEOF
14773 rm -f conftest.$ac_objext conftest$ac_exeext
14774 if { (ac_try="$ac_link"
14775 case "(($ac_try" in
14776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777   *) ac_try_echo=$ac_try;;
14778 esac
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780   (eval "$ac_link") 2>conftest.er1
14781   ac_status=$?
14782   grep -v '^ *+' conftest.er1 >conftest.err
14783   rm -f conftest.er1
14784   cat conftest.err >&5
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); } &&
14787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14788   { (case "(($ac_try" in
14789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790   *) ac_try_echo=$ac_try;;
14791 esac
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793   (eval "$ac_try") 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); }; } &&
14797          { ac_try='test -s conftest$ac_exeext'
14798   { (case "(($ac_try" in
14799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800   *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803   (eval "$ac_try") 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; }; then
14807   eval "$as_ac_var=yes"
14808 else
14809   echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14811
14812         eval "$as_ac_var=no"
14813 fi
14814
14815 rm -f core conftest.err conftest.$ac_objext \
14816       conftest$ac_exeext conftest.$ac_ext
14817 fi
14818 ac_res=`eval echo '${'$as_ac_var'}'`
14819                { echo "$as_me:$LINENO: result: $ac_res" >&5
14820 echo "${ECHO_T}$ac_res" >&6; }
14821 if test `eval echo '${'$as_ac_var'}'` = yes; then
14822   cat >>confdefs.h <<_ACEOF
14823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14824 _ACEOF
14825
14826 fi
14827 done
14828
14829 fi
14830
14831
14832 { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
14833 echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
14834 if test "${ac_cv_have_decl_h_errno+set}" = set; then
14835   echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837   cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h.  */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h.  */
14843 #include <netdb.h>
14844
14845 int
14846 main ()
14847 {
14848 #ifndef h_errno
14849   char *p = (char *) h_errno;
14850   return !p;
14851 #endif
14852
14853   ;
14854   return 0;
14855 }
14856 _ACEOF
14857 rm -f conftest.$ac_objext
14858 if { (ac_try="$ac_compile"
14859 case "(($ac_try" in
14860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861   *) ac_try_echo=$ac_try;;
14862 esac
14863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864   (eval "$ac_compile") 2>conftest.er1
14865   ac_status=$?
14866   grep -v '^ *+' conftest.er1 >conftest.err
14867   rm -f conftest.er1
14868   cat conftest.err >&5
14869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870   (exit $ac_status); } &&
14871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14872   { (case "(($ac_try" in
14873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874   *) ac_try_echo=$ac_try;;
14875 esac
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877   (eval "$ac_try") 2>&5
14878   ac_status=$?
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); }; } &&
14881          { ac_try='test -s conftest.$ac_objext'
14882   { (case "(($ac_try" in
14883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884   *) ac_try_echo=$ac_try;;
14885 esac
14886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14887   (eval "$ac_try") 2>&5
14888   ac_status=$?
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); }; }; then
14891   ac_cv_have_decl_h_errno=yes
14892 else
14893   echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14895
14896         ac_cv_have_decl_h_errno=no
14897 fi
14898
14899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14900 fi
14901 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
14902 echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
14903 if test $ac_cv_have_decl_h_errno = yes; then
14904
14905 cat >>confdefs.h <<_ACEOF
14906 #define HAVE_DECL_H_ERRNO 1
14907 _ACEOF
14908
14909
14910 else
14911   cat >>confdefs.h <<_ACEOF
14912 #define HAVE_DECL_H_ERRNO 0
14913 _ACEOF
14914
14915
14916 fi
14917
14918
14919
14920 { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
14921 echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
14922 if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
14923   echo $ECHO_N "(cached) $ECHO_C" >&6
14924 else
14925   cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h.  */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h.  */
14931
14932 #include <sys/types.h>
14933 #include <sys/socket.h>
14934
14935
14936 int
14937 main ()
14938 {
14939 #ifndef SHUT_RD
14940   char *p = (char *) SHUT_RD;
14941   return !p;
14942 #endif
14943
14944   ;
14945   return 0;
14946 }
14947 _ACEOF
14948 rm -f conftest.$ac_objext
14949 if { (ac_try="$ac_compile"
14950 case "(($ac_try" in
14951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952   *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955   (eval "$ac_compile") 2>conftest.er1
14956   ac_status=$?
14957   grep -v '^ *+' conftest.er1 >conftest.err
14958   rm -f conftest.er1
14959   cat conftest.err >&5
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); } &&
14962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14963   { (case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_try") 2>&5
14969   ac_status=$?
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); }; } &&
14972          { ac_try='test -s conftest.$ac_objext'
14973   { (case "(($ac_try" in
14974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975   *) ac_try_echo=$ac_try;;
14976 esac
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978   (eval "$ac_try") 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); }; }; then
14982   ac_cv_have_decl_SHUT_RD=yes
14983 else
14984   echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14986
14987         ac_cv_have_decl_SHUT_RD=no
14988 fi
14989
14990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14991 fi
14992 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
14993 echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
14994 if test $ac_cv_have_decl_SHUT_RD = yes; then
14995
14996 cat >>confdefs.h <<_ACEOF
14997 #define HAVE_DECL_SHUT_RD 1
14998 _ACEOF
14999
15000
15001 else
15002   cat >>confdefs.h <<_ACEOF
15003 #define HAVE_DECL_SHUT_RD 0
15004 _ACEOF
15005
15006
15007 fi
15008
15009
15010
15011 { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
15012 echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
15013 if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
15014   echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016   cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h.  */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h.  */
15022
15023 #include <sys/types.h>
15024 #ifdef HAVE_SYS_STAT_H
15025 # include <sys/stat.h>
15026 #endif
15027 #ifdef HAVE_FCNTL_H
15028 # include <fcntl.h>
15029 #endif
15030
15031
15032 int
15033 main ()
15034 {
15035 #ifndef O_NONBLOCK
15036   char *p = (char *) O_NONBLOCK;
15037   return !p;
15038 #endif
15039
15040   ;
15041   return 0;
15042 }
15043 _ACEOF
15044 rm -f conftest.$ac_objext
15045 if { (ac_try="$ac_compile"
15046 case "(($ac_try" in
15047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048   *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051   (eval "$ac_compile") 2>conftest.er1
15052   ac_status=$?
15053   grep -v '^ *+' conftest.er1 >conftest.err
15054   rm -f conftest.er1
15055   cat conftest.err >&5
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); } &&
15058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15059   { (case "(($ac_try" in
15060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061   *) ac_try_echo=$ac_try;;
15062 esac
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064   (eval "$ac_try") 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; } &&
15068          { ac_try='test -s conftest.$ac_objext'
15069   { (case "(($ac_try" in
15070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071   *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074   (eval "$ac_try") 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); }; }; then
15078   ac_cv_have_decl_O_NONBLOCK=yes
15079 else
15080   echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083         ac_cv_have_decl_O_NONBLOCK=no
15084 fi
15085
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087 fi
15088 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
15089 echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
15090 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
15091
15092 cat >>confdefs.h <<_ACEOF
15093 #define HAVE_DECL_O_NONBLOCK 1
15094 _ACEOF
15095
15096
15097 else
15098   cat >>confdefs.h <<_ACEOF
15099 #define HAVE_DECL_O_NONBLOCK 0
15100 _ACEOF
15101
15102
15103 fi
15104
15105
15106
15107 { echo "$as_me:$LINENO: checking whether writev is declared" >&5
15108 echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
15109 if test "${ac_cv_have_decl_writev+set}" = set; then
15110   echo $ECHO_N "(cached) $ECHO_C" >&6
15111 else
15112   cat >conftest.$ac_ext <<_ACEOF
15113 /* confdefs.h.  */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h.  */
15118
15119 #include <sys/types.h>
15120 #include <sys/uio.h>
15121 #include <unistd.h>
15122
15123
15124 int
15125 main ()
15126 {
15127 #ifndef writev
15128   char *p = (char *) writev;
15129   return !p;
15130 #endif
15131
15132   ;
15133   return 0;
15134 }
15135 _ACEOF
15136 rm -f conftest.$ac_objext
15137 if { (ac_try="$ac_compile"
15138 case "(($ac_try" in
15139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140   *) ac_try_echo=$ac_try;;
15141 esac
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143   (eval "$ac_compile") 2>conftest.er1
15144   ac_status=$?
15145   grep -v '^ *+' conftest.er1 >conftest.err
15146   rm -f conftest.er1
15147   cat conftest.err >&5
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); } &&
15150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15151   { (case "(($ac_try" in
15152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153   *) ac_try_echo=$ac_try;;
15154 esac
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156   (eval "$ac_try") 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); }; } &&
15160          { ac_try='test -s conftest.$ac_objext'
15161   { (case "(($ac_try" in
15162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163   *) ac_try_echo=$ac_try;;
15164 esac
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166   (eval "$ac_try") 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); }; }; then
15170   ac_cv_have_decl_writev=yes
15171 else
15172   echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15174
15175         ac_cv_have_decl_writev=no
15176 fi
15177
15178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15179 fi
15180 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
15181 echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
15182 if test $ac_cv_have_decl_writev = yes; then
15183
15184 cat >>confdefs.h <<_ACEOF
15185 #define HAVE_DECL_WRITEV 1
15186 _ACEOF
15187
15188
15189 else
15190   cat >>confdefs.h <<_ACEOF
15191 #define HAVE_DECL_WRITEV 0
15192 _ACEOF
15193
15194
15195 fi
15196
15197
15198
15199
15200 for ac_func in setresuid
15201 do
15202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15206   echo $ECHO_N "(cached) $ECHO_C" >&6
15207 else
15208   cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15216 #define $ac_func innocuous_$ac_func
15217
15218 /* System header to define __stub macros and hopefully few prototypes,
15219     which can conflict with char $ac_func (); below.
15220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15221     <limits.h> exists even on freestanding compilers.  */
15222
15223 #ifdef __STDC__
15224 # include <limits.h>
15225 #else
15226 # include <assert.h>
15227 #endif
15228
15229 #undef $ac_func
15230
15231 /* Override any GCC internal prototype to avoid an error.
15232    Use char because int might match the return type of a GCC
15233    builtin and then its argument prototype would still apply.  */
15234 #ifdef __cplusplus
15235 extern "C"
15236 #endif
15237 char $ac_func ();
15238 /* The GNU C library defines this for functions which it implements
15239     to always fail with ENOSYS.  Some functions are actually named
15240     something starting with __ and the normal name is an alias.  */
15241 #if defined __stub_$ac_func || defined __stub___$ac_func
15242 choke me
15243 #endif
15244
15245 int
15246 main ()
15247 {
15248 return $ac_func ();
15249   ;
15250   return 0;
15251 }
15252 _ACEOF
15253 rm -f conftest.$ac_objext conftest$ac_exeext
15254 if { (ac_try="$ac_link"
15255 case "(($ac_try" in
15256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257   *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260   (eval "$ac_link") 2>conftest.er1
15261   ac_status=$?
15262   grep -v '^ *+' conftest.er1 >conftest.err
15263   rm -f conftest.er1
15264   cat conftest.err >&5
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); } &&
15267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15268   { (case "(($ac_try" in
15269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270   *) ac_try_echo=$ac_try;;
15271 esac
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273   (eval "$ac_try") 2>&5
15274   ac_status=$?
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); }; } &&
15277          { ac_try='test -s conftest$ac_exeext'
15278   { (case "(($ac_try" in
15279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280   *) ac_try_echo=$ac_try;;
15281 esac
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283   (eval "$ac_try") 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; }; then
15287   eval "$as_ac_var=yes"
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15291
15292         eval "$as_ac_var=no"
15293 fi
15294
15295 rm -f core conftest.err conftest.$ac_objext \
15296       conftest$ac_exeext conftest.$ac_ext
15297 fi
15298 ac_res=`eval echo '${'$as_ac_var'}'`
15299                { echo "$as_me:$LINENO: result: $ac_res" >&5
15300 echo "${ECHO_T}$ac_res" >&6; }
15301 if test `eval echo '${'$as_ac_var'}'` = yes; then
15302   cat >>confdefs.h <<_ACEOF
15303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15304 _ACEOF
15305
15306                 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
15307 echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
15308         if test "$cross_compiling" = yes; then
15309   { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
15310 echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
15311
15312 else
15313   cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h.  */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h.  */
15319
15320 #include <stdlib.h>
15321 #include <errno.h>
15322 int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
15323
15324 _ACEOF
15325 rm -f conftest$ac_exeext
15326 if { (ac_try="$ac_link"
15327 case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332   (eval "$ac_link") 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15336   { (case "(($ac_try" in
15337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338   *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341   (eval "$ac_try") 2>&5
15342   ac_status=$?
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); }; }; then
15345   { echo "$as_me:$LINENO: result: yes" >&5
15346 echo "${ECHO_T}yes" >&6; }
15347 else
15348   echo "$as_me: program exited with status $ac_status" >&5
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352 ( exit $ac_status )
15353
15354 cat >>confdefs.h <<\_ACEOF
15355 #define BROKEN_SETRESUID 1
15356 _ACEOF
15357
15358                  { echo "$as_me:$LINENO: result: not implemented" >&5
15359 echo "${ECHO_T}not implemented" >&6; }
15360 fi
15361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15362 fi
15363
15364
15365
15366 fi
15367 done
15368
15369
15370
15371 for ac_func in setresgid
15372 do
15373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15377   echo $ECHO_N "(cached) $ECHO_C" >&6
15378 else
15379   cat >conftest.$ac_ext <<_ACEOF
15380 /* confdefs.h.  */
15381 _ACEOF
15382 cat confdefs.h >>conftest.$ac_ext
15383 cat >>conftest.$ac_ext <<_ACEOF
15384 /* end confdefs.h.  */
15385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15387 #define $ac_func innocuous_$ac_func
15388
15389 /* System header to define __stub macros and hopefully few prototypes,
15390     which can conflict with char $ac_func (); below.
15391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15392     <limits.h> exists even on freestanding compilers.  */
15393
15394 #ifdef __STDC__
15395 # include <limits.h>
15396 #else
15397 # include <assert.h>
15398 #endif
15399
15400 #undef $ac_func
15401
15402 /* Override any GCC internal prototype to avoid an error.
15403    Use char because int might match the return type of a GCC
15404    builtin and then its argument prototype would still apply.  */
15405 #ifdef __cplusplus
15406 extern "C"
15407 #endif
15408 char $ac_func ();
15409 /* The GNU C library defines this for functions which it implements
15410     to always fail with ENOSYS.  Some functions are actually named
15411     something starting with __ and the normal name is an alias.  */
15412 #if defined __stub_$ac_func || defined __stub___$ac_func
15413 choke me
15414 #endif
15415
15416 int
15417 main ()
15418 {
15419 return $ac_func ();
15420   ;
15421   return 0;
15422 }
15423 _ACEOF
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (ac_try="$ac_link"
15426 case "(($ac_try" in
15427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428   *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431   (eval "$ac_link") 2>conftest.er1
15432   ac_status=$?
15433   grep -v '^ *+' conftest.er1 >conftest.err
15434   rm -f conftest.er1
15435   cat conftest.err >&5
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } &&
15438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15439   { (case "(($ac_try" in
15440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441   *) ac_try_echo=$ac_try;;
15442 esac
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444   (eval "$ac_try") 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; } &&
15448          { ac_try='test -s conftest$ac_exeext'
15449   { (case "(($ac_try" in
15450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451   *) ac_try_echo=$ac_try;;
15452 esac
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454   (eval "$ac_try") 2>&5
15455   ac_status=$?
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); }; }; then
15458   eval "$as_ac_var=yes"
15459 else
15460   echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463         eval "$as_ac_var=no"
15464 fi
15465
15466 rm -f core conftest.err conftest.$ac_objext \
15467       conftest$ac_exeext conftest.$ac_ext
15468 fi
15469 ac_res=`eval echo '${'$as_ac_var'}'`
15470                { echo "$as_me:$LINENO: result: $ac_res" >&5
15471 echo "${ECHO_T}$ac_res" >&6; }
15472 if test `eval echo '${'$as_ac_var'}'` = yes; then
15473   cat >>confdefs.h <<_ACEOF
15474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15475 _ACEOF
15476
15477                 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
15478 echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
15479         if test "$cross_compiling" = yes; then
15480   { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
15481 echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
15482
15483 else
15484   cat >conftest.$ac_ext <<_ACEOF
15485 /* confdefs.h.  */
15486 _ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h.  */
15490
15491 #include <stdlib.h>
15492 #include <errno.h>
15493 int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
15494
15495 _ACEOF
15496 rm -f conftest$ac_exeext
15497 if { (ac_try="$ac_link"
15498 case "(($ac_try" in
15499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500   *) ac_try_echo=$ac_try;;
15501 esac
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503   (eval "$ac_link") 2>&5
15504   ac_status=$?
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15507   { (case "(($ac_try" in
15508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509   *) ac_try_echo=$ac_try;;
15510 esac
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512   (eval "$ac_try") 2>&5
15513   ac_status=$?
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); }; }; then
15516   { echo "$as_me:$LINENO: result: yes" >&5
15517 echo "${ECHO_T}yes" >&6; }
15518 else
15519   echo "$as_me: program exited with status $ac_status" >&5
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523 ( exit $ac_status )
15524
15525 cat >>confdefs.h <<\_ACEOF
15526 #define BROKEN_SETRESGID 1
15527 _ACEOF
15528
15529                  { echo "$as_me:$LINENO: result: not implemented" >&5
15530 echo "${ECHO_T}not implemented" >&6; }
15531 fi
15532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15533 fi
15534
15535
15536
15537 fi
15538 done
15539
15540
15541
15542
15543 for ac_func in gettimeofday time
15544 do
15545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15549   echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551   cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15559 #define $ac_func innocuous_$ac_func
15560
15561 /* System header to define __stub macros and hopefully few prototypes,
15562     which can conflict with char $ac_func (); below.
15563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15564     <limits.h> exists even on freestanding compilers.  */
15565
15566 #ifdef __STDC__
15567 # include <limits.h>
15568 #else
15569 # include <assert.h>
15570 #endif
15571
15572 #undef $ac_func
15573
15574 /* Override any GCC internal prototype to avoid an error.
15575    Use char because int might match the return type of a GCC
15576    builtin and then its argument prototype would still apply.  */
15577 #ifdef __cplusplus
15578 extern "C"
15579 #endif
15580 char $ac_func ();
15581 /* The GNU C library defines this for functions which it implements
15582     to always fail with ENOSYS.  Some functions are actually named
15583     something starting with __ and the normal name is an alias.  */
15584 #if defined __stub_$ac_func || defined __stub___$ac_func
15585 choke me
15586 #endif
15587
15588 int
15589 main ()
15590 {
15591 return $ac_func ();
15592   ;
15593   return 0;
15594 }
15595 _ACEOF
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (ac_try="$ac_link"
15598 case "(($ac_try" in
15599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600   *) ac_try_echo=$ac_try;;
15601 esac
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603   (eval "$ac_link") 2>conftest.er1
15604   ac_status=$?
15605   grep -v '^ *+' conftest.er1 >conftest.err
15606   rm -f conftest.er1
15607   cat conftest.err >&5
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); } &&
15610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15611   { (case "(($ac_try" in
15612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613   *) ac_try_echo=$ac_try;;
15614 esac
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616   (eval "$ac_try") 2>&5
15617   ac_status=$?
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); }; } &&
15620          { ac_try='test -s conftest$ac_exeext'
15621   { (case "(($ac_try" in
15622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623   *) ac_try_echo=$ac_try;;
15624 esac
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626   (eval "$ac_try") 2>&5
15627   ac_status=$?
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); }; }; then
15630   eval "$as_ac_var=yes"
15631 else
15632   echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15634
15635         eval "$as_ac_var=no"
15636 fi
15637
15638 rm -f core conftest.err conftest.$ac_objext \
15639       conftest$ac_exeext conftest.$ac_ext
15640 fi
15641 ac_res=`eval echo '${'$as_ac_var'}'`
15642                { echo "$as_me:$LINENO: result: $ac_res" >&5
15643 echo "${ECHO_T}$ac_res" >&6; }
15644 if test `eval echo '${'$as_ac_var'}'` = yes; then
15645   cat >>confdefs.h <<_ACEOF
15646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15647 _ACEOF
15648
15649 fi
15650 done
15651
15652
15653
15654
15655
15656
15657
15658 for ac_func in endutent getutent getutid getutline pututline setutent
15659 do
15660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15664   echo $ECHO_N "(cached) $ECHO_C" >&6
15665 else
15666   cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h.  */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h.  */
15672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15674 #define $ac_func innocuous_$ac_func
15675
15676 /* System header to define __stub macros and hopefully few prototypes,
15677     which can conflict with char $ac_func (); below.
15678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15679     <limits.h> exists even on freestanding compilers.  */
15680
15681 #ifdef __STDC__
15682 # include <limits.h>
15683 #else
15684 # include <assert.h>
15685 #endif
15686
15687 #undef $ac_func
15688
15689 /* Override any GCC internal prototype to avoid an error.
15690    Use char because int might match the return type of a GCC
15691    builtin and then its argument prototype would still apply.  */
15692 #ifdef __cplusplus
15693 extern "C"
15694 #endif
15695 char $ac_func ();
15696 /* The GNU C library defines this for functions which it implements
15697     to always fail with ENOSYS.  Some functions are actually named
15698     something starting with __ and the normal name is an alias.  */
15699 #if defined __stub_$ac_func || defined __stub___$ac_func
15700 choke me
15701 #endif
15702
15703 int
15704 main ()
15705 {
15706 return $ac_func ();
15707   ;
15708   return 0;
15709 }
15710 _ACEOF
15711 rm -f conftest.$ac_objext conftest$ac_exeext
15712 if { (ac_try="$ac_link"
15713 case "(($ac_try" in
15714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715   *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718   (eval "$ac_link") 2>conftest.er1
15719   ac_status=$?
15720   grep -v '^ *+' conftest.er1 >conftest.err
15721   rm -f conftest.er1
15722   cat conftest.err >&5
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); } &&
15725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15726   { (case "(($ac_try" in
15727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728   *) ac_try_echo=$ac_try;;
15729 esac
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731   (eval "$ac_try") 2>&5
15732   ac_status=$?
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); }; } &&
15735          { ac_try='test -s conftest$ac_exeext'
15736   { (case "(($ac_try" in
15737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738   *) ac_try_echo=$ac_try;;
15739 esac
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741   (eval "$ac_try") 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }; then
15745   eval "$as_ac_var=yes"
15746 else
15747   echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750         eval "$as_ac_var=no"
15751 fi
15752
15753 rm -f core conftest.err conftest.$ac_objext \
15754       conftest$ac_exeext conftest.$ac_ext
15755 fi
15756 ac_res=`eval echo '${'$as_ac_var'}'`
15757                { echo "$as_me:$LINENO: result: $ac_res" >&5
15758 echo "${ECHO_T}$ac_res" >&6; }
15759 if test `eval echo '${'$as_ac_var'}'` = yes; then
15760   cat >>confdefs.h <<_ACEOF
15761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15762 _ACEOF
15763
15764 fi
15765 done
15766
15767
15768 for ac_func in utmpname
15769 do
15770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15774   echo $ECHO_N "(cached) $ECHO_C" >&6
15775 else
15776   cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h.  */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h.  */
15782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15784 #define $ac_func innocuous_$ac_func
15785
15786 /* System header to define __stub macros and hopefully few prototypes,
15787     which can conflict with char $ac_func (); below.
15788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15789     <limits.h> exists even on freestanding compilers.  */
15790
15791 #ifdef __STDC__
15792 # include <limits.h>
15793 #else
15794 # include <assert.h>
15795 #endif
15796
15797 #undef $ac_func
15798
15799 /* Override any GCC internal prototype to avoid an error.
15800    Use char because int might match the return type of a GCC
15801    builtin and then its argument prototype would still apply.  */
15802 #ifdef __cplusplus
15803 extern "C"
15804 #endif
15805 char $ac_func ();
15806 /* The GNU C library defines this for functions which it implements
15807     to always fail with ENOSYS.  Some functions are actually named
15808     something starting with __ and the normal name is an alias.  */
15809 #if defined __stub_$ac_func || defined __stub___$ac_func
15810 choke me
15811 #endif
15812
15813 int
15814 main ()
15815 {
15816 return $ac_func ();
15817   ;
15818   return 0;
15819 }
15820 _ACEOF
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (ac_try="$ac_link"
15823 case "(($ac_try" in
15824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825   *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828   (eval "$ac_link") 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } &&
15835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15836   { (case "(($ac_try" in
15837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838   *) ac_try_echo=$ac_try;;
15839 esac
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841   (eval "$ac_try") 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; } &&
15845          { ac_try='test -s conftest$ac_exeext'
15846   { (case "(($ac_try" in
15847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848   *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851   (eval "$ac_try") 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; }; then
15855   eval "$as_ac_var=yes"
15856 else
15857   echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15859
15860         eval "$as_ac_var=no"
15861 fi
15862
15863 rm -f core conftest.err conftest.$ac_objext \
15864       conftest$ac_exeext conftest.$ac_ext
15865 fi
15866 ac_res=`eval echo '${'$as_ac_var'}'`
15867                { echo "$as_me:$LINENO: result: $ac_res" >&5
15868 echo "${ECHO_T}$ac_res" >&6; }
15869 if test `eval echo '${'$as_ac_var'}'` = yes; then
15870   cat >>confdefs.h <<_ACEOF
15871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15872 _ACEOF
15873
15874 fi
15875 done
15876
15877
15878
15879
15880
15881
15882 for ac_func in endutxent getutxent getutxid getutxline pututxline
15883 do
15884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15887 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15888   echo $ECHO_N "(cached) $ECHO_C" >&6
15889 else
15890   cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h.  */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h.  */
15896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15898 #define $ac_func innocuous_$ac_func
15899
15900 /* System header to define __stub macros and hopefully few prototypes,
15901     which can conflict with char $ac_func (); below.
15902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15903     <limits.h> exists even on freestanding compilers.  */
15904
15905 #ifdef __STDC__
15906 # include <limits.h>
15907 #else
15908 # include <assert.h>
15909 #endif
15910
15911 #undef $ac_func
15912
15913 /* Override any GCC internal prototype to avoid an error.
15914    Use char because int might match the return type of a GCC
15915    builtin and then its argument prototype would still apply.  */
15916 #ifdef __cplusplus
15917 extern "C"
15918 #endif
15919 char $ac_func ();
15920 /* The GNU C library defines this for functions which it implements
15921     to always fail with ENOSYS.  Some functions are actually named
15922     something starting with __ and the normal name is an alias.  */
15923 #if defined __stub_$ac_func || defined __stub___$ac_func
15924 choke me
15925 #endif
15926
15927 int
15928 main ()
15929 {
15930 return $ac_func ();
15931   ;
15932   return 0;
15933 }
15934 _ACEOF
15935 rm -f conftest.$ac_objext conftest$ac_exeext
15936 if { (ac_try="$ac_link"
15937 case "(($ac_try" in
15938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939   *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942   (eval "$ac_link") 2>conftest.er1
15943   ac_status=$?
15944   grep -v '^ *+' conftest.er1 >conftest.err
15945   rm -f conftest.er1
15946   cat conftest.err >&5
15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); } &&
15949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950   { (case "(($ac_try" in
15951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952   *) ac_try_echo=$ac_try;;
15953 esac
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955   (eval "$ac_try") 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); }; } &&
15959          { ac_try='test -s conftest$ac_exeext'
15960   { (case "(($ac_try" in
15961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962   *) ac_try_echo=$ac_try;;
15963 esac
15964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965   (eval "$ac_try") 2>&5
15966   ac_status=$?
15967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968   (exit $ac_status); }; }; then
15969   eval "$as_ac_var=yes"
15970 else
15971   echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974         eval "$as_ac_var=no"
15975 fi
15976
15977 rm -f core conftest.err conftest.$ac_objext \
15978       conftest$ac_exeext conftest.$ac_ext
15979 fi
15980 ac_res=`eval echo '${'$as_ac_var'}'`
15981                { echo "$as_me:$LINENO: result: $ac_res" >&5
15982 echo "${ECHO_T}$ac_res" >&6; }
15983 if test `eval echo '${'$as_ac_var'}'` = yes; then
15984   cat >>confdefs.h <<_ACEOF
15985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15986 _ACEOF
15987
15988 fi
15989 done
15990
15991
15992
15993 for ac_func in setutxent utmpxname
15994 do
15995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15999   echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001   cat >conftest.$ac_ext <<_ACEOF
16002 /* confdefs.h.  */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h.  */
16007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16009 #define $ac_func innocuous_$ac_func
16010
16011 /* System header to define __stub macros and hopefully few prototypes,
16012     which can conflict with char $ac_func (); below.
16013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16014     <limits.h> exists even on freestanding compilers.  */
16015
16016 #ifdef __STDC__
16017 # include <limits.h>
16018 #else
16019 # include <assert.h>
16020 #endif
16021
16022 #undef $ac_func
16023
16024 /* Override any GCC internal prototype to avoid an error.
16025    Use char because int might match the return type of a GCC
16026    builtin and then its argument prototype would still apply.  */
16027 #ifdef __cplusplus
16028 extern "C"
16029 #endif
16030 char $ac_func ();
16031 /* The GNU C library defines this for functions which it implements
16032     to always fail with ENOSYS.  Some functions are actually named
16033     something starting with __ and the normal name is an alias.  */
16034 #if defined __stub_$ac_func || defined __stub___$ac_func
16035 choke me
16036 #endif
16037
16038 int
16039 main ()
16040 {
16041 return $ac_func ();
16042   ;
16043   return 0;
16044 }
16045 _ACEOF
16046 rm -f conftest.$ac_objext conftest$ac_exeext
16047 if { (ac_try="$ac_link"
16048 case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_link") 2>conftest.er1
16054   ac_status=$?
16055   grep -v '^ *+' conftest.er1 >conftest.err
16056   rm -f conftest.er1
16057   cat conftest.err >&5
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } &&
16060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16061   { (case "(($ac_try" in
16062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063   *) ac_try_echo=$ac_try;;
16064 esac
16065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066   (eval "$ac_try") 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); }; } &&
16070          { ac_try='test -s conftest$ac_exeext'
16071   { (case "(($ac_try" in
16072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073   *) ac_try_echo=$ac_try;;
16074 esac
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076   (eval "$ac_try") 2>&5
16077   ac_status=$?
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); }; }; then
16080   eval "$as_ac_var=yes"
16081 else
16082   echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085         eval "$as_ac_var=no"
16086 fi
16087
16088 rm -f core conftest.err conftest.$ac_objext \
16089       conftest$ac_exeext conftest.$ac_ext
16090 fi
16091 ac_res=`eval echo '${'$as_ac_var'}'`
16092                { echo "$as_me:$LINENO: result: $ac_res" >&5
16093 echo "${ECHO_T}$ac_res" >&6; }
16094 if test `eval echo '${'$as_ac_var'}'` = yes; then
16095   cat >>confdefs.h <<_ACEOF
16096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16097 _ACEOF
16098
16099 fi
16100 done
16101
16102
16103 { echo "$as_me:$LINENO: checking for daemon" >&5
16104 echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
16105 if test "${ac_cv_func_daemon+set}" = set; then
16106   echo $ECHO_N "(cached) $ECHO_C" >&6
16107 else
16108   cat >conftest.$ac_ext <<_ACEOF
16109 /* confdefs.h.  */
16110 _ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h.  */
16114 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
16115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16116 #define daemon innocuous_daemon
16117
16118 /* System header to define __stub macros and hopefully few prototypes,
16119     which can conflict with char daemon (); below.
16120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16121     <limits.h> exists even on freestanding compilers.  */
16122
16123 #ifdef __STDC__
16124 # include <limits.h>
16125 #else
16126 # include <assert.h>
16127 #endif
16128
16129 #undef daemon
16130
16131 /* Override any GCC internal prototype to avoid an error.
16132    Use char because int might match the return type of a GCC
16133    builtin and then its argument prototype would still apply.  */
16134 #ifdef __cplusplus
16135 extern "C"
16136 #endif
16137 char daemon ();
16138 /* The GNU C library defines this for functions which it implements
16139     to always fail with ENOSYS.  Some functions are actually named
16140     something starting with __ and the normal name is an alias.  */
16141 #if defined __stub_daemon || defined __stub___daemon
16142 choke me
16143 #endif
16144
16145 int
16146 main ()
16147 {
16148 return daemon ();
16149   ;
16150   return 0;
16151 }
16152 _ACEOF
16153 rm -f conftest.$ac_objext conftest$ac_exeext
16154 if { (ac_try="$ac_link"
16155 case "(($ac_try" in
16156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157   *) ac_try_echo=$ac_try;;
16158 esac
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160   (eval "$ac_link") 2>conftest.er1
16161   ac_status=$?
16162   grep -v '^ *+' conftest.er1 >conftest.err
16163   rm -f conftest.er1
16164   cat conftest.err >&5
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } &&
16167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16168   { (case "(($ac_try" in
16169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170   *) ac_try_echo=$ac_try;;
16171 esac
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173   (eval "$ac_try") 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); }; } &&
16177          { ac_try='test -s conftest$ac_exeext'
16178   { (case "(($ac_try" in
16179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180   *) ac_try_echo=$ac_try;;
16181 esac
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183   (eval "$ac_try") 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; }; then
16187   ac_cv_func_daemon=yes
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192         ac_cv_func_daemon=no
16193 fi
16194
16195 rm -f core conftest.err conftest.$ac_objext \
16196       conftest$ac_exeext conftest.$ac_ext
16197 fi
16198 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
16199 echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
16200 if test $ac_cv_func_daemon = yes; then
16201
16202 cat >>confdefs.h <<\_ACEOF
16203 #define HAVE_DAEMON 1
16204 _ACEOF
16205
16206 else
16207   { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
16208 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
16209 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
16210   echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212   ac_check_lib_save_LIBS=$LIBS
16213 LIBS="-lbsd  $LIBS"
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h.  */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h.  */
16220
16221 /* Override any GCC internal prototype to avoid an error.
16222    Use char because int might match the return type of a GCC
16223    builtin and then its argument prototype would still apply.  */
16224 #ifdef __cplusplus
16225 extern "C"
16226 #endif
16227 char daemon ();
16228 int
16229 main ()
16230 {
16231 return daemon ();
16232   ;
16233   return 0;
16234 }
16235 _ACEOF
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (ac_try="$ac_link"
16238 case "(($ac_try" in
16239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240   *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243   (eval "$ac_link") 2>conftest.er1
16244   ac_status=$?
16245   grep -v '^ *+' conftest.er1 >conftest.err
16246   rm -f conftest.er1
16247   cat conftest.err >&5
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); } &&
16250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16251   { (case "(($ac_try" in
16252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253   *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256   (eval "$ac_try") 2>&5
16257   ac_status=$?
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; } &&
16260          { ac_try='test -s conftest$ac_exeext'
16261   { (case "(($ac_try" in
16262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263   *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266   (eval "$ac_try") 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); }; }; then
16270   ac_cv_lib_bsd_daemon=yes
16271 else
16272   echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16274
16275         ac_cv_lib_bsd_daemon=no
16276 fi
16277
16278 rm -f core conftest.err conftest.$ac_objext \
16279       conftest$ac_exeext conftest.$ac_ext
16280 LIBS=$ac_check_lib_save_LIBS
16281 fi
16282 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
16283 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
16284 if test $ac_cv_lib_bsd_daemon = yes; then
16285   LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
16286 #define HAVE_DAEMON 1
16287 _ACEOF
16288
16289 fi
16290
16291
16292 fi
16293
16294
16295 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16296 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16297 if test "${ac_cv_func_getpagesize+set}" = set; then
16298   echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300   cat >conftest.$ac_ext <<_ACEOF
16301 /* confdefs.h.  */
16302 _ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h.  */
16306 /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
16307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16308 #define getpagesize innocuous_getpagesize
16309
16310 /* System header to define __stub macros and hopefully few prototypes,
16311     which can conflict with char getpagesize (); below.
16312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16313     <limits.h> exists even on freestanding compilers.  */
16314
16315 #ifdef __STDC__
16316 # include <limits.h>
16317 #else
16318 # include <assert.h>
16319 #endif
16320
16321 #undef getpagesize
16322
16323 /* Override any GCC internal prototype to avoid an error.
16324    Use char because int might match the return type of a GCC
16325    builtin and then its argument prototype would still apply.  */
16326 #ifdef __cplusplus
16327 extern "C"
16328 #endif
16329 char getpagesize ();
16330 /* The GNU C library defines this for functions which it implements
16331     to always fail with ENOSYS.  Some functions are actually named
16332     something starting with __ and the normal name is an alias.  */
16333 #if defined __stub_getpagesize || defined __stub___getpagesize
16334 choke me
16335 #endif
16336
16337 int
16338 main ()
16339 {
16340 return getpagesize ();
16341   ;
16342   return 0;
16343 }
16344 _ACEOF
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (ac_try="$ac_link"
16347 case "(($ac_try" in
16348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349   *) ac_try_echo=$ac_try;;
16350 esac
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352   (eval "$ac_link") 2>conftest.er1
16353   ac_status=$?
16354   grep -v '^ *+' conftest.er1 >conftest.err
16355   rm -f conftest.er1
16356   cat conftest.err >&5
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); } &&
16359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16360   { (case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365   (eval "$ac_try") 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); }; } &&
16369          { ac_try='test -s conftest$ac_exeext'
16370   { (case "(($ac_try" in
16371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372   *) ac_try_echo=$ac_try;;
16373 esac
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375   (eval "$ac_try") 2>&5
16376   ac_status=$?
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); }; }; then
16379   ac_cv_func_getpagesize=yes
16380 else
16381   echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16383
16384         ac_cv_func_getpagesize=no
16385 fi
16386
16387 rm -f core conftest.err conftest.$ac_objext \
16388       conftest$ac_exeext conftest.$ac_ext
16389 fi
16390 { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
16391 echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
16392 if test $ac_cv_func_getpagesize = yes; then
16393
16394 cat >>confdefs.h <<\_ACEOF
16395 #define HAVE_GETPAGESIZE 1
16396 _ACEOF
16397
16398 else
16399   { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
16400 echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
16401 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
16402   echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404   ac_check_lib_save_LIBS=$LIBS
16405 LIBS="-lucb  $LIBS"
16406 cat >conftest.$ac_ext <<_ACEOF
16407 /* confdefs.h.  */
16408 _ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h.  */
16412
16413 /* Override any GCC internal prototype to avoid an error.
16414    Use char because int might match the return type of a GCC
16415    builtin and then its argument prototype would still apply.  */
16416 #ifdef __cplusplus
16417 extern "C"
16418 #endif
16419 char getpagesize ();
16420 int
16421 main ()
16422 {
16423 return getpagesize ();
16424   ;
16425   return 0;
16426 }
16427 _ACEOF
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432   *) ac_try_echo=$ac_try;;
16433 esac
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435   (eval "$ac_link") 2>conftest.er1
16436   ac_status=$?
16437   grep -v '^ *+' conftest.er1 >conftest.err
16438   rm -f conftest.er1
16439   cat conftest.err >&5
16440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441   (exit $ac_status); } &&
16442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16443   { (case "(($ac_try" in
16444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445   *) ac_try_echo=$ac_try;;
16446 esac
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448   (eval "$ac_try") 2>&5
16449   ac_status=$?
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); }; } &&
16452          { ac_try='test -s conftest$ac_exeext'
16453   { (case "(($ac_try" in
16454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455   *) ac_try_echo=$ac_try;;
16456 esac
16457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16458   (eval "$ac_try") 2>&5
16459   ac_status=$?
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); }; }; then
16462   ac_cv_lib_ucb_getpagesize=yes
16463 else
16464   echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16466
16467         ac_cv_lib_ucb_getpagesize=no
16468 fi
16469
16470 rm -f core conftest.err conftest.$ac_objext \
16471       conftest$ac_exeext conftest.$ac_ext
16472 LIBS=$ac_check_lib_save_LIBS
16473 fi
16474 { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
16475 echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
16476 if test $ac_cv_lib_ucb_getpagesize = yes; then
16477   LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
16478 #define HAVE_GETPAGESIZE 1
16479 _ACEOF
16480
16481 fi
16482
16483
16484 fi
16485
16486
16487 # Check for broken snprintf
16488 if test "x$ac_cv_func_snprintf" = "xyes" ; then
16489         { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
16490 echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
16491         if test "$cross_compiling" = yes; then
16492    { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
16493 echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
16494
16495 else
16496   cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h.  */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h.  */
16502
16503 #include <stdio.h>
16504 int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
16505
16506 _ACEOF
16507 rm -f conftest$ac_exeext
16508 if { (ac_try="$ac_link"
16509 case "(($ac_try" in
16510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511   *) ac_try_echo=$ac_try;;
16512 esac
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514   (eval "$ac_link") 2>&5
16515   ac_status=$?
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16518   { (case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_try") 2>&5
16524   ac_status=$?
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); }; }; then
16527   { echo "$as_me:$LINENO: result: yes" >&5
16528 echo "${ECHO_T}yes" >&6; }
16529 else
16530   echo "$as_me: program exited with status $ac_status" >&5
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16533
16534 ( exit $ac_status )
16535
16536                         { echo "$as_me:$LINENO: result: no" >&5
16537 echo "${ECHO_T}no" >&6; }
16538
16539 cat >>confdefs.h <<\_ACEOF
16540 #define BROKEN_SNPRINTF 1
16541 _ACEOF
16542
16543                         { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
16544 echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
16545
16546 fi
16547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16548 fi
16549
16550
16551 fi
16552
16553 # If we don't have a working asprintf, then we strongly depend on vsnprintf
16554 # returning the right thing on overflow: the number of characters it tried to
16555 # create (as per SUSv3)
16556 if test "x$ac_cv_func_asprintf" != "xyes" && \
16557    test "x$ac_cv_func_vsnprintf" = "xyes" ; then
16558         { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
16559 echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
16560         if test "$cross_compiling" = yes; then
16561    { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
16562 echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
16563
16564 else
16565   cat >conftest.$ac_ext <<_ACEOF
16566 /* confdefs.h.  */
16567 _ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h.  */
16571
16572 #include <sys/types.h>
16573 #include <stdio.h>
16574 #include <stdarg.h>
16575
16576 int x_snprintf(char *str,size_t count,const char *fmt,...)
16577 {
16578         size_t ret; va_list ap;
16579         va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
16580         return ret;
16581 }
16582 int main(void)
16583 {
16584         char x[1];
16585         exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
16586 }
16587 _ACEOF
16588 rm -f conftest$ac_exeext
16589 if { (ac_try="$ac_link"
16590 case "(($ac_try" in
16591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592   *) ac_try_echo=$ac_try;;
16593 esac
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595   (eval "$ac_link") 2>&5
16596   ac_status=$?
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16599   { (case "(($ac_try" in
16600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601   *) ac_try_echo=$ac_try;;
16602 esac
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604   (eval "$ac_try") 2>&5
16605   ac_status=$?
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); }; }; then
16608   { echo "$as_me:$LINENO: result: yes" >&5
16609 echo "${ECHO_T}yes" >&6; }
16610 else
16611   echo "$as_me: program exited with status $ac_status" >&5
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 ( exit $ac_status )
16616
16617                         { echo "$as_me:$LINENO: result: no" >&5
16618 echo "${ECHO_T}no" >&6; }
16619
16620 cat >>confdefs.h <<\_ACEOF
16621 #define BROKEN_SNPRINTF 1
16622 _ACEOF
16623
16624                         { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
16625 echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
16626
16627 fi
16628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16629 fi
16630
16631
16632 fi
16633
16634 # On systems where [v]snprintf is broken, but is declared in stdio,
16635 # check that the fmt argument is const char * or just char *.
16636 # This is only useful for when BROKEN_SNPRINTF
16637 { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
16638 echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
16639 cat >conftest.$ac_ext <<_ACEOF
16640 /* confdefs.h.  */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h.  */
16645 #include <stdio.h>
16646            int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
16647            int main(void) { snprintf(0, 0, 0); }
16648
16649 _ACEOF
16650 rm -f conftest.$ac_objext
16651 if { (ac_try="$ac_compile"
16652 case "(($ac_try" in
16653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654   *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657   (eval "$ac_compile") 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } &&
16664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665   { (case "(($ac_try" in
16666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667   *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670   (eval "$ac_try") 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }; } &&
16674          { ac_try='test -s conftest.$ac_objext'
16675   { (case "(($ac_try" in
16676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677   *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680   (eval "$ac_try") 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; }; then
16684   { echo "$as_me:$LINENO: result: yes" >&5
16685 echo "${ECHO_T}yes" >&6; }
16686
16687 cat >>confdefs.h <<\_ACEOF
16688 #define SNPRINTF_CONST const
16689 _ACEOF
16690
16691 else
16692   echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16694
16695         { echo "$as_me:$LINENO: result: no" >&5
16696 echo "${ECHO_T}no" >&6; }
16697     cat >>confdefs.h <<\_ACEOF
16698 #define SNPRINTF_CONST /* not const */
16699 _ACEOF
16700
16701 fi
16702
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704
16705 # Check for missing getpeereid (or equiv) support
16706 NO_PEERCHECK=""
16707 if test "x$ac_cv_func_getpeereid" != "xyes" ; then
16708         { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
16709 echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
16710         cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h.  */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h.  */
16716 #include <sys/types.h>
16717                  #include <sys/socket.h>
16718 int
16719 main ()
16720 {
16721 int i = SO_PEERCRED;
16722   ;
16723   return 0;
16724 }
16725 _ACEOF
16726 rm -f conftest.$ac_objext
16727 if { (ac_try="$ac_compile"
16728 case "(($ac_try" in
16729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730   *) ac_try_echo=$ac_try;;
16731 esac
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733   (eval "$ac_compile") 2>conftest.er1
16734   ac_status=$?
16735   grep -v '^ *+' conftest.er1 >conftest.err
16736   rm -f conftest.er1
16737   cat conftest.err >&5
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); } &&
16740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16741   { (case "(($ac_try" in
16742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743   *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746   (eval "$ac_try") 2>&5
16747   ac_status=$?
16748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749   (exit $ac_status); }; } &&
16750          { ac_try='test -s conftest.$ac_objext'
16751   { (case "(($ac_try" in
16752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753   *) ac_try_echo=$ac_try;;
16754 esac
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756   (eval "$ac_try") 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); }; }; then
16760    { echo "$as_me:$LINENO: result: yes" >&5
16761 echo "${ECHO_T}yes" >&6; }
16762
16763 cat >>confdefs.h <<\_ACEOF
16764 #define HAVE_SO_PEERCRED 1
16765 _ACEOF
16766
16767
16768 else
16769   echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16771
16772         { echo "$as_me:$LINENO: result: no" >&5
16773 echo "${ECHO_T}no" >&6; }
16774                 NO_PEERCHECK=1
16775
16776 fi
16777
16778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16779 fi
16780
16781 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
16782 { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
16783 echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
16784 if test "$cross_compiling" = yes; then
16785
16786                 { echo "$as_me:$LINENO: result: yes" >&5
16787 echo "${ECHO_T}yes" >&6; }
16788                 cat >>confdefs.h <<\_ACEOF
16789 #define HAVE_STRICT_MKSTEMP 1
16790 _ACEOF
16791
16792
16793
16794 else
16795   cat >conftest.$ac_ext <<_ACEOF
16796 /* confdefs.h.  */
16797 _ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h.  */
16801
16802 #include <stdlib.h>
16803 main() { char template[]="conftest.mkstemp-test";
16804 if (mkstemp(template) == -1)
16805         exit(1);
16806 unlink(template); exit(0);
16807 }
16808
16809 _ACEOF
16810 rm -f conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814   *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817   (eval "$ac_link") 2>&5
16818   ac_status=$?
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16821   { (case "(($ac_try" in
16822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823   *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826   (eval "$ac_try") 2>&5
16827   ac_status=$?
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); }; }; then
16830
16831                 { echo "$as_me:$LINENO: result: no" >&5
16832 echo "${ECHO_T}no" >&6; }
16833
16834 else
16835   echo "$as_me: program exited with status $ac_status" >&5
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839 ( exit $ac_status )
16840
16841                 { echo "$as_me:$LINENO: result: yes" >&5
16842 echo "${ECHO_T}yes" >&6; }
16843
16844 cat >>confdefs.h <<\_ACEOF
16845 #define HAVE_STRICT_MKSTEMP 1
16846 _ACEOF
16847
16848
16849 fi
16850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16851 fi
16852
16853
16854 fi
16855
16856 if test ! -z "$check_for_openpty_ctty_bug"; then
16857         { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
16858 echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
16859         if test "$cross_compiling" = yes; then
16860
16861                         { echo "$as_me:$LINENO: result: cross-compiling" >&5
16862 echo "${ECHO_T}cross-compiling" >&6; }
16863
16864
16865 else
16866   cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h.  */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h.  */
16872
16873 #include <stdio.h>
16874 #include <sys/fcntl.h>
16875 #include <sys/types.h>
16876 #include <sys/wait.h>
16877
16878 int
16879 main()
16880 {
16881         pid_t pid;
16882         int fd, ptyfd, ttyfd, status;
16883
16884         pid = fork();
16885         if (pid < 0) {          /* failed */
16886                 exit(1);
16887         } else if (pid > 0) {   /* parent */
16888                 waitpid(pid, &status, 0);
16889                 if (WIFEXITED(status))
16890                         exit(WEXITSTATUS(status));
16891                 else
16892                         exit(2);
16893         } else {                /* child */
16894                 close(0); close(1); close(2);
16895                 setsid();
16896                 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
16897                 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
16898                 if (fd >= 0)
16899                         exit(3);        /* Acquired ctty: broken */
16900                 else
16901                         exit(0);        /* Did not acquire ctty: OK */
16902         }
16903 }
16904
16905 _ACEOF
16906 rm -f conftest$ac_exeext
16907 if { (ac_try="$ac_link"
16908 case "(($ac_try" in
16909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910   *) ac_try_echo=$ac_try;;
16911 esac
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913   (eval "$ac_link") 2>&5
16914   ac_status=$?
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16917   { (case "(($ac_try" in
16918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919   *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922   (eval "$ac_try") 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); }; }; then
16926
16927                         { echo "$as_me:$LINENO: result: yes" >&5
16928 echo "${ECHO_T}yes" >&6; }
16929
16930 else
16931   echo "$as_me: program exited with status $ac_status" >&5
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 ( exit $ac_status )
16936
16937                         { echo "$as_me:$LINENO: result: no" >&5
16938 echo "${ECHO_T}no" >&6; }
16939                         cat >>confdefs.h <<\_ACEOF
16940 #define SSHD_ACQUIRES_CTTY 1
16941 _ACEOF
16942
16943
16944 fi
16945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16946 fi
16947
16948
16949 fi
16950
16951 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16952     test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
16953         { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16954 echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
16955         if test "$cross_compiling" = yes; then
16956
16957                         { echo "$as_me:$LINENO: result: cross-compiling" >&5
16958 echo "${ECHO_T}cross-compiling" >&6; }
16959
16960
16961 else
16962   cat >conftest.$ac_ext <<_ACEOF
16963 /* confdefs.h.  */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h.  */
16968
16969 #include <stdio.h>
16970 #include <sys/socket.h>
16971 #include <netdb.h>
16972 #include <errno.h>
16973 #include <netinet/in.h>
16974
16975 #define TEST_PORT "2222"
16976
16977 int
16978 main(void)
16979 {
16980         int err, sock;
16981         struct addrinfo *gai_ai, *ai, hints;
16982         char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16983
16984         memset(&hints, 0, sizeof(hints));
16985         hints.ai_family = PF_UNSPEC;
16986         hints.ai_socktype = SOCK_STREAM;
16987         hints.ai_flags = AI_PASSIVE;
16988
16989         err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16990         if (err != 0) {
16991                 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16992                 exit(1);
16993         }
16994
16995         for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16996                 if (ai->ai_family != AF_INET6)
16997                         continue;
16998
16999                 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
17000                     sizeof(ntop), strport, sizeof(strport),
17001                     NI_NUMERICHOST|NI_NUMERICSERV);
17002
17003                 if (err != 0) {
17004                         if (err == EAI_SYSTEM)
17005                                 perror("getnameinfo EAI_SYSTEM");
17006                         else
17007                                 fprintf(stderr, "getnameinfo failed: %s\n",
17008                                     gai_strerror(err));
17009                         exit(2);
17010                 }
17011
17012                 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
17013                 if (sock < 0)
17014                         perror("socket");
17015                 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
17016                         if (errno == EBADF)
17017                                 exit(3);
17018                 }
17019         }
17020         exit(0);
17021 }
17022
17023 _ACEOF
17024 rm -f conftest$ac_exeext
17025 if { (ac_try="$ac_link"
17026 case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031   (eval "$ac_link") 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17035   { (case "(($ac_try" in
17036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037   *) ac_try_echo=$ac_try;;
17038 esac
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040   (eval "$ac_try") 2>&5
17041   ac_status=$?
17042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043   (exit $ac_status); }; }; then
17044
17045                         { echo "$as_me:$LINENO: result: yes" >&5
17046 echo "${ECHO_T}yes" >&6; }
17047
17048 else
17049   echo "$as_me: program exited with status $ac_status" >&5
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17052
17053 ( exit $ac_status )
17054
17055                         { echo "$as_me:$LINENO: result: no" >&5
17056 echo "${ECHO_T}no" >&6; }
17057                         cat >>confdefs.h <<\_ACEOF
17058 #define BROKEN_GETADDRINFO 1
17059 _ACEOF
17060
17061
17062 fi
17063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17064 fi
17065
17066
17067 fi
17068
17069 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
17070     test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
17071         { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
17072 echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
17073         if test "$cross_compiling" = yes; then
17074
17075                         { echo "$as_me:$LINENO: result: cross-compiling" >&5
17076 echo "${ECHO_T}cross-compiling" >&6; }
17077
17078
17079 else
17080   cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h.  */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h.  */
17086
17087 #include <stdio.h>
17088 #include <sys/socket.h>
17089 #include <netdb.h>
17090 #include <errno.h>
17091 #include <netinet/in.h>
17092
17093 #define TEST_PORT "2222"
17094
17095 int
17096 main(void)
17097 {
17098         int err, sock;
17099         struct addrinfo *gai_ai, *ai, hints;
17100         char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
17101
17102         memset(&hints, 0, sizeof(hints));
17103         hints.ai_family = PF_UNSPEC;
17104         hints.ai_socktype = SOCK_STREAM;
17105         hints.ai_flags = AI_PASSIVE;
17106
17107         err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
17108         if (err != 0) {
17109                 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
17110                 exit(1);
17111         }
17112
17113         for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
17114                 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
17115                         continue;
17116
17117                 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
17118                     sizeof(ntop), strport, sizeof(strport),
17119                     NI_NUMERICHOST|NI_NUMERICSERV);
17120
17121                 if (ai->ai_family == AF_INET && err != 0) {
17122                         perror("getnameinfo");
17123                         exit(2);
17124                 }
17125         }
17126         exit(0);
17127 }
17128
17129 _ACEOF
17130 rm -f conftest$ac_exeext
17131 if { (ac_try="$ac_link"
17132 case "(($ac_try" in
17133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134   *) ac_try_echo=$ac_try;;
17135 esac
17136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137   (eval "$ac_link") 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17141   { (case "(($ac_try" in
17142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143   *) ac_try_echo=$ac_try;;
17144 esac
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146   (eval "$ac_try") 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; }; then
17150
17151                         { echo "$as_me:$LINENO: result: yes" >&5
17152 echo "${ECHO_T}yes" >&6; }
17153
17154 cat >>confdefs.h <<\_ACEOF
17155 #define AIX_GETNAMEINFO_HACK 1
17156 _ACEOF
17157
17158
17159 else
17160   echo "$as_me: program exited with status $ac_status" >&5
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17163
17164 ( exit $ac_status )
17165
17166                         { echo "$as_me:$LINENO: result: no" >&5
17167 echo "${ECHO_T}no" >&6; }
17168                         cat >>confdefs.h <<\_ACEOF
17169 #define BROKEN_GETADDRINFO 1
17170 _ACEOF
17171
17172
17173 fi
17174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17175 fi
17176
17177
17178 fi
17179
17180 if test "x$check_for_conflicting_getspnam" = "x1"; then
17181         { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
17182 echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
17183         cat >conftest.$ac_ext <<_ACEOF
17184
17185 #include <shadow.h>
17186 int main(void) {exit(0);}
17187
17188 _ACEOF
17189 rm -f conftest.$ac_objext
17190 if { (ac_try="$ac_compile"
17191 case "(($ac_try" in
17192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193   *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196   (eval "$ac_compile") 2>conftest.er1
17197   ac_status=$?
17198   grep -v '^ *+' conftest.er1 >conftest.err
17199   rm -f conftest.er1
17200   cat conftest.err >&5
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); } &&
17203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17204   { (case "(($ac_try" in
17205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206   *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209   (eval "$ac_try") 2>&5
17210   ac_status=$?
17211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212   (exit $ac_status); }; } &&
17213          { ac_try='test -s conftest.$ac_objext'
17214   { (case "(($ac_try" in
17215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216   *) ac_try_echo=$ac_try;;
17217 esac
17218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219   (eval "$ac_try") 2>&5
17220   ac_status=$?
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); }; }; then
17223
17224                         { echo "$as_me:$LINENO: result: no" >&5
17225 echo "${ECHO_T}no" >&6; }
17226
17227 else
17228   echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231
17232                         { echo "$as_me:$LINENO: result: yes" >&5
17233 echo "${ECHO_T}yes" >&6; }
17234
17235 cat >>confdefs.h <<\_ACEOF
17236 #define GETSPNAM_CONFLICTING_DEFS 1
17237 _ACEOF
17238
17239
17240
17241 fi
17242
17243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17244 fi
17245
17246 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17247 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
17248 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17249   echo $ECHO_N "(cached) $ECHO_C" >&6
17250 else
17251   # Use it with a single arg.
17252 cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258 $ac_includes_default
17259 int
17260 main ()
17261 {
17262 getpgrp (0);
17263   ;
17264   return 0;
17265 }
17266 _ACEOF
17267 rm -f conftest.$ac_objext
17268 if { (ac_try="$ac_compile"
17269 case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_compile") 2>conftest.er1
17275   ac_status=$?
17276   grep -v '^ *+' conftest.er1 >conftest.err
17277   rm -f conftest.er1
17278   cat conftest.err >&5
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); } &&
17281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17282   { (case "(($ac_try" in
17283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284   *) ac_try_echo=$ac_try;;
17285 esac
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287   (eval "$ac_try") 2>&5
17288   ac_status=$?
17289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); }; } &&
17291          { ac_try='test -s conftest.$ac_objext'
17292   { (case "(($ac_try" in
17293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294   *) ac_try_echo=$ac_try;;
17295 esac
17296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17297   (eval "$ac_try") 2>&5
17298   ac_status=$?
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); }; }; then
17301   ac_cv_func_getpgrp_void=no
17302 else
17303   echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17305
17306         ac_cv_func_getpgrp_void=yes
17307 fi
17308
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17310
17311 fi
17312 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17313 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
17314 if test $ac_cv_func_getpgrp_void = yes; then
17315
17316 cat >>confdefs.h <<\_ACEOF
17317 #define GETPGRP_VOID 1
17318 _ACEOF
17319
17320 fi
17321
17322
17323 # Search for OpenSSL
17324 saved_CPPFLAGS="$CPPFLAGS"
17325 saved_LDFLAGS="$LDFLAGS"
17326
17327 # Check whether --with-ssl-dir was given.
17328 if test "${with_ssl_dir+set}" = set; then
17329   withval=$with_ssl_dir;
17330                 if test "x$withval" != "xno" ; then
17331                         case "$withval" in
17332                                 # Relative paths
17333                                 ./*|../*)       withval="`pwd`/$withval"
17334                         esac
17335                         if test -d "$withval/lib"; then
17336                                 if test -n "${need_dash_r}"; then
17337                                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
17338                                 else
17339                                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
17340                                 fi
17341                         else
17342                                 if test -n "${need_dash_r}"; then
17343                                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
17344                                 else
17345                                         LDFLAGS="-L${withval} ${LDFLAGS}"
17346                                 fi
17347                         fi
17348                         if test -d "$withval/include"; then
17349                                 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
17350                         else
17351                                 CPPFLAGS="-I${withval} ${CPPFLAGS}"
17352                         fi
17353                 fi
17354
17355
17356 fi
17357
17358 LIBS="-lcrypto $LIBS"
17359 cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h.  */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h.  */
17365
17366 /* Override any GCC internal prototype to avoid an error.
17367    Use char because int might match the return type of a GCC
17368    builtin and then its argument prototype would still apply.  */
17369 #ifdef __cplusplus
17370 extern "C"
17371 #endif
17372 char RAND_add ();
17373 int
17374 main ()
17375 {
17376 return RAND_add ();
17377   ;
17378   return 0;
17379 }
17380 _ACEOF
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (ac_try="$ac_link"
17383 case "(($ac_try" in
17384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385   *) ac_try_echo=$ac_try;;
17386 esac
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388   (eval "$ac_link") 2>conftest.er1
17389   ac_status=$?
17390   grep -v '^ *+' conftest.er1 >conftest.err
17391   rm -f conftest.er1
17392   cat conftest.err >&5
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); } &&
17395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17396   { (case "(($ac_try" in
17397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398   *) ac_try_echo=$ac_try;;
17399 esac
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401   (eval "$ac_try") 2>&5
17402   ac_status=$?
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); }; } &&
17405          { ac_try='test -s conftest$ac_exeext'
17406   { (case "(($ac_try" in
17407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408   *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411   (eval "$ac_try") 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; }; then
17415
17416 cat >>confdefs.h <<\_ACEOF
17417 #define HAVE_OPENSSL 1
17418 _ACEOF
17419
17420 else
17421   echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17423
17424
17425                                 if test -n "${need_dash_r}"; then
17426                         LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
17427                 else
17428                         LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
17429                 fi
17430                 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
17431                 cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h.  */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h.  */
17437
17438 /* Override any GCC internal prototype to avoid an error.
17439    Use char because int might match the return type of a GCC
17440    builtin and then its argument prototype would still apply.  */
17441 #ifdef __cplusplus
17442 extern "C"
17443 #endif
17444 char RAND_add ();
17445 int
17446 main ()
17447 {
17448 return RAND_add ();
17449   ;
17450   return 0;
17451 }
17452 _ACEOF
17453 rm -f conftest.$ac_objext conftest$ac_exeext
17454 if { (ac_try="$ac_link"
17455 case "(($ac_try" in
17456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457   *) ac_try_echo=$ac_try;;
17458 esac
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460   (eval "$ac_link") 2>conftest.er1
17461   ac_status=$?
17462   grep -v '^ *+' conftest.er1 >conftest.err
17463   rm -f conftest.er1
17464   cat conftest.err >&5
17465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466   (exit $ac_status); } &&
17467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17468   { (case "(($ac_try" in
17469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470   *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473   (eval "$ac_try") 2>&5
17474   ac_status=$?
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); }; } &&
17477          { ac_try='test -s conftest$ac_exeext'
17478   { (case "(($ac_try" in
17479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480   *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483   (eval "$ac_try") 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); }; }; then
17487   cat >>confdefs.h <<\_ACEOF
17488 #define HAVE_OPENSSL 1
17489 _ACEOF
17490
17491 else
17492   echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17494
17495
17496                                 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
17497 echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
17498    { (exit 1); exit 1; }; }
17499
17500
17501 fi
17502
17503 rm -f core conftest.err conftest.$ac_objext \
17504       conftest$ac_exeext conftest.$ac_ext
17505
17506
17507 fi
17508
17509 rm -f core conftest.err conftest.$ac_objext \
17510       conftest$ac_exeext conftest.$ac_ext
17511
17512 # Determine OpenSSL header version
17513 { echo "$as_me:$LINENO: checking OpenSSL header version" >&5
17514 echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
17515 if test "$cross_compiling" = yes; then
17516
17517                 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17518 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17519
17520
17521 else
17522   cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h.  */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h.  */
17528
17529 #include <stdio.h>
17530 #include <string.h>
17531 #include <openssl/opensslv.h>
17532 #define DATA "conftest.sslincver"
17533 int main(void) {
17534         FILE *fd;
17535         int rc;
17536
17537         fd = fopen(DATA,"w");
17538         if(fd == NULL)
17539                 exit(1);
17540
17541         if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
17542                 exit(1);
17543
17544         exit(0);
17545 }
17546
17547 _ACEOF
17548 rm -f conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552   *) ac_try_echo=$ac_try;;
17553 esac
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555   (eval "$ac_link") 2>&5
17556   ac_status=$?
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17559   { (case "(($ac_try" in
17560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561   *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564   (eval "$ac_try") 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; }; then
17568
17569                 ssl_header_ver=`cat conftest.sslincver`
17570                 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
17571 echo "${ECHO_T}$ssl_header_ver" >&6; }
17572
17573 else
17574   echo "$as_me: program exited with status $ac_status" >&5
17575 echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17577
17578 ( exit $ac_status )
17579
17580                 { echo "$as_me:$LINENO: result: not found" >&5
17581 echo "${ECHO_T}not found" >&6; }
17582                 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
17583 echo "$as_me: error: OpenSSL version header not found." >&2;}
17584    { (exit 1); exit 1; }; }
17585
17586 fi
17587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17588 fi
17589
17590
17591
17592 # Determine OpenSSL library version
17593 { echo "$as_me:$LINENO: checking OpenSSL library version" >&5
17594 echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
17595 if test "$cross_compiling" = yes; then
17596
17597                 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17598 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17599
17600
17601 else
17602   cat >conftest.$ac_ext <<_ACEOF
17603 /* confdefs.h.  */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h.  */
17608
17609 #include <stdio.h>
17610 #include <string.h>
17611 #include <openssl/opensslv.h>
17612 #include <openssl/crypto.h>
17613 #define DATA "conftest.ssllibver"
17614 int main(void) {
17615         FILE *fd;
17616         int rc;
17617
17618         fd = fopen(DATA,"w");
17619         if(fd == NULL)
17620                 exit(1);
17621
17622         if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
17623                 exit(1);
17624
17625         exit(0);
17626 }
17627
17628 _ACEOF
17629 rm -f conftest$ac_exeext
17630 if { (ac_try="$ac_link"
17631 case "(($ac_try" in
17632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633   *) ac_try_echo=$ac_try;;
17634 esac
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636   (eval "$ac_link") 2>&5
17637   ac_status=$?
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17640   { (case "(($ac_try" in
17641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642   *) ac_try_echo=$ac_try;;
17643 esac
17644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645   (eval "$ac_try") 2>&5
17646   ac_status=$?
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); }; }; then
17649
17650                 ssl_library_ver=`cat conftest.ssllibver`
17651                 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
17652 echo "${ECHO_T}$ssl_library_ver" >&6; }
17653
17654 else
17655   echo "$as_me: program exited with status $ac_status" >&5
17656 echo "$as_me: failed program was:" >&5
17657 sed 's/^/| /' conftest.$ac_ext >&5
17658
17659 ( exit $ac_status )
17660
17661                 { echo "$as_me:$LINENO: result: not found" >&5
17662 echo "${ECHO_T}not found" >&6; }
17663                 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
17664 echo "$as_me: error: OpenSSL library not found." >&2;}
17665    { (exit 1); exit 1; }; }
17666
17667 fi
17668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17669 fi
17670
17671
17672
17673 # Sanity check OpenSSL headers
17674 { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
17675 echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
17676 if test "$cross_compiling" = yes; then
17677
17678                 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17679 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17680
17681
17682 else
17683   cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17689
17690 #include <string.h>
17691 #include <openssl/opensslv.h>
17692 int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
17693
17694 _ACEOF
17695 rm -f conftest$ac_exeext
17696 if { (ac_try="$ac_link"
17697 case "(($ac_try" in
17698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699   *) ac_try_echo=$ac_try;;
17700 esac
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702   (eval "$ac_link") 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17706   { (case "(($ac_try" in
17707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708   *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711   (eval "$ac_try") 2>&5
17712   ac_status=$?
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); }; }; then
17715
17716                 { echo "$as_me:$LINENO: result: yes" >&5
17717 echo "${ECHO_T}yes" >&6; }
17718
17719 else
17720   echo "$as_me: program exited with status $ac_status" >&5
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17723
17724 ( exit $ac_status )
17725
17726                 { echo "$as_me:$LINENO: result: no" >&5
17727 echo "${ECHO_T}no" >&6; }
17728                 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library.
17729 Check config.log for details.
17730 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
17731 echo "$as_me: error: Your OpenSSL headers do not match your library.
17732 Check config.log for details.
17733 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
17734    { (exit 1); exit 1; }; }
17735
17736 fi
17737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17738 fi
17739
17740
17741
17742 { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
17743 echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
17744 cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h.  */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h.  */
17750
17751 #include <openssl/evp.h>
17752 int main(void) { SSLeay_add_all_algorithms(); }
17753
17754 _ACEOF
17755 rm -f conftest.$ac_objext conftest$ac_exeext
17756 if { (ac_try="$ac_link"
17757 case "(($ac_try" in
17758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759   *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762   (eval "$ac_link") 2>conftest.er1
17763   ac_status=$?
17764   grep -v '^ *+' conftest.er1 >conftest.err
17765   rm -f conftest.er1
17766   cat conftest.err >&5
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); } &&
17769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17770   { (case "(($ac_try" in
17771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772   *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775   (eval "$ac_try") 2>&5
17776   ac_status=$?
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); }; } &&
17779          { ac_try='test -s conftest$ac_exeext'
17780   { (case "(($ac_try" in
17781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782   *) ac_try_echo=$ac_try;;
17783 esac
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785   (eval "$ac_try") 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; }; then
17789
17790                 { echo "$as_me:$LINENO: result: yes" >&5
17791 echo "${ECHO_T}yes" >&6; }
17792
17793 else
17794   echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17796
17797
17798                 { echo "$as_me:$LINENO: result: no" >&5
17799 echo "${ECHO_T}no" >&6; }
17800                 saved_LIBS="$LIBS"
17801                 LIBS="$LIBS -ldl"
17802                 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
17803 echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
17804                 cat >conftest.$ac_ext <<_ACEOF
17805 /* confdefs.h.  */
17806 _ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h.  */
17810
17811 #include <openssl/evp.h>
17812 int main(void) { SSLeay_add_all_algorithms(); }
17813
17814 _ACEOF
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (ac_try="$ac_link"
17817 case "(($ac_try" in
17818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819   *) ac_try_echo=$ac_try;;
17820 esac
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822   (eval "$ac_link") 2>conftest.er1
17823   ac_status=$?
17824   grep -v '^ *+' conftest.er1 >conftest.err
17825   rm -f conftest.er1
17826   cat conftest.err >&5
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); } &&
17829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17830   { (case "(($ac_try" in
17831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832   *) ac_try_echo=$ac_try;;
17833 esac
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835   (eval "$ac_try") 2>&5
17836   ac_status=$?
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); }; } &&
17839          { ac_try='test -s conftest$ac_exeext'
17840   { (case "(($ac_try" in
17841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842   *) ac_try_echo=$ac_try;;
17843 esac
17844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17845   (eval "$ac_try") 2>&5
17846   ac_status=$?
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); }; }; then
17849
17850                                 { echo "$as_me:$LINENO: result: yes" >&5
17851 echo "${ECHO_T}yes" >&6; }
17852
17853 else
17854   echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17856
17857
17858                                 { echo "$as_me:$LINENO: result: no" >&5
17859 echo "${ECHO_T}no" >&6; }
17860                                 LIBS="$saved_LIBS"
17861
17862
17863 fi
17864
17865 rm -f core conftest.err conftest.$ac_objext \
17866       conftest$ac_exeext conftest.$ac_ext
17867
17868
17869 fi
17870
17871 rm -f core conftest.err conftest.$ac_objext \
17872       conftest$ac_exeext conftest.$ac_ext
17873
17874
17875 # Check whether --with-ssl-engine was given.
17876 if test "${with_ssl_engine+set}" = set; then
17877   withval=$with_ssl_engine;  if test "x$withval" != "xno" ; then
17878                 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
17879 echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
17880                 cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h.  */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h.  */
17886  #include <openssl/engine.h>
17887 int
17888 main ()
17889 {
17890
17891 int main(void){ENGINE_load_builtin_engines();ENGINE_register_all_complete();}
17892
17893   ;
17894   return 0;
17895 }
17896 _ACEOF
17897 rm -f conftest.$ac_objext
17898 if { (ac_try="$ac_compile"
17899 case "(($ac_try" in
17900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901   *) ac_try_echo=$ac_try;;
17902 esac
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904   (eval "$ac_compile") 2>conftest.er1
17905   ac_status=$?
17906   grep -v '^ *+' conftest.er1 >conftest.err
17907   rm -f conftest.er1
17908   cat conftest.err >&5
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); } &&
17911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17912   { (case "(($ac_try" in
17913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914   *) ac_try_echo=$ac_try;;
17915 esac
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917   (eval "$ac_try") 2>&5
17918   ac_status=$?
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); }; } &&
17921          { ac_try='test -s conftest.$ac_objext'
17922   { (case "(($ac_try" in
17923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924   *) ac_try_echo=$ac_try;;
17925 esac
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927   (eval "$ac_try") 2>&5
17928   ac_status=$?
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); }; }; then
17931    { echo "$as_me:$LINENO: result: yes" >&5
17932 echo "${ECHO_T}yes" >&6; }
17933
17934 cat >>confdefs.h <<\_ACEOF
17935 #define USE_OPENSSL_ENGINE 1
17936 _ACEOF
17937
17938
17939 else
17940   echo "$as_me: failed program was:" >&5
17941 sed 's/^/| /' conftest.$ac_ext >&5
17942
17943          { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
17944 echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
17945    { (exit 1); exit 1; }; }
17946
17947 fi
17948
17949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17950           fi
17951
17952 fi
17953
17954
17955 # Check for OpenSSL without EVP_aes_{192,256}_cbc
17956 { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
17957 echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
17958 cat >conftest.$ac_ext <<_ACEOF
17959 /* confdefs.h.  */
17960 _ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h.  */
17964
17965 #include <string.h>
17966 #include <openssl/evp.h>
17967 int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
17968
17969 _ACEOF
17970 rm -f conftest.$ac_objext conftest$ac_exeext
17971 if { (ac_try="$ac_link"
17972 case "(($ac_try" in
17973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974   *) ac_try_echo=$ac_try;;
17975 esac
17976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17977   (eval "$ac_link") 2>conftest.er1
17978   ac_status=$?
17979   grep -v '^ *+' conftest.er1 >conftest.err
17980   rm -f conftest.er1
17981   cat conftest.err >&5
17982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); } &&
17984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17985   { (case "(($ac_try" in
17986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987   *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990   (eval "$ac_try") 2>&5
17991   ac_status=$?
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); }; } &&
17994          { ac_try='test -s conftest$ac_exeext'
17995   { (case "(($ac_try" in
17996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997   *) ac_try_echo=$ac_try;;
17998 esac
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000   (eval "$ac_try") 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); }; }; then
18004
18005                 { echo "$as_me:$LINENO: result: no" >&5
18006 echo "${ECHO_T}no" >&6; }
18007
18008 else
18009   echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18011
18012
18013                 { echo "$as_me:$LINENO: result: yes" >&5
18014 echo "${ECHO_T}yes" >&6; }
18015
18016 cat >>confdefs.h <<\_ACEOF
18017 #define OPENSSL_LOBOTOMISED_AES 1
18018 _ACEOF
18019
18020
18021
18022 fi
18023
18024 rm -f core conftest.err conftest.$ac_objext \
18025       conftest$ac_exeext conftest.$ac_ext
18026
18027 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
18028 # because the system crypt() is more featureful.
18029 if test "x$check_for_libcrypt_before" = "x1"; then
18030
18031 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18032 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18033 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18034   echo $ECHO_N "(cached) $ECHO_C" >&6
18035 else
18036   ac_check_lib_save_LIBS=$LIBS
18037 LIBS="-lcrypt  $LIBS"
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h.  */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h.  */
18044
18045 /* Override any GCC internal prototype to avoid an error.
18046    Use char because int might match the return type of a GCC
18047    builtin and then its argument prototype would still apply.  */
18048 #ifdef __cplusplus
18049 extern "C"
18050 #endif
18051 char crypt ();
18052 int
18053 main ()
18054 {
18055 return crypt ();
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (ac_try="$ac_link"
18062 case "(($ac_try" in
18063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064   *) ac_try_echo=$ac_try;;
18065 esac
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067   (eval "$ac_link") 2>conftest.er1
18068   ac_status=$?
18069   grep -v '^ *+' conftest.er1 >conftest.err
18070   rm -f conftest.er1
18071   cat conftest.err >&5
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); } &&
18074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075   { (case "(($ac_try" in
18076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077   *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080   (eval "$ac_try") 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; } &&
18084          { ac_try='test -s conftest$ac_exeext'
18085   { (case "(($ac_try" in
18086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087   *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090   (eval "$ac_try") 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; }; then
18094   ac_cv_lib_crypt_crypt=yes
18095 else
18096   echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18098
18099         ac_cv_lib_crypt_crypt=no
18100 fi
18101
18102 rm -f core conftest.err conftest.$ac_objext \
18103       conftest$ac_exeext conftest.$ac_ext
18104 LIBS=$ac_check_lib_save_LIBS
18105 fi
18106 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18107 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18108 if test $ac_cv_lib_crypt_crypt = yes; then
18109   cat >>confdefs.h <<_ACEOF
18110 #define HAVE_LIBCRYPT 1
18111 _ACEOF
18112
18113   LIBS="-lcrypt $LIBS"
18114
18115 fi
18116
18117 fi
18118
18119 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
18120 # version in OpenSSL.
18121 if test "x$check_for_libcrypt_later" = "x1"; then
18122         { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18123 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18124 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18125   echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127   ac_check_lib_save_LIBS=$LIBS
18128 LIBS="-lcrypt  $LIBS"
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h.  */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h.  */
18135
18136 /* Override any GCC internal prototype to avoid an error.
18137    Use char because int might match the return type of a GCC
18138    builtin and then its argument prototype would still apply.  */
18139 #ifdef __cplusplus
18140 extern "C"
18141 #endif
18142 char crypt ();
18143 int
18144 main ()
18145 {
18146 return crypt ();
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155   *) ac_try_echo=$ac_try;;
18156 esac
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158   (eval "$ac_link") 2>conftest.er1
18159   ac_status=$?
18160   grep -v '^ *+' conftest.er1 >conftest.err
18161   rm -f conftest.er1
18162   cat conftest.err >&5
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); } &&
18165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166   { (case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_try") 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; } &&
18175          { ac_try='test -s conftest$ac_exeext'
18176   { (case "(($ac_try" in
18177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178   *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181   (eval "$ac_try") 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; }; then
18185   ac_cv_lib_crypt_crypt=yes
18186 else
18187   echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190         ac_cv_lib_crypt_crypt=no
18191 fi
18192
18193 rm -f core conftest.err conftest.$ac_objext \
18194       conftest$ac_exeext conftest.$ac_ext
18195 LIBS=$ac_check_lib_save_LIBS
18196 fi
18197 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18198 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18199 if test $ac_cv_lib_crypt_crypt = yes; then
18200   LIBS="$LIBS -lcrypt"
18201 fi
18202
18203 fi
18204
18205 # Search for SHA256 support in libc and/or OpenSSL
18206
18207
18208 for ac_func in SHA256_Update EVP_sha256
18209 do
18210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18211 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18214   echo $ECHO_N "(cached) $ECHO_C" >&6
18215 else
18216   cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h.  */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h.  */
18222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18224 #define $ac_func innocuous_$ac_func
18225
18226 /* System header to define __stub macros and hopefully few prototypes,
18227     which can conflict with char $ac_func (); below.
18228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18229     <limits.h> exists even on freestanding compilers.  */
18230
18231 #ifdef __STDC__
18232 # include <limits.h>
18233 #else
18234 # include <assert.h>
18235 #endif
18236
18237 #undef $ac_func
18238
18239 /* Override any GCC internal prototype to avoid an error.
18240    Use char because int might match the return type of a GCC
18241    builtin and then its argument prototype would still apply.  */
18242 #ifdef __cplusplus
18243 extern "C"
18244 #endif
18245 char $ac_func ();
18246 /* The GNU C library defines this for functions which it implements
18247     to always fail with ENOSYS.  Some functions are actually named
18248     something starting with __ and the normal name is an alias.  */
18249 #if defined __stub_$ac_func || defined __stub___$ac_func
18250 choke me
18251 #endif
18252
18253 int
18254 main ()
18255 {
18256 return $ac_func ();
18257   ;
18258   return 0;
18259 }
18260 _ACEOF
18261 rm -f conftest.$ac_objext conftest$ac_exeext
18262 if { (ac_try="$ac_link"
18263 case "(($ac_try" in
18264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265   *) ac_try_echo=$ac_try;;
18266 esac
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268   (eval "$ac_link") 2>conftest.er1
18269   ac_status=$?
18270   grep -v '^ *+' conftest.er1 >conftest.err
18271   rm -f conftest.er1
18272   cat conftest.err >&5
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); } &&
18275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18276   { (case "(($ac_try" in
18277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278   *) ac_try_echo=$ac_try;;
18279 esac
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281   (eval "$ac_try") 2>&5
18282   ac_status=$?
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); }; } &&
18285          { ac_try='test -s conftest$ac_exeext'
18286   { (case "(($ac_try" in
18287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288   *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291   (eval "$ac_try") 2>&5
18292   ac_status=$?
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); }; }; then
18295   eval "$as_ac_var=yes"
18296 else
18297   echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18299
18300         eval "$as_ac_var=no"
18301 fi
18302
18303 rm -f core conftest.err conftest.$ac_objext \
18304       conftest$ac_exeext conftest.$ac_ext
18305 fi
18306 ac_res=`eval echo '${'$as_ac_var'}'`
18307                { echo "$as_me:$LINENO: result: $ac_res" >&5
18308 echo "${ECHO_T}$ac_res" >&6; }
18309 if test `eval echo '${'$as_ac_var'}'` = yes; then
18310   cat >>confdefs.h <<_ACEOF
18311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18312 _ACEOF
18313
18314 fi
18315 done
18316
18317
18318
18319 { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
18320 echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
18321 if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
18322   echo $ECHO_N "(cached) $ECHO_C" >&6
18323 else
18324   ac_check_lib_save_LIBS=$LIBS
18325 LIBS="-liaf  $LIBS"
18326 cat >conftest.$ac_ext <<_ACEOF
18327 /* confdefs.h.  */
18328 _ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h.  */
18332
18333 /* Override any GCC internal prototype to avoid an error.
18334    Use char because int might match the return type of a GCC
18335    builtin and then its argument prototype would still apply.  */
18336 #ifdef __cplusplus
18337 extern "C"
18338 #endif
18339 char ia_openinfo ();
18340 int
18341 main ()
18342 {
18343 return ia_openinfo ();
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (ac_try="$ac_link"
18350 case "(($ac_try" in
18351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352   *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355   (eval "$ac_link") 2>conftest.er1
18356   ac_status=$?
18357   grep -v '^ *+' conftest.er1 >conftest.err
18358   rm -f conftest.er1
18359   cat conftest.err >&5
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); } &&
18362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18363   { (case "(($ac_try" in
18364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365   *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368   (eval "$ac_try") 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; } &&
18372          { ac_try='test -s conftest$ac_exeext'
18373   { (case "(($ac_try" in
18374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375   *) ac_try_echo=$ac_try;;
18376 esac
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378   (eval "$ac_try") 2>&5
18379   ac_status=$?
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); }; }; then
18382   ac_cv_lib_iaf_ia_openinfo=yes
18383 else
18384   echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387         ac_cv_lib_iaf_ia_openinfo=no
18388 fi
18389
18390 rm -f core conftest.err conftest.$ac_objext \
18391       conftest$ac_exeext conftest.$ac_ext
18392 LIBS=$ac_check_lib_save_LIBS
18393 fi
18394 { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
18395 echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
18396 if test $ac_cv_lib_iaf_ia_openinfo = yes; then
18397   cat >>confdefs.h <<_ACEOF
18398 #define HAVE_LIBIAF 1
18399 _ACEOF
18400
18401   LIBS="-liaf $LIBS"
18402
18403 fi
18404
18405
18406 ### Configure cryptographic random number support
18407
18408 # Check wheter OpenSSL seeds itself
18409 { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
18410 echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
18411 if test "$cross_compiling" = yes; then
18412
18413                 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
18414 echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
18415                 # This is safe, since all recent OpenSSL versions will
18416                 # complain at runtime if not seeded correctly.
18417                 OPENSSL_SEEDS_ITSELF=yes
18418
18419
18420 else
18421   cat >conftest.$ac_ext <<_ACEOF
18422 /* confdefs.h.  */
18423 _ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h.  */
18427
18428 #include <string.h>
18429 #include <openssl/rand.h>
18430 int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
18431
18432 _ACEOF
18433 rm -f conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437   *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440   (eval "$ac_link") 2>&5
18441   ac_status=$?
18442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18444   { (case "(($ac_try" in
18445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446   *) ac_try_echo=$ac_try;;
18447 esac
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449   (eval "$ac_try") 2>&5
18450   ac_status=$?
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); }; }; then
18453
18454                 OPENSSL_SEEDS_ITSELF=yes
18455                 { echo "$as_me:$LINENO: result: yes" >&5
18456 echo "${ECHO_T}yes" >&6; }
18457
18458 else
18459   echo "$as_me: program exited with status $ac_status" >&5
18460 echo "$as_me: failed program was:" >&5
18461 sed 's/^/| /' conftest.$ac_ext >&5
18462
18463 ( exit $ac_status )
18464
18465                 { echo "$as_me:$LINENO: result: no" >&5
18466 echo "${ECHO_T}no" >&6; }
18467                 # Default to use of the rand helper if OpenSSL doesn't
18468                 # seed itself
18469                 USE_RAND_HELPER=yes
18470
18471 fi
18472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18473 fi
18474
18475
18476
18477 # Check for PAM libs
18478 PAM_MSG="no"
18479
18480 # Check whether --with-pam was given.
18481 if test "${with_pam+set}" = set; then
18482   withval=$with_pam;
18483                 if test "x$withval" != "xno" ; then
18484                         if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
18485                            test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
18486                                 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
18487 echo "$as_me: error: PAM headers not found" >&2;}
18488    { (exit 1); exit 1; }; }
18489                         fi
18490
18491                         saved_LIBS="$LIBS"
18492
18493 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18494 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18495 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18496   echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498   ac_check_lib_save_LIBS=$LIBS
18499 LIBS="-ldl  $LIBS"
18500 cat >conftest.$ac_ext <<_ACEOF
18501 /* confdefs.h.  */
18502 _ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h.  */
18506
18507 /* Override any GCC internal prototype to avoid an error.
18508    Use char because int might match the return type of a GCC
18509    builtin and then its argument prototype would still apply.  */
18510 #ifdef __cplusplus
18511 extern "C"
18512 #endif
18513 char dlopen ();
18514 int
18515 main ()
18516 {
18517 return dlopen ();
18518   ;
18519   return 0;
18520 }
18521 _ACEOF
18522 rm -f conftest.$ac_objext conftest$ac_exeext
18523 if { (ac_try="$ac_link"
18524 case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_link") 2>conftest.er1
18530   ac_status=$?
18531   grep -v '^ *+' conftest.er1 >conftest.err
18532   rm -f conftest.er1
18533   cat conftest.err >&5
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); } &&
18536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18537   { (case "(($ac_try" in
18538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539   *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542   (eval "$ac_try") 2>&5
18543   ac_status=$?
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); }; } &&
18546          { ac_try='test -s conftest$ac_exeext'
18547   { (case "(($ac_try" in
18548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549   *) ac_try_echo=$ac_try;;
18550 esac
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552   (eval "$ac_try") 2>&5
18553   ac_status=$?
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); }; }; then
18556   ac_cv_lib_dl_dlopen=yes
18557 else
18558   echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18560
18561         ac_cv_lib_dl_dlopen=no
18562 fi
18563
18564 rm -f core conftest.err conftest.$ac_objext \
18565       conftest$ac_exeext conftest.$ac_ext
18566 LIBS=$ac_check_lib_save_LIBS
18567 fi
18568 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18569 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18570 if test $ac_cv_lib_dl_dlopen = yes; then
18571   cat >>confdefs.h <<_ACEOF
18572 #define HAVE_LIBDL 1
18573 _ACEOF
18574
18575   LIBS="-ldl $LIBS"
18576
18577 fi
18578
18579
18580 { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
18581 echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
18582 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
18583   echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585   ac_check_lib_save_LIBS=$LIBS
18586 LIBS="-lpam  $LIBS"
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h.  */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h.  */
18593
18594 /* Override any GCC internal prototype to avoid an error.
18595    Use char because int might match the return type of a GCC
18596    builtin and then its argument prototype would still apply.  */
18597 #ifdef __cplusplus
18598 extern "C"
18599 #endif
18600 char pam_set_item ();
18601 int
18602 main ()
18603 {
18604 return pam_set_item ();
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613   *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616   (eval "$ac_link") 2>conftest.er1
18617   ac_status=$?
18618   grep -v '^ *+' conftest.er1 >conftest.err
18619   rm -f conftest.er1
18620   cat conftest.err >&5
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); } &&
18623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18624   { (case "(($ac_try" in
18625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626   *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629   (eval "$ac_try") 2>&5
18630   ac_status=$?
18631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632   (exit $ac_status); }; } &&
18633          { ac_try='test -s conftest$ac_exeext'
18634   { (case "(($ac_try" in
18635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636   *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639   (eval "$ac_try") 2>&5
18640   ac_status=$?
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); }; }; then
18643   ac_cv_lib_pam_pam_set_item=yes
18644 else
18645   echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18647
18648         ac_cv_lib_pam_pam_set_item=no
18649 fi
18650
18651 rm -f core conftest.err conftest.$ac_objext \
18652       conftest$ac_exeext conftest.$ac_ext
18653 LIBS=$ac_check_lib_save_LIBS
18654 fi
18655 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
18656 echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
18657 if test $ac_cv_lib_pam_pam_set_item = yes; then
18658   cat >>confdefs.h <<_ACEOF
18659 #define HAVE_LIBPAM 1
18660 _ACEOF
18661
18662   LIBS="-lpam $LIBS"
18663
18664 else
18665   { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
18666 echo "$as_me: error: *** libpam missing" >&2;}
18667    { (exit 1); exit 1; }; }
18668 fi
18669
18670
18671 for ac_func in pam_getenvlist
18672 do
18673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18677   echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679   cat >conftest.$ac_ext <<_ACEOF
18680 /* confdefs.h.  */
18681 _ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h.  */
18685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18687 #define $ac_func innocuous_$ac_func
18688
18689 /* System header to define __stub macros and hopefully few prototypes,
18690     which can conflict with char $ac_func (); below.
18691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18692     <limits.h> exists even on freestanding compilers.  */
18693
18694 #ifdef __STDC__
18695 # include <limits.h>
18696 #else
18697 # include <assert.h>
18698 #endif
18699
18700 #undef $ac_func
18701
18702 /* Override any GCC internal prototype to avoid an error.
18703    Use char because int might match the return type of a GCC
18704    builtin and then its argument prototype would still apply.  */
18705 #ifdef __cplusplus
18706 extern "C"
18707 #endif
18708 char $ac_func ();
18709 /* The GNU C library defines this for functions which it implements
18710     to always fail with ENOSYS.  Some functions are actually named
18711     something starting with __ and the normal name is an alias.  */
18712 #if defined __stub_$ac_func || defined __stub___$ac_func
18713 choke me
18714 #endif
18715
18716 int
18717 main ()
18718 {
18719 return $ac_func ();
18720   ;
18721   return 0;
18722 }
18723 _ACEOF
18724 rm -f conftest.$ac_objext conftest$ac_exeext
18725 if { (ac_try="$ac_link"
18726 case "(($ac_try" in
18727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728   *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731   (eval "$ac_link") 2>conftest.er1
18732   ac_status=$?
18733   grep -v '^ *+' conftest.er1 >conftest.err
18734   rm -f conftest.er1
18735   cat conftest.err >&5
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); } &&
18738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18739   { (case "(($ac_try" in
18740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741   *) ac_try_echo=$ac_try;;
18742 esac
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744   (eval "$ac_try") 2>&5
18745   ac_status=$?
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); }; } &&
18748          { ac_try='test -s conftest$ac_exeext'
18749   { (case "(($ac_try" in
18750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751   *) ac_try_echo=$ac_try;;
18752 esac
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754   (eval "$ac_try") 2>&5
18755   ac_status=$?
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); }; }; then
18758   eval "$as_ac_var=yes"
18759 else
18760   echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18762
18763         eval "$as_ac_var=no"
18764 fi
18765
18766 rm -f core conftest.err conftest.$ac_objext \
18767       conftest$ac_exeext conftest.$ac_ext
18768 fi
18769 ac_res=`eval echo '${'$as_ac_var'}'`
18770                { echo "$as_me:$LINENO: result: $ac_res" >&5
18771 echo "${ECHO_T}$ac_res" >&6; }
18772 if test `eval echo '${'$as_ac_var'}'` = yes; then
18773   cat >>confdefs.h <<_ACEOF
18774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18775 _ACEOF
18776
18777 fi
18778 done
18779
18780
18781 for ac_func in pam_putenv
18782 do
18783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18787   echo $ECHO_N "(cached) $ECHO_C" >&6
18788 else
18789   cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h.  */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h.  */
18795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18797 #define $ac_func innocuous_$ac_func
18798
18799 /* System header to define __stub macros and hopefully few prototypes,
18800     which can conflict with char $ac_func (); below.
18801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802     <limits.h> exists even on freestanding compilers.  */
18803
18804 #ifdef __STDC__
18805 # include <limits.h>
18806 #else
18807 # include <assert.h>
18808 #endif
18809
18810 #undef $ac_func
18811
18812 /* Override any GCC internal prototype to avoid an error.
18813    Use char because int might match the return type of a GCC
18814    builtin and then its argument prototype would still apply.  */
18815 #ifdef __cplusplus
18816 extern "C"
18817 #endif
18818 char $ac_func ();
18819 /* The GNU C library defines this for functions which it implements
18820     to always fail with ENOSYS.  Some functions are actually named
18821     something starting with __ and the normal name is an alias.  */
18822 #if defined __stub_$ac_func || defined __stub___$ac_func
18823 choke me
18824 #endif
18825
18826 int
18827 main ()
18828 {
18829 return $ac_func ();
18830   ;
18831   return 0;
18832 }
18833 _ACEOF
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838   *) ac_try_echo=$ac_try;;
18839 esac
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841   (eval "$ac_link") 2>conftest.er1
18842   ac_status=$?
18843   grep -v '^ *+' conftest.er1 >conftest.err
18844   rm -f conftest.er1
18845   cat conftest.err >&5
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); } &&
18848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849   { (case "(($ac_try" in
18850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851   *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854   (eval "$ac_try") 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); }; } &&
18858          { ac_try='test -s conftest$ac_exeext'
18859   { (case "(($ac_try" in
18860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861   *) ac_try_echo=$ac_try;;
18862 esac
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864   (eval "$ac_try") 2>&5
18865   ac_status=$?
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); }; }; then
18868   eval "$as_ac_var=yes"
18869 else
18870   echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873         eval "$as_ac_var=no"
18874 fi
18875
18876 rm -f core conftest.err conftest.$ac_objext \
18877       conftest$ac_exeext conftest.$ac_ext
18878 fi
18879 ac_res=`eval echo '${'$as_ac_var'}'`
18880                { echo "$as_me:$LINENO: result: $ac_res" >&5
18881 echo "${ECHO_T}$ac_res" >&6; }
18882 if test `eval echo '${'$as_ac_var'}'` = yes; then
18883   cat >>confdefs.h <<_ACEOF
18884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18885 _ACEOF
18886
18887 fi
18888 done
18889
18890                         LIBS="$saved_LIBS"
18891
18892                         PAM_MSG="yes"
18893
18894                         LIBPAM="-lpam"
18895
18896 cat >>confdefs.h <<\_ACEOF
18897 #define USE_PAM 1
18898 _ACEOF
18899
18900
18901                         if test $ac_cv_lib_dl_dlopen = yes; then
18902                                 case "$LIBS" in
18903                                 *-ldl*)
18904                                         # libdl already in LIBS
18905                                         ;;
18906                                 *)
18907                                         LIBPAM="$LIBPAM -ldl"
18908                                         ;;
18909                                 esac
18910                         fi
18911
18912                 fi
18913
18914
18915 fi
18916
18917
18918 # Check for older PAM
18919 if test "x$PAM_MSG" = "xyes" ; then
18920         # Check PAM strerror arguments (old PAM)
18921         { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
18922 echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
18923         cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h.  */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h.  */
18929
18930 #include <stdlib.h>
18931 #if defined(HAVE_SECURITY_PAM_APPL_H)
18932 #include <security/pam_appl.h>
18933 #elif defined (HAVE_PAM_PAM_APPL_H)
18934 #include <pam/pam_appl.h>
18935 #endif
18936
18937 int
18938 main ()
18939 {
18940 (void)pam_strerror((pam_handle_t *)NULL, -1);
18941   ;
18942   return 0;
18943 }
18944 _ACEOF
18945 rm -f conftest.$ac_objext
18946 if { (ac_try="$ac_compile"
18947 case "(($ac_try" in
18948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949   *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952   (eval "$ac_compile") 2>conftest.er1
18953   ac_status=$?
18954   grep -v '^ *+' conftest.er1 >conftest.err
18955   rm -f conftest.er1
18956   cat conftest.err >&5
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); } &&
18959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18960   { (case "(($ac_try" in
18961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962   *) ac_try_echo=$ac_try;;
18963 esac
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965   (eval "$ac_try") 2>&5
18966   ac_status=$?
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); }; } &&
18969          { ac_try='test -s conftest.$ac_objext'
18970   { (case "(($ac_try" in
18971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972   *) ac_try_echo=$ac_try;;
18973 esac
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975   (eval "$ac_try") 2>&5
18976   ac_status=$?
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); }; }; then
18979   { echo "$as_me:$LINENO: result: no" >&5
18980 echo "${ECHO_T}no" >&6; }
18981 else
18982   echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18984
18985
18986
18987 cat >>confdefs.h <<\_ACEOF
18988 #define HAVE_OLD_PAM 1
18989 _ACEOF
18990
18991                         { echo "$as_me:$LINENO: result: yes" >&5
18992 echo "${ECHO_T}yes" >&6; }
18993                         PAM_MSG="yes (old library)"
18994
18995
18996 fi
18997
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 fi
19000
19001 # Do we want to force the use of the rand helper?
19002
19003 # Check whether --with-rand-helper was given.
19004 if test "${with_rand_helper+set}" = set; then
19005   withval=$with_rand_helper;
19006                 if test "x$withval" = "xno" ; then
19007                         # Force use of OpenSSL's internal RNG, even if
19008                         # the previous test showed it to be unseeded.
19009                         if test -z "$OPENSSL_SEEDS_ITSELF" ; then
19010                                 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
19011 echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
19012                                 OPENSSL_SEEDS_ITSELF=yes
19013                                 USE_RAND_HELPER=""
19014                         fi
19015                 else
19016                         USE_RAND_HELPER=yes
19017                 fi
19018
19019 fi
19020
19021
19022 # Which randomness source do we use?
19023 if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
19024         # OpenSSL only
19025
19026 cat >>confdefs.h <<\_ACEOF
19027 #define OPENSSL_PRNG_ONLY 1
19028 _ACEOF
19029
19030         RAND_MSG="OpenSSL internal ONLY"
19031         INSTALL_SSH_RAND_HELPER=""
19032 elif test ! -z "$USE_RAND_HELPER" ; then
19033         # install rand helper
19034         RAND_MSG="ssh-rand-helper"
19035         INSTALL_SSH_RAND_HELPER="yes"
19036 fi
19037
19038
19039 ### Configuration of ssh-rand-helper
19040
19041 # PRNGD TCP socket
19042
19043 # Check whether --with-prngd-port was given.
19044 if test "${with_prngd_port+set}" = set; then
19045   withval=$with_prngd_port;
19046                 case "$withval" in
19047                 no)
19048                         withval=""
19049                         ;;
19050                 [0-9]*)
19051                         ;;
19052                 *)
19053                         { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
19054 echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
19055    { (exit 1); exit 1; }; }
19056                         ;;
19057                 esac
19058                 if test ! -z "$withval" ; then
19059                         PRNGD_PORT="$withval"
19060
19061 cat >>confdefs.h <<_ACEOF
19062 #define PRNGD_PORT $PRNGD_PORT
19063 _ACEOF
19064
19065                 fi
19066
19067
19068 fi
19069
19070
19071 # PRNGD Unix domain socket
19072
19073 # Check whether --with-prngd-socket was given.
19074 if test "${with_prngd_socket+set}" = set; then
19075   withval=$with_prngd_socket;
19076                 case "$withval" in
19077                 yes)
19078                         withval="/var/run/egd-pool"
19079                         ;;
19080                 no)
19081                         withval=""
19082                         ;;
19083                 /*)
19084                         ;;
19085                 *)
19086                         { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
19087 echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
19088    { (exit 1); exit 1; }; }
19089                         ;;
19090                 esac
19091
19092                 if test ! -z "$withval" ; then
19093                         if test ! -z "$PRNGD_PORT" ; then
19094                                 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
19095 echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
19096    { (exit 1); exit 1; }; }
19097                         fi
19098                         if test ! -r "$withval" ; then
19099                                 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
19100 echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
19101                         fi
19102                         PRNGD_SOCKET="$withval"
19103
19104 cat >>confdefs.h <<_ACEOF
19105 #define PRNGD_SOCKET "$PRNGD_SOCKET"
19106 _ACEOF
19107
19108                 fi
19109
19110 else
19111
19112                 # Check for existing socket only if we don't have a random device already
19113                 if test "$USE_RAND_HELPER" = yes ; then
19114                         { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
19115 echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
19116                         # Insert other locations here
19117                         for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
19118                                 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
19119                                         PRNGD_SOCKET="$sock"
19120                                         cat >>confdefs.h <<_ACEOF
19121 #define PRNGD_SOCKET "$PRNGD_SOCKET"
19122 _ACEOF
19123
19124                                         break;
19125                                 fi
19126                         done
19127                         if test ! -z "$PRNGD_SOCKET" ; then
19128                                 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
19129 echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
19130                         else
19131                                 { echo "$as_me:$LINENO: result: not found" >&5
19132 echo "${ECHO_T}not found" >&6; }
19133                         fi
19134                 fi
19135
19136
19137 fi
19138
19139
19140 # Change default command timeout for hashing entropy source
19141 entropy_timeout=200
19142
19143 # Check whether --with-entropy-timeout was given.
19144 if test "${with_entropy_timeout+set}" = set; then
19145   withval=$with_entropy_timeout;
19146                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
19147                     test "x${withval}" != "xyes"; then
19148                         entropy_timeout=$withval
19149                 fi
19150
19151
19152 fi
19153
19154
19155 cat >>confdefs.h <<_ACEOF
19156 #define ENTROPY_TIMEOUT_MSEC $entropy_timeout
19157 _ACEOF
19158
19159
19160 SSH_PRIVSEP_USER=sshd
19161
19162 # Check whether --with-privsep-user was given.
19163 if test "${with_privsep_user+set}" = set; then
19164   withval=$with_privsep_user;
19165                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
19166                     test "x${withval}" != "xyes"; then
19167                         SSH_PRIVSEP_USER=$withval
19168                 fi
19169
19170
19171 fi
19172
19173
19174 cat >>confdefs.h <<_ACEOF
19175 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
19176 _ACEOF
19177
19178
19179
19180 # We do this little dance with the search path to insure
19181 # that programs that we select for use by installed programs
19182 # (which may be run by the super-user) come from trusted
19183 # locations before they come from the user's private area.
19184 # This should help avoid accidentally configuring some
19185 # random version of a program in someone's personal bin.
19186
19187 OPATH=$PATH
19188 PATH=/bin:/usr/bin
19189 test -h /bin 2> /dev/null && PATH=/usr/bin
19190 test -d /sbin && PATH=$PATH:/sbin
19191 test -d /usr/sbin && PATH=$PATH:/usr/sbin
19192 PATH=$PATH:/etc:$OPATH
19193
19194 # These programs are used by the command hashing source to gather entropy
19195
19196         # Extract the first word of "ls", so it can be a program name with args.
19197 set dummy ls; ac_word=$2
19198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19200 if test "${ac_cv_path_PROG_LS+set}" = set; then
19201   echo $ECHO_N "(cached) $ECHO_C" >&6
19202 else
19203   case $PROG_LS in
19204   [\\/]* | ?:[\\/]*)
19205   ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
19206   ;;
19207   *)
19208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19209 for as_dir in $PATH
19210 do
19211   IFS=$as_save_IFS
19212   test -z "$as_dir" && as_dir=.
19213   for ac_exec_ext in '' $ac_executable_extensions; do
19214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19215     ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
19216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19217     break 2
19218   fi
19219 done
19220 done
19221 IFS=$as_save_IFS
19222
19223   ;;
19224 esac
19225 fi
19226 PROG_LS=$ac_cv_path_PROG_LS
19227 if test -n "$PROG_LS"; then
19228   { echo "$as_me:$LINENO: result: $PROG_LS" >&5
19229 echo "${ECHO_T}$PROG_LS" >&6; }
19230 else
19231   { echo "$as_me:$LINENO: result: no" >&5
19232 echo "${ECHO_T}no" >&6; }
19233 fi
19234
19235
19236         if test -z "$PROG_LS" ; then
19237                 PROG_LS="undef"
19238         fi
19239
19240
19241
19242         # Extract the first word of "netstat", so it can be a program name with args.
19243 set dummy netstat; ac_word=$2
19244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19246 if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
19247   echo $ECHO_N "(cached) $ECHO_C" >&6
19248 else
19249   case $PROG_NETSTAT in
19250   [\\/]* | ?:[\\/]*)
19251   ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
19252   ;;
19253   *)
19254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19255 for as_dir in $PATH
19256 do
19257   IFS=$as_save_IFS
19258   test -z "$as_dir" && as_dir=.
19259   for ac_exec_ext in '' $ac_executable_extensions; do
19260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19261     ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
19262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19263     break 2
19264   fi
19265 done
19266 done
19267 IFS=$as_save_IFS
19268
19269   ;;
19270 esac
19271 fi
19272 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
19273 if test -n "$PROG_NETSTAT"; then
19274   { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
19275 echo "${ECHO_T}$PROG_NETSTAT" >&6; }
19276 else
19277   { echo "$as_me:$LINENO: result: no" >&5
19278 echo "${ECHO_T}no" >&6; }
19279 fi
19280
19281
19282         if test -z "$PROG_NETSTAT" ; then
19283                 PROG_NETSTAT="undef"
19284         fi
19285
19286
19287
19288         # Extract the first word of "arp", so it can be a program name with args.
19289 set dummy arp; ac_word=$2
19290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19292 if test "${ac_cv_path_PROG_ARP+set}" = set; then
19293   echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295   case $PROG_ARP in
19296   [\\/]* | ?:[\\/]*)
19297   ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
19298   ;;
19299   *)
19300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19301 for as_dir in $PATH
19302 do
19303   IFS=$as_save_IFS
19304   test -z "$as_dir" && as_dir=.
19305   for ac_exec_ext in '' $ac_executable_extensions; do
19306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19307     ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
19308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19309     break 2
19310   fi
19311 done
19312 done
19313 IFS=$as_save_IFS
19314
19315   ;;
19316 esac
19317 fi
19318 PROG_ARP=$ac_cv_path_PROG_ARP
19319 if test -n "$PROG_ARP"; then
19320   { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
19321 echo "${ECHO_T}$PROG_ARP" >&6; }
19322 else
19323   { echo "$as_me:$LINENO: result: no" >&5
19324 echo "${ECHO_T}no" >&6; }
19325 fi
19326
19327
19328         if test -z "$PROG_ARP" ; then
19329                 PROG_ARP="undef"
19330         fi
19331
19332
19333
19334         # Extract the first word of "ifconfig", so it can be a program name with args.
19335 set dummy ifconfig; ac_word=$2
19336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19338 if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
19339   echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341   case $PROG_IFCONFIG in
19342   [\\/]* | ?:[\\/]*)
19343   ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
19344   ;;
19345   *)
19346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19347 for as_dir in $PATH
19348 do
19349   IFS=$as_save_IFS
19350   test -z "$as_dir" && as_dir=.
19351   for ac_exec_ext in '' $ac_executable_extensions; do
19352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19353     ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
19354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19355     break 2
19356   fi
19357 done
19358 done
19359 IFS=$as_save_IFS
19360
19361   ;;
19362 esac
19363 fi
19364 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
19365 if test -n "$PROG_IFCONFIG"; then
19366   { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
19367 echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
19368 else
19369   { echo "$as_me:$LINENO: result: no" >&5
19370 echo "${ECHO_T}no" >&6; }
19371 fi
19372
19373
19374         if test -z "$PROG_IFCONFIG" ; then
19375                 PROG_IFCONFIG="undef"
19376         fi
19377
19378
19379
19380         # Extract the first word of "jstat", so it can be a program name with args.
19381 set dummy jstat; ac_word=$2
19382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19384 if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
19385   echo $ECHO_N "(cached) $ECHO_C" >&6
19386 else
19387   case $PROG_JSTAT in
19388   [\\/]* | ?:[\\/]*)
19389   ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
19390   ;;
19391   *)
19392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19393 for as_dir in $PATH
19394 do
19395   IFS=$as_save_IFS
19396   test -z "$as_dir" && as_dir=.
19397   for ac_exec_ext in '' $ac_executable_extensions; do
19398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19399     ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
19400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19401     break 2
19402   fi
19403 done
19404 done
19405 IFS=$as_save_IFS
19406
19407   ;;
19408 esac
19409 fi
19410 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
19411 if test -n "$PROG_JSTAT"; then
19412   { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
19413 echo "${ECHO_T}$PROG_JSTAT" >&6; }
19414 else
19415   { echo "$as_me:$LINENO: result: no" >&5
19416 echo "${ECHO_T}no" >&6; }
19417 fi
19418
19419
19420         if test -z "$PROG_JSTAT" ; then
19421                 PROG_JSTAT="undef"
19422         fi
19423
19424
19425
19426         # Extract the first word of "ps", so it can be a program name with args.
19427 set dummy ps; ac_word=$2
19428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19430 if test "${ac_cv_path_PROG_PS+set}" = set; then
19431   echo $ECHO_N "(cached) $ECHO_C" >&6
19432 else
19433   case $PROG_PS in
19434   [\\/]* | ?:[\\/]*)
19435   ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
19436   ;;
19437   *)
19438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19439 for as_dir in $PATH
19440 do
19441   IFS=$as_save_IFS
19442   test -z "$as_dir" && as_dir=.
19443   for ac_exec_ext in '' $ac_executable_extensions; do
19444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19445     ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
19446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19447     break 2
19448   fi
19449 done
19450 done
19451 IFS=$as_save_IFS
19452
19453   ;;
19454 esac
19455 fi
19456 PROG_PS=$ac_cv_path_PROG_PS
19457 if test -n "$PROG_PS"; then
19458   { echo "$as_me:$LINENO: result: $PROG_PS" >&5
19459 echo "${ECHO_T}$PROG_PS" >&6; }
19460 else
19461   { echo "$as_me:$LINENO: result: no" >&5
19462 echo "${ECHO_T}no" >&6; }
19463 fi
19464
19465
19466         if test -z "$PROG_PS" ; then
19467                 PROG_PS="undef"
19468         fi
19469
19470
19471
19472         # Extract the first word of "sar", so it can be a program name with args.
19473 set dummy sar; ac_word=$2
19474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19476 if test "${ac_cv_path_PROG_SAR+set}" = set; then
19477   echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479   case $PROG_SAR in
19480   [\\/]* | ?:[\\/]*)
19481   ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
19482   ;;
19483   *)
19484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19485 for as_dir in $PATH
19486 do
19487   IFS=$as_save_IFS
19488   test -z "$as_dir" && as_dir=.
19489   for ac_exec_ext in '' $ac_executable_extensions; do
19490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19491     ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
19492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19493     break 2
19494   fi
19495 done
19496 done
19497 IFS=$as_save_IFS
19498
19499   ;;
19500 esac
19501 fi
19502 PROG_SAR=$ac_cv_path_PROG_SAR
19503 if test -n "$PROG_SAR"; then
19504   { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
19505 echo "${ECHO_T}$PROG_SAR" >&6; }
19506 else
19507   { echo "$as_me:$LINENO: result: no" >&5
19508 echo "${ECHO_T}no" >&6; }
19509 fi
19510
19511
19512         if test -z "$PROG_SAR" ; then
19513                 PROG_SAR="undef"
19514         fi
19515
19516
19517
19518         # Extract the first word of "w", so it can be a program name with args.
19519 set dummy w; ac_word=$2
19520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19522 if test "${ac_cv_path_PROG_W+set}" = set; then
19523   echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525   case $PROG_W in
19526   [\\/]* | ?:[\\/]*)
19527   ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
19528   ;;
19529   *)
19530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19531 for as_dir in $PATH
19532 do
19533   IFS=$as_save_IFS
19534   test -z "$as_dir" && as_dir=.
19535   for ac_exec_ext in '' $ac_executable_extensions; do
19536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19537     ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
19538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19539     break 2
19540   fi
19541 done
19542 done
19543 IFS=$as_save_IFS
19544
19545   ;;
19546 esac
19547 fi
19548 PROG_W=$ac_cv_path_PROG_W
19549 if test -n "$PROG_W"; then
19550   { echo "$as_me:$LINENO: result: $PROG_W" >&5
19551 echo "${ECHO_T}$PROG_W" >&6; }
19552 else
19553   { echo "$as_me:$LINENO: result: no" >&5
19554 echo "${ECHO_T}no" >&6; }
19555 fi
19556
19557
19558         if test -z "$PROG_W" ; then
19559                 PROG_W="undef"
19560         fi
19561
19562
19563
19564         # Extract the first word of "who", so it can be a program name with args.
19565 set dummy who; ac_word=$2
19566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19568 if test "${ac_cv_path_PROG_WHO+set}" = set; then
19569   echo $ECHO_N "(cached) $ECHO_C" >&6
19570 else
19571   case $PROG_WHO in
19572   [\\/]* | ?:[\\/]*)
19573   ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
19574   ;;
19575   *)
19576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19577 for as_dir in $PATH
19578 do
19579   IFS=$as_save_IFS
19580   test -z "$as_dir" && as_dir=.
19581   for ac_exec_ext in '' $ac_executable_extensions; do
19582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19583     ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
19584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19585     break 2
19586   fi
19587 done
19588 done
19589 IFS=$as_save_IFS
19590
19591   ;;
19592 esac
19593 fi
19594 PROG_WHO=$ac_cv_path_PROG_WHO
19595 if test -n "$PROG_WHO"; then
19596   { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
19597 echo "${ECHO_T}$PROG_WHO" >&6; }
19598 else
19599   { echo "$as_me:$LINENO: result: no" >&5
19600 echo "${ECHO_T}no" >&6; }
19601 fi
19602
19603
19604         if test -z "$PROG_WHO" ; then
19605                 PROG_WHO="undef"
19606         fi
19607
19608
19609
19610         # Extract the first word of "last", so it can be a program name with args.
19611 set dummy last; ac_word=$2
19612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19614 if test "${ac_cv_path_PROG_LAST+set}" = set; then
19615   echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617   case $PROG_LAST in
19618   [\\/]* | ?:[\\/]*)
19619   ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
19620   ;;
19621   *)
19622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19623 for as_dir in $PATH
19624 do
19625   IFS=$as_save_IFS
19626   test -z "$as_dir" && as_dir=.
19627   for ac_exec_ext in '' $ac_executable_extensions; do
19628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19629     ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
19630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19631     break 2
19632   fi
19633 done
19634 done
19635 IFS=$as_save_IFS
19636
19637   ;;
19638 esac
19639 fi
19640 PROG_LAST=$ac_cv_path_PROG_LAST
19641 if test -n "$PROG_LAST"; then
19642   { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
19643 echo "${ECHO_T}$PROG_LAST" >&6; }
19644 else
19645   { echo "$as_me:$LINENO: result: no" >&5
19646 echo "${ECHO_T}no" >&6; }
19647 fi
19648
19649
19650         if test -z "$PROG_LAST" ; then
19651                 PROG_LAST="undef"
19652         fi
19653
19654
19655
19656         # Extract the first word of "lastlog", so it can be a program name with args.
19657 set dummy lastlog; ac_word=$2
19658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19660 if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
19661   echo $ECHO_N "(cached) $ECHO_C" >&6
19662 else
19663   case $PROG_LASTLOG in
19664   [\\/]* | ?:[\\/]*)
19665   ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
19666   ;;
19667   *)
19668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669 for as_dir in $PATH
19670 do
19671   IFS=$as_save_IFS
19672   test -z "$as_dir" && as_dir=.
19673   for ac_exec_ext in '' $ac_executable_extensions; do
19674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19675     ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
19676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19677     break 2
19678   fi
19679 done
19680 done
19681 IFS=$as_save_IFS
19682
19683   ;;
19684 esac
19685 fi
19686 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
19687 if test -n "$PROG_LASTLOG"; then
19688   { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
19689 echo "${ECHO_T}$PROG_LASTLOG" >&6; }
19690 else
19691   { echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6; }
19693 fi
19694
19695
19696         if test -z "$PROG_LASTLOG" ; then
19697                 PROG_LASTLOG="undef"
19698         fi
19699
19700
19701
19702         # Extract the first word of "df", so it can be a program name with args.
19703 set dummy df; ac_word=$2
19704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19706 if test "${ac_cv_path_PROG_DF+set}" = set; then
19707   echo $ECHO_N "(cached) $ECHO_C" >&6
19708 else
19709   case $PROG_DF in
19710   [\\/]* | ?:[\\/]*)
19711   ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
19712   ;;
19713   *)
19714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19715 for as_dir in $PATH
19716 do
19717   IFS=$as_save_IFS
19718   test -z "$as_dir" && as_dir=.
19719   for ac_exec_ext in '' $ac_executable_extensions; do
19720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19721     ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
19722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19723     break 2
19724   fi
19725 done
19726 done
19727 IFS=$as_save_IFS
19728
19729   ;;
19730 esac
19731 fi
19732 PROG_DF=$ac_cv_path_PROG_DF
19733 if test -n "$PROG_DF"; then
19734   { echo "$as_me:$LINENO: result: $PROG_DF" >&5
19735 echo "${ECHO_T}$PROG_DF" >&6; }
19736 else
19737   { echo "$as_me:$LINENO: result: no" >&5
19738 echo "${ECHO_T}no" >&6; }
19739 fi
19740
19741
19742         if test -z "$PROG_DF" ; then
19743                 PROG_DF="undef"
19744         fi
19745
19746
19747
19748         # Extract the first word of "vmstat", so it can be a program name with args.
19749 set dummy vmstat; ac_word=$2
19750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19752 if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
19753   echo $ECHO_N "(cached) $ECHO_C" >&6
19754 else
19755   case $PROG_VMSTAT in
19756   [\\/]* | ?:[\\/]*)
19757   ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
19758   ;;
19759   *)
19760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761 for as_dir in $PATH
19762 do
19763   IFS=$as_save_IFS
19764   test -z "$as_dir" && as_dir=.
19765   for ac_exec_ext in '' $ac_executable_extensions; do
19766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19767     ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
19768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19769     break 2
19770   fi
19771 done
19772 done
19773 IFS=$as_save_IFS
19774
19775   ;;
19776 esac
19777 fi
19778 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
19779 if test -n "$PROG_VMSTAT"; then
19780   { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
19781 echo "${ECHO_T}$PROG_VMSTAT" >&6; }
19782 else
19783   { echo "$as_me:$LINENO: result: no" >&5
19784 echo "${ECHO_T}no" >&6; }
19785 fi
19786
19787
19788         if test -z "$PROG_VMSTAT" ; then
19789                 PROG_VMSTAT="undef"
19790         fi
19791
19792
19793
19794         # Extract the first word of "uptime", so it can be a program name with args.
19795 set dummy uptime; ac_word=$2
19796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19798 if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801   case $PROG_UPTIME in
19802   [\\/]* | ?:[\\/]*)
19803   ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
19804   ;;
19805   *)
19806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19807 for as_dir in $PATH
19808 do
19809   IFS=$as_save_IFS
19810   test -z "$as_dir" && as_dir=.
19811   for ac_exec_ext in '' $ac_executable_extensions; do
19812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19813     ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
19814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19815     break 2
19816   fi
19817 done
19818 done
19819 IFS=$as_save_IFS
19820
19821   ;;
19822 esac
19823 fi
19824 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
19825 if test -n "$PROG_UPTIME"; then
19826   { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
19827 echo "${ECHO_T}$PROG_UPTIME" >&6; }
19828 else
19829   { echo "$as_me:$LINENO: result: no" >&5
19830 echo "${ECHO_T}no" >&6; }
19831 fi
19832
19833
19834         if test -z "$PROG_UPTIME" ; then
19835                 PROG_UPTIME="undef"
19836         fi
19837
19838
19839
19840         # Extract the first word of "ipcs", so it can be a program name with args.
19841 set dummy ipcs; ac_word=$2
19842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19844 if test "${ac_cv_path_PROG_IPCS+set}" = set; then
19845   echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847   case $PROG_IPCS in
19848   [\\/]* | ?:[\\/]*)
19849   ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
19850   ;;
19851   *)
19852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19853 for as_dir in $PATH
19854 do
19855   IFS=$as_save_IFS
19856   test -z "$as_dir" && as_dir=.
19857   for ac_exec_ext in '' $ac_executable_extensions; do
19858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19859     ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
19860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19861     break 2
19862   fi
19863 done
19864 done
19865 IFS=$as_save_IFS
19866
19867   ;;
19868 esac
19869 fi
19870 PROG_IPCS=$ac_cv_path_PROG_IPCS
19871 if test -n "$PROG_IPCS"; then
19872   { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
19873 echo "${ECHO_T}$PROG_IPCS" >&6; }
19874 else
19875   { echo "$as_me:$LINENO: result: no" >&5
19876 echo "${ECHO_T}no" >&6; }
19877 fi
19878
19879
19880         if test -z "$PROG_IPCS" ; then
19881                 PROG_IPCS="undef"
19882         fi
19883
19884
19885
19886         # Extract the first word of "tail", so it can be a program name with args.
19887 set dummy tail; ac_word=$2
19888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19890 if test "${ac_cv_path_PROG_TAIL+set}" = set; then
19891   echo $ECHO_N "(cached) $ECHO_C" >&6
19892 else
19893   case $PROG_TAIL in
19894   [\\/]* | ?:[\\/]*)
19895   ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
19896   ;;
19897   *)
19898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19899 for as_dir in $PATH
19900 do
19901   IFS=$as_save_IFS
19902   test -z "$as_dir" && as_dir=.
19903   for ac_exec_ext in '' $ac_executable_extensions; do
19904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19905     ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
19906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19907     break 2
19908   fi
19909 done
19910 done
19911 IFS=$as_save_IFS
19912
19913   ;;
19914 esac
19915 fi
19916 PROG_TAIL=$ac_cv_path_PROG_TAIL
19917 if test -n "$PROG_TAIL"; then
19918   { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
19919 echo "${ECHO_T}$PROG_TAIL" >&6; }
19920 else
19921   { echo "$as_me:$LINENO: result: no" >&5
19922 echo "${ECHO_T}no" >&6; }
19923 fi
19924
19925
19926         if test -z "$PROG_TAIL" ; then
19927                 PROG_TAIL="undef"
19928         fi
19929
19930
19931 # restore PATH
19932 PATH=$OPATH
19933
19934 # Where does ssh-rand-helper get its randomness from?
19935 INSTALL_SSH_PRNG_CMDS=""
19936 if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
19937         if test ! -z "$PRNGD_PORT" ; then
19938                 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
19939         elif test ! -z "$PRNGD_SOCKET" ; then
19940                 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
19941         else
19942                 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
19943                 RAND_HELPER_CMDHASH=yes
19944                 INSTALL_SSH_PRNG_CMDS="yes"
19945         fi
19946 fi
19947
19948
19949
19950 # Cheap hack to ensure NEWS-OS libraries are arranged right.
19951 if test ! -z "$SONY" ; then
19952   LIBS="$LIBS -liberty";
19953 fi
19954
19955 # Check for  long long datatypes
19956 { echo "$as_me:$LINENO: checking for long long" >&5
19957 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19958 if test "${ac_cv_type_long_long+set}" = set; then
19959   echo $ECHO_N "(cached) $ECHO_C" >&6
19960 else
19961   cat >conftest.$ac_ext <<_ACEOF
19962 /* confdefs.h.  */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h.  */
19967 $ac_includes_default
19968 typedef long long ac__type_new_;
19969 int
19970 main ()
19971 {
19972 if ((ac__type_new_ *) 0)
19973   return 0;
19974 if (sizeof (ac__type_new_))
19975   return 0;
19976   ;
19977   return 0;
19978 }
19979 _ACEOF
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987   (eval "$ac_compile") 2>conftest.er1
19988   ac_status=$?
19989   grep -v '^ *+' conftest.er1 >conftest.err
19990   rm -f conftest.er1
19991   cat conftest.err >&5
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); } &&
19994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19995   { (case "(($ac_try" in
19996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997   *) ac_try_echo=$ac_try;;
19998 esac
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000   (eval "$ac_try") 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; } &&
20004          { ac_try='test -s conftest.$ac_objext'
20005   { (case "(($ac_try" in
20006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007   *) ac_try_echo=$ac_try;;
20008 esac
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010   (eval "$ac_try") 2>&5
20011   ac_status=$?
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); }; }; then
20014   ac_cv_type_long_long=yes
20015 else
20016   echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20018
20019         ac_cv_type_long_long=no
20020 fi
20021
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023 fi
20024 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20025 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20026 if test $ac_cv_type_long_long = yes; then
20027
20028 cat >>confdefs.h <<_ACEOF
20029 #define HAVE_LONG_LONG 1
20030 _ACEOF
20031
20032
20033 fi
20034 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20035 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20036 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20037   echo $ECHO_N "(cached) $ECHO_C" >&6
20038 else
20039   cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h.  */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h.  */
20045 $ac_includes_default
20046 typedef unsigned long long ac__type_new_;
20047 int
20048 main ()
20049 {
20050 if ((ac__type_new_ *) 0)
20051   return 0;
20052 if (sizeof (ac__type_new_))
20053   return 0;
20054   ;
20055   return 0;
20056 }
20057 _ACEOF
20058 rm -f conftest.$ac_objext
20059 if { (ac_try="$ac_compile"
20060 case "(($ac_try" in
20061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062   *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065   (eval "$ac_compile") 2>conftest.er1
20066   ac_status=$?
20067   grep -v '^ *+' conftest.er1 >conftest.err
20068   rm -f conftest.er1
20069   cat conftest.err >&5
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } &&
20072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20073   { (case "(($ac_try" in
20074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075   *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078   (eval "$ac_try") 2>&5
20079   ac_status=$?
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); }; } &&
20082          { ac_try='test -s conftest.$ac_objext'
20083   { (case "(($ac_try" in
20084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085   *) ac_try_echo=$ac_try;;
20086 esac
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088   (eval "$ac_try") 2>&5
20089   ac_status=$?
20090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091   (exit $ac_status); }; }; then
20092   ac_cv_type_unsigned_long_long=yes
20093 else
20094   echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20096
20097         ac_cv_type_unsigned_long_long=no
20098 fi
20099
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20101 fi
20102 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20103 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20104 if test $ac_cv_type_unsigned_long_long = yes; then
20105
20106 cat >>confdefs.h <<_ACEOF
20107 #define HAVE_UNSIGNED_LONG_LONG 1
20108 _ACEOF
20109
20110
20111 fi
20112 { echo "$as_me:$LINENO: checking for long double" >&5
20113 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
20114 if test "${ac_cv_type_long_double+set}" = set; then
20115   echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117   cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h.  */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h.  */
20123 $ac_includes_default
20124 typedef long double ac__type_new_;
20125 int
20126 main ()
20127 {
20128 if ((ac__type_new_ *) 0)
20129   return 0;
20130 if (sizeof (ac__type_new_))
20131   return 0;
20132   ;
20133   return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (ac_try="$ac_compile"
20138 case "(($ac_try" in
20139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140   *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143   (eval "$ac_compile") 2>conftest.er1
20144   ac_status=$?
20145   grep -v '^ *+' conftest.er1 >conftest.err
20146   rm -f conftest.er1
20147   cat conftest.err >&5
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); } &&
20150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20151   { (case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_try") 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; } &&
20160          { ac_try='test -s conftest.$ac_objext'
20161   { (case "(($ac_try" in
20162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163   *) ac_try_echo=$ac_try;;
20164 esac
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166   (eval "$ac_try") 2>&5
20167   ac_status=$?
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); }; }; then
20170   ac_cv_type_long_double=yes
20171 else
20172   echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175         ac_cv_type_long_double=no
20176 fi
20177
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20179 fi
20180 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
20181 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
20182 if test $ac_cv_type_long_double = yes; then
20183
20184 cat >>confdefs.h <<_ACEOF
20185 #define HAVE_LONG_DOUBLE 1
20186 _ACEOF
20187
20188
20189 fi
20190
20191
20192 # Check datatype sizes
20193 { echo "$as_me:$LINENO: checking for char" >&5
20194 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
20195 if test "${ac_cv_type_char+set}" = set; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198   cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204 $ac_includes_default
20205 typedef char ac__type_new_;
20206 int
20207 main ()
20208 {
20209 if ((ac__type_new_ *) 0)
20210   return 0;
20211 if (sizeof (ac__type_new_))
20212   return 0;
20213   ;
20214   return 0;
20215 }
20216 _ACEOF
20217 rm -f conftest.$ac_objext
20218 if { (ac_try="$ac_compile"
20219 case "(($ac_try" in
20220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221   *) ac_try_echo=$ac_try;;
20222 esac
20223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224   (eval "$ac_compile") 2>conftest.er1
20225   ac_status=$?
20226   grep -v '^ *+' conftest.er1 >conftest.err
20227   rm -f conftest.er1
20228   cat conftest.err >&5
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); } &&
20231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20232   { (case "(($ac_try" in
20233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234   *) ac_try_echo=$ac_try;;
20235 esac
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237   (eval "$ac_try") 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); }; } &&
20241          { ac_try='test -s conftest.$ac_objext'
20242   { (case "(($ac_try" in
20243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244   *) ac_try_echo=$ac_try;;
20245 esac
20246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247   (eval "$ac_try") 2>&5
20248   ac_status=$?
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); }; }; then
20251   ac_cv_type_char=yes
20252 else
20253   echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256         ac_cv_type_char=no
20257 fi
20258
20259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20260 fi
20261 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
20262 echo "${ECHO_T}$ac_cv_type_char" >&6; }
20263
20264 { echo "$as_me:$LINENO: checking size of char" >&5
20265 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
20266 if test "${ac_cv_sizeof_char+set}" = set; then
20267   echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269   if test "$ac_cv_type_char" = yes; then
20270   # The cast to long int works around a bug in the HP C Compiler
20271   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20272   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20273   # This bug is HP SR number 8606223364.
20274   if test "$cross_compiling" = yes; then
20275   # Depending upon the size, compute the lo and hi bounds.
20276 cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h.  */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h.  */
20282 $ac_includes_default
20283                    typedef char ac__type_sizeof_;
20284 int
20285 main ()
20286 {
20287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20288 test_array [0] = 0
20289
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest.$ac_objext
20295 if { (ac_try="$ac_compile"
20296 case "(($ac_try" in
20297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298   *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301   (eval "$ac_compile") 2>conftest.er1
20302   ac_status=$?
20303   grep -v '^ *+' conftest.er1 >conftest.err
20304   rm -f conftest.er1
20305   cat conftest.err >&5
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } &&
20308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20309   { (case "(($ac_try" in
20310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311   *) ac_try_echo=$ac_try;;
20312 esac
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314   (eval "$ac_try") 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); }; } &&
20318          { ac_try='test -s conftest.$ac_objext'
20319   { (case "(($ac_try" in
20320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321   *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324   (eval "$ac_try") 2>&5
20325   ac_status=$?
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); }; }; then
20328   ac_lo=0 ac_mid=0
20329   while :; do
20330     cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20336 $ac_includes_default
20337                    typedef char ac__type_sizeof_;
20338 int
20339 main ()
20340 {
20341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20342 test_array [0] = 0
20343
20344   ;
20345   return 0;
20346 }
20347 _ACEOF
20348 rm -f conftest.$ac_objext
20349 if { (ac_try="$ac_compile"
20350 case "(($ac_try" in
20351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352   *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355   (eval "$ac_compile") 2>conftest.er1
20356   ac_status=$?
20357   grep -v '^ *+' conftest.er1 >conftest.err
20358   rm -f conftest.er1
20359   cat conftest.err >&5
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); } &&
20362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20363   { (case "(($ac_try" in
20364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365   *) ac_try_echo=$ac_try;;
20366 esac
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368   (eval "$ac_try") 2>&5
20369   ac_status=$?
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); }; } &&
20372          { ac_try='test -s conftest.$ac_objext'
20373   { (case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_try") 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; }; then
20382   ac_hi=$ac_mid; break
20383 else
20384   echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20386
20387         ac_lo=`expr $ac_mid + 1`
20388                         if test $ac_lo -le $ac_mid; then
20389                           ac_lo= ac_hi=
20390                           break
20391                         fi
20392                         ac_mid=`expr 2 '*' $ac_mid + 1`
20393 fi
20394
20395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20396   done
20397 else
20398   echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20400
20401         cat >conftest.$ac_ext <<_ACEOF
20402 /* confdefs.h.  */
20403 _ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h.  */
20407 $ac_includes_default
20408                    typedef char ac__type_sizeof_;
20409 int
20410 main ()
20411 {
20412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20413 test_array [0] = 0
20414
20415   ;
20416   return 0;
20417 }
20418 _ACEOF
20419 rm -f conftest.$ac_objext
20420 if { (ac_try="$ac_compile"
20421 case "(($ac_try" in
20422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423   *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426   (eval "$ac_compile") 2>conftest.er1
20427   ac_status=$?
20428   grep -v '^ *+' conftest.er1 >conftest.err
20429   rm -f conftest.er1
20430   cat conftest.err >&5
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); } &&
20433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20434   { (case "(($ac_try" in
20435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436   *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439   (eval "$ac_try") 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; } &&
20443          { ac_try='test -s conftest.$ac_objext'
20444   { (case "(($ac_try" in
20445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446   *) ac_try_echo=$ac_try;;
20447 esac
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449   (eval "$ac_try") 2>&5
20450   ac_status=$?
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); }; }; then
20453   ac_hi=-1 ac_mid=-1
20454   while :; do
20455     cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h.  */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h.  */
20461 $ac_includes_default
20462                    typedef char ac__type_sizeof_;
20463 int
20464 main ()
20465 {
20466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20467 test_array [0] = 0
20468
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext
20474 if { (ac_try="$ac_compile"
20475 case "(($ac_try" in
20476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477   *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480   (eval "$ac_compile") 2>conftest.er1
20481   ac_status=$?
20482   grep -v '^ *+' conftest.er1 >conftest.err
20483   rm -f conftest.er1
20484   cat conftest.err >&5
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); } &&
20487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20488   { (case "(($ac_try" in
20489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490   *) ac_try_echo=$ac_try;;
20491 esac
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493   (eval "$ac_try") 2>&5
20494   ac_status=$?
20495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496   (exit $ac_status); }; } &&
20497          { ac_try='test -s conftest.$ac_objext'
20498   { (case "(($ac_try" in
20499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500   *) ac_try_echo=$ac_try;;
20501 esac
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503   (eval "$ac_try") 2>&5
20504   ac_status=$?
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); }; }; then
20507   ac_lo=$ac_mid; break
20508 else
20509   echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512         ac_hi=`expr '(' $ac_mid ')' - 1`
20513                         if test $ac_mid -le $ac_hi; then
20514                           ac_lo= ac_hi=
20515                           break
20516                         fi
20517                         ac_mid=`expr 2 '*' $ac_mid`
20518 fi
20519
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521   done
20522 else
20523   echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526         ac_lo= ac_hi=
20527 fi
20528
20529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530 fi
20531
20532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 # Binary search between lo and hi bounds.
20534 while test "x$ac_lo" != "x$ac_hi"; do
20535   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20536   cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542 $ac_includes_default
20543                    typedef char ac__type_sizeof_;
20544 int
20545 main ()
20546 {
20547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20548 test_array [0] = 0
20549
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 rm -f conftest.$ac_objext
20555 if { (ac_try="$ac_compile"
20556 case "(($ac_try" in
20557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558   *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561   (eval "$ac_compile") 2>conftest.er1
20562   ac_status=$?
20563   grep -v '^ *+' conftest.er1 >conftest.err
20564   rm -f conftest.er1
20565   cat conftest.err >&5
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); } &&
20568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20569   { (case "(($ac_try" in
20570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571   *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574   (eval "$ac_try") 2>&5
20575   ac_status=$?
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); }; } &&
20578          { ac_try='test -s conftest.$ac_objext'
20579   { (case "(($ac_try" in
20580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581   *) ac_try_echo=$ac_try;;
20582 esac
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584   (eval "$ac_try") 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; }; then
20588   ac_hi=$ac_mid
20589 else
20590   echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593         ac_lo=`expr '(' $ac_mid ')' + 1`
20594 fi
20595
20596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597 done
20598 case $ac_lo in
20599 ?*) ac_cv_sizeof_char=$ac_lo;;
20600 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20601 See \`config.log' for more details." >&5
20602 echo "$as_me: error: cannot compute sizeof (char)
20603 See \`config.log' for more details." >&2;}
20604    { (exit 77); exit 77; }; } ;;
20605 esac
20606 else
20607   cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h.  */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h.  */
20613 $ac_includes_default
20614                    typedef char ac__type_sizeof_;
20615 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20616 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20617 #include <stdio.h>
20618 #include <stdlib.h>
20619 int
20620 main ()
20621 {
20622
20623   FILE *f = fopen ("conftest.val", "w");
20624   if (! f)
20625     return 1;
20626   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20627     {
20628       long int i = longval ();
20629       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20630         return 1;
20631       fprintf (f, "%ld\n", i);
20632     }
20633   else
20634     {
20635       unsigned long int i = ulongval ();
20636       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20637         return 1;
20638       fprintf (f, "%lu\n", i);
20639     }
20640   return ferror (f) || fclose (f) != 0;
20641
20642   ;
20643   return 0;
20644 }
20645 _ACEOF
20646 rm -f conftest$ac_exeext
20647 if { (ac_try="$ac_link"
20648 case "(($ac_try" in
20649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650   *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653   (eval "$ac_link") 2>&5
20654   ac_status=$?
20655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20657   { (case "(($ac_try" in
20658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659   *) ac_try_echo=$ac_try;;
20660 esac
20661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662   (eval "$ac_try") 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; }; then
20666   ac_cv_sizeof_char=`cat conftest.val`
20667 else
20668   echo "$as_me: program exited with status $ac_status" >&5
20669 echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672 ( exit $ac_status )
20673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20674 See \`config.log' for more details." >&5
20675 echo "$as_me: error: cannot compute sizeof (char)
20676 See \`config.log' for more details." >&2;}
20677    { (exit 77); exit 77; }; }
20678 fi
20679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20680 fi
20681 rm -f conftest.val
20682 else
20683   ac_cv_sizeof_char=0
20684 fi
20685 fi
20686 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20687 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
20688 cat >>confdefs.h <<_ACEOF
20689 #define SIZEOF_CHAR $ac_cv_sizeof_char
20690 _ACEOF
20691
20692
20693 { echo "$as_me:$LINENO: checking for short int" >&5
20694 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
20695 if test "${ac_cv_type_short_int+set}" = set; then
20696   echo $ECHO_N "(cached) $ECHO_C" >&6
20697 else
20698   cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704 $ac_includes_default
20705 typedef short int ac__type_new_;
20706 int
20707 main ()
20708 {
20709 if ((ac__type_new_ *) 0)
20710   return 0;
20711 if (sizeof (ac__type_new_))
20712   return 0;
20713   ;
20714   return 0;
20715 }
20716 _ACEOF
20717 rm -f conftest.$ac_objext
20718 if { (ac_try="$ac_compile"
20719 case "(($ac_try" in
20720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721   *) ac_try_echo=$ac_try;;
20722 esac
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724   (eval "$ac_compile") 2>conftest.er1
20725   ac_status=$?
20726   grep -v '^ *+' conftest.er1 >conftest.err
20727   rm -f conftest.er1
20728   cat conftest.err >&5
20729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730   (exit $ac_status); } &&
20731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20732   { (case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737   (eval "$ac_try") 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); }; } &&
20741          { ac_try='test -s conftest.$ac_objext'
20742   { (case "(($ac_try" in
20743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744   *) ac_try_echo=$ac_try;;
20745 esac
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747   (eval "$ac_try") 2>&5
20748   ac_status=$?
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); }; }; then
20751   ac_cv_type_short_int=yes
20752 else
20753   echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756         ac_cv_type_short_int=no
20757 fi
20758
20759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20760 fi
20761 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
20762 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
20763
20764 { echo "$as_me:$LINENO: checking size of short int" >&5
20765 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
20766 if test "${ac_cv_sizeof_short_int+set}" = set; then
20767   echo $ECHO_N "(cached) $ECHO_C" >&6
20768 else
20769   if test "$ac_cv_type_short_int" = yes; then
20770   # The cast to long int works around a bug in the HP C Compiler
20771   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20772   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20773   # This bug is HP SR number 8606223364.
20774   if test "$cross_compiling" = yes; then
20775   # Depending upon the size, compute the lo and hi bounds.
20776 cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h.  */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h.  */
20782 $ac_includes_default
20783                    typedef short int ac__type_sizeof_;
20784 int
20785 main ()
20786 {
20787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20788 test_array [0] = 0
20789
20790   ;
20791   return 0;
20792 }
20793 _ACEOF
20794 rm -f conftest.$ac_objext
20795 if { (ac_try="$ac_compile"
20796 case "(($ac_try" in
20797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798   *) ac_try_echo=$ac_try;;
20799 esac
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801   (eval "$ac_compile") 2>conftest.er1
20802   ac_status=$?
20803   grep -v '^ *+' conftest.er1 >conftest.err
20804   rm -f conftest.er1
20805   cat conftest.err >&5
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } &&
20808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20809   { (case "(($ac_try" in
20810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811   *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814   (eval "$ac_try") 2>&5
20815   ac_status=$?
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); }; } &&
20818          { ac_try='test -s conftest.$ac_objext'
20819   { (case "(($ac_try" in
20820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821   *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824   (eval "$ac_try") 2>&5
20825   ac_status=$?
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); }; }; then
20828   ac_lo=0 ac_mid=0
20829   while :; do
20830     cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h.  */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h.  */
20836 $ac_includes_default
20837                    typedef short int ac__type_sizeof_;
20838 int
20839 main ()
20840 {
20841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20842 test_array [0] = 0
20843
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext
20849 if { (ac_try="$ac_compile"
20850 case "(($ac_try" in
20851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852   *) ac_try_echo=$ac_try;;
20853 esac
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855   (eval "$ac_compile") 2>conftest.er1
20856   ac_status=$?
20857   grep -v '^ *+' conftest.er1 >conftest.err
20858   rm -f conftest.er1
20859   cat conftest.err >&5
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); } &&
20862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20863   { (case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868   (eval "$ac_try") 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); }; } &&
20872          { ac_try='test -s conftest.$ac_objext'
20873   { (case "(($ac_try" in
20874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875   *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878   (eval "$ac_try") 2>&5
20879   ac_status=$?
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); }; }; then
20882   ac_hi=$ac_mid; break
20883 else
20884   echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20886
20887         ac_lo=`expr $ac_mid + 1`
20888                         if test $ac_lo -le $ac_mid; then
20889                           ac_lo= ac_hi=
20890                           break
20891                         fi
20892                         ac_mid=`expr 2 '*' $ac_mid + 1`
20893 fi
20894
20895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20896   done
20897 else
20898   echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20900
20901         cat >conftest.$ac_ext <<_ACEOF
20902 /* confdefs.h.  */
20903 _ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h.  */
20907 $ac_includes_default
20908                    typedef short int ac__type_sizeof_;
20909 int
20910 main ()
20911 {
20912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20913 test_array [0] = 0
20914
20915   ;
20916   return 0;
20917 }
20918 _ACEOF
20919 rm -f conftest.$ac_objext
20920 if { (ac_try="$ac_compile"
20921 case "(($ac_try" in
20922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923   *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926   (eval "$ac_compile") 2>conftest.er1
20927   ac_status=$?
20928   grep -v '^ *+' conftest.er1 >conftest.err
20929   rm -f conftest.er1
20930   cat conftest.err >&5
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); } &&
20933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20934   { (case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939   (eval "$ac_try") 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); }; } &&
20943          { ac_try='test -s conftest.$ac_objext'
20944   { (case "(($ac_try" in
20945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946   *) ac_try_echo=$ac_try;;
20947 esac
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949   (eval "$ac_try") 2>&5
20950   ac_status=$?
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); }; }; then
20953   ac_hi=-1 ac_mid=-1
20954   while :; do
20955     cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h.  */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h.  */
20961 $ac_includes_default
20962                    typedef short int ac__type_sizeof_;
20963 int
20964 main ()
20965 {
20966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20967 test_array [0] = 0
20968
20969   ;
20970   return 0;
20971 }
20972 _ACEOF
20973 rm -f conftest.$ac_objext
20974 if { (ac_try="$ac_compile"
20975 case "(($ac_try" in
20976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977   *) ac_try_echo=$ac_try;;
20978 esac
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980   (eval "$ac_compile") 2>conftest.er1
20981   ac_status=$?
20982   grep -v '^ *+' conftest.er1 >conftest.err
20983   rm -f conftest.er1
20984   cat conftest.err >&5
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); } &&
20987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20988   { (case "(($ac_try" in
20989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990   *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993   (eval "$ac_try") 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; } &&
20997          { ac_try='test -s conftest.$ac_objext'
20998   { (case "(($ac_try" in
20999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000   *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003   (eval "$ac_try") 2>&5
21004   ac_status=$?
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); }; }; then
21007   ac_lo=$ac_mid; break
21008 else
21009   echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012         ac_hi=`expr '(' $ac_mid ')' - 1`
21013                         if test $ac_mid -le $ac_hi; then
21014                           ac_lo= ac_hi=
21015                           break
21016                         fi
21017                         ac_mid=`expr 2 '*' $ac_mid`
21018 fi
21019
21020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021   done
21022 else
21023   echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026         ac_lo= ac_hi=
21027 fi
21028
21029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 fi
21031
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 # Binary search between lo and hi bounds.
21034 while test "x$ac_lo" != "x$ac_hi"; do
21035   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21036   cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h.  */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h.  */
21042 $ac_includes_default
21043                    typedef short int ac__type_sizeof_;
21044 int
21045 main ()
21046 {
21047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21048 test_array [0] = 0
21049
21050   ;
21051   return 0;
21052 }
21053 _ACEOF
21054 rm -f conftest.$ac_objext
21055 if { (ac_try="$ac_compile"
21056 case "(($ac_try" in
21057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058   *) ac_try_echo=$ac_try;;
21059 esac
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061   (eval "$ac_compile") 2>conftest.er1
21062   ac_status=$?
21063   grep -v '^ *+' conftest.er1 >conftest.err
21064   rm -f conftest.er1
21065   cat conftest.err >&5
21066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067   (exit $ac_status); } &&
21068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21069   { (case "(($ac_try" in
21070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071   *) ac_try_echo=$ac_try;;
21072 esac
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074   (eval "$ac_try") 2>&5
21075   ac_status=$?
21076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077   (exit $ac_status); }; } &&
21078          { ac_try='test -s conftest.$ac_objext'
21079   { (case "(($ac_try" in
21080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081   *) ac_try_echo=$ac_try;;
21082 esac
21083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084   (eval "$ac_try") 2>&5
21085   ac_status=$?
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); }; }; then
21088   ac_hi=$ac_mid
21089 else
21090   echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21092
21093         ac_lo=`expr '(' $ac_mid ')' + 1`
21094 fi
21095
21096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 done
21098 case $ac_lo in
21099 ?*) ac_cv_sizeof_short_int=$ac_lo;;
21100 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
21101 See \`config.log' for more details." >&5
21102 echo "$as_me: error: cannot compute sizeof (short int)
21103 See \`config.log' for more details." >&2;}
21104    { (exit 77); exit 77; }; } ;;
21105 esac
21106 else
21107   cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h.  */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h.  */
21113 $ac_includes_default
21114                    typedef short int ac__type_sizeof_;
21115 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21116 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21117 #include <stdio.h>
21118 #include <stdlib.h>
21119 int
21120 main ()
21121 {
21122
21123   FILE *f = fopen ("conftest.val", "w");
21124   if (! f)
21125     return 1;
21126   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21127     {
21128       long int i = longval ();
21129       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21130         return 1;
21131       fprintf (f, "%ld\n", i);
21132     }
21133   else
21134     {
21135       unsigned long int i = ulongval ();
21136       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21137         return 1;
21138       fprintf (f, "%lu\n", i);
21139     }
21140   return ferror (f) || fclose (f) != 0;
21141
21142   ;
21143   return 0;
21144 }
21145 _ACEOF
21146 rm -f conftest$ac_exeext
21147 if { (ac_try="$ac_link"
21148 case "(($ac_try" in
21149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150   *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153   (eval "$ac_link") 2>&5
21154   ac_status=$?
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21157   { (case "(($ac_try" in
21158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159   *) ac_try_echo=$ac_try;;
21160 esac
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162   (eval "$ac_try") 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; }; then
21166   ac_cv_sizeof_short_int=`cat conftest.val`
21167 else
21168   echo "$as_me: program exited with status $ac_status" >&5
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172 ( exit $ac_status )
21173 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
21174 See \`config.log' for more details." >&5
21175 echo "$as_me: error: cannot compute sizeof (short int)
21176 See \`config.log' for more details." >&2;}
21177    { (exit 77); exit 77; }; }
21178 fi
21179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21180 fi
21181 rm -f conftest.val
21182 else
21183   ac_cv_sizeof_short_int=0
21184 fi
21185 fi
21186 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
21187 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
21188 cat >>confdefs.h <<_ACEOF
21189 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
21190 _ACEOF
21191
21192
21193 { echo "$as_me:$LINENO: checking for int" >&5
21194 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21195 if test "${ac_cv_type_int+set}" = set; then
21196   echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198   cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204 $ac_includes_default
21205 typedef int ac__type_new_;
21206 int
21207 main ()
21208 {
21209 if ((ac__type_new_ *) 0)
21210   return 0;
21211 if (sizeof (ac__type_new_))
21212   return 0;
21213   ;
21214   return 0;
21215 }
21216 _ACEOF
21217 rm -f conftest.$ac_objext
21218 if { (ac_try="$ac_compile"
21219 case "(($ac_try" in
21220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221   *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224   (eval "$ac_compile") 2>conftest.er1
21225   ac_status=$?
21226   grep -v '^ *+' conftest.er1 >conftest.err
21227   rm -f conftest.er1
21228   cat conftest.err >&5
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); } &&
21231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21232   { (case "(($ac_try" in
21233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234   *) ac_try_echo=$ac_try;;
21235 esac
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237   (eval "$ac_try") 2>&5
21238   ac_status=$?
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); }; } &&
21241          { ac_try='test -s conftest.$ac_objext'
21242   { (case "(($ac_try" in
21243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244   *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247   (eval "$ac_try") 2>&5
21248   ac_status=$?
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); }; }; then
21251   ac_cv_type_int=yes
21252 else
21253   echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21255
21256         ac_cv_type_int=no
21257 fi
21258
21259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 fi
21261 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21262 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21263
21264 { echo "$as_me:$LINENO: checking size of int" >&5
21265 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21266 if test "${ac_cv_sizeof_int+set}" = set; then
21267   echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269   if test "$ac_cv_type_int" = yes; then
21270   # The cast to long int works around a bug in the HP C Compiler
21271   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21272   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21273   # This bug is HP SR number 8606223364.
21274   if test "$cross_compiling" = yes; then
21275   # Depending upon the size, compute the lo and hi bounds.
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h.  */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h.  */
21282 $ac_includes_default
21283                    typedef int ac__type_sizeof_;
21284 int
21285 main ()
21286 {
21287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21288 test_array [0] = 0
21289
21290   ;
21291   return 0;
21292 }
21293 _ACEOF
21294 rm -f conftest.$ac_objext
21295 if { (ac_try="$ac_compile"
21296 case "(($ac_try" in
21297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298   *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301   (eval "$ac_compile") 2>conftest.er1
21302   ac_status=$?
21303   grep -v '^ *+' conftest.er1 >conftest.err
21304   rm -f conftest.er1
21305   cat conftest.err >&5
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); } &&
21308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21309   { (case "(($ac_try" in
21310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311   *) ac_try_echo=$ac_try;;
21312 esac
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314   (eval "$ac_try") 2>&5
21315   ac_status=$?
21316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317   (exit $ac_status); }; } &&
21318          { ac_try='test -s conftest.$ac_objext'
21319   { (case "(($ac_try" in
21320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321   *) ac_try_echo=$ac_try;;
21322 esac
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324   (eval "$ac_try") 2>&5
21325   ac_status=$?
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); }; }; then
21328   ac_lo=0 ac_mid=0
21329   while :; do
21330     cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336 $ac_includes_default
21337                    typedef int ac__type_sizeof_;
21338 int
21339 main ()
21340 {
21341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21342 test_array [0] = 0
21343
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest.$ac_objext
21349 if { (ac_try="$ac_compile"
21350 case "(($ac_try" in
21351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352   *) ac_try_echo=$ac_try;;
21353 esac
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355   (eval "$ac_compile") 2>conftest.er1
21356   ac_status=$?
21357   grep -v '^ *+' conftest.er1 >conftest.err
21358   rm -f conftest.er1
21359   cat conftest.err >&5
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); } &&
21362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21363   { (case "(($ac_try" in
21364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365   *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368   (eval "$ac_try") 2>&5
21369   ac_status=$?
21370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371   (exit $ac_status); }; } &&
21372          { ac_try='test -s conftest.$ac_objext'
21373   { (case "(($ac_try" in
21374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375   *) ac_try_echo=$ac_try;;
21376 esac
21377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21378   (eval "$ac_try") 2>&5
21379   ac_status=$?
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); }; }; then
21382   ac_hi=$ac_mid; break
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387         ac_lo=`expr $ac_mid + 1`
21388                         if test $ac_lo -le $ac_mid; then
21389                           ac_lo= ac_hi=
21390                           break
21391                         fi
21392                         ac_mid=`expr 2 '*' $ac_mid + 1`
21393 fi
21394
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396   done
21397 else
21398   echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21400
21401         cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h.  */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h.  */
21407 $ac_includes_default
21408                    typedef int ac__type_sizeof_;
21409 int
21410 main ()
21411 {
21412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21413 test_array [0] = 0
21414
21415   ;
21416   return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest.$ac_objext
21420 if { (ac_try="$ac_compile"
21421 case "(($ac_try" in
21422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423   *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426   (eval "$ac_compile") 2>conftest.er1
21427   ac_status=$?
21428   grep -v '^ *+' conftest.er1 >conftest.err
21429   rm -f conftest.er1
21430   cat conftest.err >&5
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } &&
21433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21434   { (case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_try") 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; } &&
21443          { ac_try='test -s conftest.$ac_objext'
21444   { (case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449   (eval "$ac_try") 2>&5
21450   ac_status=$?
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); }; }; then
21453   ac_hi=-1 ac_mid=-1
21454   while :; do
21455     cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h.  */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h.  */
21461 $ac_includes_default
21462                    typedef int ac__type_sizeof_;
21463 int
21464 main ()
21465 {
21466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21467 test_array [0] = 0
21468
21469   ;
21470   return 0;
21471 }
21472 _ACEOF
21473 rm -f conftest.$ac_objext
21474 if { (ac_try="$ac_compile"
21475 case "(($ac_try" in
21476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477   *) ac_try_echo=$ac_try;;
21478 esac
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480   (eval "$ac_compile") 2>conftest.er1
21481   ac_status=$?
21482   grep -v '^ *+' conftest.er1 >conftest.err
21483   rm -f conftest.er1
21484   cat conftest.err >&5
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); } &&
21487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21488   { (case "(($ac_try" in
21489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490   *) ac_try_echo=$ac_try;;
21491 esac
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493   (eval "$ac_try") 2>&5
21494   ac_status=$?
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); }; } &&
21497          { ac_try='test -s conftest.$ac_objext'
21498   { (case "(($ac_try" in
21499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500   *) ac_try_echo=$ac_try;;
21501 esac
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503   (eval "$ac_try") 2>&5
21504   ac_status=$?
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); }; }; then
21507   ac_lo=$ac_mid; break
21508 else
21509   echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21511
21512         ac_hi=`expr '(' $ac_mid ')' - 1`
21513                         if test $ac_mid -le $ac_hi; then
21514                           ac_lo= ac_hi=
21515                           break
21516                         fi
21517                         ac_mid=`expr 2 '*' $ac_mid`
21518 fi
21519
21520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521   done
21522 else
21523   echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21525
21526         ac_lo= ac_hi=
21527 fi
21528
21529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530 fi
21531
21532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21533 # Binary search between lo and hi bounds.
21534 while test "x$ac_lo" != "x$ac_hi"; do
21535   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21536   cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542 $ac_includes_default
21543                    typedef int ac__type_sizeof_;
21544 int
21545 main ()
21546 {
21547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21548 test_array [0] = 0
21549
21550   ;
21551   return 0;
21552 }
21553 _ACEOF
21554 rm -f conftest.$ac_objext
21555 if { (ac_try="$ac_compile"
21556 case "(($ac_try" in
21557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558   *) ac_try_echo=$ac_try;;
21559 esac
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561   (eval "$ac_compile") 2>conftest.er1
21562   ac_status=$?
21563   grep -v '^ *+' conftest.er1 >conftest.err
21564   rm -f conftest.er1
21565   cat conftest.err >&5
21566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567   (exit $ac_status); } &&
21568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21569   { (case "(($ac_try" in
21570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571   *) ac_try_echo=$ac_try;;
21572 esac
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574   (eval "$ac_try") 2>&5
21575   ac_status=$?
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); }; } &&
21578          { ac_try='test -s conftest.$ac_objext'
21579   { (case "(($ac_try" in
21580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581   *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584   (eval "$ac_try") 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); }; }; then
21588   ac_hi=$ac_mid
21589 else
21590   echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593         ac_lo=`expr '(' $ac_mid ')' + 1`
21594 fi
21595
21596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597 done
21598 case $ac_lo in
21599 ?*) ac_cv_sizeof_int=$ac_lo;;
21600 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21601 See \`config.log' for more details." >&5
21602 echo "$as_me: error: cannot compute sizeof (int)
21603 See \`config.log' for more details." >&2;}
21604    { (exit 77); exit 77; }; } ;;
21605 esac
21606 else
21607   cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613 $ac_includes_default
21614                    typedef int ac__type_sizeof_;
21615 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21616 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21617 #include <stdio.h>
21618 #include <stdlib.h>
21619 int
21620 main ()
21621 {
21622
21623   FILE *f = fopen ("conftest.val", "w");
21624   if (! f)
21625     return 1;
21626   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21627     {
21628       long int i = longval ();
21629       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21630         return 1;
21631       fprintf (f, "%ld\n", i);
21632     }
21633   else
21634     {
21635       unsigned long int i = ulongval ();
21636       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21637         return 1;
21638       fprintf (f, "%lu\n", i);
21639     }
21640   return ferror (f) || fclose (f) != 0;
21641
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest$ac_exeext
21647 if { (ac_try="$ac_link"
21648 case "(($ac_try" in
21649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650   *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653   (eval "$ac_link") 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21657   { (case "(($ac_try" in
21658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659   *) ac_try_echo=$ac_try;;
21660 esac
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662   (eval "$ac_try") 2>&5
21663   ac_status=$?
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); }; }; then
21666   ac_cv_sizeof_int=`cat conftest.val`
21667 else
21668   echo "$as_me: program exited with status $ac_status" >&5
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21671
21672 ( exit $ac_status )
21673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21674 See \`config.log' for more details." >&5
21675 echo "$as_me: error: cannot compute sizeof (int)
21676 See \`config.log' for more details." >&2;}
21677    { (exit 77); exit 77; }; }
21678 fi
21679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21680 fi
21681 rm -f conftest.val
21682 else
21683   ac_cv_sizeof_int=0
21684 fi
21685 fi
21686 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21687 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21688 cat >>confdefs.h <<_ACEOF
21689 #define SIZEOF_INT $ac_cv_sizeof_int
21690 _ACEOF
21691
21692
21693 { echo "$as_me:$LINENO: checking for long int" >&5
21694 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
21695 if test "${ac_cv_type_long_int+set}" = set; then
21696   echo $ECHO_N "(cached) $ECHO_C" >&6
21697 else
21698   cat >conftest.$ac_ext <<_ACEOF
21699 /* confdefs.h.  */
21700 _ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h.  */
21704 $ac_includes_default
21705 typedef long int ac__type_new_;
21706 int
21707 main ()
21708 {
21709 if ((ac__type_new_ *) 0)
21710   return 0;
21711 if (sizeof (ac__type_new_))
21712   return 0;
21713   ;
21714   return 0;
21715 }
21716 _ACEOF
21717 rm -f conftest.$ac_objext
21718 if { (ac_try="$ac_compile"
21719 case "(($ac_try" in
21720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721   *) ac_try_echo=$ac_try;;
21722 esac
21723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724   (eval "$ac_compile") 2>conftest.er1
21725   ac_status=$?
21726   grep -v '^ *+' conftest.er1 >conftest.err
21727   rm -f conftest.er1
21728   cat conftest.err >&5
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); } &&
21731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21732   { (case "(($ac_try" in
21733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734   *) ac_try_echo=$ac_try;;
21735 esac
21736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21737   (eval "$ac_try") 2>&5
21738   ac_status=$?
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); }; } &&
21741          { ac_try='test -s conftest.$ac_objext'
21742   { (case "(($ac_try" in
21743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744   *) ac_try_echo=$ac_try;;
21745 esac
21746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747   (eval "$ac_try") 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); }; }; then
21751   ac_cv_type_long_int=yes
21752 else
21753   echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756         ac_cv_type_long_int=no
21757 fi
21758
21759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760 fi
21761 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
21762 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
21763
21764 { echo "$as_me:$LINENO: checking size of long int" >&5
21765 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
21766 if test "${ac_cv_sizeof_long_int+set}" = set; then
21767   echo $ECHO_N "(cached) $ECHO_C" >&6
21768 else
21769   if test "$ac_cv_type_long_int" = yes; then
21770   # The cast to long int works around a bug in the HP C Compiler
21771   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21772   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21773   # This bug is HP SR number 8606223364.
21774   if test "$cross_compiling" = yes; then
21775   # Depending upon the size, compute the lo and hi bounds.
21776 cat >conftest.$ac_ext <<_ACEOF
21777 /* confdefs.h.  */
21778 _ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h.  */
21782 $ac_includes_default
21783                    typedef long int ac__type_sizeof_;
21784 int
21785 main ()
21786 {
21787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21788 test_array [0] = 0
21789
21790   ;
21791   return 0;
21792 }
21793 _ACEOF
21794 rm -f conftest.$ac_objext
21795 if { (ac_try="$ac_compile"
21796 case "(($ac_try" in
21797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798   *) ac_try_echo=$ac_try;;
21799 esac
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801   (eval "$ac_compile") 2>conftest.er1
21802   ac_status=$?
21803   grep -v '^ *+' conftest.er1 >conftest.err
21804   rm -f conftest.er1
21805   cat conftest.err >&5
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); } &&
21808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21809   { (case "(($ac_try" in
21810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811   *) ac_try_echo=$ac_try;;
21812 esac
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814   (eval "$ac_try") 2>&5
21815   ac_status=$?
21816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817   (exit $ac_status); }; } &&
21818          { ac_try='test -s conftest.$ac_objext'
21819   { (case "(($ac_try" in
21820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821   *) ac_try_echo=$ac_try;;
21822 esac
21823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824   (eval "$ac_try") 2>&5
21825   ac_status=$?
21826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); }; }; then
21828   ac_lo=0 ac_mid=0
21829   while :; do
21830     cat >conftest.$ac_ext <<_ACEOF
21831 /* confdefs.h.  */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h.  */
21836 $ac_includes_default
21837                    typedef long int ac__type_sizeof_;
21838 int
21839 main ()
21840 {
21841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21842 test_array [0] = 0
21843
21844   ;
21845   return 0;
21846 }
21847 _ACEOF
21848 rm -f conftest.$ac_objext
21849 if { (ac_try="$ac_compile"
21850 case "(($ac_try" in
21851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852   *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855   (eval "$ac_compile") 2>conftest.er1
21856   ac_status=$?
21857   grep -v '^ *+' conftest.er1 >conftest.err
21858   rm -f conftest.er1
21859   cat conftest.err >&5
21860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861   (exit $ac_status); } &&
21862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21863   { (case "(($ac_try" in
21864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865   *) ac_try_echo=$ac_try;;
21866 esac
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868   (eval "$ac_try") 2>&5
21869   ac_status=$?
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); }; } &&
21872          { ac_try='test -s conftest.$ac_objext'
21873   { (case "(($ac_try" in
21874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875   *) ac_try_echo=$ac_try;;
21876 esac
21877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21878   (eval "$ac_try") 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; }; then
21882   ac_hi=$ac_mid; break
21883 else
21884   echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21886
21887         ac_lo=`expr $ac_mid + 1`
21888                         if test $ac_lo -le $ac_mid; then
21889                           ac_lo= ac_hi=
21890                           break
21891                         fi
21892                         ac_mid=`expr 2 '*' $ac_mid + 1`
21893 fi
21894
21895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21896   done
21897 else
21898   echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901         cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h.  */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h.  */
21907 $ac_includes_default
21908                    typedef long int ac__type_sizeof_;
21909 int
21910 main ()
21911 {
21912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21913 test_array [0] = 0
21914
21915   ;
21916   return 0;
21917 }
21918 _ACEOF
21919 rm -f conftest.$ac_objext
21920 if { (ac_try="$ac_compile"
21921 case "(($ac_try" in
21922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923   *) ac_try_echo=$ac_try;;
21924 esac
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926   (eval "$ac_compile") 2>conftest.er1
21927   ac_status=$?
21928   grep -v '^ *+' conftest.er1 >conftest.err
21929   rm -f conftest.er1
21930   cat conftest.err >&5
21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932   (exit $ac_status); } &&
21933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21934   { (case "(($ac_try" in
21935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936   *) ac_try_echo=$ac_try;;
21937 esac
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939   (eval "$ac_try") 2>&5
21940   ac_status=$?
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); }; } &&
21943          { ac_try='test -s conftest.$ac_objext'
21944   { (case "(($ac_try" in
21945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946   *) ac_try_echo=$ac_try;;
21947 esac
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949   (eval "$ac_try") 2>&5
21950   ac_status=$?
21951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952   (exit $ac_status); }; }; then
21953   ac_hi=-1 ac_mid=-1
21954   while :; do
21955     cat >conftest.$ac_ext <<_ACEOF
21956 /* confdefs.h.  */
21957 _ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h.  */
21961 $ac_includes_default
21962                    typedef long int ac__type_sizeof_;
21963 int
21964 main ()
21965 {
21966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21967 test_array [0] = 0
21968
21969   ;
21970   return 0;
21971 }
21972 _ACEOF
21973 rm -f conftest.$ac_objext
21974 if { (ac_try="$ac_compile"
21975 case "(($ac_try" in
21976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977   *) ac_try_echo=$ac_try;;
21978 esac
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980   (eval "$ac_compile") 2>conftest.er1
21981   ac_status=$?
21982   grep -v '^ *+' conftest.er1 >conftest.err
21983   rm -f conftest.er1
21984   cat conftest.err >&5
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); } &&
21987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21988   { (case "(($ac_try" in
21989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990   *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993   (eval "$ac_try") 2>&5
21994   ac_status=$?
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); }; } &&
21997          { ac_try='test -s conftest.$ac_objext'
21998   { (case "(($ac_try" in
21999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000   *) ac_try_echo=$ac_try;;
22001 esac
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003   (eval "$ac_try") 2>&5
22004   ac_status=$?
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); }; }; then
22007   ac_lo=$ac_mid; break
22008 else
22009   echo "$as_me: failed program was:" >&5
22010 sed 's/^/| /' conftest.$ac_ext >&5
22011
22012         ac_hi=`expr '(' $ac_mid ')' - 1`
22013                         if test $ac_mid -le $ac_hi; then
22014                           ac_lo= ac_hi=
22015                           break
22016                         fi
22017                         ac_mid=`expr 2 '*' $ac_mid`
22018 fi
22019
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021   done
22022 else
22023   echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22025
22026         ac_lo= ac_hi=
22027 fi
22028
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 fi
22031
22032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 # Binary search between lo and hi bounds.
22034 while test "x$ac_lo" != "x$ac_hi"; do
22035   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22036   cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h.  */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h.  */
22042 $ac_includes_default
22043                    typedef long int ac__type_sizeof_;
22044 int
22045 main ()
22046 {
22047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22048 test_array [0] = 0
22049
22050   ;
22051   return 0;
22052 }
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058   *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061   (eval "$ac_compile") 2>conftest.er1
22062   ac_status=$?
22063   grep -v '^ *+' conftest.er1 >conftest.err
22064   rm -f conftest.er1
22065   cat conftest.err >&5
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); } &&
22068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22069   { (case "(($ac_try" in
22070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071   *) ac_try_echo=$ac_try;;
22072 esac
22073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22074   (eval "$ac_try") 2>&5
22075   ac_status=$?
22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077   (exit $ac_status); }; } &&
22078          { ac_try='test -s conftest.$ac_objext'
22079   { (case "(($ac_try" in
22080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081   *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084   (eval "$ac_try") 2>&5
22085   ac_status=$?
22086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); }; }; then
22088   ac_hi=$ac_mid
22089 else
22090   echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22092
22093         ac_lo=`expr '(' $ac_mid ')' + 1`
22094 fi
22095
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 done
22098 case $ac_lo in
22099 ?*) ac_cv_sizeof_long_int=$ac_lo;;
22100 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
22101 See \`config.log' for more details." >&5
22102 echo "$as_me: error: cannot compute sizeof (long int)
22103 See \`config.log' for more details." >&2;}
22104    { (exit 77); exit 77; }; } ;;
22105 esac
22106 else
22107   cat >conftest.$ac_ext <<_ACEOF
22108 /* confdefs.h.  */
22109 _ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h.  */
22113 $ac_includes_default
22114                    typedef long int ac__type_sizeof_;
22115 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22116 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22117 #include <stdio.h>
22118 #include <stdlib.h>
22119 int
22120 main ()
22121 {
22122
22123   FILE *f = fopen ("conftest.val", "w");
22124   if (! f)
22125     return 1;
22126   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22127     {
22128       long int i = longval ();
22129       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22130         return 1;
22131       fprintf (f, "%ld\n", i);
22132     }
22133   else
22134     {
22135       unsigned long int i = ulongval ();
22136       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22137         return 1;
22138       fprintf (f, "%lu\n", i);
22139     }
22140   return ferror (f) || fclose (f) != 0;
22141
22142   ;
22143   return 0;
22144 }
22145 _ACEOF
22146 rm -f conftest$ac_exeext
22147 if { (ac_try="$ac_link"
22148 case "(($ac_try" in
22149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22150   *) ac_try_echo=$ac_try;;
22151 esac
22152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22153   (eval "$ac_link") 2>&5
22154   ac_status=$?
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22157   { (case "(($ac_try" in
22158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159   *) ac_try_echo=$ac_try;;
22160 esac
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162   (eval "$ac_try") 2>&5
22163   ac_status=$?
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); }; }; then
22166   ac_cv_sizeof_long_int=`cat conftest.val`
22167 else
22168   echo "$as_me: program exited with status $ac_status" >&5
22169 echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22171
22172 ( exit $ac_status )
22173 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
22174 See \`config.log' for more details." >&5
22175 echo "$as_me: error: cannot compute sizeof (long int)
22176 See \`config.log' for more details." >&2;}
22177    { (exit 77); exit 77; }; }
22178 fi
22179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22180 fi
22181 rm -f conftest.val
22182 else
22183   ac_cv_sizeof_long_int=0
22184 fi
22185 fi
22186 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
22187 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
22188 cat >>confdefs.h <<_ACEOF
22189 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
22190 _ACEOF
22191
22192
22193 { echo "$as_me:$LINENO: checking for long long int" >&5
22194 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22195 if test "${ac_cv_type_long_long_int+set}" = set; then
22196   echo $ECHO_N "(cached) $ECHO_C" >&6
22197 else
22198   cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h.  */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h.  */
22204 $ac_includes_default
22205 typedef long long int ac__type_new_;
22206 int
22207 main ()
22208 {
22209 if ((ac__type_new_ *) 0)
22210   return 0;
22211 if (sizeof (ac__type_new_))
22212   return 0;
22213   ;
22214   return 0;
22215 }
22216 _ACEOF
22217 rm -f conftest.$ac_objext
22218 if { (ac_try="$ac_compile"
22219 case "(($ac_try" in
22220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221   *) ac_try_echo=$ac_try;;
22222 esac
22223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224   (eval "$ac_compile") 2>conftest.er1
22225   ac_status=$?
22226   grep -v '^ *+' conftest.er1 >conftest.err
22227   rm -f conftest.er1
22228   cat conftest.err >&5
22229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230   (exit $ac_status); } &&
22231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22232   { (case "(($ac_try" in
22233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22234   *) ac_try_echo=$ac_try;;
22235 esac
22236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22237   (eval "$ac_try") 2>&5
22238   ac_status=$?
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); }; } &&
22241          { ac_try='test -s conftest.$ac_objext'
22242   { (case "(($ac_try" in
22243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244   *) ac_try_echo=$ac_try;;
22245 esac
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247   (eval "$ac_try") 2>&5
22248   ac_status=$?
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); }; }; then
22251   ac_cv_type_long_long_int=yes
22252 else
22253   echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22255
22256         ac_cv_type_long_long_int=no
22257 fi
22258
22259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22260 fi
22261 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22262 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22263
22264 { echo "$as_me:$LINENO: checking size of long long int" >&5
22265 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
22266 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
22267   echo $ECHO_N "(cached) $ECHO_C" >&6
22268 else
22269   if test "$ac_cv_type_long_long_int" = yes; then
22270   # The cast to long int works around a bug in the HP C Compiler
22271   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22272   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22273   # This bug is HP SR number 8606223364.
22274   if test "$cross_compiling" = yes; then
22275   # Depending upon the size, compute the lo and hi bounds.
22276 cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282 $ac_includes_default
22283                    typedef long long int ac__type_sizeof_;
22284 int
22285 main ()
22286 {
22287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22288 test_array [0] = 0
22289
22290   ;
22291   return 0;
22292 }
22293 _ACEOF
22294 rm -f conftest.$ac_objext
22295 if { (ac_try="$ac_compile"
22296 case "(($ac_try" in
22297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298   *) ac_try_echo=$ac_try;;
22299 esac
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301   (eval "$ac_compile") 2>conftest.er1
22302   ac_status=$?
22303   grep -v '^ *+' conftest.er1 >conftest.err
22304   rm -f conftest.er1
22305   cat conftest.err >&5
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); } &&
22308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22309   { (case "(($ac_try" in
22310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311   *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314   (eval "$ac_try") 2>&5
22315   ac_status=$?
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; } &&
22318          { ac_try='test -s conftest.$ac_objext'
22319   { (case "(($ac_try" in
22320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321   *) ac_try_echo=$ac_try;;
22322 esac
22323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324   (eval "$ac_try") 2>&5
22325   ac_status=$?
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); }; }; then
22328   ac_lo=0 ac_mid=0
22329   while :; do
22330     cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h.  */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h.  */
22336 $ac_includes_default
22337                    typedef long long int ac__type_sizeof_;
22338 int
22339 main ()
22340 {
22341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22342 test_array [0] = 0
22343
22344   ;
22345   return 0;
22346 }
22347 _ACEOF
22348 rm -f conftest.$ac_objext
22349 if { (ac_try="$ac_compile"
22350 case "(($ac_try" in
22351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352   *) ac_try_echo=$ac_try;;
22353 esac
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355   (eval "$ac_compile") 2>conftest.er1
22356   ac_status=$?
22357   grep -v '^ *+' conftest.er1 >conftest.err
22358   rm -f conftest.er1
22359   cat conftest.err >&5
22360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361   (exit $ac_status); } &&
22362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22363   { (case "(($ac_try" in
22364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365   *) ac_try_echo=$ac_try;;
22366 esac
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368   (eval "$ac_try") 2>&5
22369   ac_status=$?
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); }; } &&
22372          { ac_try='test -s conftest.$ac_objext'
22373   { (case "(($ac_try" in
22374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375   *) ac_try_echo=$ac_try;;
22376 esac
22377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22378   (eval "$ac_try") 2>&5
22379   ac_status=$?
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); }; }; then
22382   ac_hi=$ac_mid; break
22383 else
22384   echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387         ac_lo=`expr $ac_mid + 1`
22388                         if test $ac_lo -le $ac_mid; then
22389                           ac_lo= ac_hi=
22390                           break
22391                         fi
22392                         ac_mid=`expr 2 '*' $ac_mid + 1`
22393 fi
22394
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396   done
22397 else
22398   echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22400
22401         cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h.  */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h.  */
22407 $ac_includes_default
22408                    typedef long long int ac__type_sizeof_;
22409 int
22410 main ()
22411 {
22412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22413 test_array [0] = 0
22414
22415   ;
22416   return 0;
22417 }
22418 _ACEOF
22419 rm -f conftest.$ac_objext
22420 if { (ac_try="$ac_compile"
22421 case "(($ac_try" in
22422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423   *) ac_try_echo=$ac_try;;
22424 esac
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426   (eval "$ac_compile") 2>conftest.er1
22427   ac_status=$?
22428   grep -v '^ *+' conftest.er1 >conftest.err
22429   rm -f conftest.er1
22430   cat conftest.err >&5
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); } &&
22433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22434   { (case "(($ac_try" in
22435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436   *) ac_try_echo=$ac_try;;
22437 esac
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439   (eval "$ac_try") 2>&5
22440   ac_status=$?
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); }; } &&
22443          { ac_try='test -s conftest.$ac_objext'
22444   { (case "(($ac_try" in
22445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446   *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449   (eval "$ac_try") 2>&5
22450   ac_status=$?
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); }; }; then
22453   ac_hi=-1 ac_mid=-1
22454   while :; do
22455     cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h.  */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h.  */
22461 $ac_includes_default
22462                    typedef long long int ac__type_sizeof_;
22463 int
22464 main ()
22465 {
22466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22467 test_array [0] = 0
22468
22469   ;
22470   return 0;
22471 }
22472 _ACEOF
22473 rm -f conftest.$ac_objext
22474 if { (ac_try="$ac_compile"
22475 case "(($ac_try" in
22476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477   *) ac_try_echo=$ac_try;;
22478 esac
22479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480   (eval "$ac_compile") 2>conftest.er1
22481   ac_status=$?
22482   grep -v '^ *+' conftest.er1 >conftest.err
22483   rm -f conftest.er1
22484   cat conftest.err >&5
22485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486   (exit $ac_status); } &&
22487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22488   { (case "(($ac_try" in
22489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490   *) ac_try_echo=$ac_try;;
22491 esac
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493   (eval "$ac_try") 2>&5
22494   ac_status=$?
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); }; } &&
22497          { ac_try='test -s conftest.$ac_objext'
22498   { (case "(($ac_try" in
22499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500   *) ac_try_echo=$ac_try;;
22501 esac
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503   (eval "$ac_try") 2>&5
22504   ac_status=$?
22505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); }; }; then
22507   ac_lo=$ac_mid; break
22508 else
22509   echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22511
22512         ac_hi=`expr '(' $ac_mid ')' - 1`
22513                         if test $ac_mid -le $ac_hi; then
22514                           ac_lo= ac_hi=
22515                           break
22516                         fi
22517                         ac_mid=`expr 2 '*' $ac_mid`
22518 fi
22519
22520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22521   done
22522 else
22523   echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22525
22526         ac_lo= ac_hi=
22527 fi
22528
22529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530 fi
22531
22532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533 # Binary search between lo and hi bounds.
22534 while test "x$ac_lo" != "x$ac_hi"; do
22535   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22536   cat >conftest.$ac_ext <<_ACEOF
22537 /* confdefs.h.  */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h.  */
22542 $ac_includes_default
22543                    typedef long long int ac__type_sizeof_;
22544 int
22545 main ()
22546 {
22547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22548 test_array [0] = 0
22549
22550   ;
22551   return 0;
22552 }
22553 _ACEOF
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558   *) ac_try_echo=$ac_try;;
22559 esac
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561   (eval "$ac_compile") 2>conftest.er1
22562   ac_status=$?
22563   grep -v '^ *+' conftest.er1 >conftest.err
22564   rm -f conftest.er1
22565   cat conftest.err >&5
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } &&
22568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22569   { (case "(($ac_try" in
22570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571   *) ac_try_echo=$ac_try;;
22572 esac
22573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22574   (eval "$ac_try") 2>&5
22575   ac_status=$?
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); }; } &&
22578          { ac_try='test -s conftest.$ac_objext'
22579   { (case "(($ac_try" in
22580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581   *) ac_try_echo=$ac_try;;
22582 esac
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584   (eval "$ac_try") 2>&5
22585   ac_status=$?
22586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587   (exit $ac_status); }; }; then
22588   ac_hi=$ac_mid
22589 else
22590   echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22592
22593         ac_lo=`expr '(' $ac_mid ')' + 1`
22594 fi
22595
22596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22597 done
22598 case $ac_lo in
22599 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
22600 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
22601 See \`config.log' for more details." >&5
22602 echo "$as_me: error: cannot compute sizeof (long long int)
22603 See \`config.log' for more details." >&2;}
22604    { (exit 77); exit 77; }; } ;;
22605 esac
22606 else
22607   cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h.  */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h.  */
22613 $ac_includes_default
22614                    typedef long long int ac__type_sizeof_;
22615 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22616 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22617 #include <stdio.h>
22618 #include <stdlib.h>
22619 int
22620 main ()
22621 {
22622
22623   FILE *f = fopen ("conftest.val", "w");
22624   if (! f)
22625     return 1;
22626   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22627     {
22628       long int i = longval ();
22629       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22630         return 1;
22631       fprintf (f, "%ld\n", i);
22632     }
22633   else
22634     {
22635       unsigned long int i = ulongval ();
22636       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22637         return 1;
22638       fprintf (f, "%lu\n", i);
22639     }
22640   return ferror (f) || fclose (f) != 0;
22641
22642   ;
22643   return 0;
22644 }
22645 _ACEOF
22646 rm -f conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650   *) ac_try_echo=$ac_try;;
22651 esac
22652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653   (eval "$ac_link") 2>&5
22654   ac_status=$?
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22657   { (case "(($ac_try" in
22658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659   *) ac_try_echo=$ac_try;;
22660 esac
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662   (eval "$ac_try") 2>&5
22663   ac_status=$?
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); }; }; then
22666   ac_cv_sizeof_long_long_int=`cat conftest.val`
22667 else
22668   echo "$as_me: program exited with status $ac_status" >&5
22669 echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22671
22672 ( exit $ac_status )
22673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
22674 See \`config.log' for more details." >&5
22675 echo "$as_me: error: cannot compute sizeof (long long int)
22676 See \`config.log' for more details." >&2;}
22677    { (exit 77); exit 77; }; }
22678 fi
22679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22680 fi
22681 rm -f conftest.val
22682 else
22683   ac_cv_sizeof_long_long_int=0
22684 fi
22685 fi
22686 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
22687 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
22688 cat >>confdefs.h <<_ACEOF
22689 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
22690 _ACEOF
22691
22692
22693
22694 # Sanity check long long for some platforms (AIX)
22695 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
22696         ac_cv_sizeof_long_long_int=0
22697 fi
22698
22699 # compute LLONG_MIN and LLONG_MAX if we don't know them.
22700 if test -z "$have_llong_max"; then
22701         { echo "$as_me:$LINENO: checking for max value of long long" >&5
22702 echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
22703         if test "$cross_compiling" = yes; then
22704
22705                         { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
22706 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
22707
22708
22709 else
22710   cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h.  */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h.  */
22716
22717 #include <stdio.h>
22718 /* Why is this so damn hard? */
22719 #ifdef __GNUC__
22720 # undef __GNUC__
22721 #endif
22722 #define __USE_ISOC99
22723 #include <limits.h>
22724 #define DATA "conftest.llminmax"
22725 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
22726
22727 /*
22728  * printf in libc on some platforms (eg old Tru64) does not understand %lld so
22729  * we do this the hard way.
22730  */
22731 static int
22732 fprint_ll(FILE *f, long long n)
22733 {
22734         unsigned int i;
22735         int l[sizeof(long long) * 8];
22736
22737         if (n < 0)
22738                 if (fprintf(f, "-") < 0)
22739                         return -1;
22740         for (i = 0; n != 0; i++) {
22741                 l[i] = my_abs(n % 10);
22742                 n /= 10;
22743         }
22744         do {
22745                 if (fprintf(f, "%d", l[--i]) < 0)
22746                         return -1;
22747         } while (i != 0);
22748         if (fprintf(f, " ") < 0)
22749                 return -1;
22750         return 0;
22751 }
22752
22753 int main(void) {
22754         FILE *f;
22755         long long i, llmin, llmax = 0;
22756
22757         if((f = fopen(DATA,"w")) == NULL)
22758                 exit(1);
22759
22760 #if defined(LLONG_MIN) && defined(LLONG_MAX)
22761         fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
22762         llmin = LLONG_MIN;
22763         llmax = LLONG_MAX;
22764 #else
22765         fprintf(stderr, "Calculating  LLONG_MIN and LLONG_MAX\n");
22766         /* This will work on one's complement and two's complement */
22767         for (i = 1; i > llmax; i <<= 1, i++)
22768                 llmax = i;
22769         llmin = llmax + 1LL;    /* wrap */
22770 #endif
22771
22772         /* Sanity check */
22773         if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
22774             || llmax - 1 > llmax || llmin == llmax || llmin == 0
22775             || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
22776                 fprintf(f, "unknown unknown\n");
22777                 exit(2);
22778         }
22779
22780         if (fprint_ll(f, llmin) < 0)
22781                 exit(3);
22782         if (fprint_ll(f, llmax) < 0)
22783                 exit(4);
22784         if (fclose(f) < 0)
22785                 exit(5);
22786         exit(0);
22787 }
22788
22789 _ACEOF
22790 rm -f conftest$ac_exeext
22791 if { (ac_try="$ac_link"
22792 case "(($ac_try" in
22793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794   *) ac_try_echo=$ac_try;;
22795 esac
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797   (eval "$ac_link") 2>&5
22798   ac_status=$?
22799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22801   { (case "(($ac_try" in
22802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803   *) ac_try_echo=$ac_try;;
22804 esac
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806   (eval "$ac_try") 2>&5
22807   ac_status=$?
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); }; }; then
22810
22811                         llong_min=`$AWK '{print $1}' conftest.llminmax`
22812                         llong_max=`$AWK '{print $2}' conftest.llminmax`
22813
22814                         { echo "$as_me:$LINENO: result: $llong_max" >&5
22815 echo "${ECHO_T}$llong_max" >&6; }
22816
22817 cat >>confdefs.h <<_ACEOF
22818 #define LLONG_MAX ${llong_max}LL
22819 _ACEOF
22820
22821                         { echo "$as_me:$LINENO: checking for min value of long long" >&5
22822 echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
22823                         { echo "$as_me:$LINENO: result: $llong_min" >&5
22824 echo "${ECHO_T}$llong_min" >&6; }
22825
22826 cat >>confdefs.h <<_ACEOF
22827 #define LLONG_MIN ${llong_min}LL
22828 _ACEOF
22829
22830
22831 else
22832   echo "$as_me: program exited with status $ac_status" >&5
22833 echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22835
22836 ( exit $ac_status )
22837
22838                         { echo "$as_me:$LINENO: result: not found" >&5
22839 echo "${ECHO_T}not found" >&6; }
22840
22841 fi
22842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22843 fi
22844
22845
22846 fi
22847
22848
22849 # More checks for data types
22850 { echo "$as_me:$LINENO: checking for u_int type" >&5
22851 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
22852 if test "${ac_cv_have_u_int+set}" = set; then
22853   echo $ECHO_N "(cached) $ECHO_C" >&6
22854 else
22855
22856         cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h.  */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h.  */
22862  #include <sys/types.h>
22863 int
22864 main ()
22865 {
22866  u_int a; a = 1;
22867   ;
22868   return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875   *) ac_try_echo=$ac_try;;
22876 esac
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878   (eval "$ac_compile") 2>conftest.er1
22879   ac_status=$?
22880   grep -v '^ *+' conftest.er1 >conftest.err
22881   rm -f conftest.er1
22882   cat conftest.err >&5
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); } &&
22885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22886   { (case "(($ac_try" in
22887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888   *) ac_try_echo=$ac_try;;
22889 esac
22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891   (eval "$ac_try") 2>&5
22892   ac_status=$?
22893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894   (exit $ac_status); }; } &&
22895          { ac_try='test -s conftest.$ac_objext'
22896   { (case "(($ac_try" in
22897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898   *) ac_try_echo=$ac_try;;
22899 esac
22900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22901   (eval "$ac_try") 2>&5
22902   ac_status=$?
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); }; }; then
22905    ac_cv_have_u_int="yes"
22906 else
22907   echo "$as_me: failed program was:" >&5
22908 sed 's/^/| /' conftest.$ac_ext >&5
22909
22910          ac_cv_have_u_int="no"
22911
22912 fi
22913
22914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22915
22916 fi
22917 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
22918 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
22919 if test "x$ac_cv_have_u_int" = "xyes" ; then
22920
22921 cat >>confdefs.h <<\_ACEOF
22922 #define HAVE_U_INT 1
22923 _ACEOF
22924
22925         have_u_int=1
22926 fi
22927
22928 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
22929 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
22930 if test "${ac_cv_have_intxx_t+set}" = set; then
22931   echo $ECHO_N "(cached) $ECHO_C" >&6
22932 else
22933
22934         cat >conftest.$ac_ext <<_ACEOF
22935 /* confdefs.h.  */
22936 _ACEOF
22937 cat confdefs.h >>conftest.$ac_ext
22938 cat >>conftest.$ac_ext <<_ACEOF
22939 /* end confdefs.h.  */
22940  #include <sys/types.h>
22941 int
22942 main ()
22943 {
22944  int8_t a; int16_t b; int32_t c; a = b = c = 1;
22945   ;
22946   return 0;
22947 }
22948 _ACEOF
22949 rm -f conftest.$ac_objext
22950 if { (ac_try="$ac_compile"
22951 case "(($ac_try" in
22952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953   *) ac_try_echo=$ac_try;;
22954 esac
22955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956   (eval "$ac_compile") 2>conftest.er1
22957   ac_status=$?
22958   grep -v '^ *+' conftest.er1 >conftest.err
22959   rm -f conftest.er1
22960   cat conftest.err >&5
22961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962   (exit $ac_status); } &&
22963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22964   { (case "(($ac_try" in
22965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966   *) ac_try_echo=$ac_try;;
22967 esac
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969   (eval "$ac_try") 2>&5
22970   ac_status=$?
22971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972   (exit $ac_status); }; } &&
22973          { ac_try='test -s conftest.$ac_objext'
22974   { (case "(($ac_try" in
22975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976   *) ac_try_echo=$ac_try;;
22977 esac
22978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979   (eval "$ac_try") 2>&5
22980   ac_status=$?
22981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982   (exit $ac_status); }; }; then
22983    ac_cv_have_intxx_t="yes"
22984 else
22985   echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22987
22988          ac_cv_have_intxx_t="no"
22989
22990 fi
22991
22992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22993
22994 fi
22995 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
22996 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
22997 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
22998
22999 cat >>confdefs.h <<\_ACEOF
23000 #define HAVE_INTXX_T 1
23001 _ACEOF
23002
23003         have_intxx_t=1
23004 fi
23005
23006 if (test -z "$have_intxx_t" && \
23007            test "x$ac_cv_header_stdint_h" = "xyes")
23008 then
23009     { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
23010 echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
23011         cat >conftest.$ac_ext <<_ACEOF
23012 /* confdefs.h.  */
23013 _ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h.  */
23017  #include <stdint.h>
23018 int
23019 main ()
23020 {
23021  int8_t a; int16_t b; int32_t c; a = b = c = 1;
23022   ;
23023   return 0;
23024 }
23025 _ACEOF
23026 rm -f conftest.$ac_objext
23027 if { (ac_try="$ac_compile"
23028 case "(($ac_try" in
23029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030   *) ac_try_echo=$ac_try;;
23031 esac
23032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23033   (eval "$ac_compile") 2>conftest.er1
23034   ac_status=$?
23035   grep -v '^ *+' conftest.er1 >conftest.err
23036   rm -f conftest.er1
23037   cat conftest.err >&5
23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); } &&
23040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23041   { (case "(($ac_try" in
23042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043   *) ac_try_echo=$ac_try;;
23044 esac
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046   (eval "$ac_try") 2>&5
23047   ac_status=$?
23048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049   (exit $ac_status); }; } &&
23050          { ac_try='test -s conftest.$ac_objext'
23051   { (case "(($ac_try" in
23052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053   *) ac_try_echo=$ac_try;;
23054 esac
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056   (eval "$ac_try") 2>&5
23057   ac_status=$?
23058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059   (exit $ac_status); }; }; then
23060
23061                         cat >>confdefs.h <<\_ACEOF
23062 #define HAVE_INTXX_T 1
23063 _ACEOF
23064
23065                         { echo "$as_me:$LINENO: result: yes" >&5
23066 echo "${ECHO_T}yes" >&6; }
23067
23068 else
23069   echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23071
23072          { echo "$as_me:$LINENO: result: no" >&5
23073 echo "${ECHO_T}no" >&6; }
23074
23075 fi
23076
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 fi
23079
23080 { echo "$as_me:$LINENO: checking for int64_t type" >&5
23081 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
23082 if test "${ac_cv_have_int64_t+set}" = set; then
23083   echo $ECHO_N "(cached) $ECHO_C" >&6
23084 else
23085
23086         cat >conftest.$ac_ext <<_ACEOF
23087 /* confdefs.h.  */
23088 _ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h.  */
23092
23093 #include <sys/types.h>
23094 #ifdef HAVE_STDINT_H
23095 # include <stdint.h>
23096 #endif
23097 #include <sys/socket.h>
23098 #ifdef HAVE_SYS_BITYPES_H
23099 # include <sys/bitypes.h>
23100 #endif
23101
23102 int
23103 main ()
23104 {
23105  int64_t a; a = 1;
23106   ;
23107   return 0;
23108 }
23109 _ACEOF
23110 rm -f conftest.$ac_objext
23111 if { (ac_try="$ac_compile"
23112 case "(($ac_try" in
23113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114   *) ac_try_echo=$ac_try;;
23115 esac
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117   (eval "$ac_compile") 2>conftest.er1
23118   ac_status=$?
23119   grep -v '^ *+' conftest.er1 >conftest.err
23120   rm -f conftest.er1
23121   cat conftest.err >&5
23122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123   (exit $ac_status); } &&
23124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23125   { (case "(($ac_try" in
23126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127   *) ac_try_echo=$ac_try;;
23128 esac
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130   (eval "$ac_try") 2>&5
23131   ac_status=$?
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); }; } &&
23134          { ac_try='test -s conftest.$ac_objext'
23135   { (case "(($ac_try" in
23136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137   *) ac_try_echo=$ac_try;;
23138 esac
23139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140   (eval "$ac_try") 2>&5
23141   ac_status=$?
23142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); }; }; then
23144    ac_cv_have_int64_t="yes"
23145 else
23146   echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23148
23149          ac_cv_have_int64_t="no"
23150
23151 fi
23152
23153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154
23155 fi
23156 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
23157 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
23158 if test "x$ac_cv_have_int64_t" = "xyes" ; then
23159
23160 cat >>confdefs.h <<\_ACEOF
23161 #define HAVE_INT64_T 1
23162 _ACEOF
23163
23164 fi
23165
23166 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
23167 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
23168 if test "${ac_cv_have_u_intxx_t+set}" = set; then
23169   echo $ECHO_N "(cached) $ECHO_C" >&6
23170 else
23171
23172         cat >conftest.$ac_ext <<_ACEOF
23173 /* confdefs.h.  */
23174 _ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h.  */
23178  #include <sys/types.h>
23179 int
23180 main ()
23181 {
23182  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
23183   ;
23184   return 0;
23185 }
23186 _ACEOF
23187 rm -f conftest.$ac_objext
23188 if { (ac_try="$ac_compile"
23189 case "(($ac_try" in
23190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191   *) ac_try_echo=$ac_try;;
23192 esac
23193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194   (eval "$ac_compile") 2>conftest.er1
23195   ac_status=$?
23196   grep -v '^ *+' conftest.er1 >conftest.err
23197   rm -f conftest.er1
23198   cat conftest.err >&5
23199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200   (exit $ac_status); } &&
23201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23202   { (case "(($ac_try" in
23203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204   *) ac_try_echo=$ac_try;;
23205 esac
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207   (eval "$ac_try") 2>&5
23208   ac_status=$?
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); }; } &&
23211          { ac_try='test -s conftest.$ac_objext'
23212   { (case "(($ac_try" in
23213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214   *) ac_try_echo=$ac_try;;
23215 esac
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217   (eval "$ac_try") 2>&5
23218   ac_status=$?
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); }; }; then
23221    ac_cv_have_u_intxx_t="yes"
23222 else
23223   echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226          ac_cv_have_u_intxx_t="no"
23227
23228 fi
23229
23230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23231
23232 fi
23233 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
23234 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
23235 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
23236
23237 cat >>confdefs.h <<\_ACEOF
23238 #define HAVE_U_INTXX_T 1
23239 _ACEOF
23240
23241         have_u_intxx_t=1
23242 fi
23243
23244 if test -z "$have_u_intxx_t" ; then
23245     { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
23246 echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
23247         cat >conftest.$ac_ext <<_ACEOF
23248 /* confdefs.h.  */
23249 _ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h.  */
23253  #include <sys/socket.h>
23254 int
23255 main ()
23256 {
23257  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
23258   ;
23259   return 0;
23260 }
23261 _ACEOF
23262 rm -f conftest.$ac_objext
23263 if { (ac_try="$ac_compile"
23264 case "(($ac_try" in
23265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266   *) ac_try_echo=$ac_try;;
23267 esac
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269   (eval "$ac_compile") 2>conftest.er1
23270   ac_status=$?
23271   grep -v '^ *+' conftest.er1 >conftest.err
23272   rm -f conftest.er1
23273   cat conftest.err >&5
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); } &&
23276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23277   { (case "(($ac_try" in
23278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279   *) ac_try_echo=$ac_try;;
23280 esac
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282   (eval "$ac_try") 2>&5
23283   ac_status=$?
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); }; } &&
23286          { ac_try='test -s conftest.$ac_objext'
23287   { (case "(($ac_try" in
23288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289   *) ac_try_echo=$ac_try;;
23290 esac
23291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23292   (eval "$ac_try") 2>&5
23293   ac_status=$?
23294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); }; }; then
23296
23297                         cat >>confdefs.h <<\_ACEOF
23298 #define HAVE_U_INTXX_T 1
23299 _ACEOF
23300
23301                         { echo "$as_me:$LINENO: result: yes" >&5
23302 echo "${ECHO_T}yes" >&6; }
23303
23304 else
23305   echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308          { echo "$as_me:$LINENO: result: no" >&5
23309 echo "${ECHO_T}no" >&6; }
23310
23311 fi
23312
23313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23314 fi
23315
23316 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
23317 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
23318 if test "${ac_cv_have_u_int64_t+set}" = set; then
23319   echo $ECHO_N "(cached) $ECHO_C" >&6
23320 else
23321
23322         cat >conftest.$ac_ext <<_ACEOF
23323 /* confdefs.h.  */
23324 _ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h.  */
23328  #include <sys/types.h>
23329 int
23330 main ()
23331 {
23332  u_int64_t a; a = 1;
23333   ;
23334   return 0;
23335 }
23336 _ACEOF
23337 rm -f conftest.$ac_objext
23338 if { (ac_try="$ac_compile"
23339 case "(($ac_try" in
23340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341   *) ac_try_echo=$ac_try;;
23342 esac
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344   (eval "$ac_compile") 2>conftest.er1
23345   ac_status=$?
23346   grep -v '^ *+' conftest.er1 >conftest.err
23347   rm -f conftest.er1
23348   cat conftest.err >&5
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); } &&
23351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23352   { (case "(($ac_try" in
23353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23354   *) ac_try_echo=$ac_try;;
23355 esac
23356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23357   (eval "$ac_try") 2>&5
23358   ac_status=$?
23359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360   (exit $ac_status); }; } &&
23361          { ac_try='test -s conftest.$ac_objext'
23362   { (case "(($ac_try" in
23363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364   *) ac_try_echo=$ac_try;;
23365 esac
23366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367   (eval "$ac_try") 2>&5
23368   ac_status=$?
23369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370   (exit $ac_status); }; }; then
23371    ac_cv_have_u_int64_t="yes"
23372 else
23373   echo "$as_me: failed program was:" >&5
23374 sed 's/^/| /' conftest.$ac_ext >&5
23375
23376          ac_cv_have_u_int64_t="no"
23377
23378 fi
23379
23380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23381
23382 fi
23383 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
23384 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
23385 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
23386
23387 cat >>confdefs.h <<\_ACEOF
23388 #define HAVE_U_INT64_T 1
23389 _ACEOF
23390
23391         have_u_int64_t=1
23392 fi
23393
23394 if test -z "$have_u_int64_t" ; then
23395     { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
23396 echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
23397         cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h.  */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h.  */
23403  #include <sys/bitypes.h>
23404 int
23405 main ()
23406 {
23407  u_int64_t a; a = 1
23408   ;
23409   return 0;
23410 }
23411 _ACEOF
23412 rm -f conftest.$ac_objext
23413 if { (ac_try="$ac_compile"
23414 case "(($ac_try" in
23415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23416   *) ac_try_echo=$ac_try;;
23417 esac
23418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23419   (eval "$ac_compile") 2>conftest.er1
23420   ac_status=$?
23421   grep -v '^ *+' conftest.er1 >conftest.err
23422   rm -f conftest.er1
23423   cat conftest.err >&5
23424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); } &&
23426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23427   { (case "(($ac_try" in
23428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429   *) ac_try_echo=$ac_try;;
23430 esac
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432   (eval "$ac_try") 2>&5
23433   ac_status=$?
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); }; } &&
23436          { ac_try='test -s conftest.$ac_objext'
23437   { (case "(($ac_try" in
23438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439   *) ac_try_echo=$ac_try;;
23440 esac
23441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23442   (eval "$ac_try") 2>&5
23443   ac_status=$?
23444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445   (exit $ac_status); }; }; then
23446
23447                         cat >>confdefs.h <<\_ACEOF
23448 #define HAVE_U_INT64_T 1
23449 _ACEOF
23450
23451                         { echo "$as_me:$LINENO: result: yes" >&5
23452 echo "${ECHO_T}yes" >&6; }
23453
23454 else
23455   echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23457
23458          { echo "$as_me:$LINENO: result: no" >&5
23459 echo "${ECHO_T}no" >&6; }
23460
23461 fi
23462
23463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23464 fi
23465
23466 if test -z "$have_u_intxx_t" ; then
23467         { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
23468 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
23469 if test "${ac_cv_have_uintxx_t+set}" = set; then
23470   echo $ECHO_N "(cached) $ECHO_C" >&6
23471 else
23472
23473                 cat >conftest.$ac_ext <<_ACEOF
23474 /* confdefs.h.  */
23475 _ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h.  */
23479
23480 #include <sys/types.h>
23481
23482 int
23483 main ()
23484 {
23485  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
23486   ;
23487   return 0;
23488 }
23489 _ACEOF
23490 rm -f conftest.$ac_objext
23491 if { (ac_try="$ac_compile"
23492 case "(($ac_try" in
23493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23494   *) ac_try_echo=$ac_try;;
23495 esac
23496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23497   (eval "$ac_compile") 2>conftest.er1
23498   ac_status=$?
23499   grep -v '^ *+' conftest.er1 >conftest.err
23500   rm -f conftest.er1
23501   cat conftest.err >&5
23502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503   (exit $ac_status); } &&
23504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23505   { (case "(($ac_try" in
23506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507   *) ac_try_echo=$ac_try;;
23508 esac
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510   (eval "$ac_try") 2>&5
23511   ac_status=$?
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); }; } &&
23514          { ac_try='test -s conftest.$ac_objext'
23515   { (case "(($ac_try" in
23516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517   *) ac_try_echo=$ac_try;;
23518 esac
23519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23520   (eval "$ac_try") 2>&5
23521   ac_status=$?
23522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523   (exit $ac_status); }; }; then
23524    ac_cv_have_uintxx_t="yes"
23525 else
23526   echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529          ac_cv_have_uintxx_t="no"
23530
23531 fi
23532
23533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534
23535 fi
23536 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
23537 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
23538         if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
23539
23540 cat >>confdefs.h <<\_ACEOF
23541 #define HAVE_UINTXX_T 1
23542 _ACEOF
23543
23544         fi
23545 fi
23546
23547 if test -z "$have_uintxx_t" ; then
23548     { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
23549 echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
23550         cat >conftest.$ac_ext <<_ACEOF
23551 /* confdefs.h.  */
23552 _ACEOF
23553 cat confdefs.h >>conftest.$ac_ext
23554 cat >>conftest.$ac_ext <<_ACEOF
23555 /* end confdefs.h.  */
23556  #include <stdint.h>
23557 int
23558 main ()
23559 {
23560  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
23561   ;
23562   return 0;
23563 }
23564 _ACEOF
23565 rm -f conftest.$ac_objext
23566 if { (ac_try="$ac_compile"
23567 case "(($ac_try" in
23568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569   *) ac_try_echo=$ac_try;;
23570 esac
23571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572   (eval "$ac_compile") 2>conftest.er1
23573   ac_status=$?
23574   grep -v '^ *+' conftest.er1 >conftest.err
23575   rm -f conftest.er1
23576   cat conftest.err >&5
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); } &&
23579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23580   { (case "(($ac_try" in
23581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582   *) ac_try_echo=$ac_try;;
23583 esac
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585   (eval "$ac_try") 2>&5
23586   ac_status=$?
23587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588   (exit $ac_status); }; } &&
23589          { ac_try='test -s conftest.$ac_objext'
23590   { (case "(($ac_try" in
23591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592   *) ac_try_echo=$ac_try;;
23593 esac
23594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595   (eval "$ac_try") 2>&5
23596   ac_status=$?
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); }; }; then
23599
23600                         cat >>confdefs.h <<\_ACEOF
23601 #define HAVE_UINTXX_T 1
23602 _ACEOF
23603
23604                         { echo "$as_me:$LINENO: result: yes" >&5
23605 echo "${ECHO_T}yes" >&6; }
23606
23607 else
23608   echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23610
23611          { echo "$as_me:$LINENO: result: no" >&5
23612 echo "${ECHO_T}no" >&6; }
23613
23614 fi
23615
23616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23617 fi
23618
23619 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
23620            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
23621 then
23622         { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
23623 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
23624         cat >conftest.$ac_ext <<_ACEOF
23625 /* confdefs.h.  */
23626 _ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h.  */
23630
23631 #include <sys/bitypes.h>
23632
23633 int
23634 main ()
23635 {
23636
23637                         int8_t a; int16_t b; int32_t c;
23638                         u_int8_t e; u_int16_t f; u_int32_t g;
23639                         a = b = c = e = f = g = 1;
23640
23641   ;
23642   return 0;
23643 }
23644 _ACEOF
23645 rm -f conftest.$ac_objext
23646 if { (ac_try="$ac_compile"
23647 case "(($ac_try" in
23648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23649   *) ac_try_echo=$ac_try;;
23650 esac
23651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23652   (eval "$ac_compile") 2>conftest.er1
23653   ac_status=$?
23654   grep -v '^ *+' conftest.er1 >conftest.err
23655   rm -f conftest.er1
23656   cat conftest.err >&5
23657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658   (exit $ac_status); } &&
23659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23660   { (case "(($ac_try" in
23661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23662   *) ac_try_echo=$ac_try;;
23663 esac
23664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23665   (eval "$ac_try") 2>&5
23666   ac_status=$?
23667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668   (exit $ac_status); }; } &&
23669          { ac_try='test -s conftest.$ac_objext'
23670   { (case "(($ac_try" in
23671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672   *) ac_try_echo=$ac_try;;
23673 esac
23674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675   (eval "$ac_try") 2>&5
23676   ac_status=$?
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); }; }; then
23679
23680                         cat >>confdefs.h <<\_ACEOF
23681 #define HAVE_U_INTXX_T 1
23682 _ACEOF
23683
23684                         cat >>confdefs.h <<\_ACEOF
23685 #define HAVE_INTXX_T 1
23686 _ACEOF
23687
23688                         { echo "$as_me:$LINENO: result: yes" >&5
23689 echo "${ECHO_T}yes" >&6; }
23690
23691 else
23692   echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23694
23695         { echo "$as_me:$LINENO: result: no" >&5
23696 echo "${ECHO_T}no" >&6; }
23697
23698 fi
23699
23700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23701 fi
23702
23703
23704 { echo "$as_me:$LINENO: checking for u_char" >&5
23705 echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
23706 if test "${ac_cv_have_u_char+set}" = set; then
23707   echo $ECHO_N "(cached) $ECHO_C" >&6
23708 else
23709
23710         cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h.  */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h.  */
23716
23717 #include <sys/types.h>
23718
23719 int
23720 main ()
23721 {
23722  u_char foo; foo = 125;
23723   ;
23724   return 0;
23725 }
23726 _ACEOF
23727 rm -f conftest.$ac_objext
23728 if { (ac_try="$ac_compile"
23729 case "(($ac_try" in
23730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731   *) ac_try_echo=$ac_try;;
23732 esac
23733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23734   (eval "$ac_compile") 2>conftest.er1
23735   ac_status=$?
23736   grep -v '^ *+' conftest.er1 >conftest.err
23737   rm -f conftest.er1
23738   cat conftest.err >&5
23739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); } &&
23741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23742   { (case "(($ac_try" in
23743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744   *) ac_try_echo=$ac_try;;
23745 esac
23746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747   (eval "$ac_try") 2>&5
23748   ac_status=$?
23749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750   (exit $ac_status); }; } &&
23751          { ac_try='test -s conftest.$ac_objext'
23752   { (case "(($ac_try" in
23753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754   *) ac_try_echo=$ac_try;;
23755 esac
23756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757   (eval "$ac_try") 2>&5
23758   ac_status=$?
23759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); }; }; then
23761    ac_cv_have_u_char="yes"
23762 else
23763   echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23765
23766          ac_cv_have_u_char="no"
23767
23768 fi
23769
23770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23771
23772 fi
23773 { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
23774 echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
23775 if test "x$ac_cv_have_u_char" = "xyes" ; then
23776
23777 cat >>confdefs.h <<\_ACEOF
23778 #define HAVE_U_CHAR 1
23779 _ACEOF
23780
23781 fi
23782
23783
23784    { echo "$as_me:$LINENO: checking for socklen_t" >&5
23785 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23786 if test "${ac_cv_type_socklen_t+set}" = set; then
23787   echo $ECHO_N "(cached) $ECHO_C" >&6
23788 else
23789   cat >conftest.$ac_ext <<_ACEOF
23790 /* confdefs.h.  */
23791 _ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h.  */
23795 #include <sys/types.h>
23796 #include <sys/socket.h>
23797
23798 typedef socklen_t ac__type_new_;
23799 int
23800 main ()
23801 {
23802 if ((ac__type_new_ *) 0)
23803   return 0;
23804 if (sizeof (ac__type_new_))
23805   return 0;
23806   ;
23807   return 0;
23808 }
23809 _ACEOF
23810 rm -f conftest.$ac_objext
23811 if { (ac_try="$ac_compile"
23812 case "(($ac_try" in
23813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23814   *) ac_try_echo=$ac_try;;
23815 esac
23816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23817   (eval "$ac_compile") 2>conftest.er1
23818   ac_status=$?
23819   grep -v '^ *+' conftest.er1 >conftest.err
23820   rm -f conftest.er1
23821   cat conftest.err >&5
23822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823   (exit $ac_status); } &&
23824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23825   { (case "(($ac_try" in
23826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827   *) ac_try_echo=$ac_try;;
23828 esac
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830   (eval "$ac_try") 2>&5
23831   ac_status=$?
23832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833   (exit $ac_status); }; } &&
23834          { ac_try='test -s conftest.$ac_objext'
23835   { (case "(($ac_try" in
23836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837   *) ac_try_echo=$ac_try;;
23838 esac
23839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840   (eval "$ac_try") 2>&5
23841   ac_status=$?
23842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843   (exit $ac_status); }; }; then
23844   ac_cv_type_socklen_t=yes
23845 else
23846   echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23848
23849         ac_cv_type_socklen_t=no
23850 fi
23851
23852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 fi
23854 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23855 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23856 if test $ac_cv_type_socklen_t = yes; then
23857   :
23858 else
23859
23860       { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
23861 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
23862       if test "${curl_cv_socklen_t_equiv+set}" = set; then
23863   echo $ECHO_N "(cached) $ECHO_C" >&6
23864 else
23865
23866          # Systems have either "struct sockaddr *" or
23867          # "void *" as the second argument to getpeername
23868          curl_cv_socklen_t_equiv=
23869          for arg2 in "struct sockaddr" void; do
23870             for t in int size_t unsigned long "unsigned long"; do
23871                cat >conftest.$ac_ext <<_ACEOF
23872 /* confdefs.h.  */
23873 _ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h.  */
23877
23878                   #include <sys/types.h>
23879                   #include <sys/socket.h>
23880
23881                   int getpeername (int, $arg2 *, $t *);
23882
23883 int
23884 main ()
23885 {
23886
23887                   $t len;
23888                   getpeername(0,0,&len);
23889
23890   ;
23891   return 0;
23892 }
23893 _ACEOF
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
23896 case "(($ac_try" in
23897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898   *) ac_try_echo=$ac_try;;
23899 esac
23900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901   (eval "$ac_compile") 2>conftest.er1
23902   ac_status=$?
23903   grep -v '^ *+' conftest.er1 >conftest.err
23904   rm -f conftest.er1
23905   cat conftest.err >&5
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); } &&
23908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23909   { (case "(($ac_try" in
23910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911   *) ac_try_echo=$ac_try;;
23912 esac
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914   (eval "$ac_try") 2>&5
23915   ac_status=$?
23916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917   (exit $ac_status); }; } &&
23918          { ac_try='test -s conftest.$ac_objext'
23919   { (case "(($ac_try" in
23920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23921   *) ac_try_echo=$ac_try;;
23922 esac
23923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23924   (eval "$ac_try") 2>&5
23925   ac_status=$?
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); }; }; then
23928
23929                   curl_cv_socklen_t_equiv="$t"
23930                   break
23931
23932 else
23933   echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23935
23936
23937 fi
23938
23939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23940             done
23941          done
23942
23943          if test "x$curl_cv_socklen_t_equiv" = x; then
23944             { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
23945 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
23946    { (exit 1); exit 1; }; }
23947          fi
23948
23949 fi
23950
23951       { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
23952 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
23953
23954 cat >>confdefs.h <<_ACEOF
23955 #define socklen_t $curl_cv_socklen_t_equiv
23956 _ACEOF
23957
23958 fi
23959
23960
23961
23962 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23963 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23964 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23965   echo $ECHO_N "(cached) $ECHO_C" >&6
23966 else
23967   cat >conftest.$ac_ext <<_ACEOF
23968 /* confdefs.h.  */
23969 _ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h.  */
23973 #include <signal.h>
23974
23975 typedef sig_atomic_t ac__type_new_;
23976 int
23977 main ()
23978 {
23979 if ((ac__type_new_ *) 0)
23980   return 0;
23981 if (sizeof (ac__type_new_))
23982   return 0;
23983   ;
23984   return 0;
23985 }
23986 _ACEOF
23987 rm -f conftest.$ac_objext
23988 if { (ac_try="$ac_compile"
23989 case "(($ac_try" in
23990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23991   *) ac_try_echo=$ac_try;;
23992 esac
23993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23994   (eval "$ac_compile") 2>conftest.er1
23995   ac_status=$?
23996   grep -v '^ *+' conftest.er1 >conftest.err
23997   rm -f conftest.er1
23998   cat conftest.err >&5
23999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000   (exit $ac_status); } &&
24001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24002   { (case "(($ac_try" in
24003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004   *) ac_try_echo=$ac_try;;
24005 esac
24006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24007   (eval "$ac_try") 2>&5
24008   ac_status=$?
24009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010   (exit $ac_status); }; } &&
24011          { ac_try='test -s conftest.$ac_objext'
24012   { (case "(($ac_try" in
24013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014   *) ac_try_echo=$ac_try;;
24015 esac
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017   (eval "$ac_try") 2>&5
24018   ac_status=$?
24019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020   (exit $ac_status); }; }; then
24021   ac_cv_type_sig_atomic_t=yes
24022 else
24023   echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24025
24026         ac_cv_type_sig_atomic_t=no
24027 fi
24028
24029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24030 fi
24031 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24032 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24033 if test $ac_cv_type_sig_atomic_t = yes; then
24034
24035 cat >>confdefs.h <<_ACEOF
24036 #define HAVE_SIG_ATOMIC_T 1
24037 _ACEOF
24038
24039
24040 fi
24041
24042
24043 { echo "$as_me:$LINENO: checking for in_addr_t" >&5
24044 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
24045 if test "${ac_cv_type_in_addr_t+set}" = set; then
24046   echo $ECHO_N "(cached) $ECHO_C" >&6
24047 else
24048   cat >conftest.$ac_ext <<_ACEOF
24049 /* confdefs.h.  */
24050 _ACEOF
24051 cat confdefs.h >>conftest.$ac_ext
24052 cat >>conftest.$ac_ext <<_ACEOF
24053 /* end confdefs.h.  */
24054 #include <sys/types.h>
24055 #include <netinet/in.h>
24056
24057 typedef in_addr_t ac__type_new_;
24058 int
24059 main ()
24060 {
24061 if ((ac__type_new_ *) 0)
24062   return 0;
24063 if (sizeof (ac__type_new_))
24064   return 0;
24065   ;
24066   return 0;
24067 }
24068 _ACEOF
24069 rm -f conftest.$ac_objext
24070 if { (ac_try="$ac_compile"
24071 case "(($ac_try" in
24072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073   *) ac_try_echo=$ac_try;;
24074 esac
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076   (eval "$ac_compile") 2>conftest.er1
24077   ac_status=$?
24078   grep -v '^ *+' conftest.er1 >conftest.err
24079   rm -f conftest.er1
24080   cat conftest.err >&5
24081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082   (exit $ac_status); } &&
24083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24084   { (case "(($ac_try" in
24085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24086   *) ac_try_echo=$ac_try;;
24087 esac
24088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24089   (eval "$ac_try") 2>&5
24090   ac_status=$?
24091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092   (exit $ac_status); }; } &&
24093          { ac_try='test -s conftest.$ac_objext'
24094   { (case "(($ac_try" in
24095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096   *) ac_try_echo=$ac_try;;
24097 esac
24098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099   (eval "$ac_try") 2>&5
24100   ac_status=$?
24101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102   (exit $ac_status); }; }; then
24103   ac_cv_type_in_addr_t=yes
24104 else
24105   echo "$as_me: failed program was:" >&5
24106 sed 's/^/| /' conftest.$ac_ext >&5
24107
24108         ac_cv_type_in_addr_t=no
24109 fi
24110
24111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24112 fi
24113 { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
24114 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
24115 if test $ac_cv_type_in_addr_t = yes; then
24116
24117 cat >>confdefs.h <<_ACEOF
24118 #define HAVE_IN_ADDR_T 1
24119 _ACEOF
24120
24121
24122 fi
24123
24124
24125 { echo "$as_me:$LINENO: checking for size_t" >&5
24126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24127 if test "${ac_cv_have_size_t+set}" = set; then
24128   echo $ECHO_N "(cached) $ECHO_C" >&6
24129 else
24130
24131         cat >conftest.$ac_ext <<_ACEOF
24132 /* confdefs.h.  */
24133 _ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h.  */
24137
24138 #include <sys/types.h>
24139
24140 int
24141 main ()
24142 {
24143  size_t foo; foo = 1235;
24144   ;
24145   return 0;
24146 }
24147 _ACEOF
24148 rm -f conftest.$ac_objext
24149 if { (ac_try="$ac_compile"
24150 case "(($ac_try" in
24151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152   *) ac_try_echo=$ac_try;;
24153 esac
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155   (eval "$ac_compile") 2>conftest.er1
24156   ac_status=$?
24157   grep -v '^ *+' conftest.er1 >conftest.err
24158   rm -f conftest.er1
24159   cat conftest.err >&5
24160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); } &&
24162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24163   { (case "(($ac_try" in
24164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165   *) ac_try_echo=$ac_try;;
24166 esac
24167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24168   (eval "$ac_try") 2>&5
24169   ac_status=$?
24170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171   (exit $ac_status); }; } &&
24172          { ac_try='test -s conftest.$ac_objext'
24173   { (case "(($ac_try" in
24174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24175   *) ac_try_echo=$ac_try;;
24176 esac
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178   (eval "$ac_try") 2>&5
24179   ac_status=$?
24180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181   (exit $ac_status); }; }; then
24182    ac_cv_have_size_t="yes"
24183 else
24184   echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24186
24187          ac_cv_have_size_t="no"
24188
24189 fi
24190
24191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24192
24193 fi
24194 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
24195 echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
24196 if test "x$ac_cv_have_size_t" = "xyes" ; then
24197
24198 cat >>confdefs.h <<\_ACEOF
24199 #define HAVE_SIZE_T 1
24200 _ACEOF
24201
24202 fi
24203
24204 { echo "$as_me:$LINENO: checking for ssize_t" >&5
24205 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
24206 if test "${ac_cv_have_ssize_t+set}" = set; then
24207   echo $ECHO_N "(cached) $ECHO_C" >&6
24208 else
24209
24210         cat >conftest.$ac_ext <<_ACEOF
24211 /* confdefs.h.  */
24212 _ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h.  */
24216
24217 #include <sys/types.h>
24218
24219 int
24220 main ()
24221 {
24222  ssize_t foo; foo = 1235;
24223   ;
24224   return 0;
24225 }
24226 _ACEOF
24227 rm -f conftest.$ac_objext
24228 if { (ac_try="$ac_compile"
24229 case "(($ac_try" in
24230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231   *) ac_try_echo=$ac_try;;
24232 esac
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234   (eval "$ac_compile") 2>conftest.er1
24235   ac_status=$?
24236   grep -v '^ *+' conftest.er1 >conftest.err
24237   rm -f conftest.er1
24238   cat conftest.err >&5
24239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240   (exit $ac_status); } &&
24241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24242   { (case "(($ac_try" in
24243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244   *) ac_try_echo=$ac_try;;
24245 esac
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247   (eval "$ac_try") 2>&5
24248   ac_status=$?
24249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250   (exit $ac_status); }; } &&
24251          { ac_try='test -s conftest.$ac_objext'
24252   { (case "(($ac_try" in
24253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254   *) ac_try_echo=$ac_try;;
24255 esac
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257   (eval "$ac_try") 2>&5
24258   ac_status=$?
24259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); }; }; then
24261    ac_cv_have_ssize_t="yes"
24262 else
24263   echo "$as_me: failed program was:" >&5
24264 sed 's/^/| /' conftest.$ac_ext >&5
24265
24266          ac_cv_have_ssize_t="no"
24267
24268 fi
24269
24270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24271
24272 fi
24273 { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
24274 echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
24275 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
24276
24277 cat >>confdefs.h <<\_ACEOF
24278 #define HAVE_SSIZE_T 1
24279 _ACEOF
24280
24281 fi
24282
24283 { echo "$as_me:$LINENO: checking for clock_t" >&5
24284 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
24285 if test "${ac_cv_have_clock_t+set}" = set; then
24286   echo $ECHO_N "(cached) $ECHO_C" >&6
24287 else
24288
24289         cat >conftest.$ac_ext <<_ACEOF
24290 /* confdefs.h.  */
24291 _ACEOF
24292 cat confdefs.h >>conftest.$ac_ext
24293 cat >>conftest.$ac_ext <<_ACEOF
24294 /* end confdefs.h.  */
24295
24296 #include <time.h>
24297
24298 int
24299 main ()
24300 {
24301  clock_t foo; foo = 1235;
24302   ;
24303   return 0;
24304 }
24305 _ACEOF
24306 rm -f conftest.$ac_objext
24307 if { (ac_try="$ac_compile"
24308 case "(($ac_try" in
24309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310   *) ac_try_echo=$ac_try;;
24311 esac
24312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313   (eval "$ac_compile") 2>conftest.er1
24314   ac_status=$?
24315   grep -v '^ *+' conftest.er1 >conftest.err
24316   rm -f conftest.er1
24317   cat conftest.err >&5
24318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319   (exit $ac_status); } &&
24320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24321   { (case "(($ac_try" in
24322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24323   *) ac_try_echo=$ac_try;;
24324 esac
24325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24326   (eval "$ac_try") 2>&5
24327   ac_status=$?
24328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329   (exit $ac_status); }; } &&
24330          { ac_try='test -s conftest.$ac_objext'
24331   { (case "(($ac_try" in
24332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333   *) ac_try_echo=$ac_try;;
24334 esac
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336   (eval "$ac_try") 2>&5
24337   ac_status=$?
24338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339   (exit $ac_status); }; }; then
24340    ac_cv_have_clock_t="yes"
24341 else
24342   echo "$as_me: failed program was:" >&5
24343 sed 's/^/| /' conftest.$ac_ext >&5
24344
24345          ac_cv_have_clock_t="no"
24346
24347 fi
24348
24349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24350
24351 fi
24352 { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
24353 echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
24354 if test "x$ac_cv_have_clock_t" = "xyes" ; then
24355
24356 cat >>confdefs.h <<\_ACEOF
24357 #define HAVE_CLOCK_T 1
24358 _ACEOF
24359
24360 fi
24361
24362 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
24363 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
24364 if test "${ac_cv_have_sa_family_t+set}" = set; then
24365   echo $ECHO_N "(cached) $ECHO_C" >&6
24366 else
24367
24368         cat >conftest.$ac_ext <<_ACEOF
24369 /* confdefs.h.  */
24370 _ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h.  */
24374
24375 #include <sys/types.h>
24376 #include <sys/socket.h>
24377
24378 int
24379 main ()
24380 {
24381  sa_family_t foo; foo = 1235;
24382   ;
24383   return 0;
24384 }
24385 _ACEOF
24386 rm -f conftest.$ac_objext
24387 if { (ac_try="$ac_compile"
24388 case "(($ac_try" in
24389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390   *) ac_try_echo=$ac_try;;
24391 esac
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393   (eval "$ac_compile") 2>conftest.er1
24394   ac_status=$?
24395   grep -v '^ *+' conftest.er1 >conftest.err
24396   rm -f conftest.er1
24397   cat conftest.err >&5
24398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399   (exit $ac_status); } &&
24400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24401   { (case "(($ac_try" in
24402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24403   *) ac_try_echo=$ac_try;;
24404 esac
24405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24406   (eval "$ac_try") 2>&5
24407   ac_status=$?
24408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409   (exit $ac_status); }; } &&
24410          { ac_try='test -s conftest.$ac_objext'
24411   { (case "(($ac_try" in
24412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413   *) ac_try_echo=$ac_try;;
24414 esac
24415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416   (eval "$ac_try") 2>&5
24417   ac_status=$?
24418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419   (exit $ac_status); }; }; then
24420    ac_cv_have_sa_family_t="yes"
24421 else
24422   echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24424
24425          cat >conftest.$ac_ext <<_ACEOF
24426 /* confdefs.h.  */
24427 _ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h.  */
24431
24432 #include <sys/types.h>
24433 #include <sys/socket.h>
24434 #include <netinet/in.h>
24435
24436 int
24437 main ()
24438 {
24439  sa_family_t foo; foo = 1235;
24440   ;
24441   return 0;
24442 }
24443 _ACEOF
24444 rm -f conftest.$ac_objext
24445 if { (ac_try="$ac_compile"
24446 case "(($ac_try" in
24447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24448   *) ac_try_echo=$ac_try;;
24449 esac
24450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24451   (eval "$ac_compile") 2>conftest.er1
24452   ac_status=$?
24453   grep -v '^ *+' conftest.er1 >conftest.err
24454   rm -f conftest.er1
24455   cat conftest.err >&5
24456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457   (exit $ac_status); } &&
24458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24459   { (case "(($ac_try" in
24460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24461   *) ac_try_echo=$ac_try;;
24462 esac
24463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24464   (eval "$ac_try") 2>&5
24465   ac_status=$?
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); }; } &&
24468          { ac_try='test -s conftest.$ac_objext'
24469   { (case "(($ac_try" in
24470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471   *) ac_try_echo=$ac_try;;
24472 esac
24473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474   (eval "$ac_try") 2>&5
24475   ac_status=$?
24476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477   (exit $ac_status); }; }; then
24478    ac_cv_have_sa_family_t="yes"
24479 else
24480   echo "$as_me: failed program was:" >&5
24481 sed 's/^/| /' conftest.$ac_ext >&5
24482
24483          ac_cv_have_sa_family_t="no"
24484
24485 fi
24486
24487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24488
24489 fi
24490
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492
24493 fi
24494 { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
24495 echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
24496 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
24497
24498 cat >>confdefs.h <<\_ACEOF
24499 #define HAVE_SA_FAMILY_T 1
24500 _ACEOF
24501
24502 fi
24503
24504 { echo "$as_me:$LINENO: checking for pid_t" >&5
24505 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24506 if test "${ac_cv_have_pid_t+set}" = set; then
24507   echo $ECHO_N "(cached) $ECHO_C" >&6
24508 else
24509
24510         cat >conftest.$ac_ext <<_ACEOF
24511 /* confdefs.h.  */
24512 _ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h.  */
24516
24517 #include <sys/types.h>
24518
24519 int
24520 main ()
24521 {
24522  pid_t foo; foo = 1235;
24523   ;
24524   return 0;
24525 }
24526 _ACEOF
24527 rm -f conftest.$ac_objext
24528 if { (ac_try="$ac_compile"
24529 case "(($ac_try" in
24530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24531   *) ac_try_echo=$ac_try;;
24532 esac
24533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24534   (eval "$ac_compile") 2>conftest.er1
24535   ac_status=$?
24536   grep -v '^ *+' conftest.er1 >conftest.err
24537   rm -f conftest.er1
24538   cat conftest.err >&5
24539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540   (exit $ac_status); } &&
24541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24542   { (case "(($ac_try" in
24543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544   *) ac_try_echo=$ac_try;;
24545 esac
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547   (eval "$ac_try") 2>&5
24548   ac_status=$?
24549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550   (exit $ac_status); }; } &&
24551          { ac_try='test -s conftest.$ac_objext'
24552   { (case "(($ac_try" in
24553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554   *) ac_try_echo=$ac_try;;
24555 esac
24556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557   (eval "$ac_try") 2>&5
24558   ac_status=$?
24559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560   (exit $ac_status); }; }; then
24561    ac_cv_have_pid_t="yes"
24562 else
24563   echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566          ac_cv_have_pid_t="no"
24567
24568 fi
24569
24570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571
24572 fi
24573 { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
24574 echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
24575 if test "x$ac_cv_have_pid_t" = "xyes" ; then
24576
24577 cat >>confdefs.h <<\_ACEOF
24578 #define HAVE_PID_T 1
24579 _ACEOF
24580
24581 fi
24582
24583 { echo "$as_me:$LINENO: checking for mode_t" >&5
24584 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24585 if test "${ac_cv_have_mode_t+set}" = set; then
24586   echo $ECHO_N "(cached) $ECHO_C" >&6
24587 else
24588
24589         cat >conftest.$ac_ext <<_ACEOF
24590 /* confdefs.h.  */
24591 _ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h.  */
24595
24596 #include <sys/types.h>
24597
24598 int
24599 main ()
24600 {
24601  mode_t foo; foo = 1235;
24602   ;
24603   return 0;
24604 }
24605 _ACEOF
24606 rm -f conftest.$ac_objext
24607 if { (ac_try="$ac_compile"
24608 case "(($ac_try" in
24609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610   *) ac_try_echo=$ac_try;;
24611 esac
24612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613   (eval "$ac_compile") 2>conftest.er1
24614   ac_status=$?
24615   grep -v '^ *+' conftest.er1 >conftest.err
24616   rm -f conftest.er1
24617   cat conftest.err >&5
24618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619   (exit $ac_status); } &&
24620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24621   { (case "(($ac_try" in
24622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623   *) ac_try_echo=$ac_try;;
24624 esac
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626   (eval "$ac_try") 2>&5
24627   ac_status=$?
24628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629   (exit $ac_status); }; } &&
24630          { ac_try='test -s conftest.$ac_objext'
24631   { (case "(($ac_try" in
24632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633   *) ac_try_echo=$ac_try;;
24634 esac
24635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636   (eval "$ac_try") 2>&5
24637   ac_status=$?
24638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639   (exit $ac_status); }; }; then
24640    ac_cv_have_mode_t="yes"
24641 else
24642   echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24644
24645          ac_cv_have_mode_t="no"
24646
24647 fi
24648
24649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24650
24651 fi
24652 { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
24653 echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
24654 if test "x$ac_cv_have_mode_t" = "xyes" ; then
24655
24656 cat >>confdefs.h <<\_ACEOF
24657 #define HAVE_MODE_T 1
24658 _ACEOF
24659
24660 fi
24661
24662
24663 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24664 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24665 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
24666   echo $ECHO_N "(cached) $ECHO_C" >&6
24667 else
24668
24669         cat >conftest.$ac_ext <<_ACEOF
24670 /* confdefs.h.  */
24671 _ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h.  */
24675
24676 #include <sys/types.h>
24677 #include <sys/socket.h>
24678
24679 int
24680 main ()
24681 {
24682  struct sockaddr_storage s;
24683   ;
24684   return 0;
24685 }
24686 _ACEOF
24687 rm -f conftest.$ac_objext
24688 if { (ac_try="$ac_compile"
24689 case "(($ac_try" in
24690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24691   *) ac_try_echo=$ac_try;;
24692 esac
24693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24694   (eval "$ac_compile") 2>conftest.er1
24695   ac_status=$?
24696   grep -v '^ *+' conftest.er1 >conftest.err
24697   rm -f conftest.er1
24698   cat conftest.err >&5
24699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700   (exit $ac_status); } &&
24701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24702   { (case "(($ac_try" in
24703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704   *) ac_try_echo=$ac_try;;
24705 esac
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707   (eval "$ac_try") 2>&5
24708   ac_status=$?
24709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); }; } &&
24711          { ac_try='test -s conftest.$ac_objext'
24712   { (case "(($ac_try" in
24713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714   *) ac_try_echo=$ac_try;;
24715 esac
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717   (eval "$ac_try") 2>&5
24718   ac_status=$?
24719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720   (exit $ac_status); }; }; then
24721    ac_cv_have_struct_sockaddr_storage="yes"
24722 else
24723   echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.$ac_ext >&5
24725
24726          ac_cv_have_struct_sockaddr_storage="no"
24727
24728 fi
24729
24730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24731
24732 fi
24733 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
24734 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
24735 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
24736
24737 cat >>confdefs.h <<\_ACEOF
24738 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24739 _ACEOF
24740
24741 fi
24742
24743 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24744 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24745 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
24746   echo $ECHO_N "(cached) $ECHO_C" >&6
24747 else
24748
24749         cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h.  */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h.  */
24755
24756 #include <sys/types.h>
24757 #include <netinet/in.h>
24758
24759 int
24760 main ()
24761 {
24762  struct sockaddr_in6 s; s.sin6_family = 0;
24763   ;
24764   return 0;
24765 }
24766 _ACEOF
24767 rm -f conftest.$ac_objext
24768 if { (ac_try="$ac_compile"
24769 case "(($ac_try" in
24770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24771   *) ac_try_echo=$ac_try;;
24772 esac
24773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24774   (eval "$ac_compile") 2>conftest.er1
24775   ac_status=$?
24776   grep -v '^ *+' conftest.er1 >conftest.err
24777   rm -f conftest.er1
24778   cat conftest.err >&5
24779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780   (exit $ac_status); } &&
24781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24782   { (case "(($ac_try" in
24783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784   *) ac_try_echo=$ac_try;;
24785 esac
24786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787   (eval "$ac_try") 2>&5
24788   ac_status=$?
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); }; } &&
24791          { ac_try='test -s conftest.$ac_objext'
24792   { (case "(($ac_try" in
24793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794   *) ac_try_echo=$ac_try;;
24795 esac
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797   (eval "$ac_try") 2>&5
24798   ac_status=$?
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); }; }; then
24801    ac_cv_have_struct_sockaddr_in6="yes"
24802 else
24803   echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24805
24806          ac_cv_have_struct_sockaddr_in6="no"
24807
24808 fi
24809
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811
24812 fi
24813 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
24814 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
24815 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
24816
24817 cat >>confdefs.h <<\_ACEOF
24818 #define HAVE_STRUCT_SOCKADDR_IN6 1
24819 _ACEOF
24820
24821 fi
24822
24823 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24824 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24825 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
24826   echo $ECHO_N "(cached) $ECHO_C" >&6
24827 else
24828
24829         cat >conftest.$ac_ext <<_ACEOF
24830 /* confdefs.h.  */
24831 _ACEOF
24832 cat confdefs.h >>conftest.$ac_ext
24833 cat >>conftest.$ac_ext <<_ACEOF
24834 /* end confdefs.h.  */
24835
24836 #include <sys/types.h>
24837 #include <netinet/in.h>
24838
24839 int
24840 main ()
24841 {
24842  struct in6_addr s; s.s6_addr[0] = 0;
24843   ;
24844   return 0;
24845 }
24846 _ACEOF
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851   *) ac_try_echo=$ac_try;;
24852 esac
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854   (eval "$ac_compile") 2>conftest.er1
24855   ac_status=$?
24856   grep -v '^ *+' conftest.er1 >conftest.err
24857   rm -f conftest.er1
24858   cat conftest.err >&5
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); } &&
24861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24862   { (case "(($ac_try" in
24863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864   *) ac_try_echo=$ac_try;;
24865 esac
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867   (eval "$ac_try") 2>&5
24868   ac_status=$?
24869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870   (exit $ac_status); }; } &&
24871          { ac_try='test -s conftest.$ac_objext'
24872   { (case "(($ac_try" in
24873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874   *) ac_try_echo=$ac_try;;
24875 esac
24876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877   (eval "$ac_try") 2>&5
24878   ac_status=$?
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); }; }; then
24881    ac_cv_have_struct_in6_addr="yes"
24882 else
24883   echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24885
24886          ac_cv_have_struct_in6_addr="no"
24887
24888 fi
24889
24890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891
24892 fi
24893 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
24894 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
24895 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
24896
24897 cat >>confdefs.h <<\_ACEOF
24898 #define HAVE_STRUCT_IN6_ADDR 1
24899 _ACEOF
24900
24901 fi
24902
24903 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24904 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24905 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
24906   echo $ECHO_N "(cached) $ECHO_C" >&6
24907 else
24908
24909         cat >conftest.$ac_ext <<_ACEOF
24910 /* confdefs.h.  */
24911 _ACEOF
24912 cat confdefs.h >>conftest.$ac_ext
24913 cat >>conftest.$ac_ext <<_ACEOF
24914 /* end confdefs.h.  */
24915
24916 #include <sys/types.h>
24917 #include <sys/socket.h>
24918 #include <netdb.h>
24919
24920 int
24921 main ()
24922 {
24923  struct addrinfo s; s.ai_flags = AI_PASSIVE;
24924   ;
24925   return 0;
24926 }
24927 _ACEOF
24928 rm -f conftest.$ac_objext
24929 if { (ac_try="$ac_compile"
24930 case "(($ac_try" in
24931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24932   *) ac_try_echo=$ac_try;;
24933 esac
24934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24935   (eval "$ac_compile") 2>conftest.er1
24936   ac_status=$?
24937   grep -v '^ *+' conftest.er1 >conftest.err
24938   rm -f conftest.er1
24939   cat conftest.err >&5
24940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941   (exit $ac_status); } &&
24942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24943   { (case "(($ac_try" in
24944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945   *) ac_try_echo=$ac_try;;
24946 esac
24947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948   (eval "$ac_try") 2>&5
24949   ac_status=$?
24950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951   (exit $ac_status); }; } &&
24952          { ac_try='test -s conftest.$ac_objext'
24953   { (case "(($ac_try" in
24954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955   *) ac_try_echo=$ac_try;;
24956 esac
24957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958   (eval "$ac_try") 2>&5
24959   ac_status=$?
24960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961   (exit $ac_status); }; }; then
24962    ac_cv_have_struct_addrinfo="yes"
24963 else
24964   echo "$as_me: failed program was:" >&5
24965 sed 's/^/| /' conftest.$ac_ext >&5
24966
24967          ac_cv_have_struct_addrinfo="no"
24968
24969 fi
24970
24971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24972
24973 fi
24974 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
24975 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
24976 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
24977
24978 cat >>confdefs.h <<\_ACEOF
24979 #define HAVE_STRUCT_ADDRINFO 1
24980 _ACEOF
24981
24982 fi
24983
24984 { echo "$as_me:$LINENO: checking for struct timeval" >&5
24985 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
24986 if test "${ac_cv_have_struct_timeval+set}" = set; then
24987   echo $ECHO_N "(cached) $ECHO_C" >&6
24988 else
24989
24990         cat >conftest.$ac_ext <<_ACEOF
24991 /* confdefs.h.  */
24992 _ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h.  */
24996  #include <sys/time.h>
24997 int
24998 main ()
24999 {
25000  struct timeval tv; tv.tv_sec = 1;
25001   ;
25002   return 0;
25003 }
25004 _ACEOF
25005 rm -f conftest.$ac_objext
25006 if { (ac_try="$ac_compile"
25007 case "(($ac_try" in
25008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009   *) ac_try_echo=$ac_try;;
25010 esac
25011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012   (eval "$ac_compile") 2>conftest.er1
25013   ac_status=$?
25014   grep -v '^ *+' conftest.er1 >conftest.err
25015   rm -f conftest.er1
25016   cat conftest.err >&5
25017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); } &&
25019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25020   { (case "(($ac_try" in
25021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022   *) ac_try_echo=$ac_try;;
25023 esac
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025   (eval "$ac_try") 2>&5
25026   ac_status=$?
25027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028   (exit $ac_status); }; } &&
25029          { ac_try='test -s conftest.$ac_objext'
25030   { (case "(($ac_try" in
25031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032   *) ac_try_echo=$ac_try;;
25033 esac
25034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035   (eval "$ac_try") 2>&5
25036   ac_status=$?
25037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038   (exit $ac_status); }; }; then
25039    ac_cv_have_struct_timeval="yes"
25040 else
25041   echo "$as_me: failed program was:" >&5
25042 sed 's/^/| /' conftest.$ac_ext >&5
25043
25044          ac_cv_have_struct_timeval="no"
25045
25046 fi
25047
25048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049
25050 fi
25051 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
25052 echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
25053 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
25054
25055 cat >>confdefs.h <<\_ACEOF
25056 #define HAVE_STRUCT_TIMEVAL 1
25057 _ACEOF
25058
25059         have_struct_timeval=1
25060 fi
25061
25062 { echo "$as_me:$LINENO: checking for struct timespec" >&5
25063 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
25064 if test "${ac_cv_type_struct_timespec+set}" = set; then
25065   echo $ECHO_N "(cached) $ECHO_C" >&6
25066 else
25067   cat >conftest.$ac_ext <<_ACEOF
25068 /* confdefs.h.  */
25069 _ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h.  */
25073 $ac_includes_default
25074 typedef struct timespec ac__type_new_;
25075 int
25076 main ()
25077 {
25078 if ((ac__type_new_ *) 0)
25079   return 0;
25080 if (sizeof (ac__type_new_))
25081   return 0;
25082   ;
25083   return 0;
25084 }
25085 _ACEOF
25086 rm -f conftest.$ac_objext
25087 if { (ac_try="$ac_compile"
25088 case "(($ac_try" in
25089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090   *) ac_try_echo=$ac_try;;
25091 esac
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093   (eval "$ac_compile") 2>conftest.er1
25094   ac_status=$?
25095   grep -v '^ *+' conftest.er1 >conftest.err
25096   rm -f conftest.er1
25097   cat conftest.err >&5
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); } &&
25100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25101   { (case "(($ac_try" in
25102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25103   *) ac_try_echo=$ac_try;;
25104 esac
25105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25106   (eval "$ac_try") 2>&5
25107   ac_status=$?
25108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109   (exit $ac_status); }; } &&
25110          { ac_try='test -s conftest.$ac_objext'
25111   { (case "(($ac_try" in
25112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113   *) ac_try_echo=$ac_try;;
25114 esac
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116   (eval "$ac_try") 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); }; }; then
25120   ac_cv_type_struct_timespec=yes
25121 else
25122   echo "$as_me: failed program was:" >&5
25123 sed 's/^/| /' conftest.$ac_ext >&5
25124
25125         ac_cv_type_struct_timespec=no
25126 fi
25127
25128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25129 fi
25130 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
25131 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
25132 if test $ac_cv_type_struct_timespec = yes; then
25133
25134 cat >>confdefs.h <<_ACEOF
25135 #define HAVE_STRUCT_TIMESPEC 1
25136 _ACEOF
25137
25138
25139 fi
25140
25141
25142 # We need int64_t or else certian parts of the compile will fail.
25143 if test "x$ac_cv_have_int64_t" = "xno" && \
25144         test "x$ac_cv_sizeof_long_int" != "x8" && \
25145         test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
25146         echo "OpenSSH requires int64_t support.  Contact your vendor or install"
25147         echo "an alternative compiler (I.E., GCC) before continuing."
25148         echo ""
25149         exit 1;
25150 else
25151         if test "$cross_compiling" = yes; then
25152   { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
25153 echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
25154
25155 else
25156   cat >conftest.$ac_ext <<_ACEOF
25157 /* confdefs.h.  */
25158 _ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h.  */
25162
25163 #include <stdio.h>
25164 #include <string.h>
25165 #ifdef HAVE_SNPRINTF
25166 main()
25167 {
25168         char buf[50];
25169         char expected_out[50];
25170         int mazsize = 50 ;
25171 #if (SIZEOF_LONG_INT == 8)
25172         long int num = 0x7fffffffffffffff;
25173 #else
25174         long long num = 0x7fffffffffffffffll;
25175 #endif
25176         strcpy(expected_out, "9223372036854775807");
25177         snprintf(buf, mazsize, "%lld", num);
25178         if(strcmp(buf, expected_out) != 0)
25179                 exit(1);
25180         exit(0);
25181 }
25182 #else
25183 main() { exit(0); }
25184 #endif
25185
25186 _ACEOF
25187 rm -f conftest$ac_exeext
25188 if { (ac_try="$ac_link"
25189 case "(($ac_try" in
25190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25191   *) ac_try_echo=$ac_try;;
25192 esac
25193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25194   (eval "$ac_link") 2>&5
25195   ac_status=$?
25196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25198   { (case "(($ac_try" in
25199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200   *) ac_try_echo=$ac_try;;
25201 esac
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203   (eval "$ac_try") 2>&5
25204   ac_status=$?
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); }; }; then
25207    true
25208 else
25209   echo "$as_me: program exited with status $ac_status" >&5
25210 echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25212
25213 ( exit $ac_status )
25214  cat >>confdefs.h <<\_ACEOF
25215 #define BROKEN_SNPRINTF 1
25216 _ACEOF
25217
25218 fi
25219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25220 fi
25221
25222
25223 fi
25224
25225
25226 # look for field 'ut_host' in header 'utmp.h'
25227                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25228                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
25229         { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
25230 echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
25231         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25232   echo $ECHO_N "(cached) $ECHO_C" >&6
25233 else
25234
25235                 cat >conftest.$ac_ext <<_ACEOF
25236 /* confdefs.h.  */
25237 _ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h.  */
25241 #include <utmp.h>
25242
25243 _ACEOF
25244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25245   $EGREP "ut_host" >/dev/null 2>&1; then
25246                         eval "$ossh_varname=yes"
25247 else
25248                         eval "$ossh_varname=no"
25249 fi
25250 rm -f conftest*
25251
25252 fi
25253
25254         ossh_result=`eval 'echo $'"$ossh_varname"`
25255         if test -n "`echo $ossh_varname`"; then
25256                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25257 echo "${ECHO_T}$ossh_result" >&6; }
25258                 if test "x$ossh_result" = "xyes"; then
25259
25260 cat >>confdefs.h <<\_ACEOF
25261 #define HAVE_HOST_IN_UTMP 1
25262 _ACEOF
25263
25264                 fi
25265         else
25266                 { echo "$as_me:$LINENO: result: no" >&5
25267 echo "${ECHO_T}no" >&6; }
25268         fi
25269
25270
25271 # look for field 'ut_host' in header 'utmpx.h'
25272                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25273                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
25274         { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
25275 echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
25276         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25277   echo $ECHO_N "(cached) $ECHO_C" >&6
25278 else
25279
25280                 cat >conftest.$ac_ext <<_ACEOF
25281 /* confdefs.h.  */
25282 _ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h.  */
25286 #include <utmpx.h>
25287
25288 _ACEOF
25289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25290   $EGREP "ut_host" >/dev/null 2>&1; then
25291                         eval "$ossh_varname=yes"
25292 else
25293                         eval "$ossh_varname=no"
25294 fi
25295 rm -f conftest*
25296
25297 fi
25298
25299         ossh_result=`eval 'echo $'"$ossh_varname"`
25300         if test -n "`echo $ossh_varname`"; then
25301                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25302 echo "${ECHO_T}$ossh_result" >&6; }
25303                 if test "x$ossh_result" = "xyes"; then
25304
25305 cat >>confdefs.h <<\_ACEOF
25306 #define HAVE_HOST_IN_UTMPX 1
25307 _ACEOF
25308
25309                 fi
25310         else
25311                 { echo "$as_me:$LINENO: result: no" >&5
25312 echo "${ECHO_T}no" >&6; }
25313         fi
25314
25315
25316 # look for field 'syslen' in header 'utmpx.h'
25317                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25318                 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
25319         { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
25320 echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
25321         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25322   echo $ECHO_N "(cached) $ECHO_C" >&6
25323 else
25324
25325                 cat >conftest.$ac_ext <<_ACEOF
25326 /* confdefs.h.  */
25327 _ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h.  */
25331 #include <utmpx.h>
25332
25333 _ACEOF
25334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25335   $EGREP "syslen" >/dev/null 2>&1; then
25336                         eval "$ossh_varname=yes"
25337 else
25338                         eval "$ossh_varname=no"
25339 fi
25340 rm -f conftest*
25341
25342 fi
25343
25344         ossh_result=`eval 'echo $'"$ossh_varname"`
25345         if test -n "`echo $ossh_varname`"; then
25346                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25347 echo "${ECHO_T}$ossh_result" >&6; }
25348                 if test "x$ossh_result" = "xyes"; then
25349
25350 cat >>confdefs.h <<\_ACEOF
25351 #define HAVE_SYSLEN_IN_UTMPX 1
25352 _ACEOF
25353
25354                 fi
25355         else
25356                 { echo "$as_me:$LINENO: result: no" >&5
25357 echo "${ECHO_T}no" >&6; }
25358         fi
25359
25360
25361 # look for field 'ut_pid' in header 'utmp.h'
25362                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25363                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
25364         { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
25365 echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
25366         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25367   echo $ECHO_N "(cached) $ECHO_C" >&6
25368 else
25369
25370                 cat >conftest.$ac_ext <<_ACEOF
25371 /* confdefs.h.  */
25372 _ACEOF
25373 cat confdefs.h >>conftest.$ac_ext
25374 cat >>conftest.$ac_ext <<_ACEOF
25375 /* end confdefs.h.  */
25376 #include <utmp.h>
25377
25378 _ACEOF
25379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25380   $EGREP "ut_pid" >/dev/null 2>&1; then
25381                         eval "$ossh_varname=yes"
25382 else
25383                         eval "$ossh_varname=no"
25384 fi
25385 rm -f conftest*
25386
25387 fi
25388
25389         ossh_result=`eval 'echo $'"$ossh_varname"`
25390         if test -n "`echo $ossh_varname`"; then
25391                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25392 echo "${ECHO_T}$ossh_result" >&6; }
25393                 if test "x$ossh_result" = "xyes"; then
25394
25395 cat >>confdefs.h <<\_ACEOF
25396 #define HAVE_PID_IN_UTMP 1
25397 _ACEOF
25398
25399                 fi
25400         else
25401                 { echo "$as_me:$LINENO: result: no" >&5
25402 echo "${ECHO_T}no" >&6; }
25403         fi
25404
25405
25406 # look for field 'ut_type' in header 'utmp.h'
25407                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25408                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
25409         { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
25410 echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
25411         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25412   echo $ECHO_N "(cached) $ECHO_C" >&6
25413 else
25414
25415                 cat >conftest.$ac_ext <<_ACEOF
25416 /* confdefs.h.  */
25417 _ACEOF
25418 cat confdefs.h >>conftest.$ac_ext
25419 cat >>conftest.$ac_ext <<_ACEOF
25420 /* end confdefs.h.  */
25421 #include <utmp.h>
25422
25423 _ACEOF
25424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25425   $EGREP "ut_type" >/dev/null 2>&1; then
25426                         eval "$ossh_varname=yes"
25427 else
25428                         eval "$ossh_varname=no"
25429 fi
25430 rm -f conftest*
25431
25432 fi
25433
25434         ossh_result=`eval 'echo $'"$ossh_varname"`
25435         if test -n "`echo $ossh_varname`"; then
25436                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25437 echo "${ECHO_T}$ossh_result" >&6; }
25438                 if test "x$ossh_result" = "xyes"; then
25439
25440 cat >>confdefs.h <<\_ACEOF
25441 #define HAVE_TYPE_IN_UTMP 1
25442 _ACEOF
25443
25444                 fi
25445         else
25446                 { echo "$as_me:$LINENO: result: no" >&5
25447 echo "${ECHO_T}no" >&6; }
25448         fi
25449
25450
25451 # look for field 'ut_type' in header 'utmpx.h'
25452                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25453                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
25454         { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
25455 echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
25456         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25457   echo $ECHO_N "(cached) $ECHO_C" >&6
25458 else
25459
25460                 cat >conftest.$ac_ext <<_ACEOF
25461 /* confdefs.h.  */
25462 _ACEOF
25463 cat confdefs.h >>conftest.$ac_ext
25464 cat >>conftest.$ac_ext <<_ACEOF
25465 /* end confdefs.h.  */
25466 #include <utmpx.h>
25467
25468 _ACEOF
25469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25470   $EGREP "ut_type" >/dev/null 2>&1; then
25471                         eval "$ossh_varname=yes"
25472 else
25473                         eval "$ossh_varname=no"
25474 fi
25475 rm -f conftest*
25476
25477 fi
25478
25479         ossh_result=`eval 'echo $'"$ossh_varname"`
25480         if test -n "`echo $ossh_varname`"; then
25481                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25482 echo "${ECHO_T}$ossh_result" >&6; }
25483                 if test "x$ossh_result" = "xyes"; then
25484
25485 cat >>confdefs.h <<\_ACEOF
25486 #define HAVE_TYPE_IN_UTMPX 1
25487 _ACEOF
25488
25489                 fi
25490         else
25491                 { echo "$as_me:$LINENO: result: no" >&5
25492 echo "${ECHO_T}no" >&6; }
25493         fi
25494
25495
25496 # look for field 'ut_tv' in header 'utmp.h'
25497                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25498                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
25499         { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
25500 echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
25501         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25502   echo $ECHO_N "(cached) $ECHO_C" >&6
25503 else
25504
25505                 cat >conftest.$ac_ext <<_ACEOF
25506 /* confdefs.h.  */
25507 _ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h.  */
25511 #include <utmp.h>
25512
25513 _ACEOF
25514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25515   $EGREP "ut_tv" >/dev/null 2>&1; then
25516                         eval "$ossh_varname=yes"
25517 else
25518                         eval "$ossh_varname=no"
25519 fi
25520 rm -f conftest*
25521
25522 fi
25523
25524         ossh_result=`eval 'echo $'"$ossh_varname"`
25525         if test -n "`echo $ossh_varname`"; then
25526                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25527 echo "${ECHO_T}$ossh_result" >&6; }
25528                 if test "x$ossh_result" = "xyes"; then
25529
25530 cat >>confdefs.h <<\_ACEOF
25531 #define HAVE_TV_IN_UTMP 1
25532 _ACEOF
25533
25534                 fi
25535         else
25536                 { echo "$as_me:$LINENO: result: no" >&5
25537 echo "${ECHO_T}no" >&6; }
25538         fi
25539
25540
25541 # look for field 'ut_id' in header 'utmp.h'
25542                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25543                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
25544         { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
25545 echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
25546         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25547   echo $ECHO_N "(cached) $ECHO_C" >&6
25548 else
25549
25550                 cat >conftest.$ac_ext <<_ACEOF
25551 /* confdefs.h.  */
25552 _ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h.  */
25556 #include <utmp.h>
25557
25558 _ACEOF
25559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25560   $EGREP "ut_id" >/dev/null 2>&1; then
25561                         eval "$ossh_varname=yes"
25562 else
25563                         eval "$ossh_varname=no"
25564 fi
25565 rm -f conftest*
25566
25567 fi
25568
25569         ossh_result=`eval 'echo $'"$ossh_varname"`
25570         if test -n "`echo $ossh_varname`"; then
25571                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25572 echo "${ECHO_T}$ossh_result" >&6; }
25573                 if test "x$ossh_result" = "xyes"; then
25574
25575 cat >>confdefs.h <<\_ACEOF
25576 #define HAVE_ID_IN_UTMP 1
25577 _ACEOF
25578
25579                 fi
25580         else
25581                 { echo "$as_me:$LINENO: result: no" >&5
25582 echo "${ECHO_T}no" >&6; }
25583         fi
25584
25585
25586 # look for field 'ut_id' in header 'utmpx.h'
25587                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25588                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
25589         { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
25590 echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
25591         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25592   echo $ECHO_N "(cached) $ECHO_C" >&6
25593 else
25594
25595                 cat >conftest.$ac_ext <<_ACEOF
25596 /* confdefs.h.  */
25597 _ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h.  */
25601 #include <utmpx.h>
25602
25603 _ACEOF
25604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25605   $EGREP "ut_id" >/dev/null 2>&1; then
25606                         eval "$ossh_varname=yes"
25607 else
25608                         eval "$ossh_varname=no"
25609 fi
25610 rm -f conftest*
25611
25612 fi
25613
25614         ossh_result=`eval 'echo $'"$ossh_varname"`
25615         if test -n "`echo $ossh_varname`"; then
25616                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25617 echo "${ECHO_T}$ossh_result" >&6; }
25618                 if test "x$ossh_result" = "xyes"; then
25619
25620 cat >>confdefs.h <<\_ACEOF
25621 #define HAVE_ID_IN_UTMPX 1
25622 _ACEOF
25623
25624                 fi
25625         else
25626                 { echo "$as_me:$LINENO: result: no" >&5
25627 echo "${ECHO_T}no" >&6; }
25628         fi
25629
25630
25631 # look for field 'ut_addr' in header 'utmp.h'
25632                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25633                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
25634         { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
25635 echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
25636         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25637   echo $ECHO_N "(cached) $ECHO_C" >&6
25638 else
25639
25640                 cat >conftest.$ac_ext <<_ACEOF
25641 /* confdefs.h.  */
25642 _ACEOF
25643 cat confdefs.h >>conftest.$ac_ext
25644 cat >>conftest.$ac_ext <<_ACEOF
25645 /* end confdefs.h.  */
25646 #include <utmp.h>
25647
25648 _ACEOF
25649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25650   $EGREP "ut_addr" >/dev/null 2>&1; then
25651                         eval "$ossh_varname=yes"
25652 else
25653                         eval "$ossh_varname=no"
25654 fi
25655 rm -f conftest*
25656
25657 fi
25658
25659         ossh_result=`eval 'echo $'"$ossh_varname"`
25660         if test -n "`echo $ossh_varname`"; then
25661                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25662 echo "${ECHO_T}$ossh_result" >&6; }
25663                 if test "x$ossh_result" = "xyes"; then
25664
25665 cat >>confdefs.h <<\_ACEOF
25666 #define HAVE_ADDR_IN_UTMP 1
25667 _ACEOF
25668
25669                 fi
25670         else
25671                 { echo "$as_me:$LINENO: result: no" >&5
25672 echo "${ECHO_T}no" >&6; }
25673         fi
25674
25675
25676 # look for field 'ut_addr' in header 'utmpx.h'
25677                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25678                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
25679         { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
25680 echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
25681         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25682   echo $ECHO_N "(cached) $ECHO_C" >&6
25683 else
25684
25685                 cat >conftest.$ac_ext <<_ACEOF
25686 /* confdefs.h.  */
25687 _ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h.  */
25691 #include <utmpx.h>
25692
25693 _ACEOF
25694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25695   $EGREP "ut_addr" >/dev/null 2>&1; then
25696                         eval "$ossh_varname=yes"
25697 else
25698                         eval "$ossh_varname=no"
25699 fi
25700 rm -f conftest*
25701
25702 fi
25703
25704         ossh_result=`eval 'echo $'"$ossh_varname"`
25705         if test -n "`echo $ossh_varname`"; then
25706                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25707 echo "${ECHO_T}$ossh_result" >&6; }
25708                 if test "x$ossh_result" = "xyes"; then
25709
25710 cat >>confdefs.h <<\_ACEOF
25711 #define HAVE_ADDR_IN_UTMPX 1
25712 _ACEOF
25713
25714                 fi
25715         else
25716                 { echo "$as_me:$LINENO: result: no" >&5
25717 echo "${ECHO_T}no" >&6; }
25718         fi
25719
25720
25721 # look for field 'ut_addr_v6' in header 'utmp.h'
25722                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25723                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25724         { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
25725 echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
25726         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25727   echo $ECHO_N "(cached) $ECHO_C" >&6
25728 else
25729
25730                 cat >conftest.$ac_ext <<_ACEOF
25731 /* confdefs.h.  */
25732 _ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h.  */
25736 #include <utmp.h>
25737
25738 _ACEOF
25739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25740   $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25741                         eval "$ossh_varname=yes"
25742 else
25743                         eval "$ossh_varname=no"
25744 fi
25745 rm -f conftest*
25746
25747 fi
25748
25749         ossh_result=`eval 'echo $'"$ossh_varname"`
25750         if test -n "`echo $ossh_varname`"; then
25751                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25752 echo "${ECHO_T}$ossh_result" >&6; }
25753                 if test "x$ossh_result" = "xyes"; then
25754
25755 cat >>confdefs.h <<\_ACEOF
25756 #define HAVE_ADDR_V6_IN_UTMP 1
25757 _ACEOF
25758
25759                 fi
25760         else
25761                 { echo "$as_me:$LINENO: result: no" >&5
25762 echo "${ECHO_T}no" >&6; }
25763         fi
25764
25765
25766 # look for field 'ut_addr_v6' in header 'utmpx.h'
25767                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25768                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25769         { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
25770 echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
25771         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25772   echo $ECHO_N "(cached) $ECHO_C" >&6
25773 else
25774
25775                 cat >conftest.$ac_ext <<_ACEOF
25776 /* confdefs.h.  */
25777 _ACEOF
25778 cat confdefs.h >>conftest.$ac_ext
25779 cat >>conftest.$ac_ext <<_ACEOF
25780 /* end confdefs.h.  */
25781 #include <utmpx.h>
25782
25783 _ACEOF
25784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25785   $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25786                         eval "$ossh_varname=yes"
25787 else
25788                         eval "$ossh_varname=no"
25789 fi
25790 rm -f conftest*
25791
25792 fi
25793
25794         ossh_result=`eval 'echo $'"$ossh_varname"`
25795         if test -n "`echo $ossh_varname`"; then
25796                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25797 echo "${ECHO_T}$ossh_result" >&6; }
25798                 if test "x$ossh_result" = "xyes"; then
25799
25800 cat >>confdefs.h <<\_ACEOF
25801 #define HAVE_ADDR_V6_IN_UTMPX 1
25802 _ACEOF
25803
25804                 fi
25805         else
25806                 { echo "$as_me:$LINENO: result: no" >&5
25807 echo "${ECHO_T}no" >&6; }
25808         fi
25809
25810
25811 # look for field 'ut_exit' in header 'utmp.h'
25812                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25813                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
25814         { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
25815 echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
25816         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25817   echo $ECHO_N "(cached) $ECHO_C" >&6
25818 else
25819
25820                 cat >conftest.$ac_ext <<_ACEOF
25821 /* confdefs.h.  */
25822 _ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h.  */
25826 #include <utmp.h>
25827
25828 _ACEOF
25829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25830   $EGREP "ut_exit" >/dev/null 2>&1; then
25831                         eval "$ossh_varname=yes"
25832 else
25833                         eval "$ossh_varname=no"
25834 fi
25835 rm -f conftest*
25836
25837 fi
25838
25839         ossh_result=`eval 'echo $'"$ossh_varname"`
25840         if test -n "`echo $ossh_varname`"; then
25841                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25842 echo "${ECHO_T}$ossh_result" >&6; }
25843                 if test "x$ossh_result" = "xyes"; then
25844
25845 cat >>confdefs.h <<\_ACEOF
25846 #define HAVE_EXIT_IN_UTMP 1
25847 _ACEOF
25848
25849                 fi
25850         else
25851                 { echo "$as_me:$LINENO: result: no" >&5
25852 echo "${ECHO_T}no" >&6; }
25853         fi
25854
25855
25856 # look for field 'ut_time' in header 'utmp.h'
25857                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25858                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25859         { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
25860 echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
25861         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25862   echo $ECHO_N "(cached) $ECHO_C" >&6
25863 else
25864
25865                 cat >conftest.$ac_ext <<_ACEOF
25866 /* confdefs.h.  */
25867 _ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h.  */
25871 #include <utmp.h>
25872
25873 _ACEOF
25874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25875   $EGREP "ut_time" >/dev/null 2>&1; then
25876                         eval "$ossh_varname=yes"
25877 else
25878                         eval "$ossh_varname=no"
25879 fi
25880 rm -f conftest*
25881
25882 fi
25883
25884         ossh_result=`eval 'echo $'"$ossh_varname"`
25885         if test -n "`echo $ossh_varname`"; then
25886                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25887 echo "${ECHO_T}$ossh_result" >&6; }
25888                 if test "x$ossh_result" = "xyes"; then
25889
25890 cat >>confdefs.h <<\_ACEOF
25891 #define HAVE_TIME_IN_UTMP 1
25892 _ACEOF
25893
25894                 fi
25895         else
25896                 { echo "$as_me:$LINENO: result: no" >&5
25897 echo "${ECHO_T}no" >&6; }
25898         fi
25899
25900
25901 # look for field 'ut_time' in header 'utmpx.h'
25902                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25903                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25904         { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
25905 echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
25906         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25907   echo $ECHO_N "(cached) $ECHO_C" >&6
25908 else
25909
25910                 cat >conftest.$ac_ext <<_ACEOF
25911 /* confdefs.h.  */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h.  */
25916 #include <utmpx.h>
25917
25918 _ACEOF
25919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25920   $EGREP "ut_time" >/dev/null 2>&1; then
25921                         eval "$ossh_varname=yes"
25922 else
25923                         eval "$ossh_varname=no"
25924 fi
25925 rm -f conftest*
25926
25927 fi
25928
25929         ossh_result=`eval 'echo $'"$ossh_varname"`
25930         if test -n "`echo $ossh_varname`"; then
25931                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25932 echo "${ECHO_T}$ossh_result" >&6; }
25933                 if test "x$ossh_result" = "xyes"; then
25934
25935 cat >>confdefs.h <<\_ACEOF
25936 #define HAVE_TIME_IN_UTMPX 1
25937 _ACEOF
25938
25939                 fi
25940         else
25941                 { echo "$as_me:$LINENO: result: no" >&5
25942 echo "${ECHO_T}no" >&6; }
25943         fi
25944
25945
25946 # look for field 'ut_tv' in header 'utmpx.h'
25947                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25948                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
25949         { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
25950 echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
25951         if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25952   echo $ECHO_N "(cached) $ECHO_C" >&6
25953 else
25954
25955                 cat >conftest.$ac_ext <<_ACEOF
25956 /* confdefs.h.  */
25957 _ACEOF
25958 cat confdefs.h >>conftest.$ac_ext
25959 cat >>conftest.$ac_ext <<_ACEOF
25960 /* end confdefs.h.  */
25961 #include <utmpx.h>
25962
25963 _ACEOF
25964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25965   $EGREP "ut_tv" >/dev/null 2>&1; then
25966                         eval "$ossh_varname=yes"
25967 else
25968                         eval "$ossh_varname=no"
25969 fi
25970 rm -f conftest*
25971
25972 fi
25973
25974         ossh_result=`eval 'echo $'"$ossh_varname"`
25975         if test -n "`echo $ossh_varname`"; then
25976                 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25977 echo "${ECHO_T}$ossh_result" >&6; }
25978                 if test "x$ossh_result" = "xyes"; then
25979
25980 cat >>confdefs.h <<\_ACEOF
25981 #define HAVE_TV_IN_UTMPX 1
25982 _ACEOF
25983
25984                 fi
25985         else
25986                 { echo "$as_me:$LINENO: result: no" >&5
25987 echo "${ECHO_T}no" >&6; }
25988         fi
25989
25990
25991 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25992 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
25993 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25994   echo $ECHO_N "(cached) $ECHO_C" >&6
25995 else
25996   cat >conftest.$ac_ext <<_ACEOF
25997 /* confdefs.h.  */
25998 _ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h.  */
26002 $ac_includes_default
26003 int
26004 main ()
26005 {
26006 static struct stat ac_aggr;
26007 if (ac_aggr.st_blksize)
26008 return 0;
26009   ;
26010   return 0;
26011 }
26012 _ACEOF
26013 rm -f conftest.$ac_objext
26014 if { (ac_try="$ac_compile"
26015 case "(($ac_try" in
26016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26017   *) ac_try_echo=$ac_try;;
26018 esac
26019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26020   (eval "$ac_compile") 2>conftest.er1
26021   ac_status=$?
26022   grep -v '^ *+' conftest.er1 >conftest.err
26023   rm -f conftest.er1
26024   cat conftest.err >&5
26025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026   (exit $ac_status); } &&
26027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26028   { (case "(($ac_try" in
26029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030   *) ac_try_echo=$ac_try;;
26031 esac
26032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033   (eval "$ac_try") 2>&5
26034   ac_status=$?
26035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036   (exit $ac_status); }; } &&
26037          { ac_try='test -s conftest.$ac_objext'
26038   { (case "(($ac_try" in
26039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040   *) ac_try_echo=$ac_try;;
26041 esac
26042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26043   (eval "$ac_try") 2>&5
26044   ac_status=$?
26045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046   (exit $ac_status); }; }; then
26047   ac_cv_member_struct_stat_st_blksize=yes
26048 else
26049   echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26051
26052         cat >conftest.$ac_ext <<_ACEOF
26053 /* confdefs.h.  */
26054 _ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h.  */
26058 $ac_includes_default
26059 int
26060 main ()
26061 {
26062 static struct stat ac_aggr;
26063 if (sizeof ac_aggr.st_blksize)
26064 return 0;
26065   ;
26066   return 0;
26067 }
26068 _ACEOF
26069 rm -f conftest.$ac_objext
26070 if { (ac_try="$ac_compile"
26071 case "(($ac_try" in
26072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073   *) ac_try_echo=$ac_try;;
26074 esac
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076   (eval "$ac_compile") 2>conftest.er1
26077   ac_status=$?
26078   grep -v '^ *+' conftest.er1 >conftest.err
26079   rm -f conftest.er1
26080   cat conftest.err >&5
26081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082   (exit $ac_status); } &&
26083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26084   { (case "(($ac_try" in
26085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26086   *) ac_try_echo=$ac_try;;
26087 esac
26088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26089   (eval "$ac_try") 2>&5
26090   ac_status=$?
26091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092   (exit $ac_status); }; } &&
26093          { ac_try='test -s conftest.$ac_objext'
26094   { (case "(($ac_try" in
26095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26096   *) ac_try_echo=$ac_try;;
26097 esac
26098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26099   (eval "$ac_try") 2>&5
26100   ac_status=$?
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); }; }; then
26103   ac_cv_member_struct_stat_st_blksize=yes
26104 else
26105   echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26107
26108         ac_cv_member_struct_stat_st_blksize=no
26109 fi
26110
26111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26112 fi
26113
26114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26115 fi
26116 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
26117 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
26118 if test $ac_cv_member_struct_stat_st_blksize = yes; then
26119
26120 cat >>confdefs.h <<_ACEOF
26121 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26122 _ACEOF
26123
26124
26125 fi
26126
26127 { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
26128 echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
26129 if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
26130   echo $ECHO_N "(cached) $ECHO_C" >&6
26131 else
26132   cat >conftest.$ac_ext <<_ACEOF
26133 /* confdefs.h.  */
26134 _ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h.  */
26138
26139 #include <stdio.h>
26140 #if HAVE_SYS_TYPES_H
26141 # include <sys/types.h>
26142 #endif
26143 #include <netinet/in.h>
26144 #include <arpa/nameser.h>
26145 #include <resolv.h>
26146
26147
26148 int
26149 main ()
26150 {
26151 static struct __res_state ac_aggr;
26152 if (ac_aggr.retrans)
26153 return 0;
26154   ;
26155   return 0;
26156 }
26157 _ACEOF
26158 rm -f conftest.$ac_objext
26159 if { (ac_try="$ac_compile"
26160 case "(($ac_try" in
26161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162   *) ac_try_echo=$ac_try;;
26163 esac
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165   (eval "$ac_compile") 2>conftest.er1
26166   ac_status=$?
26167   grep -v '^ *+' conftest.er1 >conftest.err
26168   rm -f conftest.er1
26169   cat conftest.err >&5
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); } &&
26172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26173   { (case "(($ac_try" in
26174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175   *) ac_try_echo=$ac_try;;
26176 esac
26177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26178   (eval "$ac_try") 2>&5
26179   ac_status=$?
26180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); }; } &&
26182          { ac_try='test -s conftest.$ac_objext'
26183   { (case "(($ac_try" in
26184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185   *) ac_try_echo=$ac_try;;
26186 esac
26187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26188   (eval "$ac_try") 2>&5
26189   ac_status=$?
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); }; }; then
26192   ac_cv_member_struct___res_state_retrans=yes
26193 else
26194   echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26196
26197         cat >conftest.$ac_ext <<_ACEOF
26198 /* confdefs.h.  */
26199 _ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h.  */
26203
26204 #include <stdio.h>
26205 #if HAVE_SYS_TYPES_H
26206 # include <sys/types.h>
26207 #endif
26208 #include <netinet/in.h>
26209 #include <arpa/nameser.h>
26210 #include <resolv.h>
26211
26212
26213 int
26214 main ()
26215 {
26216 static struct __res_state ac_aggr;
26217 if (sizeof ac_aggr.retrans)
26218 return 0;
26219   ;
26220   return 0;
26221 }
26222 _ACEOF
26223 rm -f conftest.$ac_objext
26224 if { (ac_try="$ac_compile"
26225 case "(($ac_try" in
26226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26227   *) ac_try_echo=$ac_try;;
26228 esac
26229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26230   (eval "$ac_compile") 2>conftest.er1
26231   ac_status=$?
26232   grep -v '^ *+' conftest.er1 >conftest.err
26233   rm -f conftest.er1
26234   cat conftest.err >&5
26235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236   (exit $ac_status); } &&
26237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26238   { (case "(($ac_try" in
26239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26240   *) ac_try_echo=$ac_try;;
26241 esac
26242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26243   (eval "$ac_try") 2>&5
26244   ac_status=$?
26245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246   (exit $ac_status); }; } &&
26247          { ac_try='test -s conftest.$ac_objext'
26248   { (case "(($ac_try" in
26249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250   *) ac_try_echo=$ac_try;;
26251 esac
26252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26253   (eval "$ac_try") 2>&5
26254   ac_status=$?
26255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256   (exit $ac_status); }; }; then
26257   ac_cv_member_struct___res_state_retrans=yes
26258 else
26259   echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26261
26262         ac_cv_member_struct___res_state_retrans=no
26263 fi
26264
26265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266 fi
26267
26268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26269 fi
26270 { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
26271 echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
26272 if test $ac_cv_member_struct___res_state_retrans = yes; then
26273   :
26274 else
26275
26276 cat >>confdefs.h <<\_ACEOF
26277 #define __res_state state
26278 _ACEOF
26279
26280 fi
26281
26282
26283 { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
26284 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
26285 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
26286   echo $ECHO_N "(cached) $ECHO_C" >&6
26287 else
26288
26289         cat >conftest.$ac_ext <<_ACEOF
26290 /* confdefs.h.  */
26291 _ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h.  */
26295
26296 #include <sys/types.h>
26297 #include <sys/socket.h>
26298
26299 int
26300 main ()
26301 {
26302  struct sockaddr_storage s; s.ss_family = 1;
26303   ;
26304   return 0;
26305 }
26306 _ACEOF
26307 rm -f conftest.$ac_objext
26308 if { (ac_try="$ac_compile"
26309 case "(($ac_try" in
26310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311   *) ac_try_echo=$ac_try;;
26312 esac
26313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314   (eval "$ac_compile") 2>conftest.er1
26315   ac_status=$?
26316   grep -v '^ *+' conftest.er1 >conftest.err
26317   rm -f conftest.er1
26318   cat conftest.err >&5
26319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320   (exit $ac_status); } &&
26321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26322   { (case "(($ac_try" in
26323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26324   *) ac_try_echo=$ac_try;;
26325 esac
26326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26327   (eval "$ac_try") 2>&5
26328   ac_status=$?
26329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330   (exit $ac_status); }; } &&
26331          { ac_try='test -s conftest.$ac_objext'
26332   { (case "(($ac_try" in
26333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334   *) ac_try_echo=$ac_try;;
26335 esac
26336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337   (eval "$ac_try") 2>&5
26338   ac_status=$?
26339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340   (exit $ac_status); }; }; then
26341    ac_cv_have_ss_family_in_struct_ss="yes"
26342 else
26343   echo "$as_me: failed program was:" >&5
26344 sed 's/^/| /' conftest.$ac_ext >&5
26345
26346          ac_cv_have_ss_family_in_struct_ss="no"
26347 fi
26348
26349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26350
26351 fi
26352 { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
26353 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
26354 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
26355
26356 cat >>confdefs.h <<\_ACEOF
26357 #define HAVE_SS_FAMILY_IN_SS 1
26358 _ACEOF
26359
26360 fi
26361
26362 { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
26363 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
26364 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
26365   echo $ECHO_N "(cached) $ECHO_C" >&6
26366 else
26367
26368         cat >conftest.$ac_ext <<_ACEOF
26369 /* confdefs.h.  */
26370 _ACEOF
26371 cat confdefs.h >>conftest.$ac_ext
26372 cat >>conftest.$ac_ext <<_ACEOF
26373 /* end confdefs.h.  */
26374
26375 #include <sys/types.h>
26376 #include <sys/socket.h>
26377
26378 int
26379 main ()
26380 {
26381  struct sockaddr_storage s; s.__ss_family = 1;
26382   ;
26383   return 0;
26384 }
26385 _ACEOF
26386 rm -f conftest.$ac_objext
26387 if { (ac_try="$ac_compile"
26388 case "(($ac_try" in
26389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390   *) ac_try_echo=$ac_try;;
26391 esac
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393   (eval "$ac_compile") 2>conftest.er1
26394   ac_status=$?
26395   grep -v '^ *+' conftest.er1 >conftest.err
26396   rm -f conftest.er1
26397   cat conftest.err >&5
26398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399   (exit $ac_status); } &&
26400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26401   { (case "(($ac_try" in
26402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26403   *) ac_try_echo=$ac_try;;
26404 esac
26405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26406   (eval "$ac_try") 2>&5
26407   ac_status=$?
26408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); }; } &&
26410          { ac_try='test -s conftest.$ac_objext'
26411   { (case "(($ac_try" in
26412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413   *) ac_try_echo=$ac_try;;
26414 esac
26415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416   (eval "$ac_try") 2>&5
26417   ac_status=$?
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); }; }; then
26420    ac_cv_have___ss_family_in_struct_ss="yes"
26421 else
26422   echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425          ac_cv_have___ss_family_in_struct_ss="no"
26426
26427 fi
26428
26429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26430
26431 fi
26432 { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
26433 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
26434 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
26435
26436 cat >>confdefs.h <<\_ACEOF
26437 #define HAVE___SS_FAMILY_IN_SS 1
26438 _ACEOF
26439
26440 fi
26441
26442 { echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
26443 echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
26444 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
26445   echo $ECHO_N "(cached) $ECHO_C" >&6
26446 else
26447
26448         cat >conftest.$ac_ext <<_ACEOF
26449 /* confdefs.h.  */
26450 _ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h.  */
26454
26455 #include <pwd.h>
26456
26457 int
26458 main ()
26459 {
26460  struct passwd p; p.pw_class = 0;
26461   ;
26462   return 0;
26463 }
26464 _ACEOF
26465 rm -f conftest.$ac_objext
26466 if { (ac_try="$ac_compile"
26467 case "(($ac_try" in
26468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469   *) ac_try_echo=$ac_try;;
26470 esac
26471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26472   (eval "$ac_compile") 2>conftest.er1
26473   ac_status=$?
26474   grep -v '^ *+' conftest.er1 >conftest.err
26475   rm -f conftest.er1
26476   cat conftest.err >&5
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); } &&
26479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26480   { (case "(($ac_try" in
26481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26482   *) ac_try_echo=$ac_try;;
26483 esac
26484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26485   (eval "$ac_try") 2>&5
26486   ac_status=$?
26487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488   (exit $ac_status); }; } &&
26489          { ac_try='test -s conftest.$ac_objext'
26490   { (case "(($ac_try" in
26491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492   *) ac_try_echo=$ac_try;;
26493 esac
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495   (eval "$ac_try") 2>&5
26496   ac_status=$?
26497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498   (exit $ac_status); }; }; then
26499    ac_cv_have_pw_class_in_struct_passwd="yes"
26500 else
26501   echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.$ac_ext >&5
26503
26504          ac_cv_have_pw_class_in_struct_passwd="no"
26505
26506 fi
26507
26508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26509
26510 fi
26511 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
26512 echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
26513 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
26514
26515 cat >>confdefs.h <<\_ACEOF
26516 #define HAVE_PW_CLASS_IN_PASSWD 1
26517 _ACEOF
26518
26519 fi
26520
26521 { echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
26522 echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
26523 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
26524   echo $ECHO_N "(cached) $ECHO_C" >&6
26525 else
26526
26527         cat >conftest.$ac_ext <<_ACEOF
26528 /* confdefs.h.  */
26529 _ACEOF
26530 cat confdefs.h >>conftest.$ac_ext
26531 cat >>conftest.$ac_ext <<_ACEOF
26532 /* end confdefs.h.  */
26533
26534 #include <pwd.h>
26535
26536 int
26537 main ()
26538 {
26539  struct passwd p; p.pw_expire = 0;
26540   ;
26541   return 0;
26542 }
26543 _ACEOF
26544 rm -f conftest.$ac_objext
26545 if { (ac_try="$ac_compile"
26546 case "(($ac_try" in
26547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548   *) ac_try_echo=$ac_try;;
26549 esac
26550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551   (eval "$ac_compile") 2>conftest.er1
26552   ac_status=$?
26553   grep -v '^ *+' conftest.er1 >conftest.err
26554   rm -f conftest.er1
26555   cat conftest.err >&5
26556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557   (exit $ac_status); } &&
26558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26559   { (case "(($ac_try" in
26560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26561   *) ac_try_echo=$ac_try;;
26562 esac
26563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26564   (eval "$ac_try") 2>&5
26565   ac_status=$?
26566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); }; } &&
26568          { ac_try='test -s conftest.$ac_objext'
26569   { (case "(($ac_try" in
26570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26571   *) ac_try_echo=$ac_try;;
26572 esac
26573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26574   (eval "$ac_try") 2>&5
26575   ac_status=$?
26576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577   (exit $ac_status); }; }; then
26578    ac_cv_have_pw_expire_in_struct_passwd="yes"
26579 else
26580   echo "$as_me: failed program was:" >&5
26581 sed 's/^/| /' conftest.$ac_ext >&5
26582
26583          ac_cv_have_pw_expire_in_struct_passwd="no"
26584
26585 fi
26586
26587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26588
26589 fi
26590 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
26591 echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
26592 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
26593
26594 cat >>confdefs.h <<\_ACEOF
26595 #define HAVE_PW_EXPIRE_IN_PASSWD 1
26596 _ACEOF
26597
26598 fi
26599
26600 { echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
26601 echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
26602 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
26603   echo $ECHO_N "(cached) $ECHO_C" >&6
26604 else
26605
26606         cat >conftest.$ac_ext <<_ACEOF
26607 /* confdefs.h.  */
26608 _ACEOF
26609 cat confdefs.h >>conftest.$ac_ext
26610 cat >>conftest.$ac_ext <<_ACEOF
26611 /* end confdefs.h.  */
26612
26613 #include <pwd.h>
26614
26615 int
26616 main ()
26617 {
26618  struct passwd p; p.pw_change = 0;
26619   ;
26620   return 0;
26621 }
26622 _ACEOF
26623 rm -f conftest.$ac_objext
26624 if { (ac_try="$ac_compile"
26625 case "(($ac_try" in
26626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26627   *) ac_try_echo=$ac_try;;
26628 esac
26629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26630   (eval "$ac_compile") 2>conftest.er1
26631   ac_status=$?
26632   grep -v '^ *+' conftest.er1 >conftest.err
26633   rm -f conftest.er1
26634   cat conftest.err >&5
26635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636   (exit $ac_status); } &&
26637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26638   { (case "(($ac_try" in
26639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640   *) ac_try_echo=$ac_try;;
26641 esac
26642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643   (eval "$ac_try") 2>&5
26644   ac_status=$?
26645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); }; } &&
26647          { ac_try='test -s conftest.$ac_objext'
26648   { (case "(($ac_try" in
26649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650   *) ac_try_echo=$ac_try;;
26651 esac
26652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26653   (eval "$ac_try") 2>&5
26654   ac_status=$?
26655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656   (exit $ac_status); }; }; then
26657    ac_cv_have_pw_change_in_struct_passwd="yes"
26658 else
26659   echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26661
26662          ac_cv_have_pw_change_in_struct_passwd="no"
26663
26664 fi
26665
26666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26667
26668 fi
26669 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
26670 echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
26671 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
26672
26673 cat >>confdefs.h <<\_ACEOF
26674 #define HAVE_PW_CHANGE_IN_PASSWD 1
26675 _ACEOF
26676
26677 fi
26678
26679 { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
26680 echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
26681 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
26682   echo $ECHO_N "(cached) $ECHO_C" >&6
26683 else
26684
26685         cat >conftest.$ac_ext <<_ACEOF
26686
26687 #include <sys/types.h>
26688 #include <sys/socket.h>
26689 #include <sys/uio.h>
26690 int main() {
26691 #ifdef msg_accrights
26692 #error "msg_accrights is a macro"
26693 exit(1);
26694 #endif
26695 struct msghdr m;
26696 m.msg_accrights = 0;
26697 exit(0);
26698 }
26699
26700 _ACEOF
26701 rm -f conftest.$ac_objext
26702 if { (ac_try="$ac_compile"
26703 case "(($ac_try" in
26704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705   *) ac_try_echo=$ac_try;;
26706 esac
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708   (eval "$ac_compile") 2>conftest.er1
26709   ac_status=$?
26710   grep -v '^ *+' conftest.er1 >conftest.err
26711   rm -f conftest.er1
26712   cat conftest.err >&5
26713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714   (exit $ac_status); } &&
26715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26716   { (case "(($ac_try" in
26717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718   *) ac_try_echo=$ac_try;;
26719 esac
26720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721   (eval "$ac_try") 2>&5
26722   ac_status=$?
26723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724   (exit $ac_status); }; } &&
26725          { ac_try='test -s conftest.$ac_objext'
26726   { (case "(($ac_try" in
26727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728   *) ac_try_echo=$ac_try;;
26729 esac
26730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731   (eval "$ac_try") 2>&5
26732   ac_status=$?
26733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734   (exit $ac_status); }; }; then
26735    ac_cv_have_accrights_in_msghdr="yes"
26736 else
26737   echo "$as_me: failed program was:" >&5
26738 sed 's/^/| /' conftest.$ac_ext >&5
26739
26740          ac_cv_have_accrights_in_msghdr="no"
26741
26742 fi
26743
26744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26745
26746 fi
26747 { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
26748 echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
26749 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
26750
26751 cat >>confdefs.h <<\_ACEOF
26752 #define HAVE_ACCRIGHTS_IN_MSGHDR 1
26753 _ACEOF
26754
26755 fi
26756
26757 { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
26758 echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
26759 if test "${ac_cv_have_control_in_msghdr+set}" = set; then
26760   echo $ECHO_N "(cached) $ECHO_C" >&6
26761 else
26762
26763         cat >conftest.$ac_ext <<_ACEOF
26764
26765 #include <sys/types.h>
26766 #include <sys/socket.h>
26767 #include <sys/uio.h>
26768 int main() {
26769 #ifdef msg_control
26770 #error "msg_control is a macro"
26771 exit(1);
26772 #endif
26773 struct msghdr m;
26774 m.msg_control = 0;
26775 exit(0);
26776 }
26777
26778 _ACEOF
26779 rm -f conftest.$ac_objext
26780 if { (ac_try="$ac_compile"
26781 case "(($ac_try" in
26782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26783   *) ac_try_echo=$ac_try;;
26784 esac
26785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26786   (eval "$ac_compile") 2>conftest.er1
26787   ac_status=$?
26788   grep -v '^ *+' conftest.er1 >conftest.err
26789   rm -f conftest.er1
26790   cat conftest.err >&5
26791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792   (exit $ac_status); } &&
26793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26794   { (case "(($ac_try" in
26795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796   *) ac_try_echo=$ac_try;;
26797 esac
26798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26799   (eval "$ac_try") 2>&5
26800   ac_status=$?
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); }; } &&
26803          { ac_try='test -s conftest.$ac_objext'
26804   { (case "(($ac_try" in
26805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26806   *) ac_try_echo=$ac_try;;
26807 esac
26808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26809   (eval "$ac_try") 2>&5
26810   ac_status=$?
26811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812   (exit $ac_status); }; }; then
26813    ac_cv_have_control_in_msghdr="yes"
26814 else
26815   echo "$as_me: failed program was:" >&5
26816 sed 's/^/| /' conftest.$ac_ext >&5
26817
26818          ac_cv_have_control_in_msghdr="no"
26819
26820 fi
26821
26822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26823
26824 fi
26825 { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
26826 echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
26827 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
26828
26829 cat >>confdefs.h <<\_ACEOF
26830 #define HAVE_CONTROL_IN_MSGHDR 1
26831 _ACEOF
26832
26833 fi
26834
26835 { echo "$as_me:$LINENO: checking if libc defines __progname" >&5
26836 echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
26837 if test "${ac_cv_libc_defines___progname+set}" = set; then
26838   echo $ECHO_N "(cached) $ECHO_C" >&6
26839 else
26840
26841         cat >conftest.$ac_ext <<_ACEOF
26842 /* confdefs.h.  */
26843 _ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h.  */
26847
26848 int
26849 main ()
26850 {
26851  extern char *__progname; printf("%s", __progname);
26852   ;
26853   return 0;
26854 }
26855 _ACEOF
26856 rm -f conftest.$ac_objext conftest$ac_exeext
26857 if { (ac_try="$ac_link"
26858 case "(($ac_try" in
26859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860   *) ac_try_echo=$ac_try;;
26861 esac
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863   (eval "$ac_link") 2>conftest.er1
26864   ac_status=$?
26865   grep -v '^ *+' conftest.er1 >conftest.err
26866   rm -f conftest.er1
26867   cat conftest.err >&5
26868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869   (exit $ac_status); } &&
26870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26871   { (case "(($ac_try" in
26872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26873   *) ac_try_echo=$ac_try;;
26874 esac
26875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26876   (eval "$ac_try") 2>&5
26877   ac_status=$?
26878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879   (exit $ac_status); }; } &&
26880          { ac_try='test -s conftest$ac_exeext'
26881   { (case "(($ac_try" in
26882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26883   *) ac_try_echo=$ac_try;;
26884 esac
26885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26886   (eval "$ac_try") 2>&5
26887   ac_status=$?
26888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889   (exit $ac_status); }; }; then
26890    ac_cv_libc_defines___progname="yes"
26891 else
26892   echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26894
26895          ac_cv_libc_defines___progname="no"
26896
26897 fi
26898
26899 rm -f core conftest.err conftest.$ac_objext \
26900       conftest$ac_exeext conftest.$ac_ext
26901
26902 fi
26903 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
26904 echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
26905 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
26906
26907 cat >>confdefs.h <<\_ACEOF
26908 #define HAVE___PROGNAME 1
26909 _ACEOF
26910
26911 fi
26912
26913 { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
26914 echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
26915 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
26916   echo $ECHO_N "(cached) $ECHO_C" >&6
26917 else
26918
26919         cat >conftest.$ac_ext <<_ACEOF
26920 /* confdefs.h.  */
26921 _ACEOF
26922 cat confdefs.h >>conftest.$ac_ext
26923 cat >>conftest.$ac_ext <<_ACEOF
26924 /* end confdefs.h.  */
26925
26926 #include <stdio.h>
26927
26928 int
26929 main ()
26930 {
26931  printf("%s", __FUNCTION__);
26932   ;
26933   return 0;
26934 }
26935 _ACEOF
26936 rm -f conftest.$ac_objext conftest$ac_exeext
26937 if { (ac_try="$ac_link"
26938 case "(($ac_try" in
26939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26940   *) ac_try_echo=$ac_try;;
26941 esac
26942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26943   (eval "$ac_link") 2>conftest.er1
26944   ac_status=$?
26945   grep -v '^ *+' conftest.er1 >conftest.err
26946   rm -f conftest.er1
26947   cat conftest.err >&5
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); } &&
26950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26951   { (case "(($ac_try" in
26952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953   *) ac_try_echo=$ac_try;;
26954 esac
26955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956   (eval "$ac_try") 2>&5
26957   ac_status=$?
26958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959   (exit $ac_status); }; } &&
26960          { ac_try='test -s conftest$ac_exeext'
26961   { (case "(($ac_try" in
26962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26963   *) ac_try_echo=$ac_try;;
26964 esac
26965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26966   (eval "$ac_try") 2>&5
26967   ac_status=$?
26968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969   (exit $ac_status); }; }; then
26970    ac_cv_cc_implements___FUNCTION__="yes"
26971 else
26972   echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26974
26975          ac_cv_cc_implements___FUNCTION__="no"
26976
26977 fi
26978
26979 rm -f core conftest.err conftest.$ac_objext \
26980       conftest$ac_exeext conftest.$ac_ext
26981
26982 fi
26983 { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
26984 echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
26985 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
26986
26987 cat >>confdefs.h <<\_ACEOF
26988 #define HAVE___FUNCTION__ 1
26989 _ACEOF
26990
26991 fi
26992
26993 { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
26994 echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
26995 if test "${ac_cv_cc_implements___func__+set}" = set; then
26996   echo $ECHO_N "(cached) $ECHO_C" >&6
26997 else
26998
26999         cat >conftest.$ac_ext <<_ACEOF
27000 /* confdefs.h.  */
27001 _ACEOF
27002 cat confdefs.h >>conftest.$ac_ext
27003 cat >>conftest.$ac_ext <<_ACEOF
27004 /* end confdefs.h.  */
27005
27006 #include <stdio.h>
27007
27008 int
27009 main ()
27010 {
27011  printf("%s", __func__);
27012   ;
27013   return 0;
27014 }
27015 _ACEOF
27016 rm -f conftest.$ac_objext conftest$ac_exeext
27017 if { (ac_try="$ac_link"
27018 case "(($ac_try" in
27019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020   *) ac_try_echo=$ac_try;;
27021 esac
27022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023   (eval "$ac_link") 2>conftest.er1
27024   ac_status=$?
27025   grep -v '^ *+' conftest.er1 >conftest.err
27026   rm -f conftest.er1
27027   cat conftest.err >&5
27028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); } &&
27030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27031   { (case "(($ac_try" in
27032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033   *) ac_try_echo=$ac_try;;
27034 esac
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036   (eval "$ac_try") 2>&5
27037   ac_status=$?
27038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); }; } &&
27040          { ac_try='test -s conftest$ac_exeext'
27041   { (case "(($ac_try" in
27042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043   *) ac_try_echo=$ac_try;;
27044 esac
27045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27046   (eval "$ac_try") 2>&5
27047   ac_status=$?
27048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049   (exit $ac_status); }; }; then
27050    ac_cv_cc_implements___func__="yes"
27051 else
27052   echo "$as_me: failed program was:" >&5
27053 sed 's/^/| /' conftest.$ac_ext >&5
27054
27055          ac_cv_cc_implements___func__="no"
27056
27057 fi
27058
27059 rm -f core conftest.err conftest.$ac_objext \
27060       conftest$ac_exeext conftest.$ac_ext
27061
27062 fi
27063 { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
27064 echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
27065 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
27066
27067 cat >>confdefs.h <<\_ACEOF
27068 #define HAVE___func__ 1
27069 _ACEOF
27070
27071 fi
27072
27073 { echo "$as_me:$LINENO: checking whether va_copy exists" >&5
27074 echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
27075 if test "${ac_cv_have_va_copy+set}" = set; then
27076   echo $ECHO_N "(cached) $ECHO_C" >&6
27077 else
27078
27079         cat >conftest.$ac_ext <<_ACEOF
27080 /* confdefs.h.  */
27081 _ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h.  */
27085 #include <stdarg.h>
27086                  va_list x,y;
27087 int
27088 main ()
27089 {
27090 va_copy(x,y);
27091   ;
27092   return 0;
27093 }
27094 _ACEOF
27095 rm -f conftest.$ac_objext conftest$ac_exeext
27096 if { (ac_try="$ac_link"
27097 case "(($ac_try" in
27098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099   *) ac_try_echo=$ac_try;;
27100 esac
27101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102   (eval "$ac_link") 2>conftest.er1
27103   ac_status=$?
27104   grep -v '^ *+' conftest.er1 >conftest.err
27105   rm -f conftest.er1
27106   cat conftest.err >&5
27107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108   (exit $ac_status); } &&
27109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27110   { (case "(($ac_try" in
27111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112   *) ac_try_echo=$ac_try;;
27113 esac
27114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27115   (eval "$ac_try") 2>&5
27116   ac_status=$?
27117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); }; } &&
27119          { ac_try='test -s conftest$ac_exeext'
27120   { (case "(($ac_try" in
27121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122   *) ac_try_echo=$ac_try;;
27123 esac
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125   (eval "$ac_try") 2>&5
27126   ac_status=$?
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); }; }; then
27129    ac_cv_have_va_copy="yes"
27130 else
27131   echo "$as_me: failed program was:" >&5
27132 sed 's/^/| /' conftest.$ac_ext >&5
27133
27134          ac_cv_have_va_copy="no"
27135
27136 fi
27137
27138 rm -f core conftest.err conftest.$ac_objext \
27139       conftest$ac_exeext conftest.$ac_ext
27140
27141 fi
27142 { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
27143 echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
27144 if test "x$ac_cv_have_va_copy" = "xyes" ; then
27145
27146 cat >>confdefs.h <<\_ACEOF
27147 #define HAVE_VA_COPY 1
27148 _ACEOF
27149
27150 fi
27151
27152 { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
27153 echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
27154 if test "${ac_cv_have___va_copy+set}" = set; then
27155   echo $ECHO_N "(cached) $ECHO_C" >&6
27156 else
27157
27158         cat >conftest.$ac_ext <<_ACEOF
27159 /* confdefs.h.  */
27160 _ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h.  */
27164 #include <stdarg.h>
27165                  va_list x,y;
27166 int
27167 main ()
27168 {
27169 __va_copy(x,y);
27170   ;
27171   return 0;
27172 }
27173 _ACEOF
27174 rm -f conftest.$ac_objext conftest$ac_exeext
27175 if { (ac_try="$ac_link"
27176 case "(($ac_try" in
27177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27178   *) ac_try_echo=$ac_try;;
27179 esac
27180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27181   (eval "$ac_link") 2>conftest.er1
27182   ac_status=$?
27183   grep -v '^ *+' conftest.er1 >conftest.err
27184   rm -f conftest.er1
27185   cat conftest.err >&5
27186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187   (exit $ac_status); } &&
27188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27189   { (case "(($ac_try" in
27190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191   *) ac_try_echo=$ac_try;;
27192 esac
27193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194   (eval "$ac_try") 2>&5
27195   ac_status=$?
27196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197   (exit $ac_status); }; } &&
27198          { ac_try='test -s conftest$ac_exeext'
27199   { (case "(($ac_try" in
27200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201   *) ac_try_echo=$ac_try;;
27202 esac
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204   (eval "$ac_try") 2>&5
27205   ac_status=$?
27206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207   (exit $ac_status); }; }; then
27208    ac_cv_have___va_copy="yes"
27209 else
27210   echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27212
27213          ac_cv_have___va_copy="no"
27214
27215 fi
27216
27217 rm -f core conftest.err conftest.$ac_objext \
27218       conftest$ac_exeext conftest.$ac_ext
27219
27220 fi
27221 { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
27222 echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
27223 if test "x$ac_cv_have___va_copy" = "xyes" ; then
27224
27225 cat >>confdefs.h <<\_ACEOF
27226 #define HAVE___VA_COPY 1
27227 _ACEOF
27228
27229 fi
27230
27231 { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
27232 echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
27233 if test "${ac_cv_have_getopt_optreset+set}" = set; then
27234   echo $ECHO_N "(cached) $ECHO_C" >&6
27235 else
27236
27237         cat >conftest.$ac_ext <<_ACEOF
27238 /* confdefs.h.  */
27239 _ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h.  */
27243
27244 #include <getopt.h>
27245
27246 int
27247 main ()
27248 {
27249  extern int optreset; optreset = 0;
27250   ;
27251   return 0;
27252 }
27253 _ACEOF
27254 rm -f conftest.$ac_objext conftest$ac_exeext
27255 if { (ac_try="$ac_link"
27256 case "(($ac_try" in
27257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27258   *) ac_try_echo=$ac_try;;
27259 esac
27260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27261   (eval "$ac_link") 2>conftest.er1
27262   ac_status=$?
27263   grep -v '^ *+' conftest.er1 >conftest.err
27264   rm -f conftest.er1
27265   cat conftest.err >&5
27266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267   (exit $ac_status); } &&
27268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27269   { (case "(($ac_try" in
27270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271   *) ac_try_echo=$ac_try;;
27272 esac
27273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27274   (eval "$ac_try") 2>&5
27275   ac_status=$?
27276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277   (exit $ac_status); }; } &&
27278          { ac_try='test -s conftest$ac_exeext'
27279   { (case "(($ac_try" in
27280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281   *) ac_try_echo=$ac_try;;
27282 esac
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284   (eval "$ac_try") 2>&5
27285   ac_status=$?
27286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287   (exit $ac_status); }; }; then
27288    ac_cv_have_getopt_optreset="yes"
27289 else
27290   echo "$as_me: failed program was:" >&5
27291 sed 's/^/| /' conftest.$ac_ext >&5
27292
27293          ac_cv_have_getopt_optreset="no"
27294
27295 fi
27296
27297 rm -f core conftest.err conftest.$ac_objext \
27298       conftest$ac_exeext conftest.$ac_ext
27299
27300 fi
27301 { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
27302 echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
27303 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
27304
27305 cat >>confdefs.h <<\_ACEOF
27306 #define HAVE_GETOPT_OPTRESET 1
27307 _ACEOF
27308
27309 fi
27310
27311 { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
27312 echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
27313 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
27314   echo $ECHO_N "(cached) $ECHO_C" >&6
27315 else
27316
27317         cat >conftest.$ac_ext <<_ACEOF
27318 /* confdefs.h.  */
27319 _ACEOF
27320 cat confdefs.h >>conftest.$ac_ext
27321 cat >>conftest.$ac_ext <<_ACEOF
27322 /* end confdefs.h.  */
27323
27324 int
27325 main ()
27326 {
27327  extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
27328   ;
27329   return 0;
27330 }
27331 _ACEOF
27332 rm -f conftest.$ac_objext conftest$ac_exeext
27333 if { (ac_try="$ac_link"
27334 case "(($ac_try" in
27335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336   *) ac_try_echo=$ac_try;;
27337 esac
27338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339   (eval "$ac_link") 2>conftest.er1
27340   ac_status=$?
27341   grep -v '^ *+' conftest.er1 >conftest.err
27342   rm -f conftest.er1
27343   cat conftest.err >&5
27344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345   (exit $ac_status); } &&
27346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27347   { (case "(($ac_try" in
27348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349   *) ac_try_echo=$ac_try;;
27350 esac
27351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352   (eval "$ac_try") 2>&5
27353   ac_status=$?
27354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355   (exit $ac_status); }; } &&
27356          { ac_try='test -s conftest$ac_exeext'
27357   { (case "(($ac_try" in
27358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359   *) ac_try_echo=$ac_try;;
27360 esac
27361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362   (eval "$ac_try") 2>&5
27363   ac_status=$?
27364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365   (exit $ac_status); }; }; then
27366    ac_cv_libc_defines_sys_errlist="yes"
27367 else
27368   echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27370
27371          ac_cv_libc_defines_sys_errlist="no"
27372
27373 fi
27374
27375 rm -f core conftest.err conftest.$ac_objext \
27376       conftest$ac_exeext conftest.$ac_ext
27377
27378 fi
27379 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
27380 echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
27381 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
27382
27383 cat >>confdefs.h <<\_ACEOF
27384 #define HAVE_SYS_ERRLIST 1
27385 _ACEOF
27386
27387 fi
27388
27389
27390 { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
27391 echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
27392 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
27393   echo $ECHO_N "(cached) $ECHO_C" >&6
27394 else
27395
27396         cat >conftest.$ac_ext <<_ACEOF
27397 /* confdefs.h.  */
27398 _ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h.  */
27402
27403 int
27404 main ()
27405 {
27406  extern int sys_nerr; printf("%i", sys_nerr);
27407   ;
27408   return 0;
27409 }
27410 _ACEOF
27411 rm -f conftest.$ac_objext conftest$ac_exeext
27412 if { (ac_try="$ac_link"
27413 case "(($ac_try" in
27414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415   *) ac_try_echo=$ac_try;;
27416 esac
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418   (eval "$ac_link") 2>conftest.er1
27419   ac_status=$?
27420   grep -v '^ *+' conftest.er1 >conftest.err
27421   rm -f conftest.er1
27422   cat conftest.err >&5
27423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424   (exit $ac_status); } &&
27425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27426   { (case "(($ac_try" in
27427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27428   *) ac_try_echo=$ac_try;;
27429 esac
27430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431   (eval "$ac_try") 2>&5
27432   ac_status=$?
27433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434   (exit $ac_status); }; } &&
27435          { ac_try='test -s conftest$ac_exeext'
27436   { (case "(($ac_try" in
27437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27438   *) ac_try_echo=$ac_try;;
27439 esac
27440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27441   (eval "$ac_try") 2>&5
27442   ac_status=$?
27443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444   (exit $ac_status); }; }; then
27445    ac_cv_libc_defines_sys_nerr="yes"
27446 else
27447   echo "$as_me: failed program was:" >&5
27448 sed 's/^/| /' conftest.$ac_ext >&5
27449
27450          ac_cv_libc_defines_sys_nerr="no"
27451
27452 fi
27453
27454 rm -f core conftest.err conftest.$ac_objext \
27455       conftest$ac_exeext conftest.$ac_ext
27456
27457 fi
27458 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
27459 echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
27460 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
27461
27462 cat >>confdefs.h <<\_ACEOF
27463 #define HAVE_SYS_NERR 1
27464 _ACEOF
27465
27466 fi
27467
27468 SCARD_MSG="no"
27469 # Check whether user wants sectok support
27470
27471 # Check whether --with-sectok was given.
27472 if test "${with_sectok+set}" = set; then
27473   withval=$with_sectok;
27474                 if test "x$withval" != "xno" ; then
27475                         if test "x$withval" != "xyes" ; then
27476                                 CPPFLAGS="$CPPFLAGS -I${withval}"
27477                                 LDFLAGS="$LDFLAGS -L${withval}"
27478                                 if test ! -z "$need_dash_r" ; then
27479                                         LDFLAGS="$LDFLAGS -R${withval}"
27480                                 fi
27481                                 if test ! -z "$blibpath" ; then
27482                                         blibpath="$blibpath:${withval}"
27483                                 fi
27484                         fi
27485
27486 for ac_header in sectok.h
27487 do
27488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27490   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27493   echo $ECHO_N "(cached) $ECHO_C" >&6
27494 fi
27495 ac_res=`eval echo '${'$as_ac_Header'}'`
27496                { echo "$as_me:$LINENO: result: $ac_res" >&5
27497 echo "${ECHO_T}$ac_res" >&6; }
27498 else
27499   # Is the header compilable?
27500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27502 cat >conftest.$ac_ext <<_ACEOF
27503 /* confdefs.h.  */
27504 _ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h.  */
27508 $ac_includes_default
27509 #include <$ac_header>
27510 _ACEOF
27511 rm -f conftest.$ac_objext
27512 if { (ac_try="$ac_compile"
27513 case "(($ac_try" in
27514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515   *) ac_try_echo=$ac_try;;
27516 esac
27517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518   (eval "$ac_compile") 2>conftest.er1
27519   ac_status=$?
27520   grep -v '^ *+' conftest.er1 >conftest.err
27521   rm -f conftest.er1
27522   cat conftest.err >&5
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); } &&
27525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27526   { (case "(($ac_try" in
27527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528   *) ac_try_echo=$ac_try;;
27529 esac
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531   (eval "$ac_try") 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); }; } &&
27535          { ac_try='test -s conftest.$ac_objext'
27536   { (case "(($ac_try" in
27537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27538   *) ac_try_echo=$ac_try;;
27539 esac
27540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27541   (eval "$ac_try") 2>&5
27542   ac_status=$?
27543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544   (exit $ac_status); }; }; then
27545   ac_header_compiler=yes
27546 else
27547   echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27549
27550         ac_header_compiler=no
27551 fi
27552
27553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27555 echo "${ECHO_T}$ac_header_compiler" >&6; }
27556
27557 # Is the header present?
27558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27560 cat >conftest.$ac_ext <<_ACEOF
27561 /* confdefs.h.  */
27562 _ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h.  */
27566 #include <$ac_header>
27567 _ACEOF
27568 if { (ac_try="$ac_cpp conftest.$ac_ext"
27569 case "(($ac_try" in
27570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571   *) ac_try_echo=$ac_try;;
27572 esac
27573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27575   ac_status=$?
27576   grep -v '^ *+' conftest.er1 >conftest.err
27577   rm -f conftest.er1
27578   cat conftest.err >&5
27579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580   (exit $ac_status); } >/dev/null; then
27581   if test -s conftest.err; then
27582     ac_cpp_err=$ac_c_preproc_warn_flag
27583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27584   else
27585     ac_cpp_err=
27586   fi
27587 else
27588   ac_cpp_err=yes
27589 fi
27590 if test -z "$ac_cpp_err"; then
27591   ac_header_preproc=yes
27592 else
27593   echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27595
27596   ac_header_preproc=no
27597 fi
27598
27599 rm -f conftest.err conftest.$ac_ext
27600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27601 echo "${ECHO_T}$ac_header_preproc" >&6; }
27602
27603 # So?  What about this header?
27604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27605   yes:no: )
27606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27610     ac_header_preproc=yes
27611     ;;
27612   no:yes:* )
27613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27625     ( cat <<\_ASBOX
27626 ## ------------------------------------------- ##
27627 ## Report this to openssh-unix-dev@mindrot.org ##
27628 ## ------------------------------------------- ##
27629 _ASBOX
27630      ) | sed "s/^/$as_me: WARNING:     /" >&2
27631     ;;
27632 esac
27633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27636   echo $ECHO_N "(cached) $ECHO_C" >&6
27637 else
27638   eval "$as_ac_Header=\$ac_header_preproc"
27639 fi
27640 ac_res=`eval echo '${'$as_ac_Header'}'`
27641                { echo "$as_me:$LINENO: result: $ac_res" >&5
27642 echo "${ECHO_T}$ac_res" >&6; }
27643
27644 fi
27645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27646   cat >>confdefs.h <<_ACEOF
27647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27648 _ACEOF
27649
27650 fi
27651
27652 done
27653
27654                         if test "$ac_cv_header_sectok_h" != yes; then
27655                                 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
27656 echo "$as_me: error: Can't find sectok.h" >&2;}
27657    { (exit 1); exit 1; }; }
27658                         fi
27659
27660 { echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
27661 echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; }
27662 if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
27663   echo $ECHO_N "(cached) $ECHO_C" >&6
27664 else
27665   ac_check_lib_save_LIBS=$LIBS
27666 LIBS="-lsectok  $LIBS"
27667 cat >conftest.$ac_ext <<_ACEOF
27668 /* confdefs.h.  */
27669 _ACEOF
27670 cat confdefs.h >>conftest.$ac_ext
27671 cat >>conftest.$ac_ext <<_ACEOF
27672 /* end confdefs.h.  */
27673
27674 /* Override any GCC internal prototype to avoid an error.
27675    Use char because int might match the return type of a GCC
27676    builtin and then its argument prototype would still apply.  */
27677 #ifdef __cplusplus
27678 extern "C"
27679 #endif
27680 char sectok_open ();
27681 int
27682 main ()
27683 {
27684 return sectok_open ();
27685   ;
27686   return 0;
27687 }
27688 _ACEOF
27689 rm -f conftest.$ac_objext conftest$ac_exeext
27690 if { (ac_try="$ac_link"
27691 case "(($ac_try" in
27692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693   *) ac_try_echo=$ac_try;;
27694 esac
27695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696   (eval "$ac_link") 2>conftest.er1
27697   ac_status=$?
27698   grep -v '^ *+' conftest.er1 >conftest.err
27699   rm -f conftest.er1
27700   cat conftest.err >&5
27701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702   (exit $ac_status); } &&
27703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27704   { (case "(($ac_try" in
27705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706   *) ac_try_echo=$ac_try;;
27707 esac
27708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709   (eval "$ac_try") 2>&5
27710   ac_status=$?
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); }; } &&
27713          { ac_try='test -s conftest$ac_exeext'
27714   { (case "(($ac_try" in
27715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27716   *) ac_try_echo=$ac_try;;
27717 esac
27718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27719   (eval "$ac_try") 2>&5
27720   ac_status=$?
27721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722   (exit $ac_status); }; }; then
27723   ac_cv_lib_sectok_sectok_open=yes
27724 else
27725   echo "$as_me: failed program was:" >&5
27726 sed 's/^/| /' conftest.$ac_ext >&5
27727
27728         ac_cv_lib_sectok_sectok_open=no
27729 fi
27730
27731 rm -f core conftest.err conftest.$ac_objext \
27732       conftest$ac_exeext conftest.$ac_ext
27733 LIBS=$ac_check_lib_save_LIBS
27734 fi
27735 { echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
27736 echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; }
27737 if test $ac_cv_lib_sectok_sectok_open = yes; then
27738   cat >>confdefs.h <<_ACEOF
27739 #define HAVE_LIBSECTOK 1
27740 _ACEOF
27741
27742   LIBS="-lsectok $LIBS"
27743
27744 fi
27745
27746                         if test "$ac_cv_lib_sectok_sectok_open" != yes; then
27747                                 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
27748 echo "$as_me: error: Can't find libsectok" >&2;}
27749    { (exit 1); exit 1; }; }
27750                         fi
27751
27752 cat >>confdefs.h <<\_ACEOF
27753 #define SMARTCARD 1
27754 _ACEOF
27755
27756
27757 cat >>confdefs.h <<\_ACEOF
27758 #define USE_SECTOK 1
27759 _ACEOF
27760
27761                         SCARD_MSG="yes, using sectok"
27762                 fi
27763
27764
27765 fi
27766
27767
27768 # Check whether user wants OpenSC support
27769 OPENSC_CONFIG="no"
27770
27771 # Check whether --with-opensc was given.
27772 if test "${with_opensc+set}" = set; then
27773   withval=$with_opensc;
27774             if test "x$withval" != "xno" ; then
27775                 if test "x$withval" != "xyes" ; then
27776                         OPENSC_CONFIG=$withval/bin/opensc-config
27777                 else
27778                         # Extract the first word of "opensc-config", so it can be a program name with args.
27779 set dummy opensc-config; ac_word=$2
27780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27782 if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
27783   echo $ECHO_N "(cached) $ECHO_C" >&6
27784 else
27785   case $OPENSC_CONFIG in
27786   [\\/]* | ?:[\\/]*)
27787   ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
27788   ;;
27789   *)
27790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27791 for as_dir in $PATH
27792 do
27793   IFS=$as_save_IFS
27794   test -z "$as_dir" && as_dir=.
27795   for ac_exec_ext in '' $ac_executable_extensions; do
27796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27797     ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27799     break 2
27800   fi
27801 done
27802 done
27803 IFS=$as_save_IFS
27804
27805   test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
27806   ;;
27807 esac
27808 fi
27809 OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
27810 if test -n "$OPENSC_CONFIG"; then
27811   { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
27812 echo "${ECHO_T}$OPENSC_CONFIG" >&6; }
27813 else
27814   { echo "$as_me:$LINENO: result: no" >&5
27815 echo "${ECHO_T}no" >&6; }
27816 fi
27817
27818
27819                 fi
27820                 if test "$OPENSC_CONFIG" != "no"; then
27821                         LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
27822                         LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
27823                         CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
27824                         LIBS="$LIBS $LIBOPENSC_LIBS"
27825                         cat >>confdefs.h <<\_ACEOF
27826 #define SMARTCARD 1
27827 _ACEOF
27828
27829
27830 cat >>confdefs.h <<\_ACEOF
27831 #define USE_OPENSC 1
27832 _ACEOF
27833
27834                         SCARD_MSG="yes, using OpenSC"
27835                 fi
27836             fi
27837
27838
27839 fi
27840
27841
27842 # Check libraries needed by DNS fingerprint support
27843 { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
27844 echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
27845 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27846   echo $ECHO_N "(cached) $ECHO_C" >&6
27847 else
27848   ac_func_search_save_LIBS=$LIBS
27849 cat >conftest.$ac_ext <<_ACEOF
27850 /* confdefs.h.  */
27851 _ACEOF
27852 cat confdefs.h >>conftest.$ac_ext
27853 cat >>conftest.$ac_ext <<_ACEOF
27854 /* end confdefs.h.  */
27855
27856 /* Override any GCC internal prototype to avoid an error.
27857    Use char because int might match the return type of a GCC
27858    builtin and then its argument prototype would still apply.  */
27859 #ifdef __cplusplus
27860 extern "C"
27861 #endif
27862 char getrrsetbyname ();
27863 int
27864 main ()
27865 {
27866 return getrrsetbyname ();
27867   ;
27868   return 0;
27869 }
27870 _ACEOF
27871 for ac_lib in '' resolv; do
27872   if test -z "$ac_lib"; then
27873     ac_res="none required"
27874   else
27875     ac_res=-l$ac_lib
27876     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27877   fi
27878   rm -f conftest.$ac_objext conftest$ac_exeext
27879 if { (ac_try="$ac_link"
27880 case "(($ac_try" in
27881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882   *) ac_try_echo=$ac_try;;
27883 esac
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885   (eval "$ac_link") 2>conftest.er1
27886   ac_status=$?
27887   grep -v '^ *+' conftest.er1 >conftest.err
27888   rm -f conftest.er1
27889   cat conftest.err >&5
27890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891   (exit $ac_status); } &&
27892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27893   { (case "(($ac_try" in
27894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895   *) ac_try_echo=$ac_try;;
27896 esac
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898   (eval "$ac_try") 2>&5
27899   ac_status=$?
27900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901   (exit $ac_status); }; } &&
27902          { ac_try='test -s conftest$ac_exeext'
27903   { (case "(($ac_try" in
27904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905   *) ac_try_echo=$ac_try;;
27906 esac
27907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908   (eval "$ac_try") 2>&5
27909   ac_status=$?
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); }; }; then
27912   ac_cv_search_getrrsetbyname=$ac_res
27913 else
27914   echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27916
27917
27918 fi
27919
27920 rm -f core conftest.err conftest.$ac_objext \
27921       conftest$ac_exeext
27922   if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27923   break
27924 fi
27925 done
27926 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27927   :
27928 else
27929   ac_cv_search_getrrsetbyname=no
27930 fi
27931 rm conftest.$ac_ext
27932 LIBS=$ac_func_search_save_LIBS
27933 fi
27934 { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
27935 echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
27936 ac_res=$ac_cv_search_getrrsetbyname
27937 if test "$ac_res" != no; then
27938   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27939
27940 cat >>confdefs.h <<\_ACEOF
27941 #define HAVE_GETRRSETBYNAME 1
27942 _ACEOF
27943
27944 else
27945
27946                 # Needed by our getrrsetbyname()
27947                 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
27948 echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
27949 if test "${ac_cv_search_res_query+set}" = set; then
27950   echo $ECHO_N "(cached) $ECHO_C" >&6
27951 else
27952   ac_func_search_save_LIBS=$LIBS
27953 cat >conftest.$ac_ext <<_ACEOF
27954 /* confdefs.h.  */
27955 _ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h.  */
27959
27960 /* Override any GCC internal prototype to avoid an error.
27961    Use char because int might match the return type of a GCC
27962    builtin and then its argument prototype would still apply.  */
27963 #ifdef __cplusplus
27964 extern "C"
27965 #endif
27966 char res_query ();
27967 int
27968 main ()
27969 {
27970 return res_query ();
27971   ;
27972   return 0;
27973 }
27974 _ACEOF
27975 for ac_lib in '' resolv; do
27976   if test -z "$ac_lib"; then
27977     ac_res="none required"
27978   else
27979     ac_res=-l$ac_lib
27980     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27981   fi
27982   rm -f conftest.$ac_objext conftest$ac_exeext
27983 if { (ac_try="$ac_link"
27984 case "(($ac_try" in
27985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986   *) ac_try_echo=$ac_try;;
27987 esac
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989   (eval "$ac_link") 2>conftest.er1
27990   ac_status=$?
27991   grep -v '^ *+' conftest.er1 >conftest.err
27992   rm -f conftest.er1
27993   cat conftest.err >&5
27994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995   (exit $ac_status); } &&
27996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27997   { (case "(($ac_try" in
27998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27999   *) ac_try_echo=$ac_try;;
28000 esac
28001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28002   (eval "$ac_try") 2>&5
28003   ac_status=$?
28004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005   (exit $ac_status); }; } &&
28006          { ac_try='test -s conftest$ac_exeext'
28007   { (case "(($ac_try" in
28008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009   *) ac_try_echo=$ac_try;;
28010 esac
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012   (eval "$ac_try") 2>&5
28013   ac_status=$?
28014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015   (exit $ac_status); }; }; then
28016   ac_cv_search_res_query=$ac_res
28017 else
28018   echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021
28022 fi
28023
28024 rm -f core conftest.err conftest.$ac_objext \
28025       conftest$ac_exeext
28026   if test "${ac_cv_search_res_query+set}" = set; then
28027   break
28028 fi
28029 done
28030 if test "${ac_cv_search_res_query+set}" = set; then
28031   :
28032 else
28033   ac_cv_search_res_query=no
28034 fi
28035 rm conftest.$ac_ext
28036 LIBS=$ac_func_search_save_LIBS
28037 fi
28038 { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
28039 echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
28040 ac_res=$ac_cv_search_res_query
28041 if test "$ac_res" != no; then
28042   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28043
28044 fi
28045
28046                 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
28047 echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
28048 if test "${ac_cv_search_dn_expand+set}" = set; then
28049   echo $ECHO_N "(cached) $ECHO_C" >&6
28050 else
28051   ac_func_search_save_LIBS=$LIBS
28052 cat >conftest.$ac_ext <<_ACEOF
28053 /* confdefs.h.  */
28054 _ACEOF
28055 cat confdefs.h >>conftest.$ac_ext
28056 cat >>conftest.$ac_ext <<_ACEOF
28057 /* end confdefs.h.  */
28058
28059 /* Override any GCC internal prototype to avoid an error.
28060    Use char because int might match the return type of a GCC
28061    builtin and then its argument prototype would still apply.  */
28062 #ifdef __cplusplus
28063 extern "C"
28064 #endif
28065 char dn_expand ();
28066 int
28067 main ()
28068 {
28069 return dn_expand ();
28070   ;
28071   return 0;
28072 }
28073 _ACEOF
28074 for ac_lib in '' resolv; do
28075   if test -z "$ac_lib"; then
28076     ac_res="none required"
28077   else
28078     ac_res=-l$ac_lib
28079     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28080   fi
28081   rm -f conftest.$ac_objext conftest$ac_exeext
28082 if { (ac_try="$ac_link"
28083 case "(($ac_try" in
28084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085   *) ac_try_echo=$ac_try;;
28086 esac
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088   (eval "$ac_link") 2>conftest.er1
28089   ac_status=$?
28090   grep -v '^ *+' conftest.er1 >conftest.err
28091   rm -f conftest.er1
28092   cat conftest.err >&5
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); } &&
28095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28096   { (case "(($ac_try" in
28097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28098   *) ac_try_echo=$ac_try;;
28099 esac
28100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28101   (eval "$ac_try") 2>&5
28102   ac_status=$?
28103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104   (exit $ac_status); }; } &&
28105          { ac_try='test -s conftest$ac_exeext'
28106   { (case "(($ac_try" in
28107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28108   *) ac_try_echo=$ac_try;;
28109 esac
28110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28111   (eval "$ac_try") 2>&5
28112   ac_status=$?
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); }; }; then
28115   ac_cv_search_dn_expand=$ac_res
28116 else
28117   echo "$as_me: failed program was:" >&5
28118 sed 's/^/| /' conftest.$ac_ext >&5
28119
28120
28121 fi
28122
28123 rm -f core conftest.err conftest.$ac_objext \
28124       conftest$ac_exeext
28125   if test "${ac_cv_search_dn_expand+set}" = set; then
28126   break
28127 fi
28128 done
28129 if test "${ac_cv_search_dn_expand+set}" = set; then
28130   :
28131 else
28132   ac_cv_search_dn_expand=no
28133 fi
28134 rm conftest.$ac_ext
28135 LIBS=$ac_func_search_save_LIBS
28136 fi
28137 { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
28138 echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
28139 ac_res=$ac_cv_search_dn_expand
28140 if test "$ac_res" != no; then
28141   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28142
28143 fi
28144
28145                 { echo "$as_me:$LINENO: checking if res_query will link" >&5
28146 echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
28147                 cat >conftest.$ac_ext <<_ACEOF
28148 /* confdefs.h.  */
28149 _ACEOF
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h.  */
28153
28154 /* Override any GCC internal prototype to avoid an error.
28155    Use char because int might match the return type of a GCC
28156    builtin and then its argument prototype would still apply.  */
28157 #ifdef __cplusplus
28158 extern "C"
28159 #endif
28160 char res_query ();
28161 int
28162 main ()
28163 {
28164 return res_query ();
28165   ;
28166   return 0;
28167 }
28168 _ACEOF
28169 rm -f conftest.$ac_objext conftest$ac_exeext
28170 if { (ac_try="$ac_link"
28171 case "(($ac_try" in
28172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173   *) ac_try_echo=$ac_try;;
28174 esac
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176   (eval "$ac_link") 2>conftest.er1
28177   ac_status=$?
28178   grep -v '^ *+' conftest.er1 >conftest.err
28179   rm -f conftest.er1
28180   cat conftest.err >&5
28181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182   (exit $ac_status); } &&
28183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184   { (case "(($ac_try" in
28185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186   *) ac_try_echo=$ac_try;;
28187 esac
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189   (eval "$ac_try") 2>&5
28190   ac_status=$?
28191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192   (exit $ac_status); }; } &&
28193          { ac_try='test -s conftest$ac_exeext'
28194   { (case "(($ac_try" in
28195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196   *) ac_try_echo=$ac_try;;
28197 esac
28198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199   (eval "$ac_try") 2>&5
28200   ac_status=$?
28201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202   (exit $ac_status); }; }; then
28203   { echo "$as_me:$LINENO: result: yes" >&5
28204 echo "${ECHO_T}yes" >&6; }
28205 else
28206   echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28208
28209         { echo "$as_me:$LINENO: result: no" >&5
28210 echo "${ECHO_T}no" >&6; }
28211                     saved_LIBS="$LIBS"
28212                     LIBS="$LIBS -lresolv"
28213                     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
28214 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
28215                     cat >conftest.$ac_ext <<_ACEOF
28216
28217 #include <resolv.h>
28218 int main()
28219 {
28220         res_query (0, 0, 0, 0, 0);
28221         return 0;
28222 }
28223
28224 _ACEOF
28225 rm -f conftest.$ac_objext conftest$ac_exeext
28226 if { (ac_try="$ac_link"
28227 case "(($ac_try" in
28228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229   *) ac_try_echo=$ac_try;;
28230 esac
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232   (eval "$ac_link") 2>conftest.er1
28233   ac_status=$?
28234   grep -v '^ *+' conftest.er1 >conftest.err
28235   rm -f conftest.er1
28236   cat conftest.err >&5
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); } &&
28239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28240   { (case "(($ac_try" in
28241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242   *) ac_try_echo=$ac_try;;
28243 esac
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245   (eval "$ac_try") 2>&5
28246   ac_status=$?
28247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248   (exit $ac_status); }; } &&
28249          { ac_try='test -s conftest$ac_exeext'
28250   { (case "(($ac_try" in
28251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28252   *) ac_try_echo=$ac_try;;
28253 esac
28254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28255   (eval "$ac_try") 2>&5
28256   ac_status=$?
28257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); }; }; then
28259   LIBS="$LIBS -lresolv"
28260                          { echo "$as_me:$LINENO: result: yes" >&5
28261 echo "${ECHO_T}yes" >&6; }
28262 else
28263   echo "$as_me: failed program was:" >&5
28264 sed 's/^/| /' conftest.$ac_ext >&5
28265
28266         LIBS="$saved_LIBS"
28267                          { echo "$as_me:$LINENO: result: no" >&5
28268 echo "${ECHO_T}no" >&6; }
28269 fi
28270
28271 rm -f core conftest.err conftest.$ac_objext \
28272       conftest$ac_exeext conftest.$ac_ext
28273
28274 fi
28275
28276 rm -f core conftest.err conftest.$ac_objext \
28277       conftest$ac_exeext conftest.$ac_ext
28278
28279
28280 for ac_func in _getshort _getlong
28281 do
28282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28286   echo $ECHO_N "(cached) $ECHO_C" >&6
28287 else
28288   cat >conftest.$ac_ext <<_ACEOF
28289 /* confdefs.h.  */
28290 _ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h.  */
28294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28296 #define $ac_func innocuous_$ac_func
28297
28298 /* System header to define __stub macros and hopefully few prototypes,
28299     which can conflict with char $ac_func (); below.
28300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28301     <limits.h> exists even on freestanding compilers.  */
28302
28303 #ifdef __STDC__
28304 # include <limits.h>
28305 #else
28306 # include <assert.h>
28307 #endif
28308
28309 #undef $ac_func
28310
28311 /* Override any GCC internal prototype to avoid an error.
28312    Use char because int might match the return type of a GCC
28313    builtin and then its argument prototype would still apply.  */
28314 #ifdef __cplusplus
28315 extern "C"
28316 #endif
28317 char $ac_func ();
28318 /* The GNU C library defines this for functions which it implements
28319     to always fail with ENOSYS.  Some functions are actually named
28320     something starting with __ and the normal name is an alias.  */
28321 #if defined __stub_$ac_func || defined __stub___$ac_func
28322 choke me
28323 #endif
28324
28325 int
28326 main ()
28327 {
28328 return $ac_func ();
28329   ;
28330   return 0;
28331 }
28332 _ACEOF
28333 rm -f conftest.$ac_objext conftest$ac_exeext
28334 if { (ac_try="$ac_link"
28335 case "(($ac_try" in
28336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28337   *) ac_try_echo=$ac_try;;
28338 esac
28339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28340   (eval "$ac_link") 2>conftest.er1
28341   ac_status=$?
28342   grep -v '^ *+' conftest.er1 >conftest.err
28343   rm -f conftest.er1
28344   cat conftest.err >&5
28345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346   (exit $ac_status); } &&
28347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28348   { (case "(($ac_try" in
28349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28350   *) ac_try_echo=$ac_try;;
28351 esac
28352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28353   (eval "$ac_try") 2>&5
28354   ac_status=$?
28355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356   (exit $ac_status); }; } &&
28357          { ac_try='test -s conftest$ac_exeext'
28358   { (case "(($ac_try" in
28359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360   *) ac_try_echo=$ac_try;;
28361 esac
28362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363   (eval "$ac_try") 2>&5
28364   ac_status=$?
28365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366   (exit $ac_status); }; }; then
28367   eval "$as_ac_var=yes"
28368 else
28369   echo "$as_me: failed program was:" >&5
28370 sed 's/^/| /' conftest.$ac_ext >&5
28371
28372         eval "$as_ac_var=no"
28373 fi
28374
28375 rm -f core conftest.err conftest.$ac_objext \
28376       conftest$ac_exeext conftest.$ac_ext
28377 fi
28378 ac_res=`eval echo '${'$as_ac_var'}'`
28379                { echo "$as_me:$LINENO: result: $ac_res" >&5
28380 echo "${ECHO_T}$ac_res" >&6; }
28381 if test `eval echo '${'$as_ac_var'}'` = yes; then
28382   cat >>confdefs.h <<_ACEOF
28383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28384 _ACEOF
28385
28386 fi
28387 done
28388
28389                 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
28390 echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
28391 if test "${ac_cv_have_decl__getshort+set}" = set; then
28392   echo $ECHO_N "(cached) $ECHO_C" >&6
28393 else
28394   cat >conftest.$ac_ext <<_ACEOF
28395 /* confdefs.h.  */
28396 _ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h.  */
28400 #include <sys/types.h>
28401                     #include <arpa/nameser.h>
28402
28403 int
28404 main ()
28405 {
28406 #ifndef _getshort
28407   char *p = (char *) _getshort;
28408   return !p;
28409 #endif
28410
28411   ;
28412   return 0;
28413 }
28414 _ACEOF
28415 rm -f conftest.$ac_objext
28416 if { (ac_try="$ac_compile"
28417 case "(($ac_try" in
28418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419   *) ac_try_echo=$ac_try;;
28420 esac
28421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422   (eval "$ac_compile") 2>conftest.er1
28423   ac_status=$?
28424   grep -v '^ *+' conftest.er1 >conftest.err
28425   rm -f conftest.er1
28426   cat conftest.err >&5
28427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428   (exit $ac_status); } &&
28429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28430   { (case "(($ac_try" in
28431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28432   *) ac_try_echo=$ac_try;;
28433 esac
28434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28435   (eval "$ac_try") 2>&5
28436   ac_status=$?
28437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438   (exit $ac_status); }; } &&
28439          { ac_try='test -s conftest.$ac_objext'
28440   { (case "(($ac_try" in
28441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442   *) ac_try_echo=$ac_try;;
28443 esac
28444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445   (eval "$ac_try") 2>&5
28446   ac_status=$?
28447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448   (exit $ac_status); }; }; then
28449   ac_cv_have_decl__getshort=yes
28450 else
28451   echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.$ac_ext >&5
28453
28454         ac_cv_have_decl__getshort=no
28455 fi
28456
28457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28458 fi
28459 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
28460 echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
28461 if test $ac_cv_have_decl__getshort = yes; then
28462
28463 cat >>confdefs.h <<_ACEOF
28464 #define HAVE_DECL__GETSHORT 1
28465 _ACEOF
28466
28467
28468 else
28469   cat >>confdefs.h <<_ACEOF
28470 #define HAVE_DECL__GETSHORT 0
28471 _ACEOF
28472
28473
28474 fi
28475 { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
28476 echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
28477 if test "${ac_cv_have_decl__getlong+set}" = set; then
28478   echo $ECHO_N "(cached) $ECHO_C" >&6
28479 else
28480   cat >conftest.$ac_ext <<_ACEOF
28481 /* confdefs.h.  */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h.  */
28486 #include <sys/types.h>
28487                     #include <arpa/nameser.h>
28488
28489 int
28490 main ()
28491 {
28492 #ifndef _getlong
28493   char *p = (char *) _getlong;
28494   return !p;
28495 #endif
28496
28497   ;
28498   return 0;
28499 }
28500 _ACEOF
28501 rm -f conftest.$ac_objext
28502 if { (ac_try="$ac_compile"
28503 case "(($ac_try" in
28504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28505   *) ac_try_echo=$ac_try;;
28506 esac
28507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28508   (eval "$ac_compile") 2>conftest.er1
28509   ac_status=$?
28510   grep -v '^ *+' conftest.er1 >conftest.err
28511   rm -f conftest.er1
28512   cat conftest.err >&5
28513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514   (exit $ac_status); } &&
28515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28516   { (case "(($ac_try" in
28517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28518   *) ac_try_echo=$ac_try;;
28519 esac
28520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28521   (eval "$ac_try") 2>&5
28522   ac_status=$?
28523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524   (exit $ac_status); }; } &&
28525          { ac_try='test -s conftest.$ac_objext'
28526   { (case "(($ac_try" in
28527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528   *) ac_try_echo=$ac_try;;
28529 esac
28530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531   (eval "$ac_try") 2>&5
28532   ac_status=$?
28533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534   (exit $ac_status); }; }; then
28535   ac_cv_have_decl__getlong=yes
28536 else
28537   echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28539
28540         ac_cv_have_decl__getlong=no
28541 fi
28542
28543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28544 fi
28545 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
28546 echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
28547 if test $ac_cv_have_decl__getlong = yes; then
28548
28549 cat >>confdefs.h <<_ACEOF
28550 #define HAVE_DECL__GETLONG 1
28551 _ACEOF
28552
28553
28554 else
28555   cat >>confdefs.h <<_ACEOF
28556 #define HAVE_DECL__GETLONG 0
28557 _ACEOF
28558
28559
28560 fi
28561
28562
28563                 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
28564 echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
28565 if test "${ac_cv_member_HEADER_ad+set}" = set; then
28566   echo $ECHO_N "(cached) $ECHO_C" >&6
28567 else
28568   cat >conftest.$ac_ext <<_ACEOF
28569 /* confdefs.h.  */
28570 _ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h.  */
28574 #include <arpa/nameser.h>
28575
28576 int
28577 main ()
28578 {
28579 static HEADER ac_aggr;
28580 if (ac_aggr.ad)
28581 return 0;
28582   ;
28583   return 0;
28584 }
28585 _ACEOF
28586 rm -f conftest.$ac_objext
28587 if { (ac_try="$ac_compile"
28588 case "(($ac_try" in
28589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590   *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593   (eval "$ac_compile") 2>conftest.er1
28594   ac_status=$?
28595   grep -v '^ *+' conftest.er1 >conftest.err
28596   rm -f conftest.er1
28597   cat conftest.err >&5
28598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599   (exit $ac_status); } &&
28600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28601   { (case "(($ac_try" in
28602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603   *) ac_try_echo=$ac_try;;
28604 esac
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606   (eval "$ac_try") 2>&5
28607   ac_status=$?
28608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609   (exit $ac_status); }; } &&
28610          { ac_try='test -s conftest.$ac_objext'
28611   { (case "(($ac_try" in
28612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613   *) ac_try_echo=$ac_try;;
28614 esac
28615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616   (eval "$ac_try") 2>&5
28617   ac_status=$?
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); }; }; then
28620   ac_cv_member_HEADER_ad=yes
28621 else
28622   echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28624
28625         cat >conftest.$ac_ext <<_ACEOF
28626 /* confdefs.h.  */
28627 _ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h.  */
28631 #include <arpa/nameser.h>
28632
28633 int
28634 main ()
28635 {
28636 static HEADER ac_aggr;
28637 if (sizeof ac_aggr.ad)
28638 return 0;
28639   ;
28640   return 0;
28641 }
28642 _ACEOF
28643 rm -f conftest.$ac_objext
28644 if { (ac_try="$ac_compile"
28645 case "(($ac_try" in
28646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28647   *) ac_try_echo=$ac_try;;
28648 esac
28649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650   (eval "$ac_compile") 2>conftest.er1
28651   ac_status=$?
28652   grep -v '^ *+' conftest.er1 >conftest.err
28653   rm -f conftest.er1
28654   cat conftest.err >&5
28655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656   (exit $ac_status); } &&
28657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28658   { (case "(($ac_try" in
28659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28660   *) ac_try_echo=$ac_try;;
28661 esac
28662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28663   (eval "$ac_try") 2>&5
28664   ac_status=$?
28665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666   (exit $ac_status); }; } &&
28667          { ac_try='test -s conftest.$ac_objext'
28668   { (case "(($ac_try" in
28669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670   *) ac_try_echo=$ac_try;;
28671 esac
28672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673   (eval "$ac_try") 2>&5
28674   ac_status=$?
28675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676   (exit $ac_status); }; }; then
28677   ac_cv_member_HEADER_ad=yes
28678 else
28679   echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.$ac_ext >&5
28681
28682         ac_cv_member_HEADER_ad=no
28683 fi
28684
28685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28686 fi
28687
28688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28689 fi
28690 { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
28691 echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
28692 if test $ac_cv_member_HEADER_ad = yes; then
28693
28694 cat >>confdefs.h <<\_ACEOF
28695 #define HAVE_HEADER_AD 1
28696 _ACEOF
28697
28698 fi
28699
28700
28701 fi
28702
28703
28704 # Check whether user wants SELinux support
28705 SELINUX_MSG="no"
28706 LIBSELINUX=""
28707
28708 # Check whether --with-selinux was given.
28709 if test "${with_selinux+set}" = set; then
28710   withval=$with_selinux;  if test "x$withval" != "xno" ; then
28711
28712 cat >>confdefs.h <<\_ACEOF
28713 #define WITH_SELINUX 1
28714 _ACEOF
28715
28716                 SELINUX_MSG="yes"
28717                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
28718   { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
28719 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
28720 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
28721   echo $ECHO_N "(cached) $ECHO_C" >&6
28722 fi
28723 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
28724 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
28725 else
28726   # Is the header compilable?
28727 { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
28728 echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
28729 cat >conftest.$ac_ext <<_ACEOF
28730 /* confdefs.h.  */
28731 _ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h.  */
28735 $ac_includes_default
28736 #include <selinux/selinux.h>
28737 _ACEOF
28738 rm -f conftest.$ac_objext
28739 if { (ac_try="$ac_compile"
28740 case "(($ac_try" in
28741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742   *) ac_try_echo=$ac_try;;
28743 esac
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745   (eval "$ac_compile") 2>conftest.er1
28746   ac_status=$?
28747   grep -v '^ *+' conftest.er1 >conftest.err
28748   rm -f conftest.er1
28749   cat conftest.err >&5
28750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751   (exit $ac_status); } &&
28752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28753   { (case "(($ac_try" in
28754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755   *) ac_try_echo=$ac_try;;
28756 esac
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758   (eval "$ac_try") 2>&5
28759   ac_status=$?
28760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761   (exit $ac_status); }; } &&
28762          { ac_try='test -s conftest.$ac_objext'
28763   { (case "(($ac_try" in
28764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28765   *) ac_try_echo=$ac_try;;
28766 esac
28767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28768   (eval "$ac_try") 2>&5
28769   ac_status=$?
28770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771   (exit $ac_status); }; }; then
28772   ac_header_compiler=yes
28773 else
28774   echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28776
28777         ac_header_compiler=no
28778 fi
28779
28780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28782 echo "${ECHO_T}$ac_header_compiler" >&6; }
28783
28784 # Is the header present?
28785 { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
28786 echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
28787 cat >conftest.$ac_ext <<_ACEOF
28788 /* confdefs.h.  */
28789 _ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h.  */
28793 #include <selinux/selinux.h>
28794 _ACEOF
28795 if { (ac_try="$ac_cpp conftest.$ac_ext"
28796 case "(($ac_try" in
28797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798   *) ac_try_echo=$ac_try;;
28799 esac
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28802   ac_status=$?
28803   grep -v '^ *+' conftest.er1 >conftest.err
28804   rm -f conftest.er1
28805   cat conftest.err >&5
28806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807   (exit $ac_status); } >/dev/null; then
28808   if test -s conftest.err; then
28809     ac_cpp_err=$ac_c_preproc_warn_flag
28810     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28811   else
28812     ac_cpp_err=
28813   fi
28814 else
28815   ac_cpp_err=yes
28816 fi
28817 if test -z "$ac_cpp_err"; then
28818   ac_header_preproc=yes
28819 else
28820   echo "$as_me: failed program was:" >&5
28821 sed 's/^/| /' conftest.$ac_ext >&5
28822
28823   ac_header_preproc=no
28824 fi
28825
28826 rm -f conftest.err conftest.$ac_ext
28827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28828 echo "${ECHO_T}$ac_header_preproc" >&6; }
28829
28830 # So?  What about this header?
28831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28832   yes:no: )
28833     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
28834 echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28835     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
28836 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
28837     ac_header_preproc=yes
28838     ;;
28839   no:yes:* )
28840     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
28841 echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
28842     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
28843 echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
28844     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
28845 echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
28846     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
28847 echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28848     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
28849 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
28850     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
28851 echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
28852     ( cat <<\_ASBOX
28853 ## ------------------------------------------- ##
28854 ## Report this to openssh-unix-dev@mindrot.org ##
28855 ## ------------------------------------------- ##
28856 _ASBOX
28857      ) | sed "s/^/$as_me: WARNING:     /" >&2
28858     ;;
28859 esac
28860 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
28861 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
28862 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
28863   echo $ECHO_N "(cached) $ECHO_C" >&6
28864 else
28865   ac_cv_header_selinux_selinux_h=$ac_header_preproc
28866 fi
28867 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
28868 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
28869
28870 fi
28871 if test $ac_cv_header_selinux_selinux_h = yes; then
28872   :
28873 else
28874   { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
28875 echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
28876    { (exit 1); exit 1; }; }
28877 fi
28878
28879
28880                 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
28881 echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
28882 if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
28883   echo $ECHO_N "(cached) $ECHO_C" >&6
28884 else
28885   ac_check_lib_save_LIBS=$LIBS
28886 LIBS="-lselinux  $LIBS"
28887 cat >conftest.$ac_ext <<_ACEOF
28888 /* confdefs.h.  */
28889 _ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h.  */
28893
28894 /* Override any GCC internal prototype to avoid an error.
28895    Use char because int might match the return type of a GCC
28896    builtin and then its argument prototype would still apply.  */
28897 #ifdef __cplusplus
28898 extern "C"
28899 #endif
28900 char setexeccon ();
28901 int
28902 main ()
28903 {
28904 return setexeccon ();
28905   ;
28906   return 0;
28907 }
28908 _ACEOF
28909 rm -f conftest.$ac_objext conftest$ac_exeext
28910 if { (ac_try="$ac_link"
28911 case "(($ac_try" in
28912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913   *) ac_try_echo=$ac_try;;
28914 esac
28915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916   (eval "$ac_link") 2>conftest.er1
28917   ac_status=$?
28918   grep -v '^ *+' conftest.er1 >conftest.err
28919   rm -f conftest.er1
28920   cat conftest.err >&5
28921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922   (exit $ac_status); } &&
28923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28924   { (case "(($ac_try" in
28925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926   *) ac_try_echo=$ac_try;;
28927 esac
28928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929   (eval "$ac_try") 2>&5
28930   ac_status=$?
28931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932   (exit $ac_status); }; } &&
28933          { ac_try='test -s conftest$ac_exeext'
28934   { (case "(($ac_try" in
28935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936   *) ac_try_echo=$ac_try;;
28937 esac
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939   (eval "$ac_try") 2>&5
28940   ac_status=$?
28941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942   (exit $ac_status); }; }; then
28943   ac_cv_lib_selinux_setexeccon=yes
28944 else
28945   echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28947
28948         ac_cv_lib_selinux_setexeccon=no
28949 fi
28950
28951 rm -f core conftest.err conftest.$ac_objext \
28952       conftest$ac_exeext conftest.$ac_ext
28953 LIBS=$ac_check_lib_save_LIBS
28954 fi
28955 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
28956 echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
28957 if test $ac_cv_lib_selinux_setexeccon = yes; then
28958    LIBSELINUX="-lselinux"
28959 else
28960   { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
28961 echo "$as_me: error: SELinux support requires libselinux library" >&2;}
28962    { (exit 1); exit 1; }; }
28963 fi
28964
28965
28966
28967 for ac_func in getseuserbyname get_default_context_with_level
28968 do
28969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28973   echo $ECHO_N "(cached) $ECHO_C" >&6
28974 else
28975   cat >conftest.$ac_ext <<_ACEOF
28976 /* confdefs.h.  */
28977 _ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h.  */
28981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28983 #define $ac_func innocuous_$ac_func
28984
28985 /* System header to define __stub macros and hopefully few prototypes,
28986     which can conflict with char $ac_func (); below.
28987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28988     <limits.h> exists even on freestanding compilers.  */
28989
28990 #ifdef __STDC__
28991 # include <limits.h>
28992 #else
28993 # include <assert.h>
28994 #endif
28995
28996 #undef $ac_func
28997
28998 /* Override any GCC internal prototype to avoid an error.
28999    Use char because int might match the return type of a GCC
29000    builtin and then its argument prototype would still apply.  */
29001 #ifdef __cplusplus
29002 extern "C"
29003 #endif
29004 char $ac_func ();
29005 /* The GNU C library defines this for functions which it implements
29006     to always fail with ENOSYS.  Some functions are actually named
29007     something starting with __ and the normal name is an alias.  */
29008 #if defined __stub_$ac_func || defined __stub___$ac_func
29009 choke me
29010 #endif
29011
29012 int
29013 main ()
29014 {
29015 return $ac_func ();
29016   ;
29017   return 0;
29018 }
29019 _ACEOF
29020 rm -f conftest.$ac_objext conftest$ac_exeext
29021 if { (ac_try="$ac_link"
29022 case "(($ac_try" in
29023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024   *) ac_try_echo=$ac_try;;
29025 esac
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027   (eval "$ac_link") 2>conftest.er1
29028   ac_status=$?
29029   grep -v '^ *+' conftest.er1 >conftest.err
29030   rm -f conftest.er1
29031   cat conftest.err >&5
29032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033   (exit $ac_status); } &&
29034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29035   { (case "(($ac_try" in
29036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037   *) ac_try_echo=$ac_try;;
29038 esac
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040   (eval "$ac_try") 2>&5
29041   ac_status=$?
29042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043   (exit $ac_status); }; } &&
29044          { ac_try='test -s conftest$ac_exeext'
29045   { (case "(($ac_try" in
29046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047   *) ac_try_echo=$ac_try;;
29048 esac
29049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050   (eval "$ac_try") 2>&5
29051   ac_status=$?
29052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053   (exit $ac_status); }; }; then
29054   eval "$as_ac_var=yes"
29055 else
29056   echo "$as_me: failed program was:" >&5
29057 sed 's/^/| /' conftest.$ac_ext >&5
29058
29059         eval "$as_ac_var=no"
29060 fi
29061
29062 rm -f core conftest.err conftest.$ac_objext \
29063       conftest$ac_exeext conftest.$ac_ext
29064 fi
29065 ac_res=`eval echo '${'$as_ac_var'}'`
29066                { echo "$as_me:$LINENO: result: $ac_res" >&5
29067 echo "${ECHO_T}$ac_res" >&6; }
29068 if test `eval echo '${'$as_ac_var'}'` = yes; then
29069   cat >>confdefs.h <<_ACEOF
29070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29071 _ACEOF
29072
29073 fi
29074 done
29075
29076         fi
29077
29078 fi
29079
29080
29081
29082 # Check whether user wants Kerberos 5 support
29083 KRB5_MSG="no"
29084
29085 # Check whether --with-kerberos5 was given.
29086 if test "${with_kerberos5+set}" = set; then
29087   withval=$with_kerberos5;  if test "x$withval" != "xno" ; then
29088                 if test "x$withval" = "xyes" ; then
29089                         KRB5ROOT="/usr/local"
29090                 else
29091                         KRB5ROOT=${withval}
29092                 fi
29093
29094
29095 cat >>confdefs.h <<\_ACEOF
29096 #define KRB5 1
29097 _ACEOF
29098
29099                 KRB5_MSG="yes"
29100
29101                 { echo "$as_me:$LINENO: checking for krb5-config" >&5
29102 echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; }
29103                 if test -x  $KRB5ROOT/bin/krb5-config ; then
29104                         KRB5CONF=$KRB5ROOT/bin/krb5-config
29105                         { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
29106 echo "${ECHO_T}$KRB5CONF" >&6; }
29107
29108                         { echo "$as_me:$LINENO: checking for gssapi support" >&5
29109 echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
29110                         if $KRB5CONF | grep gssapi >/dev/null ; then
29111                                 { echo "$as_me:$LINENO: result: yes" >&5
29112 echo "${ECHO_T}yes" >&6; }
29113
29114 cat >>confdefs.h <<\_ACEOF
29115 #define GSSAPI 1
29116 _ACEOF
29117
29118                                 k5confopts=gssapi
29119                         else
29120                                 { echo "$as_me:$LINENO: result: no" >&5
29121 echo "${ECHO_T}no" >&6; }
29122                                 k5confopts=""
29123                         fi
29124                         K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
29125                         K5LIBS="`$KRB5CONF --libs $k5confopts`"
29126                         CPPFLAGS="$CPPFLAGS $K5CFLAGS"
29127                         { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
29128 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
29129                         cat >conftest.$ac_ext <<_ACEOF
29130 /* confdefs.h.  */
29131 _ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h.  */
29135  #include <krb5.h>
29136 int
29137 main ()
29138 {
29139  char *tmp = heimdal_version;
29140   ;
29141   return 0;
29142 }
29143 _ACEOF
29144 rm -f conftest.$ac_objext
29145 if { (ac_try="$ac_compile"
29146 case "(($ac_try" in
29147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148   *) ac_try_echo=$ac_try;;
29149 esac
29150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151   (eval "$ac_compile") 2>conftest.er1
29152   ac_status=$?
29153   grep -v '^ *+' conftest.er1 >conftest.err
29154   rm -f conftest.er1
29155   cat conftest.err >&5
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); } &&
29158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29159   { (case "(($ac_try" in
29160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161   *) ac_try_echo=$ac_try;;
29162 esac
29163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164   (eval "$ac_try") 2>&5
29165   ac_status=$?
29166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167   (exit $ac_status); }; } &&
29168          { ac_try='test -s conftest.$ac_objext'
29169   { (case "(($ac_try" in
29170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171   *) ac_try_echo=$ac_try;;
29172 esac
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174   (eval "$ac_try") 2>&5
29175   ac_status=$?
29176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177   (exit $ac_status); }; }; then
29178    { echo "$as_me:$LINENO: result: yes" >&5
29179 echo "${ECHO_T}yes" >&6; }
29180
29181 cat >>confdefs.h <<\_ACEOF
29182 #define HEIMDAL 1
29183 _ACEOF
29184
29185 else
29186   echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29188
29189         { echo "$as_me:$LINENO: result: no" >&5
29190 echo "${ECHO_T}no" >&6; }
29191
29192 fi
29193
29194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29195                 else
29196                         { echo "$as_me:$LINENO: result: no" >&5
29197 echo "${ECHO_T}no" >&6; }
29198                         CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
29199                         LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
29200                         { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
29201 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
29202                         cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h.  */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h.  */
29208  #include <krb5.h>
29209 int
29210 main ()
29211 {
29212  char *tmp = heimdal_version;
29213   ;
29214   return 0;
29215 }
29216 _ACEOF
29217 rm -f conftest.$ac_objext
29218 if { (ac_try="$ac_compile"
29219 case "(($ac_try" in
29220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221   *) ac_try_echo=$ac_try;;
29222 esac
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224   (eval "$ac_compile") 2>conftest.er1
29225   ac_status=$?
29226   grep -v '^ *+' conftest.er1 >conftest.err
29227   rm -f conftest.er1
29228   cat conftest.err >&5
29229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230   (exit $ac_status); } &&
29231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29232   { (case "(($ac_try" in
29233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234   *) ac_try_echo=$ac_try;;
29235 esac
29236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237   (eval "$ac_try") 2>&5
29238   ac_status=$?
29239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240   (exit $ac_status); }; } &&
29241          { ac_try='test -s conftest.$ac_objext'
29242   { (case "(($ac_try" in
29243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244   *) ac_try_echo=$ac_try;;
29245 esac
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247   (eval "$ac_try") 2>&5
29248   ac_status=$?
29249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250   (exit $ac_status); }; }; then
29251    { echo "$as_me:$LINENO: result: yes" >&5
29252 echo "${ECHO_T}yes" >&6; }
29253                                          cat >>confdefs.h <<\_ACEOF
29254 #define HEIMDAL 1
29255 _ACEOF
29256
29257                                          K5LIBS="-lkrb5 -ldes"
29258                                          K5LIBS="$K5LIBS -lcom_err -lasn1"
29259                                          { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
29260 echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
29261 if test "${ac_cv_lib_roken_net_write+set}" = set; then
29262   echo $ECHO_N "(cached) $ECHO_C" >&6
29263 else
29264   ac_check_lib_save_LIBS=$LIBS
29265 LIBS="-lroken  $LIBS"
29266 cat >conftest.$ac_ext <<_ACEOF
29267 /* confdefs.h.  */
29268 _ACEOF
29269 cat confdefs.h >>conftest.$ac_ext
29270 cat >>conftest.$ac_ext <<_ACEOF
29271 /* end confdefs.h.  */
29272
29273 /* Override any GCC internal prototype to avoid an error.
29274    Use char because int might match the return type of a GCC
29275    builtin and then its argument prototype would still apply.  */
29276 #ifdef __cplusplus
29277 extern "C"
29278 #endif
29279 char net_write ();
29280 int
29281 main ()
29282 {
29283 return net_write ();
29284   ;
29285   return 0;
29286 }
29287 _ACEOF
29288 rm -f conftest.$ac_objext conftest$ac_exeext
29289 if { (ac_try="$ac_link"
29290 case "(($ac_try" in
29291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29292   *) ac_try_echo=$ac_try;;
29293 esac
29294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29295   (eval "$ac_link") 2>conftest.er1
29296   ac_status=$?
29297   grep -v '^ *+' conftest.er1 >conftest.err
29298   rm -f conftest.er1
29299   cat conftest.err >&5
29300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301   (exit $ac_status); } &&
29302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29303   { (case "(($ac_try" in
29304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305   *) ac_try_echo=$ac_try;;
29306 esac
29307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29308   (eval "$ac_try") 2>&5
29309   ac_status=$?
29310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311   (exit $ac_status); }; } &&
29312          { ac_try='test -s conftest$ac_exeext'
29313   { (case "(($ac_try" in
29314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315   *) ac_try_echo=$ac_try;;
29316 esac
29317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318   (eval "$ac_try") 2>&5
29319   ac_status=$?
29320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321   (exit $ac_status); }; }; then
29322   ac_cv_lib_roken_net_write=yes
29323 else
29324   echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.$ac_ext >&5
29326
29327         ac_cv_lib_roken_net_write=no
29328 fi
29329
29330 rm -f core conftest.err conftest.$ac_objext \
29331       conftest$ac_exeext conftest.$ac_ext
29332 LIBS=$ac_check_lib_save_LIBS
29333 fi
29334 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
29335 echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
29336 if test $ac_cv_lib_roken_net_write = yes; then
29337   K5LIBS="$K5LIBS -lroken"
29338 fi
29339
29340
29341 else
29342   echo "$as_me: failed program was:" >&5
29343 sed 's/^/| /' conftest.$ac_ext >&5
29344
29345          { echo "$as_me:$LINENO: result: no" >&5
29346 echo "${ECHO_T}no" >&6; }
29347                                          K5LIBS="-lkrb5 -lk5crypto -lcom_err"
29348
29349
29350 fi
29351
29352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29353                         { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
29354 echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
29355 if test "${ac_cv_search_dn_expand+set}" = set; then
29356   echo $ECHO_N "(cached) $ECHO_C" >&6
29357 else
29358   ac_func_search_save_LIBS=$LIBS
29359 cat >conftest.$ac_ext <<_ACEOF
29360 /* confdefs.h.  */
29361 _ACEOF
29362 cat confdefs.h >>conftest.$ac_ext
29363 cat >>conftest.$ac_ext <<_ACEOF
29364 /* end confdefs.h.  */
29365
29366 /* Override any GCC internal prototype to avoid an error.
29367    Use char because int might match the return type of a GCC
29368    builtin and then its argument prototype would still apply.  */
29369 #ifdef __cplusplus
29370 extern "C"
29371 #endif
29372 char dn_expand ();
29373 int
29374 main ()
29375 {
29376 return dn_expand ();
29377   ;
29378   return 0;
29379 }
29380 _ACEOF
29381 for ac_lib in '' resolv; do
29382   if test -z "$ac_lib"; then
29383     ac_res="none required"
29384   else
29385     ac_res=-l$ac_lib
29386     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29387   fi
29388   rm -f conftest.$ac_objext conftest$ac_exeext
29389 if { (ac_try="$ac_link"
29390 case "(($ac_try" in
29391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392   *) ac_try_echo=$ac_try;;
29393 esac
29394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395   (eval "$ac_link") 2>conftest.er1
29396   ac_status=$?
29397   grep -v '^ *+' conftest.er1 >conftest.err
29398   rm -f conftest.er1
29399   cat conftest.err >&5
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); } &&
29402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29403   { (case "(($ac_try" in
29404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405   *) ac_try_echo=$ac_try;;
29406 esac
29407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408   (eval "$ac_try") 2>&5
29409   ac_status=$?
29410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411   (exit $ac_status); }; } &&
29412          { ac_try='test -s conftest$ac_exeext'
29413   { (case "(($ac_try" in
29414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415   *) ac_try_echo=$ac_try;;
29416 esac
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418   (eval "$ac_try") 2>&5
29419   ac_status=$?
29420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421   (exit $ac_status); }; }; then
29422   ac_cv_search_dn_expand=$ac_res
29423 else
29424   echo "$as_me: failed program was:" >&5
29425 sed 's/^/| /' conftest.$ac_ext >&5
29426
29427
29428 fi
29429
29430 rm -f core conftest.err conftest.$ac_objext \
29431       conftest$ac_exeext
29432   if test "${ac_cv_search_dn_expand+set}" = set; then
29433   break
29434 fi
29435 done
29436 if test "${ac_cv_search_dn_expand+set}" = set; then
29437   :
29438 else
29439   ac_cv_search_dn_expand=no
29440 fi
29441 rm conftest.$ac_ext
29442 LIBS=$ac_func_search_save_LIBS
29443 fi
29444 { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
29445 echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
29446 ac_res=$ac_cv_search_dn_expand
29447 if test "$ac_res" != no; then
29448   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29449
29450 fi
29451
29452
29453                         { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
29454 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
29455 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
29456   echo $ECHO_N "(cached) $ECHO_C" >&6
29457 else
29458   ac_check_lib_save_LIBS=$LIBS
29459 LIBS="-lgssapi $K5LIBS $LIBS"
29460 cat >conftest.$ac_ext <<_ACEOF
29461 /* confdefs.h.  */
29462 _ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h.  */
29466
29467 /* Override any GCC internal prototype to avoid an error.
29468    Use char because int might match the return type of a GCC
29469    builtin and then its argument prototype would still apply.  */
29470 #ifdef __cplusplus
29471 extern "C"
29472 #endif
29473 char gss_init_sec_context ();
29474 int
29475 main ()
29476 {
29477 return gss_init_sec_context ();
29478   ;
29479   return 0;
29480 }
29481 _ACEOF
29482 rm -f conftest.$ac_objext conftest$ac_exeext
29483 if { (ac_try="$ac_link"
29484 case "(($ac_try" in
29485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29486   *) ac_try_echo=$ac_try;;
29487 esac
29488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29489   (eval "$ac_link") 2>conftest.er1
29490   ac_status=$?
29491   grep -v '^ *+' conftest.er1 >conftest.err
29492   rm -f conftest.er1
29493   cat conftest.err >&5
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); } &&
29496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29497   { (case "(($ac_try" in
29498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29499   *) ac_try_echo=$ac_try;;
29500 esac
29501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29502   (eval "$ac_try") 2>&5
29503   ac_status=$?
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); }; } &&
29506          { ac_try='test -s conftest$ac_exeext'
29507   { (case "(($ac_try" in
29508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509   *) ac_try_echo=$ac_try;;
29510 esac
29511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512   (eval "$ac_try") 2>&5
29513   ac_status=$?
29514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515   (exit $ac_status); }; }; then
29516   ac_cv_lib_gssapi_gss_init_sec_context=yes
29517 else
29518   echo "$as_me: failed program was:" >&5
29519 sed 's/^/| /' conftest.$ac_ext >&5
29520
29521         ac_cv_lib_gssapi_gss_init_sec_context=no
29522 fi
29523
29524 rm -f core conftest.err conftest.$ac_objext \
29525       conftest$ac_exeext conftest.$ac_ext
29526 LIBS=$ac_check_lib_save_LIBS
29527 fi
29528 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
29529 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
29530 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
29531    cat >>confdefs.h <<\_ACEOF
29532 #define GSSAPI 1
29533 _ACEOF
29534
29535                                   K5LIBS="-lgssapi $K5LIBS"
29536 else
29537    { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
29538 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
29539 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
29540   echo $ECHO_N "(cached) $ECHO_C" >&6
29541 else
29542   ac_check_lib_save_LIBS=$LIBS
29543 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
29544 cat >conftest.$ac_ext <<_ACEOF
29545 /* confdefs.h.  */
29546 _ACEOF
29547 cat confdefs.h >>conftest.$ac_ext
29548 cat >>conftest.$ac_ext <<_ACEOF
29549 /* end confdefs.h.  */
29550
29551 /* Override any GCC internal prototype to avoid an error.
29552    Use char because int might match the return type of a GCC
29553    builtin and then its argument prototype would still apply.  */
29554 #ifdef __cplusplus
29555 extern "C"
29556 #endif
29557 char gss_init_sec_context ();
29558 int
29559 main ()
29560 {
29561 return gss_init_sec_context ();
29562   ;
29563   return 0;
29564 }
29565 _ACEOF
29566 rm -f conftest.$ac_objext conftest$ac_exeext
29567 if { (ac_try="$ac_link"
29568 case "(($ac_try" in
29569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570   *) ac_try_echo=$ac_try;;
29571 esac
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573   (eval "$ac_link") 2>conftest.er1
29574   ac_status=$?
29575   grep -v '^ *+' conftest.er1 >conftest.err
29576   rm -f conftest.er1
29577   cat conftest.err >&5
29578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579   (exit $ac_status); } &&
29580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29581   { (case "(($ac_try" in
29582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29583   *) ac_try_echo=$ac_try;;
29584 esac
29585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29586   (eval "$ac_try") 2>&5
29587   ac_status=$?
29588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589   (exit $ac_status); }; } &&
29590          { ac_try='test -s conftest$ac_exeext'
29591   { (case "(($ac_try" in
29592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593   *) ac_try_echo=$ac_try;;
29594 esac
29595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29596   (eval "$ac_try") 2>&5
29597   ac_status=$?
29598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599   (exit $ac_status); }; }; then
29600   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
29601 else
29602   echo "$as_me: failed program was:" >&5
29603 sed 's/^/| /' conftest.$ac_ext >&5
29604
29605         ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
29606 fi
29607
29608 rm -f core conftest.err conftest.$ac_objext \
29609       conftest$ac_exeext conftest.$ac_ext
29610 LIBS=$ac_check_lib_save_LIBS
29611 fi
29612 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
29613 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
29614 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
29615    cat >>confdefs.h <<\_ACEOF
29616 #define GSSAPI 1
29617 _ACEOF
29618
29619                                           K5LIBS="-lgssapi_krb5 $K5LIBS"
29620 else
29621   { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
29622 echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
29623 fi
29624
29625
29626 fi
29627
29628
29629                         if test "${ac_cv_header_gssapi_h+set}" = set; then
29630   { echo "$as_me:$LINENO: checking for gssapi.h" >&5
29631 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
29632 if test "${ac_cv_header_gssapi_h+set}" = set; then
29633   echo $ECHO_N "(cached) $ECHO_C" >&6
29634 fi
29635 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
29636 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
29637 else
29638   # Is the header compilable?
29639 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
29640 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
29641 cat >conftest.$ac_ext <<_ACEOF
29642 /* confdefs.h.  */
29643 _ACEOF
29644 cat confdefs.h >>conftest.$ac_ext
29645 cat >>conftest.$ac_ext <<_ACEOF
29646 /* end confdefs.h.  */
29647 $ac_includes_default
29648 #include <gssapi.h>
29649 _ACEOF
29650 rm -f conftest.$ac_objext
29651 if { (ac_try="$ac_compile"
29652 case "(($ac_try" in
29653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654   *) ac_try_echo=$ac_try;;
29655 esac
29656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657   (eval "$ac_compile") 2>conftest.er1
29658   ac_status=$?
29659   grep -v '^ *+' conftest.er1 >conftest.err
29660   rm -f conftest.er1
29661   cat conftest.err >&5
29662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663   (exit $ac_status); } &&
29664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29665   { (case "(($ac_try" in
29666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667   *) ac_try_echo=$ac_try;;
29668 esac
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670   (eval "$ac_try") 2>&5
29671   ac_status=$?
29672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673   (exit $ac_status); }; } &&
29674          { ac_try='test -s conftest.$ac_objext'
29675   { (case "(($ac_try" in
29676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677   *) ac_try_echo=$ac_try;;
29678 esac
29679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680   (eval "$ac_try") 2>&5
29681   ac_status=$?
29682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683   (exit $ac_status); }; }; then
29684   ac_header_compiler=yes
29685 else
29686   echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29688
29689         ac_header_compiler=no
29690 fi
29691
29692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29694 echo "${ECHO_T}$ac_header_compiler" >&6; }
29695
29696 # Is the header present?
29697 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
29698 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
29699 cat >conftest.$ac_ext <<_ACEOF
29700 /* confdefs.h.  */
29701 _ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h.  */
29705 #include <gssapi.h>
29706 _ACEOF
29707 if { (ac_try="$ac_cpp conftest.$ac_ext"
29708 case "(($ac_try" in
29709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29710   *) ac_try_echo=$ac_try;;
29711 esac
29712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29714   ac_status=$?
29715   grep -v '^ *+' conftest.er1 >conftest.err
29716   rm -f conftest.er1
29717   cat conftest.err >&5
29718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719   (exit $ac_status); } >/dev/null; then
29720   if test -s conftest.err; then
29721     ac_cpp_err=$ac_c_preproc_warn_flag
29722     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29723   else
29724     ac_cpp_err=
29725   fi
29726 else
29727   ac_cpp_err=yes
29728 fi
29729 if test -z "$ac_cpp_err"; then
29730   ac_header_preproc=yes
29731 else
29732   echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29734
29735   ac_header_preproc=no
29736 fi
29737
29738 rm -f conftest.err conftest.$ac_ext
29739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29740 echo "${ECHO_T}$ac_header_preproc" >&6; }
29741
29742 # So?  What about this header?
29743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29744   yes:no: )
29745     { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
29746 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29747     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
29748 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
29749     ac_header_preproc=yes
29750     ;;
29751   no:yes:* )
29752     { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
29753 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
29754     { echo "$as_me:$LINENO: WARNING: gssapi.h:     check for missing prerequisite headers?" >&5
29755 echo "$as_me: WARNING: gssapi.h:     check for missing prerequisite headers?" >&2;}
29756     { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
29757 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
29758     { echo "$as_me:$LINENO: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&5
29759 echo "$as_me: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29760     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
29761 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
29762     { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
29763 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
29764     ( cat <<\_ASBOX
29765 ## ------------------------------------------- ##
29766 ## Report this to openssh-unix-dev@mindrot.org ##
29767 ## ------------------------------------------- ##
29768 _ASBOX
29769      ) | sed "s/^/$as_me: WARNING:     /" >&2
29770     ;;
29771 esac
29772 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
29773 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
29774 if test "${ac_cv_header_gssapi_h+set}" = set; then
29775   echo $ECHO_N "(cached) $ECHO_C" >&6
29776 else
29777   ac_cv_header_gssapi_h=$ac_header_preproc
29778 fi
29779 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
29780 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
29781
29782 fi
29783 if test $ac_cv_header_gssapi_h = yes; then
29784   :
29785 else
29786    unset ac_cv_header_gssapi_h
29787                                   CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
29788
29789 for ac_header in gssapi.h
29790 do
29791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29793   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29796   echo $ECHO_N "(cached) $ECHO_C" >&6
29797 fi
29798 ac_res=`eval echo '${'$as_ac_Header'}'`
29799                { echo "$as_me:$LINENO: result: $ac_res" >&5
29800 echo "${ECHO_T}$ac_res" >&6; }
29801 else
29802   # Is the header compilable?
29803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29805 cat >conftest.$ac_ext <<_ACEOF
29806 /* confdefs.h.  */
29807 _ACEOF
29808 cat confdefs.h >>conftest.$ac_ext
29809 cat >>conftest.$ac_ext <<_ACEOF
29810 /* end confdefs.h.  */
29811 $ac_includes_default
29812 #include <$ac_header>
29813 _ACEOF
29814 rm -f conftest.$ac_objext
29815 if { (ac_try="$ac_compile"
29816 case "(($ac_try" in
29817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818   *) ac_try_echo=$ac_try;;
29819 esac
29820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821   (eval "$ac_compile") 2>conftest.er1
29822   ac_status=$?
29823   grep -v '^ *+' conftest.er1 >conftest.err
29824   rm -f conftest.er1
29825   cat conftest.err >&5
29826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827   (exit $ac_status); } &&
29828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29829   { (case "(($ac_try" in
29830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831   *) ac_try_echo=$ac_try;;
29832 esac
29833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834   (eval "$ac_try") 2>&5
29835   ac_status=$?
29836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837   (exit $ac_status); }; } &&
29838          { ac_try='test -s conftest.$ac_objext'
29839   { (case "(($ac_try" in
29840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841   *) ac_try_echo=$ac_try;;
29842 esac
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844   (eval "$ac_try") 2>&5
29845   ac_status=$?
29846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847   (exit $ac_status); }; }; then
29848   ac_header_compiler=yes
29849 else
29850   echo "$as_me: failed program was:" >&5
29851 sed 's/^/| /' conftest.$ac_ext >&5
29852
29853         ac_header_compiler=no
29854 fi
29855
29856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29858 echo "${ECHO_T}$ac_header_compiler" >&6; }
29859
29860 # Is the header present?
29861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29863 cat >conftest.$ac_ext <<_ACEOF
29864 /* confdefs.h.  */
29865 _ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h.  */
29869 #include <$ac_header>
29870 _ACEOF
29871 if { (ac_try="$ac_cpp conftest.$ac_ext"
29872 case "(($ac_try" in
29873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874   *) ac_try_echo=$ac_try;;
29875 esac
29876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29878   ac_status=$?
29879   grep -v '^ *+' conftest.er1 >conftest.err
29880   rm -f conftest.er1
29881   cat conftest.err >&5
29882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883   (exit $ac_status); } >/dev/null; then
29884   if test -s conftest.err; then
29885     ac_cpp_err=$ac_c_preproc_warn_flag
29886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29887   else
29888     ac_cpp_err=
29889   fi
29890 else
29891   ac_cpp_err=yes
29892 fi
29893 if test -z "$ac_cpp_err"; then
29894   ac_header_preproc=yes
29895 else
29896   echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29898
29899   ac_header_preproc=no
29900 fi
29901
29902 rm -f conftest.err conftest.$ac_ext
29903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29904 echo "${ECHO_T}$ac_header_preproc" >&6; }
29905
29906 # So?  What about this header?
29907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29908   yes:no: )
29909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29913     ac_header_preproc=yes
29914     ;;
29915   no:yes:* )
29916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29928     ( cat <<\_ASBOX
29929 ## ------------------------------------------- ##
29930 ## Report this to openssh-unix-dev@mindrot.org ##
29931 ## ------------------------------------------- ##
29932 _ASBOX
29933      ) | sed "s/^/$as_me: WARNING:     /" >&2
29934     ;;
29935 esac
29936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29939   echo $ECHO_N "(cached) $ECHO_C" >&6
29940 else
29941   eval "$as_ac_Header=\$ac_header_preproc"
29942 fi
29943 ac_res=`eval echo '${'$as_ac_Header'}'`
29944                { echo "$as_me:$LINENO: result: $ac_res" >&5
29945 echo "${ECHO_T}$ac_res" >&6; }
29946
29947 fi
29948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29949   cat >>confdefs.h <<_ACEOF
29950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29951 _ACEOF
29952
29953 else
29954   { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
29955 echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
29956
29957 fi
29958
29959 done
29960
29961
29962
29963 fi
29964
29965
29966
29967                         oldCPP="$CPPFLAGS"
29968                         CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
29969                         if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
29970   { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
29971 echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
29972 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
29973   echo $ECHO_N "(cached) $ECHO_C" >&6
29974 fi
29975 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
29976 echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
29977 else
29978   # Is the header compilable?
29979 { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
29980 echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
29981 cat >conftest.$ac_ext <<_ACEOF
29982 /* confdefs.h.  */
29983 _ACEOF
29984 cat confdefs.h >>conftest.$ac_ext
29985 cat >>conftest.$ac_ext <<_ACEOF
29986 /* end confdefs.h.  */
29987 $ac_includes_default
29988 #include <gssapi_krb5.h>
29989 _ACEOF
29990 rm -f conftest.$ac_objext
29991 if { (ac_try="$ac_compile"
29992 case "(($ac_try" in
29993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994   *) ac_try_echo=$ac_try;;
29995 esac
29996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997   (eval "$ac_compile") 2>conftest.er1
29998   ac_status=$?
29999   grep -v '^ *+' conftest.er1 >conftest.err
30000   rm -f conftest.er1
30001   cat conftest.err >&5
30002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003   (exit $ac_status); } &&
30004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30005   { (case "(($ac_try" in
30006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30007   *) ac_try_echo=$ac_try;;
30008 esac
30009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30010   (eval "$ac_try") 2>&5
30011   ac_status=$?
30012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013   (exit $ac_status); }; } &&
30014          { ac_try='test -s conftest.$ac_objext'
30015   { (case "(($ac_try" in
30016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017   *) ac_try_echo=$ac_try;;
30018 esac
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020   (eval "$ac_try") 2>&5
30021   ac_status=$?
30022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023   (exit $ac_status); }; }; then
30024   ac_header_compiler=yes
30025 else
30026   echo "$as_me: failed program was:" >&5
30027 sed 's/^/| /' conftest.$ac_ext >&5
30028
30029         ac_header_compiler=no
30030 fi
30031
30032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30034 echo "${ECHO_T}$ac_header_compiler" >&6; }
30035
30036 # Is the header present?
30037 { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
30038 echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
30039 cat >conftest.$ac_ext <<_ACEOF
30040 /* confdefs.h.  */
30041 _ACEOF
30042 cat confdefs.h >>conftest.$ac_ext
30043 cat >>conftest.$ac_ext <<_ACEOF
30044 /* end confdefs.h.  */
30045 #include <gssapi_krb5.h>
30046 _ACEOF
30047 if { (ac_try="$ac_cpp conftest.$ac_ext"
30048 case "(($ac_try" in
30049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050   *) ac_try_echo=$ac_try;;
30051 esac
30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30054   ac_status=$?
30055   grep -v '^ *+' conftest.er1 >conftest.err
30056   rm -f conftest.er1
30057   cat conftest.err >&5
30058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059   (exit $ac_status); } >/dev/null; then
30060   if test -s conftest.err; then
30061     ac_cpp_err=$ac_c_preproc_warn_flag
30062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30063   else
30064     ac_cpp_err=
30065   fi
30066 else
30067   ac_cpp_err=yes
30068 fi
30069 if test -z "$ac_cpp_err"; then
30070   ac_header_preproc=yes
30071 else
30072   echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.$ac_ext >&5
30074
30075   ac_header_preproc=no
30076 fi
30077
30078 rm -f conftest.err conftest.$ac_ext
30079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30080 echo "${ECHO_T}$ac_header_preproc" >&6; }
30081
30082 # So?  What about this header?
30083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30084   yes:no: )
30085     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
30086 echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30087     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
30088 echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
30089     ac_header_preproc=yes
30090     ;;
30091   no:yes:* )
30092     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
30093 echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
30094     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h:     check for missing prerequisite headers?" >&5
30095 echo "$as_me: WARNING: gssapi_krb5.h:     check for missing prerequisite headers?" >&2;}
30096     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
30097 echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
30098     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
30099 echo "$as_me: WARNING: gssapi_krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30100     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
30101 echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
30102     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
30103 echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
30104     ( cat <<\_ASBOX
30105 ## ------------------------------------------- ##
30106 ## Report this to openssh-unix-dev@mindrot.org ##
30107 ## ------------------------------------------- ##
30108 _ASBOX
30109      ) | sed "s/^/$as_me: WARNING:     /" >&2
30110     ;;
30111 esac
30112 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
30113 echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
30114 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
30115   echo $ECHO_N "(cached) $ECHO_C" >&6
30116 else
30117   ac_cv_header_gssapi_krb5_h=$ac_header_preproc
30118 fi
30119 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
30120 echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
30121
30122 fi
30123 if test $ac_cv_header_gssapi_krb5_h = yes; then
30124   :
30125 else
30126    CPPFLAGS="$oldCPP"
30127 fi
30128
30129
30130
30131                 fi
30132                 if test ! -z "$need_dash_r" ; then
30133                         LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
30134                 fi
30135                 if test ! -z "$blibpath" ; then
30136                         blibpath="$blibpath:${KRB5ROOT}/lib"
30137                 fi
30138
30139
30140
30141 for ac_header in gssapi.h gssapi/gssapi.h
30142 do
30143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30145   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30148   echo $ECHO_N "(cached) $ECHO_C" >&6
30149 fi
30150 ac_res=`eval echo '${'$as_ac_Header'}'`
30151                { echo "$as_me:$LINENO: result: $ac_res" >&5
30152 echo "${ECHO_T}$ac_res" >&6; }
30153 else
30154   # Is the header compilable?
30155 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30157 cat >conftest.$ac_ext <<_ACEOF
30158 /* confdefs.h.  */
30159 _ACEOF
30160 cat confdefs.h >>conftest.$ac_ext
30161 cat >>conftest.$ac_ext <<_ACEOF
30162 /* end confdefs.h.  */
30163 $ac_includes_default
30164 #include <$ac_header>
30165 _ACEOF
30166 rm -f conftest.$ac_objext
30167 if { (ac_try="$ac_compile"
30168 case "(($ac_try" in
30169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170   *) ac_try_echo=$ac_try;;
30171 esac
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173   (eval "$ac_compile") 2>conftest.er1
30174   ac_status=$?
30175   grep -v '^ *+' conftest.er1 >conftest.err
30176   rm -f conftest.er1
30177   cat conftest.err >&5
30178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179   (exit $ac_status); } &&
30180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30181   { (case "(($ac_try" in
30182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183   *) ac_try_echo=$ac_try;;
30184 esac
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186   (eval "$ac_try") 2>&5
30187   ac_status=$?
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); }; } &&
30190          { ac_try='test -s conftest.$ac_objext'
30191   { (case "(($ac_try" in
30192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193   *) ac_try_echo=$ac_try;;
30194 esac
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196   (eval "$ac_try") 2>&5
30197   ac_status=$?
30198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199   (exit $ac_status); }; }; then
30200   ac_header_compiler=yes
30201 else
30202   echo "$as_me: failed program was:" >&5
30203 sed 's/^/| /' conftest.$ac_ext >&5
30204
30205         ac_header_compiler=no
30206 fi
30207
30208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30210 echo "${ECHO_T}$ac_header_compiler" >&6; }
30211
30212 # Is the header present?
30213 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30215 cat >conftest.$ac_ext <<_ACEOF
30216 /* confdefs.h.  */
30217 _ACEOF
30218 cat confdefs.h >>conftest.$ac_ext
30219 cat >>conftest.$ac_ext <<_ACEOF
30220 /* end confdefs.h.  */
30221 #include <$ac_header>
30222 _ACEOF
30223 if { (ac_try="$ac_cpp conftest.$ac_ext"
30224 case "(($ac_try" in
30225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226   *) ac_try_echo=$ac_try;;
30227 esac
30228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30230   ac_status=$?
30231   grep -v '^ *+' conftest.er1 >conftest.err
30232   rm -f conftest.er1
30233   cat conftest.err >&5
30234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235   (exit $ac_status); } >/dev/null; then
30236   if test -s conftest.err; then
30237     ac_cpp_err=$ac_c_preproc_warn_flag
30238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30239   else
30240     ac_cpp_err=
30241   fi
30242 else
30243   ac_cpp_err=yes
30244 fi
30245 if test -z "$ac_cpp_err"; then
30246   ac_header_preproc=yes
30247 else
30248   echo "$as_me: failed program was:" >&5
30249 sed 's/^/| /' conftest.$ac_ext >&5
30250
30251   ac_header_preproc=no
30252 fi
30253
30254 rm -f conftest.err conftest.$ac_ext
30255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30256 echo "${ECHO_T}$ac_header_preproc" >&6; }
30257
30258 # So?  What about this header?
30259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30260   yes:no: )
30261     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30265     ac_header_preproc=yes
30266     ;;
30267   no:yes:* )
30268     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30270     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30271 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30272     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30274     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30275 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30278     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30280     ( cat <<\_ASBOX
30281 ## ------------------------------------------- ##
30282 ## Report this to openssh-unix-dev@mindrot.org ##
30283 ## ------------------------------------------- ##
30284 _ASBOX
30285      ) | sed "s/^/$as_me: WARNING:     /" >&2
30286     ;;
30287 esac
30288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30291   echo $ECHO_N "(cached) $ECHO_C" >&6
30292 else
30293   eval "$as_ac_Header=\$ac_header_preproc"
30294 fi
30295 ac_res=`eval echo '${'$as_ac_Header'}'`
30296                { echo "$as_me:$LINENO: result: $ac_res" >&5
30297 echo "${ECHO_T}$ac_res" >&6; }
30298
30299 fi
30300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30301   cat >>confdefs.h <<_ACEOF
30302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30303 _ACEOF
30304
30305 fi
30306
30307 done
30308
30309
30310
30311 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
30312 do
30313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30315   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30318   echo $ECHO_N "(cached) $ECHO_C" >&6
30319 fi
30320 ac_res=`eval echo '${'$as_ac_Header'}'`
30321                { echo "$as_me:$LINENO: result: $ac_res" >&5
30322 echo "${ECHO_T}$ac_res" >&6; }
30323 else
30324   # Is the header compilable?
30325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30327 cat >conftest.$ac_ext <<_ACEOF
30328 /* confdefs.h.  */
30329 _ACEOF
30330 cat confdefs.h >>conftest.$ac_ext
30331 cat >>conftest.$ac_ext <<_ACEOF
30332 /* end confdefs.h.  */
30333 $ac_includes_default
30334 #include <$ac_header>
30335 _ACEOF
30336 rm -f conftest.$ac_objext
30337 if { (ac_try="$ac_compile"
30338 case "(($ac_try" in
30339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30340   *) ac_try_echo=$ac_try;;
30341 esac
30342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30343   (eval "$ac_compile") 2>conftest.er1
30344   ac_status=$?
30345   grep -v '^ *+' conftest.er1 >conftest.err
30346   rm -f conftest.er1
30347   cat conftest.err >&5
30348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349   (exit $ac_status); } &&
30350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30351   { (case "(($ac_try" in
30352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30353   *) ac_try_echo=$ac_try;;
30354 esac
30355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356   (eval "$ac_try") 2>&5
30357   ac_status=$?
30358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359   (exit $ac_status); }; } &&
30360          { ac_try='test -s conftest.$ac_objext'
30361   { (case "(($ac_try" in
30362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30363   *) ac_try_echo=$ac_try;;
30364 esac
30365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30366   (eval "$ac_try") 2>&5
30367   ac_status=$?
30368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369   (exit $ac_status); }; }; then
30370   ac_header_compiler=yes
30371 else
30372   echo "$as_me: failed program was:" >&5
30373 sed 's/^/| /' conftest.$ac_ext >&5
30374
30375         ac_header_compiler=no
30376 fi
30377
30378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30380 echo "${ECHO_T}$ac_header_compiler" >&6; }
30381
30382 # Is the header present?
30383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30385 cat >conftest.$ac_ext <<_ACEOF
30386 /* confdefs.h.  */
30387 _ACEOF
30388 cat confdefs.h >>conftest.$ac_ext
30389 cat >>conftest.$ac_ext <<_ACEOF
30390 /* end confdefs.h.  */
30391 #include <$ac_header>
30392 _ACEOF
30393 if { (ac_try="$ac_cpp conftest.$ac_ext"
30394 case "(($ac_try" in
30395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30396   *) ac_try_echo=$ac_try;;
30397 esac
30398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30400   ac_status=$?
30401   grep -v '^ *+' conftest.er1 >conftest.err
30402   rm -f conftest.er1
30403   cat conftest.err >&5
30404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405   (exit $ac_status); } >/dev/null; then
30406   if test -s conftest.err; then
30407     ac_cpp_err=$ac_c_preproc_warn_flag
30408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30409   else
30410     ac_cpp_err=
30411   fi
30412 else
30413   ac_cpp_err=yes
30414 fi
30415 if test -z "$ac_cpp_err"; then
30416   ac_header_preproc=yes
30417 else
30418   echo "$as_me: failed program was:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30420
30421   ac_header_preproc=no
30422 fi
30423
30424 rm -f conftest.err conftest.$ac_ext
30425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30426 echo "${ECHO_T}$ac_header_preproc" >&6; }
30427
30428 # So?  What about this header?
30429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30430   yes:no: )
30431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30435     ac_header_preproc=yes
30436     ;;
30437   no:yes:* )
30438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30450     ( cat <<\_ASBOX
30451 ## ------------------------------------------- ##
30452 ## Report this to openssh-unix-dev@mindrot.org ##
30453 ## ------------------------------------------- ##
30454 _ASBOX
30455      ) | sed "s/^/$as_me: WARNING:     /" >&2
30456     ;;
30457 esac
30458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30461   echo $ECHO_N "(cached) $ECHO_C" >&6
30462 else
30463   eval "$as_ac_Header=\$ac_header_preproc"
30464 fi
30465 ac_res=`eval echo '${'$as_ac_Header'}'`
30466                { echo "$as_me:$LINENO: result: $ac_res" >&5
30467 echo "${ECHO_T}$ac_res" >&6; }
30468
30469 fi
30470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30471   cat >>confdefs.h <<_ACEOF
30472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30473 _ACEOF
30474
30475 fi
30476
30477 done
30478
30479
30480
30481 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
30482 do
30483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30485   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30488   echo $ECHO_N "(cached) $ECHO_C" >&6
30489 fi
30490 ac_res=`eval echo '${'$as_ac_Header'}'`
30491                { echo "$as_me:$LINENO: result: $ac_res" >&5
30492 echo "${ECHO_T}$ac_res" >&6; }
30493 else
30494   # Is the header compilable?
30495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30497 cat >conftest.$ac_ext <<_ACEOF
30498 /* confdefs.h.  */
30499 _ACEOF
30500 cat confdefs.h >>conftest.$ac_ext
30501 cat >>conftest.$ac_ext <<_ACEOF
30502 /* end confdefs.h.  */
30503 $ac_includes_default
30504 #include <$ac_header>
30505 _ACEOF
30506 rm -f conftest.$ac_objext
30507 if { (ac_try="$ac_compile"
30508 case "(($ac_try" in
30509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510   *) ac_try_echo=$ac_try;;
30511 esac
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513   (eval "$ac_compile") 2>conftest.er1
30514   ac_status=$?
30515   grep -v '^ *+' conftest.er1 >conftest.err
30516   rm -f conftest.er1
30517   cat conftest.err >&5
30518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519   (exit $ac_status); } &&
30520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30521   { (case "(($ac_try" in
30522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523   *) ac_try_echo=$ac_try;;
30524 esac
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526   (eval "$ac_try") 2>&5
30527   ac_status=$?
30528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529   (exit $ac_status); }; } &&
30530          { ac_try='test -s conftest.$ac_objext'
30531   { (case "(($ac_try" in
30532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533   *) ac_try_echo=$ac_try;;
30534 esac
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536   (eval "$ac_try") 2>&5
30537   ac_status=$?
30538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539   (exit $ac_status); }; }; then
30540   ac_header_compiler=yes
30541 else
30542   echo "$as_me: failed program was:" >&5
30543 sed 's/^/| /' conftest.$ac_ext >&5
30544
30545         ac_header_compiler=no
30546 fi
30547
30548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30550 echo "${ECHO_T}$ac_header_compiler" >&6; }
30551
30552 # Is the header present?
30553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30555 cat >conftest.$ac_ext <<_ACEOF
30556 /* confdefs.h.  */
30557 _ACEOF
30558 cat confdefs.h >>conftest.$ac_ext
30559 cat >>conftest.$ac_ext <<_ACEOF
30560 /* end confdefs.h.  */
30561 #include <$ac_header>
30562 _ACEOF
30563 if { (ac_try="$ac_cpp conftest.$ac_ext"
30564 case "(($ac_try" in
30565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30566   *) ac_try_echo=$ac_try;;
30567 esac
30568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30570   ac_status=$?
30571   grep -v '^ *+' conftest.er1 >conftest.err
30572   rm -f conftest.er1
30573   cat conftest.err >&5
30574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575   (exit $ac_status); } >/dev/null; then
30576   if test -s conftest.err; then
30577     ac_cpp_err=$ac_c_preproc_warn_flag
30578     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30579   else
30580     ac_cpp_err=
30581   fi
30582 else
30583   ac_cpp_err=yes
30584 fi
30585 if test -z "$ac_cpp_err"; then
30586   ac_header_preproc=yes
30587 else
30588   echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30590
30591   ac_header_preproc=no
30592 fi
30593
30594 rm -f conftest.err conftest.$ac_ext
30595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30596 echo "${ECHO_T}$ac_header_preproc" >&6; }
30597
30598 # So?  What about this header?
30599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30600   yes:no: )
30601     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30605     ac_header_preproc=yes
30606     ;;
30607   no:yes:* )
30608     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30610     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30611 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30612     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30614     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30615 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30618     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30620     ( cat <<\_ASBOX
30621 ## ------------------------------------------- ##
30622 ## Report this to openssh-unix-dev@mindrot.org ##
30623 ## ------------------------------------------- ##
30624 _ASBOX
30625      ) | sed "s/^/$as_me: WARNING:     /" >&2
30626     ;;
30627 esac
30628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30631   echo $ECHO_N "(cached) $ECHO_C" >&6
30632 else
30633   eval "$as_ac_Header=\$ac_header_preproc"
30634 fi
30635 ac_res=`eval echo '${'$as_ac_Header'}'`
30636                { echo "$as_me:$LINENO: result: $ac_res" >&5
30637 echo "${ECHO_T}$ac_res" >&6; }
30638
30639 fi
30640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30641   cat >>confdefs.h <<_ACEOF
30642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30643 _ACEOF
30644
30645 fi
30646
30647 done
30648
30649
30650                 LIBS="$LIBS $K5LIBS"
30651                 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
30652 echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
30653 if test "${ac_cv_search_k_hasafs+set}" = set; then
30654   echo $ECHO_N "(cached) $ECHO_C" >&6
30655 else
30656   ac_func_search_save_LIBS=$LIBS
30657 cat >conftest.$ac_ext <<_ACEOF
30658 /* confdefs.h.  */
30659 _ACEOF
30660 cat confdefs.h >>conftest.$ac_ext
30661 cat >>conftest.$ac_ext <<_ACEOF
30662 /* end confdefs.h.  */
30663
30664 /* Override any GCC internal prototype to avoid an error.
30665    Use char because int might match the return type of a GCC
30666    builtin and then its argument prototype would still apply.  */
30667 #ifdef __cplusplus
30668 extern "C"
30669 #endif
30670 char k_hasafs ();
30671 int
30672 main ()
30673 {
30674 return k_hasafs ();
30675   ;
30676   return 0;
30677 }
30678 _ACEOF
30679 for ac_lib in '' kafs; do
30680   if test -z "$ac_lib"; then
30681     ac_res="none required"
30682   else
30683     ac_res=-l$ac_lib
30684     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30685   fi
30686   rm -f conftest.$ac_objext conftest$ac_exeext
30687 if { (ac_try="$ac_link"
30688 case "(($ac_try" in
30689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690   *) ac_try_echo=$ac_try;;
30691 esac
30692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693   (eval "$ac_link") 2>conftest.er1
30694   ac_status=$?
30695   grep -v '^ *+' conftest.er1 >conftest.err
30696   rm -f conftest.er1
30697   cat conftest.err >&5
30698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699   (exit $ac_status); } &&
30700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30701   { (case "(($ac_try" in
30702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703   *) ac_try_echo=$ac_try;;
30704 esac
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706   (eval "$ac_try") 2>&5
30707   ac_status=$?
30708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709   (exit $ac_status); }; } &&
30710          { ac_try='test -s conftest$ac_exeext'
30711   { (case "(($ac_try" in
30712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30713   *) ac_try_echo=$ac_try;;
30714 esac
30715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716   (eval "$ac_try") 2>&5
30717   ac_status=$?
30718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719   (exit $ac_status); }; }; then
30720   ac_cv_search_k_hasafs=$ac_res
30721 else
30722   echo "$as_me: failed program was:" >&5
30723 sed 's/^/| /' conftest.$ac_ext >&5
30724
30725
30726 fi
30727
30728 rm -f core conftest.err conftest.$ac_objext \
30729       conftest$ac_exeext
30730   if test "${ac_cv_search_k_hasafs+set}" = set; then
30731   break
30732 fi
30733 done
30734 if test "${ac_cv_search_k_hasafs+set}" = set; then
30735   :
30736 else
30737   ac_cv_search_k_hasafs=no
30738 fi
30739 rm conftest.$ac_ext
30740 LIBS=$ac_func_search_save_LIBS
30741 fi
30742 { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
30743 echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
30744 ac_res=$ac_cv_search_k_hasafs
30745 if test "$ac_res" != no; then
30746   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30747
30748 cat >>confdefs.h <<\_ACEOF
30749 #define USE_AFS 1
30750 _ACEOF
30751
30752 fi
30753
30754         fi
30755
30756
30757 fi
30758
30759
30760 # Looking for programs, paths and files
30761
30762 PRIVSEP_PATH=/var/empty
30763
30764 # Check whether --with-privsep-path was given.
30765 if test "${with_privsep_path+set}" = set; then
30766   withval=$with_privsep_path;
30767                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
30768                     test "x${withval}" != "xyes"; then
30769                         PRIVSEP_PATH=$withval
30770                 fi
30771
30772
30773 fi
30774
30775
30776
30777
30778 # Check whether --with-xauth was given.
30779 if test "${with_xauth+set}" = set; then
30780   withval=$with_xauth;
30781                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
30782                     test "x${withval}" != "xyes"; then
30783                         xauth_path=$withval
30784                 fi
30785
30786 else
30787
30788                 TestPath="$PATH"
30789                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
30790                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
30791                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
30792                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
30793                 # Extract the first word of "xauth", so it can be a program name with args.
30794 set dummy xauth; ac_word=$2
30795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30797 if test "${ac_cv_path_xauth_path+set}" = set; then
30798   echo $ECHO_N "(cached) $ECHO_C" >&6
30799 else
30800   case $xauth_path in
30801   [\\/]* | ?:[\\/]*)
30802   ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
30803   ;;
30804   *)
30805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30806 for as_dir in $TestPath
30807 do
30808   IFS=$as_save_IFS
30809   test -z "$as_dir" && as_dir=.
30810   for ac_exec_ext in '' $ac_executable_extensions; do
30811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30812     ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
30813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30814     break 2
30815   fi
30816 done
30817 done
30818 IFS=$as_save_IFS
30819
30820   ;;
30821 esac
30822 fi
30823 xauth_path=$ac_cv_path_xauth_path
30824 if test -n "$xauth_path"; then
30825   { echo "$as_me:$LINENO: result: $xauth_path" >&5
30826 echo "${ECHO_T}$xauth_path" >&6; }
30827 else
30828   { echo "$as_me:$LINENO: result: no" >&5
30829 echo "${ECHO_T}no" >&6; }
30830 fi
30831
30832
30833                 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
30834                         xauth_path="/usr/openwin/bin/xauth"
30835                 fi
30836
30837
30838 fi
30839
30840
30841 STRIP_OPT=-s
30842 # Check whether --enable-strip was given.
30843 if test "${enable_strip+set}" = set; then
30844   enableval=$enable_strip;
30845                 if test "x$enableval" = "xno" ; then
30846                         STRIP_OPT=
30847                 fi
30848
30849
30850 fi
30851
30852
30853
30854 if test -z "$xauth_path" ; then
30855         XAUTH_PATH="undefined"
30856
30857 else
30858
30859 cat >>confdefs.h <<_ACEOF
30860 #define XAUTH_PATH "$xauth_path"
30861 _ACEOF
30862
30863         XAUTH_PATH=$xauth_path
30864
30865 fi
30866
30867 # Check for mail directory (last resort if we cannot get it from headers)
30868 if test ! -z "$MAIL" ; then
30869         maildir=`dirname $MAIL`
30870
30871 cat >>confdefs.h <<_ACEOF
30872 #define MAIL_DIRECTORY "$maildir"
30873 _ACEOF
30874
30875 fi
30876
30877 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
30878         { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
30879 echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
30880         disable_ptmx_check=yes
30881 fi
30882 if test -z "$no_dev_ptmx" ; then
30883         if test "x$disable_ptmx_check" != "xyes" ; then
30884                 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
30885 echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
30886 if test "${ac_cv_file___dev_ptmx_+set}" = set; then
30887   echo $ECHO_N "(cached) $ECHO_C" >&6
30888 else
30889   test "$cross_compiling" = yes &&
30890   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30891 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30892    { (exit 1); exit 1; }; }
30893 if test -r ""/dev/ptmx""; then
30894   ac_cv_file___dev_ptmx_=yes
30895 else
30896   ac_cv_file___dev_ptmx_=no
30897 fi
30898 fi
30899 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
30900 echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
30901 if test $ac_cv_file___dev_ptmx_ = yes; then
30902
30903
30904 cat >>confdefs.h <<_ACEOF
30905 #define HAVE_DEV_PTMX 1
30906 _ACEOF
30907
30908                                 have_dev_ptmx=1
30909
30910
30911 fi
30912
30913         fi
30914 fi
30915
30916 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
30917         { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
30918 echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
30919 if test "${ac_cv_file___dev_ptc_+set}" = set; then
30920   echo $ECHO_N "(cached) $ECHO_C" >&6
30921 else
30922   test "$cross_compiling" = yes &&
30923   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30924 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30925    { (exit 1); exit 1; }; }
30926 if test -r ""/dev/ptc""; then
30927   ac_cv_file___dev_ptc_=yes
30928 else
30929   ac_cv_file___dev_ptc_=no
30930 fi
30931 fi
30932 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
30933 echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
30934 if test $ac_cv_file___dev_ptc_ = yes; then
30935
30936
30937 cat >>confdefs.h <<_ACEOF
30938 #define HAVE_DEV_PTS_AND_PTC 1
30939 _ACEOF
30940
30941                         have_dev_ptc=1
30942
30943
30944 fi
30945
30946 else
30947         { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
30948 echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
30949 fi
30950
30951 # Options from here on. Some of these are preset by platform above
30952
30953 # Check whether --with-mantype was given.
30954 if test "${with_mantype+set}" = set; then
30955   withval=$with_mantype;
30956                 case "$withval" in
30957                 man|cat|doc)
30958                         MANTYPE=$withval
30959                         ;;
30960                 *)
30961                         { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
30962 echo "$as_me: error: invalid man type: $withval" >&2;}
30963    { (exit 1); exit 1; }; }
30964                         ;;
30965                 esac
30966
30967
30968 fi
30969
30970 if test -z "$MANTYPE"; then
30971         TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
30972         for ac_prog in nroff awf
30973 do
30974   # Extract the first word of "$ac_prog", so it can be a program name with args.
30975 set dummy $ac_prog; ac_word=$2
30976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30978 if test "${ac_cv_path_NROFF+set}" = set; then
30979   echo $ECHO_N "(cached) $ECHO_C" >&6
30980 else
30981   case $NROFF in
30982   [\\/]* | ?:[\\/]*)
30983   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
30984   ;;
30985   *)
30986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30987 for as_dir in $TestPath
30988 do
30989   IFS=$as_save_IFS
30990   test -z "$as_dir" && as_dir=.
30991   for ac_exec_ext in '' $ac_executable_extensions; do
30992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
30993     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
30994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30995     break 2
30996   fi
30997 done
30998 done
30999 IFS=$as_save_IFS
31000
31001   ;;
31002 esac
31003 fi
31004 NROFF=$ac_cv_path_NROFF
31005 if test -n "$NROFF"; then
31006   { echo "$as_me:$LINENO: result: $NROFF" >&5
31007 echo "${ECHO_T}$NROFF" >&6; }
31008 else
31009   { echo "$as_me:$LINENO: result: no" >&5
31010 echo "${ECHO_T}no" >&6; }
31011 fi
31012
31013
31014   test -n "$NROFF" && break
31015 done
31016 test -n "$NROFF" || NROFF="/bin/false"
31017
31018         if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
31019                 MANTYPE=doc
31020         elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
31021                 MANTYPE=man
31022         else
31023                 MANTYPE=cat
31024         fi
31025 fi
31026
31027 if test "$MANTYPE" = "doc"; then
31028         mansubdir=man;
31029 else
31030         mansubdir=$MANTYPE;
31031 fi
31032
31033
31034 # Check whether to enable MD5 passwords
31035 MD5_MSG="no"
31036
31037 # Check whether --with-md5-passwords was given.
31038 if test "${with_md5_passwords+set}" = set; then
31039   withval=$with_md5_passwords;
31040                 if test "x$withval" != "xno" ; then
31041
31042 cat >>confdefs.h <<\_ACEOF
31043 #define HAVE_MD5_PASSWORDS 1
31044 _ACEOF
31045
31046                         MD5_MSG="yes"
31047                 fi
31048
31049
31050 fi
31051
31052
31053 # Whether to disable shadow password support
31054
31055 # Check whether --with-shadow was given.
31056 if test "${with_shadow+set}" = set; then
31057   withval=$with_shadow;
31058                 if test "x$withval" = "xno" ; then
31059                         cat >>confdefs.h <<\_ACEOF
31060 #define DISABLE_SHADOW 1
31061 _ACEOF
31062
31063                         disable_shadow=yes
31064                 fi
31065
31066
31067 fi
31068
31069
31070 if test -z "$disable_shadow" ; then
31071         { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
31072 echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
31073         cat >conftest.$ac_ext <<_ACEOF
31074 /* confdefs.h.  */
31075 _ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h.  */
31079
31080 #include <sys/types.h>
31081 #include <shadow.h>
31082         struct spwd sp;
31083
31084 int
31085 main ()
31086 {
31087  sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
31088   ;
31089   return 0;
31090 }
31091 _ACEOF
31092 rm -f conftest.$ac_objext
31093 if { (ac_try="$ac_compile"
31094 case "(($ac_try" in
31095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096   *) ac_try_echo=$ac_try;;
31097 esac
31098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099   (eval "$ac_compile") 2>conftest.er1
31100   ac_status=$?
31101   grep -v '^ *+' conftest.er1 >conftest.err
31102   rm -f conftest.er1
31103   cat conftest.err >&5
31104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105   (exit $ac_status); } &&
31106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31107   { (case "(($ac_try" in
31108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31109   *) ac_try_echo=$ac_try;;
31110 esac
31111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31112   (eval "$ac_try") 2>&5
31113   ac_status=$?
31114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115   (exit $ac_status); }; } &&
31116          { ac_try='test -s conftest.$ac_objext'
31117   { (case "(($ac_try" in
31118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119   *) ac_try_echo=$ac_try;;
31120 esac
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122   (eval "$ac_try") 2>&5
31123   ac_status=$?
31124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125   (exit $ac_status); }; }; then
31126    sp_expire_available=yes
31127 else
31128   echo "$as_me: failed program was:" >&5
31129 sed 's/^/| /' conftest.$ac_ext >&5
31130
31131
31132
31133 fi
31134
31135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31136
31137         if test "x$sp_expire_available" = "xyes" ; then
31138                 { echo "$as_me:$LINENO: result: yes" >&5
31139 echo "${ECHO_T}yes" >&6; }
31140
31141 cat >>confdefs.h <<\_ACEOF
31142 #define HAS_SHADOW_EXPIRE 1
31143 _ACEOF
31144
31145         else
31146                 { echo "$as_me:$LINENO: result: no" >&5
31147 echo "${ECHO_T}no" >&6; }
31148         fi
31149 fi
31150
31151 # Use ip address instead of hostname in $DISPLAY
31152 if test ! -z "$IPADDR_IN_DISPLAY" ; then
31153         DISPLAY_HACK_MSG="yes"
31154
31155 cat >>confdefs.h <<\_ACEOF
31156 #define IPADDR_IN_DISPLAY 1
31157 _ACEOF
31158
31159 else
31160         DISPLAY_HACK_MSG="no"
31161
31162 # Check whether --with-ipaddr-display was given.
31163 if test "${with_ipaddr_display+set}" = set; then
31164   withval=$with_ipaddr_display;
31165                         if test "x$withval" != "xno" ; then
31166                                 cat >>confdefs.h <<\_ACEOF
31167 #define IPADDR_IN_DISPLAY 1
31168 _ACEOF
31169
31170                                 DISPLAY_HACK_MSG="yes"
31171                         fi
31172
31173
31174 fi
31175
31176 fi
31177
31178 # check for /etc/default/login and use it if present.
31179 # Check whether --enable-etc-default-login was given.
31180 if test "${enable_etc_default_login+set}" = set; then
31181   enableval=$enable_etc_default_login;  if test "x$enableval" = "xno"; then
31182                 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
31183 echo "$as_me: /etc/default/login handling disabled" >&6;}
31184                 etc_default_login=no
31185           else
31186                 etc_default_login=yes
31187           fi
31188 else
31189    if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
31190           then
31191                 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
31192 echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
31193                 etc_default_login=no
31194           else
31195                 etc_default_login=yes
31196           fi
31197
31198 fi
31199
31200
31201 if test "x$etc_default_login" != "xno"; then
31202         { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
31203 echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
31204 if test "${ac_cv_file___etc_default_login_+set}" = set; then
31205   echo $ECHO_N "(cached) $ECHO_C" >&6
31206 else
31207   test "$cross_compiling" = yes &&
31208   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
31209 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
31210    { (exit 1); exit 1; }; }
31211 if test -r ""/etc/default/login""; then
31212   ac_cv_file___etc_default_login_=yes
31213 else
31214   ac_cv_file___etc_default_login_=no
31215 fi
31216 fi
31217 { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
31218 echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
31219 if test $ac_cv_file___etc_default_login_ = yes; then
31220    external_path_file=/etc/default/login
31221 fi
31222
31223         if test "x$external_path_file" = "x/etc/default/login"; then
31224
31225 cat >>confdefs.h <<\_ACEOF
31226 #define HAVE_ETC_DEFAULT_LOGIN 1
31227 _ACEOF
31228
31229         fi
31230 fi
31231
31232 if test $ac_cv_func_login_getcapbool = "yes" && \
31233         test $ac_cv_header_login_cap_h = "yes" ; then
31234         external_path_file=/etc/login.conf
31235 fi
31236
31237 # Whether to mess with the default path
31238 SERVER_PATH_MSG="(default)"
31239
31240 # Check whether --with-default-path was given.
31241 if test "${with_default_path+set}" = set; then
31242   withval=$with_default_path;
31243                 if test "x$external_path_file" = "x/etc/login.conf" ; then
31244                         { echo "$as_me:$LINENO: WARNING:
31245 --with-default-path=PATH has no effect on this system.
31246 Edit /etc/login.conf instead." >&5
31247 echo "$as_me: WARNING:
31248 --with-default-path=PATH has no effect on this system.
31249 Edit /etc/login.conf instead." >&2;}
31250                 elif test "x$withval" != "xno" ; then
31251                         if test ! -z "$external_path_file" ; then
31252                                 { echo "$as_me:$LINENO: WARNING:
31253 --with-default-path=PATH will only be used if PATH is not defined in
31254 $external_path_file ." >&5
31255 echo "$as_me: WARNING:
31256 --with-default-path=PATH will only be used if PATH is not defined in
31257 $external_path_file ." >&2;}
31258                         fi
31259                         user_path="$withval"
31260                         SERVER_PATH_MSG="$withval"
31261                 fi
31262
31263 else
31264    if test "x$external_path_file" = "x/etc/login.conf" ; then
31265                 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
31266 echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
31267         else
31268                 if test ! -z "$external_path_file" ; then
31269                         { echo "$as_me:$LINENO: WARNING:
31270 If PATH is defined in $external_path_file, ensure the path to scp is included,
31271 otherwise scp will not work." >&5
31272 echo "$as_me: WARNING:
31273 If PATH is defined in $external_path_file, ensure the path to scp is included,
31274 otherwise scp will not work." >&2;}
31275                 fi
31276                 if test "$cross_compiling" = yes; then
31277    user_path="/usr/bin:/bin:/usr/sbin:/sbin"
31278
31279 else
31280   cat >conftest.$ac_ext <<_ACEOF
31281 /* confdefs.h.  */
31282 _ACEOF
31283 cat confdefs.h >>conftest.$ac_ext
31284 cat >>conftest.$ac_ext <<_ACEOF
31285 /* end confdefs.h.  */
31286
31287 /* find out what STDPATH is */
31288 #include <stdio.h>
31289 #ifdef HAVE_PATHS_H
31290 # include <paths.h>
31291 #endif
31292 #ifndef _PATH_STDPATH
31293 # ifdef _PATH_USERPATH  /* Irix */
31294 #  define _PATH_STDPATH _PATH_USERPATH
31295 # else
31296 #  define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
31297 # endif
31298 #endif
31299 #include <sys/types.h>
31300 #include <sys/stat.h>
31301 #include <fcntl.h>
31302 #define DATA "conftest.stdpath"
31303
31304 main()
31305 {
31306         FILE *fd;
31307         int rc;
31308
31309         fd = fopen(DATA,"w");
31310         if(fd == NULL)
31311                 exit(1);
31312
31313         if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
31314                 exit(1);
31315
31316         exit(0);
31317 }
31318
31319 _ACEOF
31320 rm -f conftest$ac_exeext
31321 if { (ac_try="$ac_link"
31322 case "(($ac_try" in
31323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324   *) ac_try_echo=$ac_try;;
31325 esac
31326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327   (eval "$ac_link") 2>&5
31328   ac_status=$?
31329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31331   { (case "(($ac_try" in
31332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31333   *) ac_try_echo=$ac_try;;
31334 esac
31335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31336   (eval "$ac_try") 2>&5
31337   ac_status=$?
31338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339   (exit $ac_status); }; }; then
31340    user_path=`cat conftest.stdpath`
31341 else
31342   echo "$as_me: program exited with status $ac_status" >&5
31343 echo "$as_me: failed program was:" >&5
31344 sed 's/^/| /' conftest.$ac_ext >&5
31345
31346 ( exit $ac_status )
31347  user_path="/usr/bin:/bin:/usr/sbin:/sbin"
31348 fi
31349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31350 fi
31351
31352
31353 # make sure $bindir is in USER_PATH so scp will work
31354                 t_bindir=`eval echo ${bindir}`
31355                 case $t_bindir in
31356                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
31357                 esac
31358                 case $t_bindir in
31359                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
31360                 esac
31361                 echo $user_path | grep ":$t_bindir"  > /dev/null 2>&1
31362                 if test $? -ne 0  ; then
31363                         echo $user_path | grep "^$t_bindir"  > /dev/null 2>&1
31364                         if test $? -ne 0  ; then
31365                                 user_path=$user_path:$t_bindir
31366                                 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
31367 echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
31368                         fi
31369                 fi
31370         fi
31371
31372 fi
31373
31374 if test "x$external_path_file" != "x/etc/login.conf" ; then
31375
31376 cat >>confdefs.h <<_ACEOF
31377 #define USER_PATH "$user_path"
31378 _ACEOF
31379
31380
31381 fi
31382
31383 # Set superuser path separately to user path
31384
31385 # Check whether --with-superuser-path was given.
31386 if test "${with_superuser_path+set}" = set; then
31387   withval=$with_superuser_path;
31388                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
31389                     test "x${withval}" != "xyes"; then
31390
31391 cat >>confdefs.h <<_ACEOF
31392 #define SUPERUSER_PATH "$withval"
31393 _ACEOF
31394
31395                         superuser_path=$withval
31396                 fi
31397
31398
31399 fi
31400
31401
31402
31403 { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
31404 echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
31405 IPV4_IN6_HACK_MSG="no"
31406
31407 # Check whether --with-4in6 was given.
31408 if test "${with_4in6+set}" = set; then
31409   withval=$with_4in6;
31410                 if test "x$withval" != "xno" ; then
31411                         { echo "$as_me:$LINENO: result: yes" >&5
31412 echo "${ECHO_T}yes" >&6; }
31413
31414 cat >>confdefs.h <<\_ACEOF
31415 #define IPV4_IN_IPV6 1
31416 _ACEOF
31417
31418                         IPV4_IN6_HACK_MSG="yes"
31419                 else
31420                         { echo "$as_me:$LINENO: result: no" >&5
31421 echo "${ECHO_T}no" >&6; }
31422                 fi
31423
31424 else
31425
31426                 if test "x$inet6_default_4in6" = "xyes"; then
31427                         { echo "$as_me:$LINENO: result: yes (default)" >&5
31428 echo "${ECHO_T}yes (default)" >&6; }
31429                         cat >>confdefs.h <<\_ACEOF
31430 #define IPV4_IN_IPV6 1
31431 _ACEOF
31432
31433                         IPV4_IN6_HACK_MSG="yes"
31434                 else
31435                         { echo "$as_me:$LINENO: result: no (default)" >&5
31436 echo "${ECHO_T}no (default)" >&6; }
31437                 fi
31438
31439
31440 fi
31441
31442
31443 # Whether to enable BSD auth support
31444 BSD_AUTH_MSG=no
31445
31446 # Check whether --with-bsd-auth was given.
31447 if test "${with_bsd_auth+set}" = set; then
31448   withval=$with_bsd_auth;
31449                 if test "x$withval" != "xno" ; then
31450
31451 cat >>confdefs.h <<\_ACEOF
31452 #define BSD_AUTH 1
31453 _ACEOF
31454
31455                         BSD_AUTH_MSG=yes
31456                 fi
31457
31458
31459 fi
31460
31461
31462 # Where to place sshd.pid
31463 piddir=/var/run
31464 # make sure the directory exists
31465 if test ! -d $piddir ; then
31466         piddir=`eval echo ${sysconfdir}`
31467         case $piddir in
31468                 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
31469         esac
31470 fi
31471
31472
31473 # Check whether --with-pid-dir was given.
31474 if test "${with_pid_dir+set}" = set; then
31475   withval=$with_pid_dir;
31476                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
31477                     test "x${withval}" != "xyes"; then
31478                         piddir=$withval
31479                         if test ! -d $piddir ; then
31480                         { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
31481 echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
31482                         fi
31483                 fi
31484
31485
31486 fi
31487
31488
31489
31490 cat >>confdefs.h <<_ACEOF
31491 #define _PATH_SSH_PIDDIR "$piddir"
31492 _ACEOF
31493
31494
31495
31496 # Check whether --enable-lastlog was given.
31497 if test "${enable_lastlog+set}" = set; then
31498   enableval=$enable_lastlog;
31499                 if test "x$enableval" = "xno" ; then
31500                         cat >>confdefs.h <<\_ACEOF
31501 #define DISABLE_LASTLOG 1
31502 _ACEOF
31503
31504                 fi
31505
31506
31507 fi
31508
31509 # Check whether --enable-utmp was given.
31510 if test "${enable_utmp+set}" = set; then
31511   enableval=$enable_utmp;
31512                 if test "x$enableval" = "xno" ; then
31513                         cat >>confdefs.h <<\_ACEOF
31514 #define DISABLE_UTMP 1
31515 _ACEOF
31516
31517                 fi
31518
31519
31520 fi
31521
31522 # Check whether --enable-utmpx was given.
31523 if test "${enable_utmpx+set}" = set; then
31524   enableval=$enable_utmpx;
31525                 if test "x$enableval" = "xno" ; then
31526
31527 cat >>confdefs.h <<\_ACEOF
31528 #define DISABLE_UTMPX 1
31529 _ACEOF
31530
31531                 fi
31532
31533
31534 fi
31535
31536 # Check whether --enable-wtmp was given.
31537 if test "${enable_wtmp+set}" = set; then
31538   enableval=$enable_wtmp;
31539                 if test "x$enableval" = "xno" ; then
31540                         cat >>confdefs.h <<\_ACEOF
31541 #define DISABLE_WTMP 1
31542 _ACEOF
31543
31544                 fi
31545
31546
31547 fi
31548
31549 # Check whether --enable-wtmpx was given.
31550 if test "${enable_wtmpx+set}" = set; then
31551   enableval=$enable_wtmpx;
31552                 if test "x$enableval" = "xno" ; then
31553
31554 cat >>confdefs.h <<\_ACEOF
31555 #define DISABLE_WTMPX 1
31556 _ACEOF
31557
31558                 fi
31559
31560
31561 fi
31562
31563 # Check whether --enable-libutil was given.
31564 if test "${enable_libutil+set}" = set; then
31565   enableval=$enable_libutil;
31566                 if test "x$enableval" = "xno" ; then
31567                         cat >>confdefs.h <<\_ACEOF
31568 #define DISABLE_LOGIN 1
31569 _ACEOF
31570
31571                 fi
31572
31573
31574 fi
31575
31576 # Check whether --enable-pututline was given.
31577 if test "${enable_pututline+set}" = set; then
31578   enableval=$enable_pututline;
31579                 if test "x$enableval" = "xno" ; then
31580
31581 cat >>confdefs.h <<\_ACEOF
31582 #define DISABLE_PUTUTLINE 1
31583 _ACEOF
31584
31585                 fi
31586
31587
31588 fi
31589
31590 # Check whether --enable-pututxline was given.
31591 if test "${enable_pututxline+set}" = set; then
31592   enableval=$enable_pututxline;
31593                 if test "x$enableval" = "xno" ; then
31594
31595 cat >>confdefs.h <<\_ACEOF
31596 #define DISABLE_PUTUTXLINE 1
31597 _ACEOF
31598
31599                 fi
31600
31601
31602 fi
31603
31604
31605 # Check whether --with-lastlog was given.
31606 if test "${with_lastlog+set}" = set; then
31607   withval=$with_lastlog;
31608                 if test "x$withval" = "xno" ; then
31609                         cat >>confdefs.h <<\_ACEOF
31610 #define DISABLE_LASTLOG 1
31611 _ACEOF
31612
31613                 elif test -n "$withval"  &&  test "x${withval}" != "xyes"; then
31614                         conf_lastlog_location=$withval
31615                 fi
31616
31617
31618 fi
31619
31620
31621
31622 { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
31623 echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
31624 cat >conftest.$ac_ext <<_ACEOF
31625 /* confdefs.h.  */
31626 _ACEOF
31627 cat confdefs.h >>conftest.$ac_ext
31628 cat >>conftest.$ac_ext <<_ACEOF
31629 /* end confdefs.h.  */
31630
31631 #include <sys/types.h>
31632 #include <utmp.h>
31633 #ifdef HAVE_LASTLOG_H
31634 #  include <lastlog.h>
31635 #endif
31636 #ifdef HAVE_PATHS_H
31637 #  include <paths.h>
31638 #endif
31639 #ifdef HAVE_LOGIN_H
31640 # include <login.h>
31641 #endif
31642
31643 int
31644 main ()
31645 {
31646  char *lastlog = LASTLOG_FILE;
31647   ;
31648   return 0;
31649 }
31650 _ACEOF
31651 rm -f conftest.$ac_objext
31652 if { (ac_try="$ac_compile"
31653 case "(($ac_try" in
31654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655   *) ac_try_echo=$ac_try;;
31656 esac
31657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658   (eval "$ac_compile") 2>conftest.er1
31659   ac_status=$?
31660   grep -v '^ *+' conftest.er1 >conftest.err
31661   rm -f conftest.er1
31662   cat conftest.err >&5
31663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664   (exit $ac_status); } &&
31665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31666   { (case "(($ac_try" in
31667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31668   *) ac_try_echo=$ac_try;;
31669 esac
31670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31671   (eval "$ac_try") 2>&5
31672   ac_status=$?
31673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674   (exit $ac_status); }; } &&
31675          { ac_try='test -s conftest.$ac_objext'
31676   { (case "(($ac_try" in
31677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678   *) ac_try_echo=$ac_try;;
31679 esac
31680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681   (eval "$ac_try") 2>&5
31682   ac_status=$?
31683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684   (exit $ac_status); }; }; then
31685    { echo "$as_me:$LINENO: result: yes" >&5
31686 echo "${ECHO_T}yes" >&6; }
31687 else
31688   echo "$as_me: failed program was:" >&5
31689 sed 's/^/| /' conftest.$ac_ext >&5
31690
31691
31692                 { echo "$as_me:$LINENO: result: no" >&5
31693 echo "${ECHO_T}no" >&6; }
31694                 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
31695 echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
31696                 cat >conftest.$ac_ext <<_ACEOF
31697 /* confdefs.h.  */
31698 _ACEOF
31699 cat confdefs.h >>conftest.$ac_ext
31700 cat >>conftest.$ac_ext <<_ACEOF
31701 /* end confdefs.h.  */
31702
31703 #include <sys/types.h>
31704 #include <utmp.h>
31705 #ifdef HAVE_LASTLOG_H
31706 #  include <lastlog.h>
31707 #endif
31708 #ifdef HAVE_PATHS_H
31709 #  include <paths.h>
31710 #endif
31711
31712 int
31713 main ()
31714 {
31715  char *lastlog = _PATH_LASTLOG;
31716   ;
31717   return 0;
31718 }
31719 _ACEOF
31720 rm -f conftest.$ac_objext
31721 if { (ac_try="$ac_compile"
31722 case "(($ac_try" in
31723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31724   *) ac_try_echo=$ac_try;;
31725 esac
31726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31727   (eval "$ac_compile") 2>conftest.er1
31728   ac_status=$?
31729   grep -v '^ *+' conftest.er1 >conftest.err
31730   rm -f conftest.er1
31731   cat conftest.err >&5
31732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733   (exit $ac_status); } &&
31734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31735   { (case "(($ac_try" in
31736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737   *) ac_try_echo=$ac_try;;
31738 esac
31739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740   (eval "$ac_try") 2>&5
31741   ac_status=$?
31742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743   (exit $ac_status); }; } &&
31744          { ac_try='test -s conftest.$ac_objext'
31745   { (case "(($ac_try" in
31746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31747   *) ac_try_echo=$ac_try;;
31748 esac
31749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31750   (eval "$ac_try") 2>&5
31751   ac_status=$?
31752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753   (exit $ac_status); }; }; then
31754    { echo "$as_me:$LINENO: result: yes" >&5
31755 echo "${ECHO_T}yes" >&6; }
31756 else
31757   echo "$as_me: failed program was:" >&5
31758 sed 's/^/| /' conftest.$ac_ext >&5
31759
31760
31761                         { echo "$as_me:$LINENO: result: no" >&5
31762 echo "${ECHO_T}no" >&6; }
31763                         system_lastlog_path=no
31764
31765 fi
31766
31767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31768
31769
31770 fi
31771
31772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31773
31774 if test -z "$conf_lastlog_location"; then
31775         if test x"$system_lastlog_path" = x"no" ; then
31776                 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
31777                                 if (test -d "$f" || test -f "$f") ; then
31778                                         conf_lastlog_location=$f
31779                                 fi
31780                 done
31781                 if test -z "$conf_lastlog_location"; then
31782                         { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
31783 echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
31784                                         fi
31785         fi
31786 fi
31787
31788 if test -n "$conf_lastlog_location"; then
31789
31790 cat >>confdefs.h <<_ACEOF
31791 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
31792 _ACEOF
31793
31794 fi
31795
31796 { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
31797 echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
31798 cat >conftest.$ac_ext <<_ACEOF
31799 /* confdefs.h.  */
31800 _ACEOF
31801 cat confdefs.h >>conftest.$ac_ext
31802 cat >>conftest.$ac_ext <<_ACEOF
31803 /* end confdefs.h.  */
31804
31805 #include <sys/types.h>
31806 #include <utmp.h>
31807 #ifdef HAVE_PATHS_H
31808 #  include <paths.h>
31809 #endif
31810
31811 int
31812 main ()
31813 {
31814  char *utmp = UTMP_FILE;
31815   ;
31816   return 0;
31817 }
31818 _ACEOF
31819 rm -f conftest.$ac_objext
31820 if { (ac_try="$ac_compile"
31821 case "(($ac_try" in
31822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823   *) ac_try_echo=$ac_try;;
31824 esac
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826   (eval "$ac_compile") 2>conftest.er1
31827   ac_status=$?
31828   grep -v '^ *+' conftest.er1 >conftest.err
31829   rm -f conftest.er1
31830   cat conftest.err >&5
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); } &&
31833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31834   { (case "(($ac_try" in
31835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836   *) ac_try_echo=$ac_try;;
31837 esac
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839   (eval "$ac_try") 2>&5
31840   ac_status=$?
31841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842   (exit $ac_status); }; } &&
31843          { ac_try='test -s conftest.$ac_objext'
31844   { (case "(($ac_try" in
31845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846   *) ac_try_echo=$ac_try;;
31847 esac
31848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849   (eval "$ac_try") 2>&5
31850   ac_status=$?
31851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852   (exit $ac_status); }; }; then
31853    { echo "$as_me:$LINENO: result: yes" >&5
31854 echo "${ECHO_T}yes" >&6; }
31855 else
31856   echo "$as_me: failed program was:" >&5
31857 sed 's/^/| /' conftest.$ac_ext >&5
31858
31859          { echo "$as_me:$LINENO: result: no" >&5
31860 echo "${ECHO_T}no" >&6; }
31861           system_utmp_path=no
31862
31863 fi
31864
31865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31866 if test -z "$conf_utmp_location"; then
31867         if test x"$system_utmp_path" = x"no" ; then
31868                 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
31869                         if test -f $f ; then
31870                                 conf_utmp_location=$f
31871                         fi
31872                 done
31873                 if test -z "$conf_utmp_location"; then
31874                         cat >>confdefs.h <<\_ACEOF
31875 #define DISABLE_UTMP 1
31876 _ACEOF
31877
31878                 fi
31879         fi
31880 fi
31881 if test -n "$conf_utmp_location"; then
31882
31883 cat >>confdefs.h <<_ACEOF
31884 #define CONF_UTMP_FILE "$conf_utmp_location"
31885 _ACEOF
31886
31887 fi
31888
31889 { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
31890 echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
31891 cat >conftest.$ac_ext <<_ACEOF
31892 /* confdefs.h.  */
31893 _ACEOF
31894 cat confdefs.h >>conftest.$ac_ext
31895 cat >>conftest.$ac_ext <<_ACEOF
31896 /* end confdefs.h.  */
31897
31898 #include <sys/types.h>
31899 #include <utmp.h>
31900 #ifdef HAVE_PATHS_H
31901 #  include <paths.h>
31902 #endif
31903
31904 int
31905 main ()
31906 {
31907  char *wtmp = WTMP_FILE;
31908   ;
31909   return 0;
31910 }
31911 _ACEOF
31912 rm -f conftest.$ac_objext
31913 if { (ac_try="$ac_compile"
31914 case "(($ac_try" in
31915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31916   *) ac_try_echo=$ac_try;;
31917 esac
31918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31919   (eval "$ac_compile") 2>conftest.er1
31920   ac_status=$?
31921   grep -v '^ *+' conftest.er1 >conftest.err
31922   rm -f conftest.er1
31923   cat conftest.err >&5
31924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925   (exit $ac_status); } &&
31926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31927   { (case "(($ac_try" in
31928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31929   *) ac_try_echo=$ac_try;;
31930 esac
31931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31932   (eval "$ac_try") 2>&5
31933   ac_status=$?
31934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935   (exit $ac_status); }; } &&
31936          { ac_try='test -s conftest.$ac_objext'
31937   { (case "(($ac_try" in
31938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939   *) ac_try_echo=$ac_try;;
31940 esac
31941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942   (eval "$ac_try") 2>&5
31943   ac_status=$?
31944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945   (exit $ac_status); }; }; then
31946    { echo "$as_me:$LINENO: result: yes" >&5
31947 echo "${ECHO_T}yes" >&6; }
31948 else
31949   echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31951
31952          { echo "$as_me:$LINENO: result: no" >&5
31953 echo "${ECHO_T}no" >&6; }
31954           system_wtmp_path=no
31955
31956 fi
31957
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31959 if test -z "$conf_wtmp_location"; then
31960         if test x"$system_wtmp_path" = x"no" ; then
31961                 for f in /usr/adm/wtmp /var/log/wtmp; do
31962                         if test -f $f ; then
31963                                 conf_wtmp_location=$f
31964                         fi
31965                 done
31966                 if test -z "$conf_wtmp_location"; then
31967                         cat >>confdefs.h <<\_ACEOF
31968 #define DISABLE_WTMP 1
31969 _ACEOF
31970
31971                 fi
31972         fi
31973 fi
31974 if test -n "$conf_wtmp_location"; then
31975
31976 cat >>confdefs.h <<_ACEOF
31977 #define CONF_WTMP_FILE "$conf_wtmp_location"
31978 _ACEOF
31979
31980 fi
31981
31982
31983 { echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
31984 echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; }
31985 cat >conftest.$ac_ext <<_ACEOF
31986 /* confdefs.h.  */
31987 _ACEOF
31988 cat confdefs.h >>conftest.$ac_ext
31989 cat >>conftest.$ac_ext <<_ACEOF
31990 /* end confdefs.h.  */
31991
31992 #include <sys/types.h>
31993 #include <utmp.h>
31994 #ifdef HAVE_UTMPX_H
31995 #include <utmpx.h>
31996 #endif
31997 #ifdef HAVE_PATHS_H
31998 #  include <paths.h>
31999 #endif
32000
32001 int
32002 main ()
32003 {
32004  char *utmpx = UTMPX_FILE;
32005   ;
32006   return 0;
32007 }
32008 _ACEOF
32009 rm -f conftest.$ac_objext
32010 if { (ac_try="$ac_compile"
32011 case "(($ac_try" in
32012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013   *) ac_try_echo=$ac_try;;
32014 esac
32015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016   (eval "$ac_compile") 2>conftest.er1
32017   ac_status=$?
32018   grep -v '^ *+' conftest.er1 >conftest.err
32019   rm -f conftest.er1
32020   cat conftest.err >&5
32021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022   (exit $ac_status); } &&
32023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32024   { (case "(($ac_try" in
32025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026   *) ac_try_echo=$ac_try;;
32027 esac
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029   (eval "$ac_try") 2>&5
32030   ac_status=$?
32031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032   (exit $ac_status); }; } &&
32033          { ac_try='test -s conftest.$ac_objext'
32034   { (case "(($ac_try" in
32035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036   *) ac_try_echo=$ac_try;;
32037 esac
32038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039   (eval "$ac_try") 2>&5
32040   ac_status=$?
32041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042   (exit $ac_status); }; }; then
32043    { echo "$as_me:$LINENO: result: yes" >&5
32044 echo "${ECHO_T}yes" >&6; }
32045 else
32046   echo "$as_me: failed program was:" >&5
32047 sed 's/^/| /' conftest.$ac_ext >&5
32048
32049          { echo "$as_me:$LINENO: result: no" >&5
32050 echo "${ECHO_T}no" >&6; }
32051           system_utmpx_path=no
32052
32053 fi
32054
32055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32056 if test -z "$conf_utmpx_location"; then
32057         if test x"$system_utmpx_path" = x"no" ; then
32058                 cat >>confdefs.h <<\_ACEOF
32059 #define DISABLE_UTMPX 1
32060 _ACEOF
32061
32062         fi
32063 else
32064
32065 cat >>confdefs.h <<_ACEOF
32066 #define CONF_UTMPX_FILE "$conf_utmpx_location"
32067 _ACEOF
32068
32069 fi
32070
32071 { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
32072 echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
32073 cat >conftest.$ac_ext <<_ACEOF
32074 /* confdefs.h.  */
32075 _ACEOF
32076 cat confdefs.h >>conftest.$ac_ext
32077 cat >>conftest.$ac_ext <<_ACEOF
32078 /* end confdefs.h.  */
32079
32080 #include <sys/types.h>
32081 #include <utmp.h>
32082 #ifdef HAVE_UTMPX_H
32083 #include <utmpx.h>
32084 #endif
32085 #ifdef HAVE_PATHS_H
32086 #  include <paths.h>
32087 #endif
32088
32089 int
32090 main ()
32091 {
32092  char *wtmpx = WTMPX_FILE;
32093   ;
32094   return 0;
32095 }
32096 _ACEOF
32097 rm -f conftest.$ac_objext
32098 if { (ac_try="$ac_compile"
32099 case "(($ac_try" in
32100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32101   *) ac_try_echo=$ac_try;;
32102 esac
32103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32104   (eval "$ac_compile") 2>conftest.er1
32105   ac_status=$?
32106   grep -v '^ *+' conftest.er1 >conftest.err
32107   rm -f conftest.er1
32108   cat conftest.err >&5
32109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110   (exit $ac_status); } &&
32111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32112   { (case "(($ac_try" in
32113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32114   *) ac_try_echo=$ac_try;;
32115 esac
32116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32117   (eval "$ac_try") 2>&5
32118   ac_status=$?
32119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120   (exit $ac_status); }; } &&
32121          { ac_try='test -s conftest.$ac_objext'
32122   { (case "(($ac_try" in
32123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124   *) ac_try_echo=$ac_try;;
32125 esac
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127   (eval "$ac_try") 2>&5
32128   ac_status=$?
32129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130   (exit $ac_status); }; }; then
32131    { echo "$as_me:$LINENO: result: yes" >&5
32132 echo "${ECHO_T}yes" >&6; }
32133 else
32134   echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32136
32137          { echo "$as_me:$LINENO: result: no" >&5
32138 echo "${ECHO_T}no" >&6; }
32139           system_wtmpx_path=no
32140
32141 fi
32142
32143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32144 if test -z "$conf_wtmpx_location"; then
32145         if test x"$system_wtmpx_path" = x"no" ; then
32146                 cat >>confdefs.h <<\_ACEOF
32147 #define DISABLE_WTMPX 1
32148 _ACEOF
32149
32150         fi
32151 else
32152
32153 cat >>confdefs.h <<_ACEOF
32154 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
32155 _ACEOF
32156
32157 fi
32158
32159
32160 if test ! -z "$blibpath" ; then
32161         LDFLAGS="$LDFLAGS $blibflags$blibpath"
32162         { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
32163 echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
32164 fi
32165
32166 CFLAGS="$CFLAGS $werror_flags"
32167
32168
32169 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh"
32170
32171 cat >confcache <<\_ACEOF
32172 # This file is a shell script that caches the results of configure
32173 # tests run on this system so they can be shared between configure
32174 # scripts and configure runs, see configure's option --config-cache.
32175 # It is not useful on other systems.  If it contains results you don't
32176 # want to keep, you may remove or edit it.
32177 #
32178 # config.status only pays attention to the cache file if you give it
32179 # the --recheck option to rerun configure.
32180 #
32181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32183 # following values.
32184
32185 _ACEOF
32186
32187 # The following way of writing the cache mishandles newlines in values,
32188 # but we know of no workaround that is simple, portable, and efficient.
32189 # So, we kill variables containing newlines.
32190 # Ultrix sh set writes to stderr and can't be redirected directly,
32191 # and sets the high bit in the cache file unless we assign to the vars.
32192 (
32193   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32194     eval ac_val=\$$ac_var
32195     case $ac_val in #(
32196     *${as_nl}*)
32197       case $ac_var in #(
32198       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32199 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32200       esac
32201       case $ac_var in #(
32202       _ | IFS | as_nl) ;; #(
32203       *) $as_unset $ac_var ;;
32204       esac ;;
32205     esac
32206   done
32207
32208   (set) 2>&1 |
32209     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32210     *${as_nl}ac_space=\ *)
32211       # `set' does not quote correctly, so add quotes (double-quote
32212       # substitution turns \\\\ into \\, and sed turns \\ into \).
32213       sed -n \
32214         "s/'/'\\\\''/g;
32215           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32216       ;; #(
32217     *)
32218       # `set' quotes correctly as required by POSIX, so do not add quotes.
32219       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32220       ;;
32221     esac |
32222     sort
32223 ) |
32224   sed '
32225      /^ac_cv_env_/b end
32226      t clear
32227      :clear
32228      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32229      t end
32230      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32231      :end' >>confcache
32232 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32233   if test -w "$cache_file"; then
32234     test "x$cache_file" != "x/dev/null" &&
32235       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32236 echo "$as_me: updating cache $cache_file" >&6;}
32237     cat confcache >$cache_file
32238   else
32239     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32240 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32241   fi
32242 fi
32243 rm -f confcache
32244
32245 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32246 # Let make expand exec_prefix.
32247 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32248
32249 DEFS=-DHAVE_CONFIG_H
32250
32251 ac_libobjs=
32252 ac_ltlibobjs=
32253 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32254   # 1. Remove the extension, and $U if already installed.
32255   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32256   ac_i=`echo "$ac_i" | sed "$ac_script"`
32257   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32258   #    will be set to the directory where LIBOBJS objects are built.
32259   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32260   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32261 done
32262 LIBOBJS=$ac_libobjs
32263
32264 LTLIBOBJS=$ac_ltlibobjs
32265
32266
32267
32268 : ${CONFIG_STATUS=./config.status}
32269 ac_clean_files_save=$ac_clean_files
32270 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32271 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32272 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32273 cat >$CONFIG_STATUS <<_ACEOF
32274 #! $SHELL
32275 # Generated by $as_me.
32276 # Run this file to recreate the current configuration.
32277 # Compiler output produced by configure, useful for debugging
32278 # configure, is in config.log if it exists.
32279
32280 debug=false
32281 ac_cs_recheck=false
32282 ac_cs_silent=false
32283 SHELL=\${CONFIG_SHELL-$SHELL}
32284 _ACEOF
32285
32286 cat >>$CONFIG_STATUS <<\_ACEOF
32287 ## --------------------- ##
32288 ## M4sh Initialization.  ##
32289 ## --------------------- ##
32290
32291 # Be Bourne compatible
32292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32293   emulate sh
32294   NULLCMD=:
32295   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32296   # is contrary to our usage.  Disable this feature.
32297   alias -g '${1+"$@"}'='"$@"'
32298   setopt NO_GLOB_SUBST
32299 else
32300   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
32301 fi
32302 BIN_SH=xpg4; export BIN_SH # for Tru64
32303 DUALCASE=1; export DUALCASE # for MKS sh
32304
32305
32306 # PATH needs CR
32307 # Avoid depending upon Character Ranges.
32308 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32309 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32310 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32311 as_cr_digits='0123456789'
32312 as_cr_alnum=$as_cr_Letters$as_cr_digits
32313
32314 # The user is always right.
32315 if test "${PATH_SEPARATOR+set}" != set; then
32316   echo "#! /bin/sh" >conf$$.sh
32317   echo  "exit 0"   >>conf$$.sh
32318   chmod +x conf$$.sh
32319   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32320     PATH_SEPARATOR=';'
32321   else
32322     PATH_SEPARATOR=:
32323   fi
32324   rm -f conf$$.sh
32325 fi
32326
32327 # Support unset when possible.
32328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32329   as_unset=unset
32330 else
32331   as_unset=false
32332 fi
32333
32334
32335 # IFS
32336 # We need space, tab and new line, in precisely that order.  Quoting is
32337 # there to prevent editors from complaining about space-tab.
32338 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32339 # splitting by setting IFS to empty value.)
32340 as_nl='
32341 '
32342 IFS=" ""        $as_nl"
32343
32344 # Find who we are.  Look in the path if we contain no directory separator.
32345 case $0 in
32346   *[\\/]* ) as_myself=$0 ;;
32347   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32348 for as_dir in $PATH
32349 do
32350   IFS=$as_save_IFS
32351   test -z "$as_dir" && as_dir=.
32352   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32353 done
32354 IFS=$as_save_IFS
32355
32356      ;;
32357 esac
32358 # We did not find ourselves, most probably we were run as `sh COMMAND'
32359 # in which case we are not to be found in the path.
32360 if test "x$as_myself" = x; then
32361   as_myself=$0
32362 fi
32363 if test ! -f "$as_myself"; then
32364   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32365   { (exit 1); exit 1; }
32366 fi
32367
32368 # Work around bugs in pre-3.0 UWIN ksh.
32369 for as_var in ENV MAIL MAILPATH
32370 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32371 done
32372 PS1='$ '
32373 PS2='> '
32374 PS4='+ '
32375
32376 # NLS nuisances.
32377 for as_var in \
32378   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32379   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32380   LC_TELEPHONE LC_TIME
32381 do
32382   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32383     eval $as_var=C; export $as_var
32384   else
32385     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32386   fi
32387 done
32388
32389 # Required to use basename.
32390 if expr a : '\(a\)' >/dev/null 2>&1 &&
32391    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32392   as_expr=expr
32393 else
32394   as_expr=false
32395 fi
32396
32397 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32398   as_basename=basename
32399 else
32400   as_basename=false
32401 fi
32402
32403
32404 # Name of the executable.
32405 as_me=`$as_basename -- "$0" ||
32406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32407          X"$0" : 'X\(//\)$' \| \
32408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32409 echo X/"$0" |
32410     sed '/^.*\/\([^/][^/]*\)\/*$/{
32411             s//\1/
32412             q
32413           }
32414           /^X\/\(\/\/\)$/{
32415             s//\1/
32416             q
32417           }
32418           /^X\/\(\/\).*/{
32419             s//\1/
32420             q
32421           }
32422           s/.*/./; q'`
32423
32424 # CDPATH.
32425 $as_unset CDPATH
32426
32427
32428
32429   as_lineno_1=$LINENO
32430   as_lineno_2=$LINENO
32431   test "x$as_lineno_1" != "x$as_lineno_2" &&
32432   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32433
32434   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32435   # uniformly replaced by the line number.  The first 'sed' inserts a
32436   # line-number line after each line using $LINENO; the second 'sed'
32437   # does the real work.  The second script uses 'N' to pair each
32438   # line-number line with the line containing $LINENO, and appends
32439   # trailing '-' during substitution so that $LINENO is not a special
32440   # case at line end.
32441   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32442   # scripts with optimization help from Paolo Bonzini.  Blame Lee
32443   # E. McMahon (1931-1989) for sed's syntax.  :-)
32444   sed -n '
32445     p
32446     /[$]LINENO/=
32447   ' <$as_myself |
32448     sed '
32449       s/[$]LINENO.*/&-/
32450       t lineno
32451       b
32452       :lineno
32453       N
32454       :loop
32455       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32456       t loop
32457       s/-\n.*//
32458     ' >$as_me.lineno &&
32459   chmod +x "$as_me.lineno" ||
32460     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32461    { (exit 1); exit 1; }; }
32462
32463   # Don't try to exec as it changes $[0], causing all sort of problems
32464   # (the dirname of $[0] is not the place where we might find the
32465   # original and so on.  Autoconf is especially sensitive to this).
32466   . "./$as_me.lineno"
32467   # Exit status is that of the last command.
32468   exit
32469 }
32470
32471
32472 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32473   as_dirname=dirname
32474 else
32475   as_dirname=false
32476 fi
32477
32478 ECHO_C= ECHO_N= ECHO_T=
32479 case `echo -n x` in
32480 -n*)
32481   case `echo 'x\c'` in
32482   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32483   *)   ECHO_C='\c';;
32484   esac;;
32485 *)
32486   ECHO_N='-n';;
32487 esac
32488
32489 if expr a : '\(a\)' >/dev/null 2>&1 &&
32490    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32491   as_expr=expr
32492 else
32493   as_expr=false
32494 fi
32495
32496 rm -f conf$$ conf$$.exe conf$$.file
32497 if test -d conf$$.dir; then
32498   rm -f conf$$.dir/conf$$.file
32499 else
32500   rm -f conf$$.dir
32501   mkdir conf$$.dir
32502 fi
32503 echo >conf$$.file
32504 if ln -s conf$$.file conf$$ 2>/dev/null; then
32505   as_ln_s='ln -s'
32506   # ... but there are two gotchas:
32507   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32508   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32509   # In both cases, we have to default to `cp -p'.
32510   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32511     as_ln_s='cp -p'
32512 elif ln conf$$.file conf$$ 2>/dev/null; then
32513   as_ln_s=ln
32514 else
32515   as_ln_s='cp -p'
32516 fi
32517 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32518 rmdir conf$$.dir 2>/dev/null
32519
32520 if mkdir -p . 2>/dev/null; then
32521   as_mkdir_p=:
32522 else
32523   test -d ./-p && rmdir ./-p
32524   as_mkdir_p=false
32525 fi
32526
32527 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
32528 # systems may use methods other than mode bits to determine executability.
32529 cat >conf$$.file <<_ASEOF
32530 #! /bin/sh
32531 exit 0
32532 _ASEOF
32533 chmod +x conf$$.file
32534 if test -x conf$$.file >/dev/null 2>&1; then
32535   as_executable_p="test -x"
32536 else
32537   as_executable_p=:
32538 fi
32539 rm -f conf$$.file
32540
32541 # Sed expression to map a string onto a valid CPP name.
32542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32543
32544 # Sed expression to map a string onto a valid variable name.
32545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32546
32547
32548 exec 6>&1
32549
32550 # Save the log message, to keep $[0] and so on meaningful, and to
32551 # report actual input values of CONFIG_FILES etc. instead of their
32552 # values after options handling.
32553 ac_log="
32554 This file was extended by OpenSSH $as_me Portable, which was
32555 generated by GNU Autoconf 2.60.  Invocation command line was
32556
32557   CONFIG_FILES    = $CONFIG_FILES
32558   CONFIG_HEADERS  = $CONFIG_HEADERS
32559   CONFIG_LINKS    = $CONFIG_LINKS
32560   CONFIG_COMMANDS = $CONFIG_COMMANDS
32561   $ $0 $@
32562
32563 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32564 "
32565
32566 _ACEOF
32567
32568 cat >>$CONFIG_STATUS <<_ACEOF
32569 # Files that config.status was made for.
32570 config_files="$ac_config_files"
32571 config_headers="$ac_config_headers"
32572
32573 _ACEOF
32574
32575 cat >>$CONFIG_STATUS <<\_ACEOF
32576 ac_cs_usage="\
32577 \`$as_me' instantiates files from templates according to the
32578 current configuration.
32579
32580 Usage: $0 [OPTIONS] [FILE]...
32581
32582   -h, --help       print this help, then exit
32583   -V, --version    print version number, then exit
32584   -q, --quiet      do not print progress messages
32585   -d, --debug      don't remove temporary files
32586       --recheck    update $as_me by reconfiguring in the same conditions
32587   --file=FILE[:TEMPLATE]
32588                    instantiate the configuration file FILE
32589   --header=FILE[:TEMPLATE]
32590                    instantiate the configuration header FILE
32591
32592 Configuration files:
32593 $config_files
32594
32595 Configuration headers:
32596 $config_headers
32597
32598 Report bugs to <bug-autoconf@gnu.org>."
32599
32600 _ACEOF
32601 cat >>$CONFIG_STATUS <<_ACEOF
32602 ac_cs_version="\\
32603 OpenSSH config.status Portable
32604 configured by $0, generated by GNU Autoconf 2.60,
32605   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32606
32607 Copyright (C) 2006 Free Software Foundation, Inc.
32608 This config.status script is free software; the Free Software Foundation
32609 gives unlimited permission to copy, distribute and modify it."
32610
32611 ac_pwd='$ac_pwd'
32612 srcdir='$srcdir'
32613 INSTALL='$INSTALL'
32614 _ACEOF
32615
32616 cat >>$CONFIG_STATUS <<\_ACEOF
32617 # If no file are specified by the user, then we need to provide default
32618 # value.  By we need to know if files were specified by the user.
32619 ac_need_defaults=:
32620 while test $# != 0
32621 do
32622   case $1 in
32623   --*=*)
32624     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32625     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32626     ac_shift=:
32627     ;;
32628   *)
32629     ac_option=$1
32630     ac_optarg=$2
32631     ac_shift=shift
32632     ;;
32633   esac
32634
32635   case $ac_option in
32636   # Handling of the options.
32637   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32638     ac_cs_recheck=: ;;
32639   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32640     echo "$ac_cs_version"; exit ;;
32641   --debug | --debu | --deb | --de | --d | -d )
32642     debug=: ;;
32643   --file | --fil | --fi | --f )
32644     $ac_shift
32645     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32646     ac_need_defaults=false;;
32647   --header | --heade | --head | --hea )
32648     $ac_shift
32649     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32650     ac_need_defaults=false;;
32651   --he | --h)
32652     # Conflict between --help and --header
32653     { echo "$as_me: error: ambiguous option: $1
32654 Try \`$0 --help' for more information." >&2
32655    { (exit 1); exit 1; }; };;
32656   --help | --hel | -h )
32657     echo "$ac_cs_usage"; exit ;;
32658   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32659   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32660     ac_cs_silent=: ;;
32661
32662   # This is an error.
32663   -*) { echo "$as_me: error: unrecognized option: $1
32664 Try \`$0 --help' for more information." >&2
32665    { (exit 1); exit 1; }; } ;;
32666
32667   *) ac_config_targets="$ac_config_targets $1"
32668      ac_need_defaults=false ;;
32669
32670   esac
32671   shift
32672 done
32673
32674 ac_configure_extra_args=
32675
32676 if $ac_cs_silent; then
32677   exec 6>/dev/null
32678   ac_configure_extra_args="$ac_configure_extra_args --silent"
32679 fi
32680
32681 _ACEOF
32682 cat >>$CONFIG_STATUS <<_ACEOF
32683 if \$ac_cs_recheck; then
32684   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32685   CONFIG_SHELL=$SHELL
32686   export CONFIG_SHELL
32687   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32688 fi
32689
32690 _ACEOF
32691 cat >>$CONFIG_STATUS <<\_ACEOF
32692 exec 5>>config.log
32693 {
32694   echo
32695   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32696 ## Running $as_me. ##
32697 _ASBOX
32698   echo "$ac_log"
32699 } >&5
32700
32701 _ACEOF
32702 cat >>$CONFIG_STATUS <<_ACEOF
32703 _ACEOF
32704
32705 cat >>$CONFIG_STATUS <<\_ACEOF
32706
32707 # Handling of arguments.
32708 for ac_config_target in $ac_config_targets
32709 do
32710   case $ac_config_target in
32711     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32712     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32713     "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
32714     "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
32715     "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
32716     "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
32717     "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
32718     "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
32719     "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
32720     "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
32721
32722   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32723 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32724    { (exit 1); exit 1; }; };;
32725   esac
32726 done
32727
32728
32729 # If the user did not use the arguments to specify the items to instantiate,
32730 # then the envvar interface is used.  Set only those that are not.
32731 # We use the long form for the default assignment because of an extremely
32732 # bizarre bug on SunOS 4.1.3.
32733 if $ac_need_defaults; then
32734   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32735   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32736 fi
32737
32738 # Have a temporary directory for convenience.  Make it in the build tree
32739 # simply because there is no reason against having it here, and in addition,
32740 # creating and moving files from /tmp can sometimes cause problems.
32741 # Hook for its removal unless debugging.
32742 # Note that there is a small window in which the directory will not be cleaned:
32743 # after its creation but before its name has been assigned to `$tmp'.
32744 $debug ||
32745 {
32746   tmp=
32747   trap 'exit_status=$?
32748   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32749 ' 0
32750   trap '{ (exit 1); exit 1; }' 1 2 13 15
32751 }
32752 # Create a (secure) tmp directory for tmp files.
32753
32754 {
32755   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32756   test -n "$tmp" && test -d "$tmp"
32757 }  ||
32758 {
32759   tmp=./conf$$-$RANDOM
32760   (umask 077 && mkdir "$tmp")
32761 } ||
32762 {
32763    echo "$me: cannot create a temporary directory in ." >&2
32764    { (exit 1); exit 1; }
32765 }
32766
32767 #
32768 # Set up the sed scripts for CONFIG_FILES section.
32769 #
32770
32771 # No need to generate the scripts if there are no CONFIG_FILES.
32772 # This happens for instance when ./config.status config.h
32773 if test -n "$CONFIG_FILES"; then
32774
32775 _ACEOF
32776
32777
32778
32779 ac_delim='%!_!# '
32780 for ac_last_try in false false false false false :; do
32781   cat >conf$$subs.sed <<_ACEOF
32782 SHELL!$SHELL$ac_delim
32783 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32784 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32785 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32786 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32787 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32788 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32789 exec_prefix!$exec_prefix$ac_delim
32790 prefix!$prefix$ac_delim
32791 program_transform_name!$program_transform_name$ac_delim
32792 bindir!$bindir$ac_delim
32793 sbindir!$sbindir$ac_delim
32794 libexecdir!$libexecdir$ac_delim
32795 datarootdir!$datarootdir$ac_delim
32796 datadir!$datadir$ac_delim
32797 sysconfdir!$sysconfdir$ac_delim
32798 sharedstatedir!$sharedstatedir$ac_delim
32799 localstatedir!$localstatedir$ac_delim
32800 includedir!$includedir$ac_delim
32801 oldincludedir!$oldincludedir$ac_delim
32802 docdir!$docdir$ac_delim
32803 infodir!$infodir$ac_delim
32804 htmldir!$htmldir$ac_delim
32805 dvidir!$dvidir$ac_delim
32806 pdfdir!$pdfdir$ac_delim
32807 psdir!$psdir$ac_delim
32808 libdir!$libdir$ac_delim
32809 localedir!$localedir$ac_delim
32810 mandir!$mandir$ac_delim
32811 DEFS!$DEFS$ac_delim
32812 ECHO_C!$ECHO_C$ac_delim
32813 ECHO_N!$ECHO_N$ac_delim
32814 ECHO_T!$ECHO_T$ac_delim
32815 LIBS!$LIBS$ac_delim
32816 build_alias!$build_alias$ac_delim
32817 host_alias!$host_alias$ac_delim
32818 target_alias!$target_alias$ac_delim
32819 CC!$CC$ac_delim
32820 CFLAGS!$CFLAGS$ac_delim
32821 LDFLAGS!$LDFLAGS$ac_delim
32822 CPPFLAGS!$CPPFLAGS$ac_delim
32823 ac_ct_CC!$ac_ct_CC$ac_delim
32824 EXEEXT!$EXEEXT$ac_delim
32825 OBJEXT!$OBJEXT$ac_delim
32826 build!$build$ac_delim
32827 build_cpu!$build_cpu$ac_delim
32828 build_vendor!$build_vendor$ac_delim
32829 build_os!$build_os$ac_delim
32830 host!$host$ac_delim
32831 host_cpu!$host_cpu$ac_delim
32832 host_vendor!$host_vendor$ac_delim
32833 host_os!$host_os$ac_delim
32834 CPP!$CPP$ac_delim
32835 GREP!$GREP$ac_delim
32836 EGREP!$EGREP$ac_delim
32837 AWK!$AWK$ac_delim
32838 RANLIB!$RANLIB$ac_delim
32839 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32840 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32841 INSTALL_DATA!$INSTALL_DATA$ac_delim
32842 AR!$AR$ac_delim
32843 CAT!$CAT$ac_delim
32844 KILL!$KILL$ac_delim
32845 PERL!$PERL$ac_delim
32846 SED!$SED$ac_delim
32847 ENT!$ENT$ac_delim
32848 TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
32849 SH!$SH$ac_delim
32850 TEST_SHELL!$TEST_SHELL$ac_delim
32851 PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
32852 PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
32853 MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
32854 STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
32855 LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
32856 PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
32857 LD!$LD$ac_delim
32858 SSHDLIBS!$SSHDLIBS$ac_delim
32859 LIBWRAP!$LIBWRAP$ac_delim
32860 LIBEDIT!$LIBEDIT$ac_delim
32861 LIBPAM!$LIBPAM$ac_delim
32862 INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
32863 SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
32864 PROG_LS!$PROG_LS$ac_delim
32865 PROG_NETSTAT!$PROG_NETSTAT$ac_delim
32866 PROG_ARP!$PROG_ARP$ac_delim
32867 PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
32868 PROG_JSTAT!$PROG_JSTAT$ac_delim
32869 PROG_PS!$PROG_PS$ac_delim
32870 PROG_SAR!$PROG_SAR$ac_delim
32871 PROG_W!$PROG_W$ac_delim
32872 PROG_WHO!$PROG_WHO$ac_delim
32873 PROG_LAST!$PROG_LAST$ac_delim
32874 PROG_LASTLOG!$PROG_LASTLOG$ac_delim
32875 PROG_DF!$PROG_DF$ac_delim
32876 PROG_VMSTAT!$PROG_VMSTAT$ac_delim
32877 PROG_UPTIME!$PROG_UPTIME$ac_delim
32878 PROG_IPCS!$PROG_IPCS$ac_delim
32879 _ACEOF
32880
32881   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32882     break
32883   elif $ac_last_try; then
32884     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32885 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32886    { (exit 1); exit 1; }; }
32887   else
32888     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32889   fi
32890 done
32891
32892 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32893 if test -n "$ac_eof"; then
32894   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32895   ac_eof=`expr $ac_eof + 1`
32896 fi
32897
32898 cat >>$CONFIG_STATUS <<_ACEOF
32899 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32901 _ACEOF
32902 sed '
32903 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32904 s/^/s,@/; s/!/@,|#_!!_#|/
32905 :n
32906 t n
32907 s/'"$ac_delim"'$/,g/; t
32908 s/$/\\/; p
32909 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32910 ' >>$CONFIG_STATUS <conf$$subs.sed
32911 rm -f conf$$subs.sed
32912 cat >>$CONFIG_STATUS <<_ACEOF
32913 CEOF$ac_eof
32914 _ACEOF
32915
32916
32917 ac_delim='%!_!# '
32918 for ac_last_try in false false false false false :; do
32919   cat >conf$$subs.sed <<_ACEOF
32920 PROG_TAIL!$PROG_TAIL$ac_delim
32921 INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
32922 OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim
32923 LIBSELINUX!$LIBSELINUX$ac_delim
32924 PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
32925 xauth_path!$xauth_path$ac_delim
32926 STRIP_OPT!$STRIP_OPT$ac_delim
32927 XAUTH_PATH!$XAUTH_PATH$ac_delim
32928 NROFF!$NROFF$ac_delim
32929 MANTYPE!$MANTYPE$ac_delim
32930 mansubdir!$mansubdir$ac_delim
32931 user_path!$user_path$ac_delim
32932 piddir!$piddir$ac_delim
32933 LIBOBJS!$LIBOBJS$ac_delim
32934 LTLIBOBJS!$LTLIBOBJS$ac_delim
32935 _ACEOF
32936
32937   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
32938     break
32939   elif $ac_last_try; then
32940     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32941 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32942    { (exit 1); exit 1; }; }
32943   else
32944     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32945   fi
32946 done
32947
32948 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32949 if test -n "$ac_eof"; then
32950   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32951   ac_eof=`expr $ac_eof + 1`
32952 fi
32953
32954 cat >>$CONFIG_STATUS <<_ACEOF
32955 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32956 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32957 _ACEOF
32958 sed '
32959 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32960 s/^/s,@/; s/!/@,|#_!!_#|/
32961 :n
32962 t n
32963 s/'"$ac_delim"'$/,g/; t
32964 s/$/\\/; p
32965 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32966 ' >>$CONFIG_STATUS <conf$$subs.sed
32967 rm -f conf$$subs.sed
32968 cat >>$CONFIG_STATUS <<_ACEOF
32969 :end
32970 s/|#_!!_#|//g
32971 CEOF$ac_eof
32972 _ACEOF
32973
32974
32975 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32976 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32977 # trailing colons and then remove the whole line if VPATH becomes empty
32978 # (actually we leave an empty line to preserve line numbers).
32979 if test "x$srcdir" = x.; then
32980   ac_vpsub='/^[  ]*VPATH[        ]*=/{
32981 s/:*\$(srcdir):*/:/
32982 s/:*\${srcdir}:*/:/
32983 s/:*@srcdir@:*/:/
32984 s/^\([^=]*=[     ]*\):*/\1/
32985 s/:*$//
32986 s/^[^=]*=[       ]*$//
32987 }'
32988 fi
32989
32990 cat >>$CONFIG_STATUS <<\_ACEOF
32991 fi # test -n "$CONFIG_FILES"
32992
32993
32994 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
32995 do
32996   case $ac_tag in
32997   :[FHLC]) ac_mode=$ac_tag; continue;;
32998   esac
32999   case $ac_mode$ac_tag in
33000   :[FHL]*:*);;
33001   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33002 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33003    { (exit 1); exit 1; }; };;
33004   :[FH]-) ac_tag=-:-;;
33005   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33006   esac
33007   ac_save_IFS=$IFS
33008   IFS=:
33009   set x $ac_tag
33010   IFS=$ac_save_IFS
33011   shift
33012   ac_file=$1
33013   shift
33014
33015   case $ac_mode in
33016   :L) ac_source=$1;;
33017   :[FH])
33018     ac_file_inputs=
33019     for ac_f
33020     do
33021       case $ac_f in
33022       -) ac_f="$tmp/stdin";;
33023       *) # Look for the file first in the build tree, then in the source tree
33024          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33025          # because $ac_f cannot contain `:'.
33026          test -f "$ac_f" ||
33027            case $ac_f in
33028            [\\/$]*) false;;
33029            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33030            esac ||
33031            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33032 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33033    { (exit 1); exit 1; }; };;
33034       esac
33035       ac_file_inputs="$ac_file_inputs $ac_f"
33036     done
33037
33038     # Let's still pretend it is `configure' which instantiates (i.e., don't
33039     # use $as_me), people would be surprised to read:
33040     #    /* config.h.  Generated by config.status.  */
33041     configure_input="Generated from "`IFS=:
33042           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33043     if test x"$ac_file" != x-; then
33044       configure_input="$ac_file.  $configure_input"
33045       { echo "$as_me:$LINENO: creating $ac_file" >&5
33046 echo "$as_me: creating $ac_file" >&6;}
33047     fi
33048
33049     case $ac_tag in
33050     *:-:* | *:-) cat >"$tmp/stdin";;
33051     esac
33052     ;;
33053   esac
33054
33055   ac_dir=`$as_dirname -- "$ac_file" ||
33056 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33057          X"$ac_file" : 'X\(//\)[^/]' \| \
33058          X"$ac_file" : 'X\(//\)$' \| \
33059          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33060 echo X"$ac_file" |
33061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33062             s//\1/
33063             q
33064           }
33065           /^X\(\/\/\)[^/].*/{
33066             s//\1/
33067             q
33068           }
33069           /^X\(\/\/\)$/{
33070             s//\1/
33071             q
33072           }
33073           /^X\(\/\).*/{
33074             s//\1/
33075             q
33076           }
33077           s/.*/./; q'`
33078   { as_dir="$ac_dir"
33079   case $as_dir in #(
33080   -*) as_dir=./$as_dir;;
33081   esac
33082   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33083     as_dirs=
33084     while :; do
33085       case $as_dir in #(
33086       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33087       *) as_qdir=$as_dir;;
33088       esac
33089       as_dirs="'$as_qdir' $as_dirs"
33090       as_dir=`$as_dirname -- "$as_dir" ||
33091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33092          X"$as_dir" : 'X\(//\)[^/]' \| \
33093          X"$as_dir" : 'X\(//\)$' \| \
33094          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33095 echo X"$as_dir" |
33096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33097             s//\1/
33098             q
33099           }
33100           /^X\(\/\/\)[^/].*/{
33101             s//\1/
33102             q
33103           }
33104           /^X\(\/\/\)$/{
33105             s//\1/
33106             q
33107           }
33108           /^X\(\/\).*/{
33109             s//\1/
33110             q
33111           }
33112           s/.*/./; q'`
33113       test -d "$as_dir" && break
33114     done
33115     test -z "$as_dirs" || eval "mkdir $as_dirs"
33116   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33117 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33118    { (exit 1); exit 1; }; }; }
33119   ac_builddir=.
33120
33121 case "$ac_dir" in
33122 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33123 *)
33124   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33125   # A ".." for each directory in $ac_dir_suffix.
33126   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33127   case $ac_top_builddir_sub in
33128   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33129   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33130   esac ;;
33131 esac
33132 ac_abs_top_builddir=$ac_pwd
33133 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33134 # for backward compatibility:
33135 ac_top_builddir=$ac_top_build_prefix
33136
33137 case $srcdir in
33138   .)  # We are building in place.
33139     ac_srcdir=.
33140     ac_top_srcdir=$ac_top_builddir_sub
33141     ac_abs_top_srcdir=$ac_pwd ;;
33142   [\\/]* | ?:[\\/]* )  # Absolute name.
33143     ac_srcdir=$srcdir$ac_dir_suffix;
33144     ac_top_srcdir=$srcdir
33145     ac_abs_top_srcdir=$srcdir ;;
33146   *) # Relative name.
33147     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33148     ac_top_srcdir=$ac_top_build_prefix$srcdir
33149     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33150 esac
33151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33152
33153
33154   case $ac_mode in
33155   :F)
33156   #
33157   # CONFIG_FILE
33158   #
33159
33160   case $INSTALL in
33161   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33162   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33163   esac
33164 _ACEOF
33165
33166 cat >>$CONFIG_STATUS <<\_ACEOF
33167 # If the template does not know about datarootdir, expand it.
33168 # FIXME: This hack should be removed a few years after 2.60.
33169 ac_datarootdir_hack=; ac_datarootdir_seen=
33170
33171 case `sed -n '/datarootdir/ {
33172   p
33173   q
33174 }
33175 /@datadir@/p
33176 /@docdir@/p
33177 /@infodir@/p
33178 /@localedir@/p
33179 /@mandir@/p
33180 ' $ac_file_inputs` in
33181 *datarootdir*) ac_datarootdir_seen=yes;;
33182 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33183   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33184 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33185 _ACEOF
33186 cat >>$CONFIG_STATUS <<_ACEOF
33187   ac_datarootdir_hack='
33188   s&@datadir@&$datadir&g
33189   s&@docdir@&$docdir&g
33190   s&@infodir@&$infodir&g
33191   s&@localedir@&$localedir&g
33192   s&@mandir@&$mandir&g
33193     s&\\\${datarootdir}&$datarootdir&g' ;;
33194 esac
33195 _ACEOF
33196
33197 # Neutralize VPATH when `$srcdir' = `.'.
33198 # Shell code in configure.ac might set extrasub.
33199 # FIXME: do we really want to maintain this feature?
33200 cat >>$CONFIG_STATUS <<_ACEOF
33201   sed "$ac_vpsub
33202 $extrasub
33203 _ACEOF
33204 cat >>$CONFIG_STATUS <<\_ACEOF
33205 :t
33206 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33207 s&@configure_input@&$configure_input&;t t
33208 s&@top_builddir@&$ac_top_builddir_sub&;t t
33209 s&@srcdir@&$ac_srcdir&;t t
33210 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33211 s&@top_srcdir@&$ac_top_srcdir&;t t
33212 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33213 s&@builddir@&$ac_builddir&;t t
33214 s&@abs_builddir@&$ac_abs_builddir&;t t
33215 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33216 s&@INSTALL@&$ac_INSTALL&;t t
33217 $ac_datarootdir_hack
33218 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33219
33220 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33221   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33222   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33223   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33224 which seems to be undefined.  Please make sure it is defined." >&5
33225 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33226 which seems to be undefined.  Please make sure it is defined." >&2;}
33227
33228   rm -f "$tmp/stdin"
33229   case $ac_file in
33230   -) cat "$tmp/out"; rm -f "$tmp/out";;
33231   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33232   esac
33233  ;;
33234   :H)
33235   #
33236   # CONFIG_HEADER
33237   #
33238 _ACEOF
33239
33240 # Transform confdefs.h into a sed script `conftest.defines', that
33241 # substitutes the proper values into config.h.in to produce config.h.
33242 rm -f conftest.defines conftest.tail
33243 # First, append a space to every undef/define line, to ease matching.
33244 echo 's/$/ /' >conftest.defines
33245 # Then, protect against being on the right side of a sed subst, or in
33246 # an unquoted here document, in config.status.  If some macros were
33247 # called several times there might be several #defines for the same
33248 # symbol, which is useless.  But do not sort them, since the last
33249 # AC_DEFINE must be honored.
33250 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33251 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33252 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33253 # PARAMS is the parameter list in the macro definition--in most cases, it's
33254 # just an empty string.
33255 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
33256 ac_dB='\\)[      (].*,\\1define\\2'
33257 ac_dC=' '
33258 ac_dD=' ,'
33259
33260 uniq confdefs.h |
33261   sed -n '
33262         t rset
33263         :rset
33264         s/^[     ]*#[    ]*define[       ][      ]*//
33265         t ok
33266         d
33267         :ok
33268         s/[\\&,]/\\&/g
33269         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33270         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33271   ' >>conftest.defines
33272
33273 # Remove the space that was appended to ease matching.
33274 # Then replace #undef with comments.  This is necessary, for
33275 # example, in the case of _POSIX_SOURCE, which is predefined and required
33276 # on some systems where configure will not decide to define it.
33277 # (The regexp can be short, since the line contains either #define or #undef.)
33278 echo 's/ $//
33279 s,^[     #]*u.*,/* & */,' >>conftest.defines
33280
33281 # Break up conftest.defines:
33282 ac_max_sed_lines=50
33283
33284 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33285 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33286 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33287 # et cetera.
33288 ac_in='$ac_file_inputs'
33289 ac_out='"$tmp/out1"'
33290 ac_nxt='"$tmp/out2"'
33291
33292 while :
33293 do
33294   # Write a here document:
33295     cat >>$CONFIG_STATUS <<_ACEOF
33296     # First, check the format of the line:
33297     cat >"\$tmp/defines.sed" <<\\CEOF
33298 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
33299 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
33300 b
33301 :def
33302 _ACEOF
33303   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33304   echo 'CEOF
33305     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33306   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33307   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33308   grep . conftest.tail >/dev/null || break
33309   rm -f conftest.defines
33310   mv conftest.tail conftest.defines
33311 done
33312 rm -f conftest.defines conftest.tail
33313
33314 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33315 cat >>$CONFIG_STATUS <<\_ACEOF
33316   if test x"$ac_file" != x-; then
33317     echo "/* $configure_input  */" >"$tmp/config.h"
33318     cat "$ac_result" >>"$tmp/config.h"
33319     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33320       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33321 echo "$as_me: $ac_file is unchanged" >&6;}
33322     else
33323       rm -f $ac_file
33324       mv "$tmp/config.h" $ac_file
33325     fi
33326   else
33327     echo "/* $configure_input  */"
33328     cat "$ac_result"
33329   fi
33330   rm -f "$tmp/out12"
33331  ;;
33332
33333
33334   esac
33335
33336 done # for ac_tag
33337
33338
33339 { (exit 0); exit 0; }
33340 _ACEOF
33341 chmod +x $CONFIG_STATUS
33342 ac_clean_files=$ac_clean_files_save
33343
33344
33345 # configure is writing to config.log, and then calls config.status.
33346 # config.status does its own redirection, appending to config.log.
33347 # Unfortunately, on DOS this fails, as config.log is still kept open
33348 # by configure, so config.status won't be able to write to it; its
33349 # output is simply discarded.  So we exec the FD to /dev/null,
33350 # effectively closing config.log, so it can be properly (re)opened and
33351 # appended to by config.status.  When coming back to configure, we
33352 # need to make the FD available again.
33353 if test "$no_create" != yes; then
33354   ac_cs_success=:
33355   ac_config_status_args=
33356   test "$silent" = yes &&
33357     ac_config_status_args="$ac_config_status_args --quiet"
33358   exec 5>/dev/null
33359   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33360   exec 5>>config.log
33361   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33362   # would make configure fail if this is the last instruction.
33363   $ac_cs_success || { (exit 1); exit 1; }
33364 fi
33365
33366
33367 # Print summary of options
33368
33369 # Someone please show me a better way :)
33370 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
33371 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
33372 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
33373 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
33374 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
33375 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
33376 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
33377 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
33378 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
33379 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
33380
33381 echo ""
33382 echo "OpenSSH has been configured with the following options:"
33383 echo "                     User binaries: $B"
33384 echo "                   System binaries: $C"
33385 echo "               Configuration files: $D"
33386 echo "                   Askpass program: $E"
33387 echo "                      Manual pages: $F"
33388 echo "                          PID file: $G"
33389 echo "  Privilege separation chroot path: $H"
33390 if test "x$external_path_file" = "x/etc/login.conf" ; then
33391 echo "   At runtime, sshd will use the path defined in $external_path_file"
33392 echo "   Make sure the path to scp is present, otherwise scp will not work"
33393 else
33394 echo "            sshd default user PATH: $I"
33395         if test ! -z "$external_path_file"; then
33396 echo "   (If PATH is set in $external_path_file it will be used instead. If"
33397 echo "   used, ensure the path to scp is present, otherwise scp will not work.)"
33398         fi
33399 fi
33400 if test ! -z "$superuser_path" ; then
33401 echo "          sshd superuser user PATH: $J"
33402 fi
33403 echo "                    Manpage format: $MANTYPE"
33404 echo "                       PAM support: $PAM_MSG"
33405 echo "                   OSF SIA support: $SIA_MSG"
33406 echo "                 KerberosV support: $KRB5_MSG"
33407 echo "                   SELinux support: $SELINUX_MSG"
33408 echo "                 Smartcard support: $SCARD_MSG"
33409 echo "                     S/KEY support: $SKEY_MSG"
33410 echo "              TCP Wrappers support: $TCPW_MSG"
33411 echo "              MD5 password support: $MD5_MSG"
33412 echo "                   libedit support: $LIBEDIT_MSG"
33413 echo "  Solaris process contract support: $SPC_MSG"
33414 echo "       IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
33415 echo "           Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
33416 echo "                  BSD Auth support: $BSD_AUTH_MSG"
33417 echo "              Random number source: $RAND_MSG"
33418 if test ! -z "$USE_RAND_HELPER" ; then
33419 echo "     ssh-rand-helper collects from: $RAND_HELPER_MSG"
33420 fi
33421
33422 echo ""
33423
33424 echo "              Host: ${host}"
33425 echo "          Compiler: ${CC}"
33426 echo "    Compiler flags: ${CFLAGS}"
33427 echo "Preprocessor flags: ${CPPFLAGS}"
33428 echo "      Linker flags: ${LDFLAGS}"
33429 echo "         Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
33430
33431 echo ""
33432
33433 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
33434         echo "SVR4 style packages are supported with \"make package\""
33435         echo ""
33436 fi
33437
33438 if test "x$PAM_MSG" = "xyes" ; then
33439         echo "PAM is enabled. You may need to install a PAM control file "
33440         echo "for sshd, otherwise password authentication may fail. "
33441         echo "Example PAM control files can be found in the contrib/ "
33442         echo "subdirectory"
33443         echo ""
33444 fi
33445
33446 if test ! -z "$RAND_HELPER_CMDHASH" ; then
33447         echo "WARNING: you are using the builtin random number collection "
33448         echo "service. Please read WARNING.RNG and request that your OS "
33449         echo "vendor includes kernel-based random number collection in "
33450         echo "future versions of your OS."
33451         echo ""
33452 fi
33453
33454 if test ! -z "$NO_PEERCHECK" ; then
33455         echo "WARNING: the operating system that you are using does not "
33456         echo "appear to support either the getpeereid() API nor the "
33457         echo "SO_PEERCRED getsockopt() option. These facilities are used to "
33458         echo "enforce security checks to prevent unauthorised connections to "
33459         echo "ssh-agent. Their absence increases the risk that a malicious "
33460         echo "user can connect to your agent. "
33461         echo ""
33462 fi
33463
33464 if test "$AUDIT_MODULE" = "bsm" ; then
33465         echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
33466         echo "See the Solaris section in README.platform for details."
33467 fi
This page took 6.405314 seconds and 5 git commands to generate.