1#! /bin/sh
2# From configure.ac Revision: 1.583 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 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 more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in
27  *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45  echo "#! /bin/sh" >conf$$.sh
46  echo  "exit 0"   >>conf$$.sh
47  chmod +x conf$$.sh
48  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49    PATH_SEPARATOR=';'
50  else
51    PATH_SEPARATOR=:
52  fi
53  rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58  as_unset=unset
59else
60  as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order.  Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" ""	$as_nl"
72
73# Find who we are.  Look in the path if we contain no directory separator.
74case $0 in
75  *[\\/]* ) as_myself=$0 ;;
76  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79  IFS=$as_save_IFS
80  test -z "$as_dir" && as_dir=.
81  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85     ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90  as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94  { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109  LC_TELEPHONE LC_TIME
110do
111  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112    eval $as_var=C; export $as_var
113  else
114    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115  fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120   test "X`expr 00001 : '.*\(...\)'`" = X001; then
121  as_expr=expr
122else
123  as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127  as_basename=basename
128else
129  as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136	 X"$0" : 'X\(//\)$' \| \
137	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139    sed '/^.*\/\([^/][^/]*\)\/*$/{
140	    s//\1/
141	    q
142	  }
143	  /^X\/\(\/\/\)$/{
144	    s//\1/
145	    q
146	  }
147	  /^X\/\(\/\).*/{
148	    s//\1/
149	    q
150	  }
151	  s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158  if (eval ":") 2>/dev/null; then
159  as_have_required=yes
160else
161  as_have_required=no
162fi
163
164  if test $as_have_required = yes && 	 (eval ":
165(as_func_return () {
166  (exit \$1)
167}
168as_func_success () {
169  as_func_return 0
170}
171as_func_failure () {
172  as_func_return 1
173}
174as_func_ret_success () {
175  return 0
176}
177as_func_ret_failure () {
178  return 1
179}
180
181exitcode=0
182if as_func_success; then
183  :
184else
185  exitcode=1
186  echo as_func_success failed.
187fi
188
189if as_func_failure; then
190  exitcode=1
191  echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195  :
196else
197  exitcode=1
198  echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202  exitcode=1
203  echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207  :
208else
209  exitcode=1
210  echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216  as_lineno_1=\$LINENO
217  as_lineno_2=\$LINENO
218  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221  :
222else
223  as_candidate_shells=
224    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227  IFS=$as_save_IFS
228  test -z "$as_dir" && as_dir=.
229  case $as_dir in
230	 /*)
231	   for as_base in sh bash ksh sh5; do
232	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233	   done;;
234       esac
235done
236IFS=$as_save_IFS
237
238
239      for as_shell in $as_candidate_shells $SHELL; do
240	 # Try only shells that exist, to save several forks.
241	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242		{ ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244  emulate sh
245  NULLCMD=:
246  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247  # is contrary to our usage.  Disable this feature.
248  alias -g '${1+"$@"}'='"$@"'
249  setopt NO_GLOB_SUBST
250else
251  case `(set -o) 2>/dev/null` in
252  *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261  CONFIG_SHELL=$as_shell
262	       as_have_required=yes
263	       if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265  emulate sh
266  NULLCMD=:
267  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268  # is contrary to our usage.  Disable this feature.
269  alias -g '${1+"$@"}'='"$@"'
270  setopt NO_GLOB_SUBST
271else
272  case `(set -o) 2>/dev/null` in
273  *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281  (exit $1)
282}
283as_func_success () {
284  as_func_return 0
285}
286as_func_failure () {
287  as_func_return 1
288}
289as_func_ret_success () {
290  return 0
291}
292as_func_ret_failure () {
293  return 1
294}
295
296exitcode=0
297if as_func_success; then
298  :
299else
300  exitcode=1
301  echo as_func_success failed.
302fi
303
304if as_func_failure; then
305  exitcode=1
306  echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310  :
311else
312  exitcode=1
313  echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317  exitcode=1
318  echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322  :
323else
324  exitcode=1
325  echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331  as_lineno_1=$LINENO
332  as_lineno_2=$LINENO
333  test "x$as_lineno_1" != "x$as_lineno_2" &&
334  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338  break
339fi
340
341fi
342
343      done
344
345      if test "x$CONFIG_SHELL" != x; then
346  for as_var in BASH_ENV ENV
347        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348        done
349        export CONFIG_SHELL
350        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354    if test $as_have_required = no; then
355  echo This script requires a shell more modern than all the
356      echo shells that I found on your system.  Please install a
357      echo modern shell, or manually run the script under such a
358      echo shell if you do have one.
359      { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370  (exit \$1)
371}
372as_func_success () {
373  as_func_return 0
374}
375as_func_failure () {
376  as_func_return 1
377}
378as_func_ret_success () {
379  return 0
380}
381as_func_ret_failure () {
382  return 1
383}
384
385exitcode=0
386if as_func_success; then
387  :
388else
389  exitcode=1
390  echo as_func_success failed.
391fi
392
393if as_func_failure; then
394  exitcode=1
395  echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399  :
400else
401  exitcode=1
402  echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406  exitcode=1
407  echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411  :
412else
413  exitcode=1
414  echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418  echo No shell found that supports shell functions.
419  echo Please tell autoconf@gnu.org about your system,
420  echo including any error possibly output before this
421  echo message
422}
423
424
425
426  as_lineno_1=$LINENO
427  as_lineno_2=$LINENO
428  test "x$as_lineno_1" != "x$as_lineno_2" &&
429  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432  # uniformly replaced by the line number.  The first 'sed' inserts a
433  # line-number line after each line using $LINENO; the second 'sed'
434  # does the real work.  The second script uses 'N' to pair each
435  # line-number line with the line containing $LINENO, and appends
436  # trailing '-' during substitution so that $LINENO is not a special
437  # case at line end.
438  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439  # scripts with optimization help from Paolo Bonzini.  Blame Lee
440  # E. McMahon (1931-1989) for sed's syntax.  :-)
441  sed -n '
442    p
443    /[$]LINENO/=
444  ' <$as_myself |
445    sed '
446      s/[$]LINENO.*/&-/
447      t lineno
448      b
449      :lineno
450      N
451      :loop
452      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453      t loop
454      s/-\n.*//
455    ' >$as_me.lineno &&
456  chmod +x "$as_me.lineno" ||
457    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458   { (exit 1); exit 1; }; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470  as_dirname=dirname
471else
472  as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478  case `echo 'x\c'` in
479  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
480  *)   ECHO_C='\c';;
481  esac;;
482*)
483  ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487   test "X`expr 00001 : '.*\(...\)'`" = X001; then
488  as_expr=expr
489else
490  as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495  rm -f conf$$.dir/conf$$.file
496else
497  rm -f conf$$.dir
498  mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502  as_ln_s='ln -s'
503  # ... but there are two gotchas:
504  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506  # In both cases, we have to default to `cp -p'.
507  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508    as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510  as_ln_s=ln
511else
512  as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518  as_mkdir_p=:
519else
520  test -d ./-p && rmdir ./-p
521  as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525  as_test_x='test -x'
526else
527  if ls -dL / >/dev/null 2>&1; then
528    as_ls_L_option=L
529  else
530    as_ls_L_option=
531  fi
532  as_test_x='
533    eval sh -c '\''
534      if test -d "$1"; then
535        test -d "$1/.";
536      else
537	case $1 in
538        -*)set "./$1";;
539	esac;
540	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541	???[sx]*):;;*)false;;esac;fi
542    '\'' sh
543  '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555exec 7<&0 </dev/null 6>&1
556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
575# Identity of this package.
576PACKAGE_NAME='OpenSSH'
577PACKAGE_TARNAME='openssh'
578PACKAGE_VERSION='Portable'
579PACKAGE_STRING='OpenSSH Portable'
580PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
581
582ac_unique_file="ssh.c"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
586#ifdef HAVE_SYS_TYPES_H
587# include <sys/types.h>
588#endif
589#ifdef HAVE_SYS_STAT_H
590# include <sys/stat.h>
591#endif
592#ifdef STDC_HEADERS
593# include <stdlib.h>
594# include <stddef.h>
595#else
596# ifdef HAVE_STDLIB_H
597#  include <stdlib.h>
598# endif
599#endif
600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602#  include <memory.h>
603# endif
604# include <string.h>
605#endif
606#ifdef HAVE_STRINGS_H
607# include <strings.h>
608#endif
609#ifdef HAVE_INTTYPES_H
610# include <inttypes.h>
611#endif
612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
616# include <unistd.h>
617#endif"
618
619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656CC
657CFLAGS
658LDFLAGS
659CPPFLAGS
660ac_ct_CC
661EXEEXT
662OBJEXT
663build
664build_cpu
665build_vendor
666build_os
667host
668host_cpu
669host_vendor
670host_os
671CPP
672GREP
673EGREP
674AWK
675RANLIB
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679AR
680ac_ct_AR
681CAT
682KILL
683PERL
684SED
685ENT
686TEST_MINUS_S_SH
687SH
688GROFF
689NROFF
690MANDOC
691TEST_SHELL
692MANFMT
693PATH_GROUPADD_PROG
694PATH_USERADD_PROG
695MAKE_PACKAGE_SUPPORTED
696STARTUP_SCRIPT_SHELL
697LOGIN_PROGRAM_FALLBACK
698PATH_PASSWD_PROG
699LD
700PKGCONFIG
701LIBEDIT
702TEST_SSH_ECC
703COMMENT_OUT_ECC
704SSH_PRIVSEP_USER
705SSHLIBS
706SSHDLIBS
707KRB5CONF
708GSSLIBS
709K5LIBS
710PRIVSEP_PATH
711xauth_path
712STRIP_OPT
713XAUTH_PATH
714MANTYPE
715mansubdir
716user_path
717piddir
718TEST_SSH_IPV6
719TEST_MALLOC_OPTIONS
720UNSUPPORTED_ALGORITHMS
721LIBOBJS
722LTLIBOBJS'
723ac_subst_files=''
724      ac_precious_vars='build_alias
725host_alias
726target_alias
727CC
728CFLAGS
729LDFLAGS
730LIBS
731CPPFLAGS
732CPP'
733
734
735# Initialize some variables set by options.
736ac_init_help=
737ac_init_version=false
738# The variables have the same names as the options, with
739# dashes changed to underlines.
740cache_file=/dev/null
741exec_prefix=NONE
742no_create=
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
751verbose=
752x_includes=NONE
753x_libraries=NONE
754
755# Installation directory options.
756# These are left unexpanded so users can "make install exec_prefix=/foo"
757# and all the variables that are supposed to be based on exec_prefix
758# by default will actually change.
759# Use braces instead of parens because sh, perl, etc. also accept them.
760# (The list follows the same order as the GNU Coding Standards.)
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
771docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
780
781ac_prev=
782ac_dashdash=
783for ac_option
784do
785  # If the previous option needs an argument, assign it.
786  if test -n "$ac_prev"; then
787    eval $ac_prev=\$ac_option
788    ac_prev=
789    continue
790  fi
791
792  case $ac_option in
793  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794  *)	ac_optarg=yes ;;
795  esac
796
797  # Accept the important Cygnus configure options, so we can diagnose typos.
798
799  case $ac_dashdash$ac_option in
800  --)
801    ac_dashdash=yes ;;
802
803  -bindir | --bindir | --bindi | --bind | --bin | --bi)
804    ac_prev=bindir ;;
805  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806    bindir=$ac_optarg ;;
807
808  -build | --build | --buil | --bui | --bu)
809    ac_prev=build_alias ;;
810  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811    build_alias=$ac_optarg ;;
812
813  -cache-file | --cache-file | --cache-fil | --cache-fi \
814  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815    ac_prev=cache_file ;;
816  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818    cache_file=$ac_optarg ;;
819
820  --config-cache | -C)
821    cache_file=config.cache ;;
822
823  -datadir | --datadir | --datadi | --datad)
824    ac_prev=datadir ;;
825  -datadir=* | --datadir=* | --datadi=* | --datad=*)
826    datadir=$ac_optarg ;;
827
828  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829  | --dataroo | --dataro | --datar)
830    ac_prev=datarootdir ;;
831  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833    datarootdir=$ac_optarg ;;
834
835  -disable-* | --disable-*)
836    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837    # Reject names that are not valid shell variable names.
838    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840   { (exit 1); exit 1; }; }
841    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842    eval enable_$ac_feature=no ;;
843
844  -docdir | --docdir | --docdi | --doc | --do)
845    ac_prev=docdir ;;
846  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847    docdir=$ac_optarg ;;
848
849  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850    ac_prev=dvidir ;;
851  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852    dvidir=$ac_optarg ;;
853
854  -enable-* | --enable-*)
855    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856    # Reject names that are not valid shell variable names.
857    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
858      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859   { (exit 1); exit 1; }; }
860    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861    eval enable_$ac_feature=\$ac_optarg ;;
862
863  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865  | --exec | --exe | --ex)
866    ac_prev=exec_prefix ;;
867  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869  | --exec=* | --exe=* | --ex=*)
870    exec_prefix=$ac_optarg ;;
871
872  -gas | --gas | --ga | --g)
873    # Obsolete; use --with-gas.
874    with_gas=yes ;;
875
876  -help | --help | --hel | --he | -h)
877    ac_init_help=long ;;
878  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879    ac_init_help=recursive ;;
880  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881    ac_init_help=short ;;
882
883  -host | --host | --hos | --ho)
884    ac_prev=host_alias ;;
885  -host=* | --host=* | --hos=* | --ho=*)
886    host_alias=$ac_optarg ;;
887
888  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889    ac_prev=htmldir ;;
890  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891  | --ht=*)
892    htmldir=$ac_optarg ;;
893
894  -includedir | --includedir | --includedi | --included | --include \
895  | --includ | --inclu | --incl | --inc)
896    ac_prev=includedir ;;
897  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898  | --includ=* | --inclu=* | --incl=* | --inc=*)
899    includedir=$ac_optarg ;;
900
901  -infodir | --infodir | --infodi | --infod | --info | --inf)
902    ac_prev=infodir ;;
903  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904    infodir=$ac_optarg ;;
905
906  -libdir | --libdir | --libdi | --libd)
907    ac_prev=libdir ;;
908  -libdir=* | --libdir=* | --libdi=* | --libd=*)
909    libdir=$ac_optarg ;;
910
911  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912  | --libexe | --libex | --libe)
913    ac_prev=libexecdir ;;
914  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915  | --libexe=* | --libex=* | --libe=*)
916    libexecdir=$ac_optarg ;;
917
918  -localedir | --localedir | --localedi | --localed | --locale)
919    ac_prev=localedir ;;
920  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921    localedir=$ac_optarg ;;
922
923  -localstatedir | --localstatedir | --localstatedi | --localstated \
924  | --localstate | --localstat | --localsta | --localst | --locals)
925    ac_prev=localstatedir ;;
926  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928    localstatedir=$ac_optarg ;;
929
930  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931    ac_prev=mandir ;;
932  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933    mandir=$ac_optarg ;;
934
935  -nfp | --nfp | --nf)
936    # Obsolete; use --without-fp.
937    with_fp=no ;;
938
939  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940  | --no-cr | --no-c | -n)
941    no_create=yes ;;
942
943  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945    no_recursion=yes ;;
946
947  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949  | --oldin | --oldi | --old | --ol | --o)
950    ac_prev=oldincludedir ;;
951  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954    oldincludedir=$ac_optarg ;;
955
956  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957    ac_prev=prefix ;;
958  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959    prefix=$ac_optarg ;;
960
961  -program-prefix | --program-prefix | --program-prefi | --program-pref \
962  | --program-pre | --program-pr | --program-p)
963    ac_prev=program_prefix ;;
964  -program-prefix=* | --program-prefix=* | --program-prefi=* \
965  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966    program_prefix=$ac_optarg ;;
967
968  -program-suffix | --program-suffix | --program-suffi | --program-suff \
969  | --program-suf | --program-su | --program-s)
970    ac_prev=program_suffix ;;
971  -program-suffix=* | --program-suffix=* | --program-suffi=* \
972  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973    program_suffix=$ac_optarg ;;
974
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    ac_prev=program_transform_name ;;
983  -program-transform-name=* | --program-transform-name=* \
984  | --program-transform-nam=* | --program-transform-na=* \
985  | --program-transform-n=* | --program-transform-=* \
986  | --program-transform=* | --program-transfor=* \
987  | --program-transfo=* | --program-transf=* \
988  | --program-trans=* | --program-tran=* \
989  | --progr-tra=* | --program-tr=* | --program-t=*)
990    program_transform_name=$ac_optarg ;;
991
992  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993    ac_prev=pdfdir ;;
994  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995    pdfdir=$ac_optarg ;;
996
997  -psdir | --psdir | --psdi | --psd | --ps)
998    ac_prev=psdir ;;
999  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000    psdir=$ac_optarg ;;
1001
1002  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003  | -silent | --silent | --silen | --sile | --sil)
1004    silent=yes ;;
1005
1006  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007    ac_prev=sbindir ;;
1008  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009  | --sbi=* | --sb=*)
1010    sbindir=$ac_optarg ;;
1011
1012  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014  | --sharedst | --shareds | --shared | --share | --shar \
1015  | --sha | --sh)
1016    ac_prev=sharedstatedir ;;
1017  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020  | --sha=* | --sh=*)
1021    sharedstatedir=$ac_optarg ;;
1022
1023  -site | --site | --sit)
1024    ac_prev=site ;;
1025  -site=* | --site=* | --sit=*)
1026    site=$ac_optarg ;;
1027
1028  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029    ac_prev=srcdir ;;
1030  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031    srcdir=$ac_optarg ;;
1032
1033  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034  | --syscon | --sysco | --sysc | --sys | --sy)
1035    ac_prev=sysconfdir ;;
1036  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038    sysconfdir=$ac_optarg ;;
1039
1040  -target | --target | --targe | --targ | --tar | --ta | --t)
1041    ac_prev=target_alias ;;
1042  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043    target_alias=$ac_optarg ;;
1044
1045  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046    verbose=yes ;;
1047
1048  -version | --version | --versio | --versi | --vers | -V)
1049    ac_init_version=: ;;
1050
1051  -with-* | --with-*)
1052    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053    # Reject names that are not valid shell variable names.
1054    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055      { echo "$as_me: error: invalid package name: $ac_package" >&2
1056   { (exit 1); exit 1; }; }
1057    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058    eval with_$ac_package=\$ac_optarg ;;
1059
1060  -without-* | --without-*)
1061    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062    # Reject names that are not valid shell variable names.
1063    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064      { echo "$as_me: error: invalid package name: $ac_package" >&2
1065   { (exit 1); exit 1; }; }
1066    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067    eval with_$ac_package=no ;;
1068
1069  --x)
1070    # Obsolete; use --with-x.
1071    with_x=yes ;;
1072
1073  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1074  | --x-incl | --x-inc | --x-in | --x-i)
1075    ac_prev=x_includes ;;
1076  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1077  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1078    x_includes=$ac_optarg ;;
1079
1080  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1081  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1082    ac_prev=x_libraries ;;
1083  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1084  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1085    x_libraries=$ac_optarg ;;
1086
1087  -*) { echo "$as_me: error: unrecognized option: $ac_option
1088Try \`$0 --help' for more information." >&2
1089   { (exit 1); exit 1; }; }
1090    ;;
1091
1092  *=*)
1093    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1094    # Reject names that are not valid shell variable names.
1095    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1096      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1097   { (exit 1); exit 1; }; }
1098    eval $ac_envvar=\$ac_optarg
1099    export $ac_envvar ;;
1100
1101  *)
1102    # FIXME: should be removed in autoconf 3.0.
1103    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1104    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1106    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1107    ;;
1108
1109  esac
1110done
1111
1112if test -n "$ac_prev"; then
1113  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1114  { echo "$as_me: error: missing argument to $ac_option" >&2
1115   { (exit 1); exit 1; }; }
1116fi
1117
1118# Be sure to have absolute directory names.
1119for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1120		datadir sysconfdir sharedstatedir localstatedir includedir \
1121		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1122		libdir localedir mandir
1123do
1124  eval ac_val=\$$ac_var
1125  case $ac_val in
1126    [\\/$]* | ?:[\\/]* )  continue;;
1127    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1128  esac
1129  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1130   { (exit 1); exit 1; }; }
1131done
1132
1133# There might be people who depend on the old broken behavior: `$host'
1134# used to hold the argument of --host etc.
1135# FIXME: To remove some day.
1136build=$build_alias
1137host=$host_alias
1138target=$target_alias
1139
1140# FIXME: To remove some day.
1141if test "x$host_alias" != x; then
1142  if test "x$build_alias" = x; then
1143    cross_compiling=maybe
1144    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1145    If a cross compiler is detected then cross compile mode will be used." >&2
1146  elif test "x$build_alias" != "x$host_alias"; then
1147    cross_compiling=yes
1148  fi
1149fi
1150
1151ac_tool_prefix=
1152test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154test "$silent" = yes && exec 6>/dev/null
1155
1156
1157ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158ac_ls_di=`ls -di .` &&
1159ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1160  { echo "$as_me: error: Working directory cannot be determined" >&2
1161   { (exit 1); exit 1; }; }
1162test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163  { echo "$as_me: error: pwd does not report name of working directory" >&2
1164   { (exit 1); exit 1; }; }
1165
1166
1167# Find the source files, if location was not specified.
1168if test -z "$srcdir"; then
1169  ac_srcdir_defaulted=yes
1170  # Try the directory containing this script, then the parent directory.
1171  ac_confdir=`$as_dirname -- "$0" ||
1172$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173	 X"$0" : 'X\(//\)[^/]' \| \
1174	 X"$0" : 'X\(//\)$' \| \
1175	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1176echo X"$0" |
1177    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178	    s//\1/
1179	    q
1180	  }
1181	  /^X\(\/\/\)[^/].*/{
1182	    s//\1/
1183	    q
1184	  }
1185	  /^X\(\/\/\)$/{
1186	    s//\1/
1187	    q
1188	  }
1189	  /^X\(\/\).*/{
1190	    s//\1/
1191	    q
1192	  }
1193	  s/.*/./; q'`
1194  srcdir=$ac_confdir
1195  if test ! -r "$srcdir/$ac_unique_file"; then
1196    srcdir=..
1197  fi
1198else
1199  ac_srcdir_defaulted=no
1200fi
1201if test ! -r "$srcdir/$ac_unique_file"; then
1202  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1204   { (exit 1); exit 1; }; }
1205fi
1206ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1207ac_abs_confdir=`(
1208	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1209   { (exit 1); exit 1; }; }
1210	pwd)`
1211# When building in place, set srcdir=.
1212if test "$ac_abs_confdir" = "$ac_pwd"; then
1213  srcdir=.
1214fi
1215# Remove unnecessary trailing slashes from srcdir.
1216# Double slashes in file names in object file debugging info
1217# mess up M-x gdb in Emacs.
1218case $srcdir in
1219*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220esac
1221for ac_var in $ac_precious_vars; do
1222  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223  eval ac_env_${ac_var}_value=\$${ac_var}
1224  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226done
1227
1228#
1229# Report the --help message.
1230#
1231if test "$ac_init_help" = "long"; then
1232  # Omit some internal or obsolete options to make the list less imposing.
1233  # This message is too long to be a string in the A/UX 3.1 sh.
1234  cat <<_ACEOF
1235\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1236
1237Usage: $0 [OPTION]... [VAR=VALUE]...
1238
1239To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240VAR=VALUE.  See below for descriptions of some of the useful variables.
1241
1242Defaults for the options are specified in brackets.
1243
1244Configuration:
1245  -h, --help              display this help and exit
1246      --help=short        display options specific to this package
1247      --help=recursive    display the short help of all the included packages
1248  -V, --version           display version information and exit
1249  -q, --quiet, --silent   do not print \`checking...' messages
1250      --cache-file=FILE   cache test results in FILE [disabled]
1251  -C, --config-cache      alias for \`--cache-file=config.cache'
1252  -n, --no-create         do not create output files
1253      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1254
1255Installation directories:
1256  --prefix=PREFIX         install architecture-independent files in PREFIX
1257			  [$ac_default_prefix]
1258  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1259			  [PREFIX]
1260
1261By default, \`make install' will install all the files in
1262\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1263an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264for instance \`--prefix=\$HOME'.
1265
1266For better control, use the options below.
1267
1268Fine tuning of the installation directories:
1269  --bindir=DIR           user executables [EPREFIX/bin]
1270  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1271  --libexecdir=DIR       program executables [EPREFIX/libexec]
1272  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1273  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1274  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1275  --libdir=DIR           object code libraries [EPREFIX/lib]
1276  --includedir=DIR       C header files [PREFIX/include]
1277  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1278  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1279  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1280  --infodir=DIR          info documentation [DATAROOTDIR/info]
1281  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1282  --mandir=DIR           man documentation [DATAROOTDIR/man]
1283  --docdir=DIR           documentation root [DATAROOTDIR/doc/openssh]
1284  --htmldir=DIR          html documentation [DOCDIR]
1285  --dvidir=DIR           dvi documentation [DOCDIR]
1286  --pdfdir=DIR           pdf documentation [DOCDIR]
1287  --psdir=DIR            ps documentation [DOCDIR]
1288_ACEOF
1289
1290  cat <<\_ACEOF
1291
1292System types:
1293  --build=BUILD     configure for building on BUILD [guessed]
1294  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1295_ACEOF
1296fi
1297
1298if test -n "$ac_init_help"; then
1299  case $ac_init_help in
1300     short | recursive ) echo "Configuration of OpenSSH Portable:";;
1301   esac
1302  cat <<\_ACEOF
1303
1304Optional Features:
1305  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1306  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1307  --disable-largefile     omit support for large files
1308  --disable-strip         Disable calling strip(1) on install
1309  --disable-etc-default-login Disable using PATH from /etc/default/login no
1310  --disable-lastlog       disable use of lastlog even if detected no
1311  --disable-utmp          disable use of utmp even if detected no
1312  --disable-utmpx         disable use of utmpx even if detected no
1313  --disable-wtmp          disable use of wtmp even if detected no
1314  --disable-wtmpx         disable use of wtmpx even if detected no
1315  --disable-libutil       disable use of libutil (login() etc.) no
1316  --disable-pututline     disable use of pututline() etc. (uwtmp) no
1317  --disable-pututxline    disable use of pututxline() etc. (uwtmpx) no
1318
1319Optional Packages:
1320  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1321  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1322  --without-openssl       Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL**
1323  --without-ssh1          Enable support for SSH protocol 1
1324  --without-stackprotect  Don't use compiler's stack protection
1325  --without-hardening     Don't use toolchain hardening flags
1326  --without-rpath         Disable auto-added -R linker paths
1327  --with-cflags           Specify additional flags to pass to compiler
1328  --with-cppflags         Specify additional flags to pass to preprocessor
1329  --with-ldflags          Specify additional flags to pass to linker
1330  --with-libs             Specify additional libraries to link with
1331  --with-Werror           Build main code with -Werror
1332  --with-solaris-contracts Enable Solaris process contracts (experimental)
1333  --with-solaris-projects Enable Solaris projects (experimental)
1334  --with-osfsia           Enable Digital Unix SIA
1335  --with-zlib=PATH        Use zlib in PATH
1336  --without-zlib-version-check Disable zlib version check
1337  --with-skey[=PATH]      Enable S/Key support (optionally in PATH)
1338  --with-ldns[=PATH]      Use ldns for DNSSEC support (optionally in PATH)
1339  --with-libedit[=PATH]   Enable libedit support for sftp
1340  --with-audit=module     Enable audit support (modules=debug,bsm,linux)
1341  --with-pie              Build Position Independent Executables if possible
1342  --with-ssl-dir=PATH     Specify path to OpenSSL installation
1343  --without-openssl-header-check Disable OpenSSL version consistency check
1344  --with-ssl-engine       Enable OpenSSL (hardware) ENGINE support
1345  --with-prngd-port=PORT  read entropy from PRNGD/EGD TCP localhost:PORT
1346  --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1347  --with-pam              Enable PAM support
1348  --with-privsep-user=user Specify non-privileged user for privilege separation
1349  --with-sandbox=style    Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum)
1350  --with-selinux          Enable SELinux support
1351  --with-kerberos5=PATH   Enable Kerberos 5 support
1352  --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1353  --with-xauth=PATH       Specify path to xauth program
1354  --with-maildir=/path/to/mail    Specify your system mail directory
1355  --with-mantype=man|cat|doc  Set man page type
1356  --with-md5-passwords    Enable use of MD5 passwords
1357  --without-shadow        Disable shadow password support
1358  --with-ipaddr-display   Use ip address instead of hostname in $DISPLAY
1359  --with-default-path=    Specify default $PATH environment for server
1360  --with-superuser-path=  Specify different path for super-user
1361  --with-4in6             Check for and convert IPv4 in IPv6 mapped addresses
1362  --with-bsd-auth         Enable BSD auth support
1363  --with-pid-dir=PATH     Specify location of ssh.pid file
1364  --with-lastlog=FILE|DIR specify lastlog location common locations
1365
1366Some influential environment variables:
1367  CC          C compiler command
1368  CFLAGS      C compiler flags
1369  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1370              nonstandard directory <lib dir>
1371  LIBS        libraries to pass to the linker, e.g. -l<library>
1372  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1373              you have headers in a nonstandard directory <include dir>
1374  CPP         C preprocessor
1375
1376Use these variables to override the choices made by `configure' or to help
1377it to find libraries and programs with nonstandard names/locations.
1378
1379Report bugs to <openssh-unix-dev@mindrot.org>.
1380_ACEOF
1381ac_status=$?
1382fi
1383
1384if test "$ac_init_help" = "recursive"; then
1385  # If there are subdirs, report their specific --help.
1386  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387    test -d "$ac_dir" || continue
1388    ac_builddir=.
1389
1390case "$ac_dir" in
1391.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392*)
1393  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1394  # A ".." for each directory in $ac_dir_suffix.
1395  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1396  case $ac_top_builddir_sub in
1397  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399  esac ;;
1400esac
1401ac_abs_top_builddir=$ac_pwd
1402ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403# for backward compatibility:
1404ac_top_builddir=$ac_top_build_prefix
1405
1406case $srcdir in
1407  .)  # We are building in place.
1408    ac_srcdir=.
1409    ac_top_srcdir=$ac_top_builddir_sub
1410    ac_abs_top_srcdir=$ac_pwd ;;
1411  [\\/]* | ?:[\\/]* )  # Absolute name.
1412    ac_srcdir=$srcdir$ac_dir_suffix;
1413    ac_top_srcdir=$srcdir
1414    ac_abs_top_srcdir=$srcdir ;;
1415  *) # Relative name.
1416    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417    ac_top_srcdir=$ac_top_build_prefix$srcdir
1418    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419esac
1420ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422    cd "$ac_dir" || { ac_status=$?; continue; }
1423    # Check for guested configure.
1424    if test -f "$ac_srcdir/configure.gnu"; then
1425      echo &&
1426      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427    elif test -f "$ac_srcdir/configure"; then
1428      echo &&
1429      $SHELL "$ac_srcdir/configure" --help=recursive
1430    else
1431      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432    fi || ac_status=$?
1433    cd "$ac_pwd" || { ac_status=$?; break; }
1434  done
1435fi
1436
1437test -n "$ac_init_help" && exit $ac_status
1438if $ac_init_version; then
1439  cat <<\_ACEOF
1440OpenSSH configure Portable
1441generated by GNU Autoconf 2.61
1442
1443Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14442002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1445This configure script is free software; the Free Software Foundation
1446gives unlimited permission to copy, distribute and modify it.
1447_ACEOF
1448  exit
1449fi
1450cat >config.log <<_ACEOF
1451This file contains any messages produced by compilers while
1452running configure, to aid debugging if configure makes a mistake.
1453
1454It was created by OpenSSH $as_me Portable, which was
1455generated by GNU Autoconf 2.61.  Invocation command line was
1456
1457  $ $0 $@
1458
1459_ACEOF
1460exec 5>>config.log
1461{
1462cat <<_ASUNAME
1463## --------- ##
1464## Platform. ##
1465## --------- ##
1466
1467hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471uname -v = `(uname -v) 2>/dev/null || echo unknown`
1472
1473/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1475
1476/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1477/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1478/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1480/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1481/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1482/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1483
1484_ASUNAME
1485
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489  IFS=$as_save_IFS
1490  test -z "$as_dir" && as_dir=.
1491  echo "PATH: $as_dir"
1492done
1493IFS=$as_save_IFS
1494
1495} >&5
1496
1497cat >&5 <<_ACEOF
1498
1499
1500## ----------- ##
1501## Core tests. ##
1502## ----------- ##
1503
1504_ACEOF
1505
1506
1507# Keep a trace of the command line.
1508# Strip out --no-create and --no-recursion so they do not pile up.
1509# Strip out --silent because we don't want to record it for future runs.
1510# Also quote any args containing shell meta-characters.
1511# Make two passes to allow for proper duplicate-argument suppression.
1512ac_configure_args=
1513ac_configure_args0=
1514ac_configure_args1=
1515ac_must_keep_next=false
1516for ac_pass in 1 2
1517do
1518  for ac_arg
1519  do
1520    case $ac_arg in
1521    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523    | -silent | --silent | --silen | --sile | --sil)
1524      continue ;;
1525    *\'*)
1526      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527    esac
1528    case $ac_pass in
1529    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1530    2)
1531      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532      if test $ac_must_keep_next = true; then
1533	ac_must_keep_next=false # Got value, back to normal.
1534      else
1535	case $ac_arg in
1536	  *=* | --config-cache | -C | -disable-* | --disable-* \
1537	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539	  | -with-* | --with-* | -without-* | --without-* | --x)
1540	    case "$ac_configure_args0 " in
1541	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542	    esac
1543	    ;;
1544	  -* ) ac_must_keep_next=true ;;
1545	esac
1546      fi
1547      ac_configure_args="$ac_configure_args '$ac_arg'"
1548      ;;
1549    esac
1550  done
1551done
1552$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1554
1555# When interrupted or exit'd, cleanup temporary files, and complete
1556# config.log.  We remove comments because anyway the quotes in there
1557# would cause problems or look ugly.
1558# WARNING: Use '\'' to represent an apostrophe within the trap.
1559# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560trap 'exit_status=$?
1561  # Save into config.log some information that might help in debugging.
1562  {
1563    echo
1564
1565    cat <<\_ASBOX
1566## ---------------- ##
1567## Cache variables. ##
1568## ---------------- ##
1569_ASBOX
1570    echo
1571    # The following way of writing the cache mishandles newlines in values,
1572(
1573  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574    eval ac_val=\$$ac_var
1575    case $ac_val in #(
1576    *${as_nl}*)
1577      case $ac_var in #(
1578      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580      esac
1581      case $ac_var in #(
1582      _ | IFS | as_nl) ;; #(
1583      *) $as_unset $ac_var ;;
1584      esac ;;
1585    esac
1586  done
1587  (set) 2>&1 |
1588    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589    *${as_nl}ac_space=\ *)
1590      sed -n \
1591	"s/'\''/'\''\\\\'\'''\''/g;
1592	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593      ;; #(
1594    *)
1595      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596      ;;
1597    esac |
1598    sort
1599)
1600    echo
1601
1602    cat <<\_ASBOX
1603## ----------------- ##
1604## Output variables. ##
1605## ----------------- ##
1606_ASBOX
1607    echo
1608    for ac_var in $ac_subst_vars
1609    do
1610      eval ac_val=\$$ac_var
1611      case $ac_val in
1612      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613      esac
1614      echo "$ac_var='\''$ac_val'\''"
1615    done | sort
1616    echo
1617
1618    if test -n "$ac_subst_files"; then
1619      cat <<\_ASBOX
1620## ------------------- ##
1621## File substitutions. ##
1622## ------------------- ##
1623_ASBOX
1624      echo
1625      for ac_var in $ac_subst_files
1626      do
1627	eval ac_val=\$$ac_var
1628	case $ac_val in
1629	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630	esac
1631	echo "$ac_var='\''$ac_val'\''"
1632      done | sort
1633      echo
1634    fi
1635
1636    if test -s confdefs.h; then
1637      cat <<\_ASBOX
1638## ----------- ##
1639## confdefs.h. ##
1640## ----------- ##
1641_ASBOX
1642      echo
1643      cat confdefs.h
1644      echo
1645    fi
1646    test "$ac_signal" != 0 &&
1647      echo "$as_me: caught signal $ac_signal"
1648    echo "$as_me: exit $exit_status"
1649  } >&5
1650  rm -f core *.core core.conftest.* &&
1651    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652    exit $exit_status
1653' 0
1654for ac_signal in 1 2 13 15; do
1655  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1656done
1657ac_signal=0
1658
1659# confdefs.h avoids OS command line length limits that DEFS can exceed.
1660rm -f -r conftest* confdefs.h
1661
1662# Predefined preprocessor variables.
1663
1664cat >>confdefs.h <<_ACEOF
1665#define PACKAGE_NAME "$PACKAGE_NAME"
1666_ACEOF
1667
1668
1669cat >>confdefs.h <<_ACEOF
1670#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1671_ACEOF
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_VERSION "$PACKAGE_VERSION"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_STRING "$PACKAGE_STRING"
1681_ACEOF
1682
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1686_ACEOF
1687
1688
1689# Let the site file select an alternate cache file if it wants to.
1690# Prefer explicitly selected file to automatically selected ones.
1691if test -n "$CONFIG_SITE"; then
1692  set x "$CONFIG_SITE"
1693elif test "x$prefix" != xNONE; then
1694  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1695else
1696  set x "$ac_default_prefix/share/config.site" \
1697	"$ac_default_prefix/etc/config.site"
1698fi
1699shift
1700for ac_site_file
1701do
1702  if test -r "$ac_site_file"; then
1703    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1704echo "$as_me: loading site script $ac_site_file" >&6;}
1705    sed 's/^/| /' "$ac_site_file" >&5
1706    . "$ac_site_file"
1707  fi
1708done
1709
1710if test -r "$cache_file"; then
1711  # Some versions of bash will fail to source /dev/null (special
1712  # files actually), so we avoid doing that.
1713  if test -f "$cache_file"; then
1714    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1715echo "$as_me: loading cache $cache_file" >&6;}
1716    case $cache_file in
1717      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1718      *)                      . "./$cache_file";;
1719    esac
1720  fi
1721else
1722  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1723echo "$as_me: creating cache $cache_file" >&6;}
1724  >$cache_file
1725fi
1726
1727# Check that the precious variables saved in the cache have kept the same
1728# value.
1729ac_cache_corrupted=false
1730for ac_var in $ac_precious_vars; do
1731  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732  eval ac_new_set=\$ac_env_${ac_var}_set
1733  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734  eval ac_new_val=\$ac_env_${ac_var}_value
1735  case $ac_old_set,$ac_new_set in
1736    set,)
1737      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1738echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739      ac_cache_corrupted=: ;;
1740    ,set)
1741      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1742echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1743      ac_cache_corrupted=: ;;
1744    ,);;
1745    *)
1746      if test "x$ac_old_val" != "x$ac_new_val"; then
1747	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1750echo "$as_me:   former value:  $ac_old_val" >&2;}
1751	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1752echo "$as_me:   current value: $ac_new_val" >&2;}
1753	ac_cache_corrupted=:
1754      fi;;
1755  esac
1756  # Pass precious variables to config.status.
1757  if test "$ac_new_set" = set; then
1758    case $ac_new_val in
1759    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1760    *) ac_arg=$ac_var=$ac_new_val ;;
1761    esac
1762    case " $ac_configure_args " in
1763      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1764      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1765    esac
1766  fi
1767done
1768if $ac_cache_corrupted; then
1769  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1770echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1771  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1772echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1773   { (exit 1); exit 1; }; }
1774fi
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800ac_ext=c
1801ac_cpp='$CPP $CPPFLAGS'
1802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
1806
1807
1808
1809ac_ext=c
1810ac_cpp='$CPP $CPPFLAGS'
1811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814
1815
1816ac_config_headers="$ac_config_headers config.h"
1817
1818ac_ext=c
1819ac_cpp='$CPP $CPPFLAGS'
1820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823if test -n "$ac_tool_prefix"; then
1824  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1825set dummy ${ac_tool_prefix}gcc; ac_word=$2
1826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1828if test "${ac_cv_prog_CC+set}" = set; then
1829  echo $ECHO_N "(cached) $ECHO_C" >&6
1830else
1831  if test -n "$CC"; then
1832  ac_cv_prog_CC="$CC" # Let the user override the test.
1833else
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837  IFS=$as_save_IFS
1838  test -z "$as_dir" && as_dir=.
1839  for ac_exec_ext in '' $ac_executable_extensions; do
1840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1841    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1842    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843    break 2
1844  fi
1845done
1846done
1847IFS=$as_save_IFS
1848
1849fi
1850fi
1851CC=$ac_cv_prog_CC
1852if test -n "$CC"; then
1853  { echo "$as_me:$LINENO: result: $CC" >&5
1854echo "${ECHO_T}$CC" >&6; }
1855else
1856  { echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6; }
1858fi
1859
1860
1861fi
1862if test -z "$ac_cv_prog_CC"; then
1863  ac_ct_CC=$CC
1864  # Extract the first word of "gcc", so it can be a program name with args.
1865set dummy gcc; ac_word=$2
1866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869  echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871  if test -n "$ac_ct_CC"; then
1872  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873else
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877  IFS=$as_save_IFS
1878  test -z "$as_dir" && as_dir=.
1879  for ac_exec_ext in '' $ac_executable_extensions; do
1880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1881    ac_cv_prog_ac_ct_CC="gcc"
1882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883    break 2
1884  fi
1885done
1886done
1887IFS=$as_save_IFS
1888
1889fi
1890fi
1891ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892if test -n "$ac_ct_CC"; then
1893  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894echo "${ECHO_T}$ac_ct_CC" >&6; }
1895else
1896  { echo "$as_me:$LINENO: result: no" >&5
1897echo "${ECHO_T}no" >&6; }
1898fi
1899
1900  if test "x$ac_ct_CC" = x; then
1901    CC=""
1902  else
1903    case $cross_compiling:$ac_tool_warned in
1904yes:)
1905{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1906whose name does not start with the host triplet.  If you think this
1907configuration is useful to you, please write to autoconf@gnu.org." >&5
1908echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1909whose name does not start with the host triplet.  If you think this
1910configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1911ac_tool_warned=yes ;;
1912esac
1913    CC=$ac_ct_CC
1914  fi
1915else
1916  CC="$ac_cv_prog_CC"
1917fi
1918
1919if test -z "$CC"; then
1920          if test -n "$ac_tool_prefix"; then
1921    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1922set dummy ${ac_tool_prefix}cc; ac_word=$2
1923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1925if test "${ac_cv_prog_CC+set}" = set; then
1926  echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928  if test -n "$CC"; then
1929  ac_cv_prog_CC="$CC" # Let the user override the test.
1930else
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934  IFS=$as_save_IFS
1935  test -z "$as_dir" && as_dir=.
1936  for ac_exec_ext in '' $ac_executable_extensions; do
1937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1938    ac_cv_prog_CC="${ac_tool_prefix}cc"
1939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940    break 2
1941  fi
1942done
1943done
1944IFS=$as_save_IFS
1945
1946fi
1947fi
1948CC=$ac_cv_prog_CC
1949if test -n "$CC"; then
1950  { echo "$as_me:$LINENO: result: $CC" >&5
1951echo "${ECHO_T}$CC" >&6; }
1952else
1953  { echo "$as_me:$LINENO: result: no" >&5
1954echo "${ECHO_T}no" >&6; }
1955fi
1956
1957
1958  fi
1959fi
1960if test -z "$CC"; then
1961  # Extract the first word of "cc", so it can be a program name with args.
1962set dummy cc; ac_word=$2
1963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1965if test "${ac_cv_prog_CC+set}" = set; then
1966  echo $ECHO_N "(cached) $ECHO_C" >&6
1967else
1968  if test -n "$CC"; then
1969  ac_cv_prog_CC="$CC" # Let the user override the test.
1970else
1971  ac_prog_rejected=no
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975  IFS=$as_save_IFS
1976  test -z "$as_dir" && as_dir=.
1977  for ac_exec_ext in '' $ac_executable_extensions; do
1978  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1979    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1980       ac_prog_rejected=yes
1981       continue
1982     fi
1983    ac_cv_prog_CC="cc"
1984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985    break 2
1986  fi
1987done
1988done
1989IFS=$as_save_IFS
1990
1991if test $ac_prog_rejected = yes; then
1992  # We found a bogon in the path, so make sure we never use it.
1993  set dummy $ac_cv_prog_CC
1994  shift
1995  if test $# != 0; then
1996    # We chose a different compiler from the bogus one.
1997    # However, it has the same basename, so the bogon will be chosen
1998    # first if we set CC to just the basename; use the full file name.
1999    shift
2000    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2001  fi
2002fi
2003fi
2004fi
2005CC=$ac_cv_prog_CC
2006if test -n "$CC"; then
2007  { echo "$as_me:$LINENO: result: $CC" >&5
2008echo "${ECHO_T}$CC" >&6; }
2009else
2010  { echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6; }
2012fi
2013
2014
2015fi
2016if test -z "$CC"; then
2017  if test -n "$ac_tool_prefix"; then
2018  for ac_prog in cl.exe
2019  do
2020    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024if test "${ac_cv_prog_CC+set}" = set; then
2025  echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027  if test -n "$CC"; then
2028  ac_cv_prog_CC="$CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033  IFS=$as_save_IFS
2034  test -z "$as_dir" && as_dir=.
2035  for ac_exec_ext in '' $ac_executable_extensions; do
2036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2037    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039    break 2
2040  fi
2041done
2042done
2043IFS=$as_save_IFS
2044
2045fi
2046fi
2047CC=$ac_cv_prog_CC
2048if test -n "$CC"; then
2049  { echo "$as_me:$LINENO: result: $CC" >&5
2050echo "${ECHO_T}$CC" >&6; }
2051else
2052  { echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6; }
2054fi
2055
2056
2057    test -n "$CC" && break
2058  done
2059fi
2060if test -z "$CC"; then
2061  ac_ct_CC=$CC
2062  for ac_prog in cl.exe
2063do
2064  # Extract the first word of "$ac_prog", so it can be a program name with args.
2065set dummy $ac_prog; ac_word=$2
2066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069  echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071  if test -n "$ac_ct_CC"; then
2072  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073else
2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077  IFS=$as_save_IFS
2078  test -z "$as_dir" && as_dir=.
2079  for ac_exec_ext in '' $ac_executable_extensions; do
2080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081    ac_cv_prog_ac_ct_CC="$ac_prog"
2082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083    break 2
2084  fi
2085done
2086done
2087IFS=$as_save_IFS
2088
2089fi
2090fi
2091ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092if test -n "$ac_ct_CC"; then
2093  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094echo "${ECHO_T}$ac_ct_CC" >&6; }
2095else
2096  { echo "$as_me:$LINENO: result: no" >&5
2097echo "${ECHO_T}no" >&6; }
2098fi
2099
2100
2101  test -n "$ac_ct_CC" && break
2102done
2103
2104  if test "x$ac_ct_CC" = x; then
2105    CC=""
2106  else
2107    case $cross_compiling:$ac_tool_warned in
2108yes:)
2109{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2110whose name does not start with the host triplet.  If you think this
2111configuration is useful to you, please write to autoconf@gnu.org." >&5
2112echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2113whose name does not start with the host triplet.  If you think this
2114configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2115ac_tool_warned=yes ;;
2116esac
2117    CC=$ac_ct_CC
2118  fi
2119fi
2120
2121fi
2122
2123
2124test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2125See \`config.log' for more details." >&5
2126echo "$as_me: error: no acceptable C compiler found in \$PATH
2127See \`config.log' for more details." >&2;}
2128   { (exit 1); exit 1; }; }
2129
2130# Provide some information about the compiler.
2131echo "$as_me:$LINENO: checking for C compiler version" >&5
2132ac_compiler=`set X $ac_compile; echo $2`
2133{ (ac_try="$ac_compiler --version >&5"
2134case "(($ac_try" in
2135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136  *) ac_try_echo=$ac_try;;
2137esac
2138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139  (eval "$ac_compiler --version >&5") 2>&5
2140  ac_status=$?
2141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142  (exit $ac_status); }
2143{ (ac_try="$ac_compiler -v >&5"
2144case "(($ac_try" in
2145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146  *) ac_try_echo=$ac_try;;
2147esac
2148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149  (eval "$ac_compiler -v >&5") 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }
2153{ (ac_try="$ac_compiler -V >&5"
2154case "(($ac_try" in
2155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156  *) ac_try_echo=$ac_try;;
2157esac
2158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2159  (eval "$ac_compiler -V >&5") 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }
2163
2164cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170
2171int
2172main ()
2173{
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179ac_clean_files_save=$ac_clean_files
2180ac_clean_files="$ac_clean_files a.out a.exe b.out"
2181# Try to create an executable without -o first, disregard a.out.
2182# It will help us diagnose broken compilers, and finding out an intuition
2183# of exeext.
2184{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2186ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187#
2188# List of possible output files, starting from the most likely.
2189# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2190# only as a last resort.  b.out is created by i960 compilers.
2191ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2192#
2193# The IRIX 6 linker writes into existing files which may not be
2194# executable, retaining their permissions.  Remove them first so a
2195# subsequent execution test works.
2196ac_rmfiles=
2197for ac_file in $ac_files
2198do
2199  case $ac_file in
2200    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2201    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2202  esac
2203done
2204rm -f $ac_rmfiles
2205
2206if { (ac_try="$ac_link_default"
2207case "(($ac_try" in
2208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209  *) ac_try_echo=$ac_try;;
2210esac
2211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212  (eval "$ac_link_default") 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; then
2216  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2217# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2218# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2219# so that the user can short-circuit this test for compilers unknown to
2220# Autoconf.
2221for ac_file in $ac_files ''
2222do
2223  test -f "$ac_file" || continue
2224  case $ac_file in
2225    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2226	;;
2227    [ab].out )
2228	# We found the default executable, but exeext='' is most
2229	# certainly right.
2230	break;;
2231    *.* )
2232        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2233	then :; else
2234	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235	fi
2236	# We set ac_cv_exeext here because the later test for it is not
2237	# safe: cross compilers may not add the suffix if given an `-o'
2238	# argument, so we may need to know it at that point already.
2239	# Even if this section looks crufty: it has the advantage of
2240	# actually working.
2241	break;;
2242    * )
2243	break;;
2244  esac
2245done
2246test "$ac_cv_exeext" = no && ac_cv_exeext=
2247
2248else
2249  ac_file=''
2250fi
2251
2252{ echo "$as_me:$LINENO: result: $ac_file" >&5
2253echo "${ECHO_T}$ac_file" >&6; }
2254if test -z "$ac_file"; then
2255  echo "$as_me: failed program was:" >&5
2256sed 's/^/| /' conftest.$ac_ext >&5
2257
2258{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: C compiler cannot create executables
2261See \`config.log' for more details." >&2;}
2262   { (exit 77); exit 77; }; }
2263fi
2264
2265ac_exeext=$ac_cv_exeext
2266
2267# Check that the compiler produces executables we can run.  If not, either
2268# the compiler is broken, or we cross compile.
2269{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2270echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2271# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2272# If not cross compiling, check that we can run a simple program.
2273if test "$cross_compiling" != yes; then
2274  if { ac_try='./$ac_file'
2275  { (case "(($ac_try" in
2276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277  *) ac_try_echo=$ac_try;;
2278esac
2279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280  (eval "$ac_try") 2>&5
2281  ac_status=$?
2282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283  (exit $ac_status); }; }; then
2284    cross_compiling=no
2285  else
2286    if test "$cross_compiling" = maybe; then
2287	cross_compiling=yes
2288    else
2289	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2290If you meant to cross compile, use \`--host'.
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: cannot run C compiled programs.
2293If you meant to cross compile, use \`--host'.
2294See \`config.log' for more details." >&2;}
2295   { (exit 1); exit 1; }; }
2296    fi
2297  fi
2298fi
2299{ echo "$as_me:$LINENO: result: yes" >&5
2300echo "${ECHO_T}yes" >&6; }
2301
2302rm -f a.out a.exe conftest$ac_cv_exeext b.out
2303ac_clean_files=$ac_clean_files_save
2304# Check that the compiler produces executables we can run.  If not, either
2305# the compiler is broken, or we cross compile.
2306{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2307echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2308{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2309echo "${ECHO_T}$cross_compiling" >&6; }
2310
2311{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2312echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2313if { (ac_try="$ac_link"
2314case "(($ac_try" in
2315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316  *) ac_try_echo=$ac_try;;
2317esac
2318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319  (eval "$ac_link") 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; then
2323  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2324# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2325# work properly (i.e., refer to `conftest.exe'), while it won't with
2326# `rm'.
2327for ac_file in conftest.exe conftest conftest.*; do
2328  test -f "$ac_file" || continue
2329  case $ac_file in
2330    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2331    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332	  break;;
2333    * ) break;;
2334  esac
2335done
2336else
2337  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2340See \`config.log' for more details." >&2;}
2341   { (exit 1); exit 1; }; }
2342fi
2343
2344rm -f conftest$ac_cv_exeext
2345{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2346echo "${ECHO_T}$ac_cv_exeext" >&6; }
2347
2348rm -f conftest.$ac_ext
2349EXEEXT=$ac_cv_exeext
2350ac_exeext=$EXEEXT
2351{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2352echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2353if test "${ac_cv_objext+set}" = set; then
2354  echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356  cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h.  */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
2361/* end confdefs.h.  */
2362
2363int
2364main ()
2365{
2366
2367  ;
2368  return 0;
2369}
2370_ACEOF
2371rm -f conftest.o conftest.obj
2372if { (ac_try="$ac_compile"
2373case "(($ac_try" in
2374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375  *) ac_try_echo=$ac_try;;
2376esac
2377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378  (eval "$ac_compile") 2>&5
2379  ac_status=$?
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); }; then
2382  for ac_file in conftest.o conftest.obj conftest.*; do
2383  test -f "$ac_file" || continue;
2384  case $ac_file in
2385    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2386    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2387       break;;
2388  esac
2389done
2390else
2391  echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2395See \`config.log' for more details." >&5
2396echo "$as_me: error: cannot compute suffix of object files: cannot compile
2397See \`config.log' for more details." >&2;}
2398   { (exit 1); exit 1; }; }
2399fi
2400
2401rm -f conftest.$ac_cv_objext conftest.$ac_ext
2402fi
2403{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2404echo "${ECHO_T}$ac_cv_objext" >&6; }
2405OBJEXT=$ac_cv_objext
2406ac_objext=$OBJEXT
2407{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2408echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2409if test "${ac_cv_c_compiler_gnu+set}" = set; then
2410  echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412  cat >conftest.$ac_ext <<_ACEOF
2413/* confdefs.h.  */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h.  */
2418
2419int
2420main ()
2421{
2422#ifndef __GNUC__
2423       choke me
2424#endif
2425
2426  ;
2427  return 0;
2428}
2429_ACEOF
2430rm -f conftest.$ac_objext
2431if { (ac_try="$ac_compile"
2432case "(($ac_try" in
2433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434  *) ac_try_echo=$ac_try;;
2435esac
2436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437  (eval "$ac_compile") 2>conftest.er1
2438  ac_status=$?
2439  grep -v '^ *+' conftest.er1 >conftest.err
2440  rm -f conftest.er1
2441  cat conftest.err >&5
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); } && {
2444	 test -z "$ac_c_werror_flag" ||
2445	 test ! -s conftest.err
2446       } && test -s conftest.$ac_objext; then
2447  ac_compiler_gnu=yes
2448else
2449  echo "$as_me: failed program was:" >&5
2450sed 's/^/| /' conftest.$ac_ext >&5
2451
2452	ac_compiler_gnu=no
2453fi
2454
2455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458fi
2459{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2461GCC=`test $ac_compiler_gnu = yes && echo yes`
2462ac_test_CFLAGS=${CFLAGS+set}
2463ac_save_CFLAGS=$CFLAGS
2464{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2465echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2466if test "${ac_cv_prog_cc_g+set}" = set; then
2467  echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469  ac_save_c_werror_flag=$ac_c_werror_flag
2470   ac_c_werror_flag=yes
2471   ac_cv_prog_cc_g=no
2472   CFLAGS="-g"
2473   cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h.  */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h.  */
2479
2480int
2481main ()
2482{
2483
2484  ;
2485  return 0;
2486}
2487_ACEOF
2488rm -f conftest.$ac_objext
2489if { (ac_try="$ac_compile"
2490case "(($ac_try" in
2491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492  *) ac_try_echo=$ac_try;;
2493esac
2494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2495  (eval "$ac_compile") 2>conftest.er1
2496  ac_status=$?
2497  grep -v '^ *+' conftest.er1 >conftest.err
2498  rm -f conftest.er1
2499  cat conftest.err >&5
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); } && {
2502	 test -z "$ac_c_werror_flag" ||
2503	 test ! -s conftest.err
2504       } && test -s conftest.$ac_objext; then
2505  ac_cv_prog_cc_g=yes
2506else
2507  echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510	CFLAGS=""
2511      cat >conftest.$ac_ext <<_ACEOF
2512/* confdefs.h.  */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h.  */
2517
2518int
2519main ()
2520{
2521
2522  ;
2523  return 0;
2524}
2525_ACEOF
2526rm -f conftest.$ac_objext
2527if { (ac_try="$ac_compile"
2528case "(($ac_try" in
2529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530  *) ac_try_echo=$ac_try;;
2531esac
2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533  (eval "$ac_compile") 2>conftest.er1
2534  ac_status=$?
2535  grep -v '^ *+' conftest.er1 >conftest.err
2536  rm -f conftest.er1
2537  cat conftest.err >&5
2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539  (exit $ac_status); } && {
2540	 test -z "$ac_c_werror_flag" ||
2541	 test ! -s conftest.err
2542       } && test -s conftest.$ac_objext; then
2543  :
2544else
2545  echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
2548	ac_c_werror_flag=$ac_save_c_werror_flag
2549	 CFLAGS="-g"
2550	 cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h.  */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h.  */
2556
2557int
2558main ()
2559{
2560
2561  ;
2562  return 0;
2563}
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (ac_try="$ac_compile"
2567case "(($ac_try" in
2568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569  *) ac_try_echo=$ac_try;;
2570esac
2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572  (eval "$ac_compile") 2>conftest.er1
2573  ac_status=$?
2574  grep -v '^ *+' conftest.er1 >conftest.err
2575  rm -f conftest.er1
2576  cat conftest.err >&5
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); } && {
2579	 test -z "$ac_c_werror_flag" ||
2580	 test ! -s conftest.err
2581       } && test -s conftest.$ac_objext; then
2582  ac_cv_prog_cc_g=yes
2583else
2584  echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587
2588fi
2589
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
2595
2596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597   ac_c_werror_flag=$ac_save_c_werror_flag
2598fi
2599{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2601if test "$ac_test_CFLAGS" = set; then
2602  CFLAGS=$ac_save_CFLAGS
2603elif test $ac_cv_prog_cc_g = yes; then
2604  if test "$GCC" = yes; then
2605    CFLAGS="-g -O2"
2606  else
2607    CFLAGS="-g"
2608  fi
2609else
2610  if test "$GCC" = yes; then
2611    CFLAGS="-O2"
2612  else
2613    CFLAGS=
2614  fi
2615fi
2616{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2617echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2618if test "${ac_cv_prog_cc_c89+set}" = set; then
2619  echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621  ac_cv_prog_cc_c89=no
2622ac_save_CC=$CC
2623cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h.  */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h.  */
2629#include <stdarg.h>
2630#include <stdio.h>
2631#include <sys/types.h>
2632#include <sys/stat.h>
2633/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2634struct buf { int x; };
2635FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636static char *e (p, i)
2637     char **p;
2638     int i;
2639{
2640  return p[i];
2641}
2642static char *f (char * (*g) (char **, int), char **p, ...)
2643{
2644  char *s;
2645  va_list v;
2646  va_start (v,p);
2647  s = g (p, va_arg (v,int));
2648  va_end (v);
2649  return s;
2650}
2651
2652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2653   function prototypes and stuff, but not '\xHH' hex character constants.
2654   These don't provoke an error unfortunately, instead are silently treated
2655   as 'x'.  The following induces an error, until -std is added to get
2656   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2657   array size at least.  It's necessary to write '\x00'==0 to get something
2658   that's true only with -std.  */
2659int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2660
2661/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2662   inside strings and character constants.  */
2663#define FOO(x) 'x'
2664int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2665
2666int test (int i, double x);
2667struct s1 {int (*f) (int a);};
2668struct s2 {int (*f) (double a);};
2669int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670int argc;
2671char **argv;
2672int
2673main ()
2674{
2675return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2676  ;
2677  return 0;
2678}
2679_ACEOF
2680for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2681	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2682do
2683  CC="$ac_save_CC $ac_arg"
2684  rm -f conftest.$ac_objext
2685if { (ac_try="$ac_compile"
2686case "(($ac_try" in
2687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688  *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691  (eval "$ac_compile") 2>conftest.er1
2692  ac_status=$?
2693  grep -v '^ *+' conftest.er1 >conftest.err
2694  rm -f conftest.er1
2695  cat conftest.err >&5
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); } && {
2698	 test -z "$ac_c_werror_flag" ||
2699	 test ! -s conftest.err
2700       } && test -s conftest.$ac_objext; then
2701  ac_cv_prog_cc_c89=$ac_arg
2702else
2703  echo "$as_me: failed program was:" >&5
2704sed 's/^/| /' conftest.$ac_ext >&5
2705
2706
2707fi
2708
2709rm -f core conftest.err conftest.$ac_objext
2710  test "x$ac_cv_prog_cc_c89" != "xno" && break
2711done
2712rm -f conftest.$ac_ext
2713CC=$ac_save_CC
2714
2715fi
2716# AC_CACHE_VAL
2717case "x$ac_cv_prog_cc_c89" in
2718  x)
2719    { echo "$as_me:$LINENO: result: none needed" >&5
2720echo "${ECHO_T}none needed" >&6; } ;;
2721  xno)
2722    { echo "$as_me:$LINENO: result: unsupported" >&5
2723echo "${ECHO_T}unsupported" >&6; } ;;
2724  *)
2725    CC="$CC $ac_cv_prog_cc_c89"
2726    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2727echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2728esac
2729
2730
2731ac_ext=c
2732ac_cpp='$CPP $CPPFLAGS'
2733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736
2737ac_aux_dir=
2738for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2739  if test -f "$ac_dir/install-sh"; then
2740    ac_aux_dir=$ac_dir
2741    ac_install_sh="$ac_aux_dir/install-sh -c"
2742    break
2743  elif test -f "$ac_dir/install.sh"; then
2744    ac_aux_dir=$ac_dir
2745    ac_install_sh="$ac_aux_dir/install.sh -c"
2746    break
2747  elif test -f "$ac_dir/shtool"; then
2748    ac_aux_dir=$ac_dir
2749    ac_install_sh="$ac_aux_dir/shtool install -c"
2750    break
2751  fi
2752done
2753if test -z "$ac_aux_dir"; then
2754  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2755echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2756   { (exit 1); exit 1; }; }
2757fi
2758
2759# These three variables are undocumented and unsupported,
2760# and are intended to be withdrawn in a future Autoconf release.
2761# They can cause serious problems if a builder's source tree is in a directory
2762# whose full name contains unusual characters.
2763ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2764ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2765ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2766
2767
2768# Make sure we can run config.sub.
2769$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2770  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2771echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2772   { (exit 1); exit 1; }; }
2773
2774{ echo "$as_me:$LINENO: checking build system type" >&5
2775echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2776if test "${ac_cv_build+set}" = set; then
2777  echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779  ac_build_alias=$build_alias
2780test "x$ac_build_alias" = x &&
2781  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782test "x$ac_build_alias" = x &&
2783  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2784echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2785   { (exit 1); exit 1; }; }
2786ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2787  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2788echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2789   { (exit 1); exit 1; }; }
2790
2791fi
2792{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2793echo "${ECHO_T}$ac_cv_build" >&6; }
2794case $ac_cv_build in
2795*-*-*) ;;
2796*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2797echo "$as_me: error: invalid value of canonical build" >&2;}
2798   { (exit 1); exit 1; }; };;
2799esac
2800build=$ac_cv_build
2801ac_save_IFS=$IFS; IFS='-'
2802set x $ac_cv_build
2803shift
2804build_cpu=$1
2805build_vendor=$2
2806shift; shift
2807# Remember, the first character of IFS is used to create $*,
2808# except with old shells:
2809build_os=$*
2810IFS=$ac_save_IFS
2811case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2812
2813
2814{ echo "$as_me:$LINENO: checking host system type" >&5
2815echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2816if test "${ac_cv_host+set}" = set; then
2817  echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819  if test "x$host_alias" = x; then
2820  ac_cv_host=$ac_cv_build
2821else
2822  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2823    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2824echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2825   { (exit 1); exit 1; }; }
2826fi
2827
2828fi
2829{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2830echo "${ECHO_T}$ac_cv_host" >&6; }
2831case $ac_cv_host in
2832*-*-*) ;;
2833*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2834echo "$as_me: error: invalid value of canonical host" >&2;}
2835   { (exit 1); exit 1; }; };;
2836esac
2837host=$ac_cv_host
2838ac_save_IFS=$IFS; IFS='-'
2839set x $ac_cv_host
2840shift
2841host_cpu=$1
2842host_vendor=$2
2843shift; shift
2844# Remember, the first character of IFS is used to create $*,
2845# except with old shells:
2846host_os=$*
2847IFS=$ac_save_IFS
2848case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2849
2850
2851
2852ac_ext=c
2853ac_cpp='$CPP $CPPFLAGS'
2854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2858echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2859# On Suns, sometimes $CPP names a directory.
2860if test -n "$CPP" && test -d "$CPP"; then
2861  CPP=
2862fi
2863if test -z "$CPP"; then
2864  if test "${ac_cv_prog_CPP+set}" = set; then
2865  echo $ECHO_N "(cached) $ECHO_C" >&6
2866else
2867      # Double quotes because CPP needs to be expanded
2868    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2869    do
2870      ac_preproc_ok=false
2871for ac_c_preproc_warn_flag in '' yes
2872do
2873  # Use a header file that comes with gcc, so configuring glibc
2874  # with a fresh cross-compiler works.
2875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2876  # <limits.h> exists even on freestanding compilers.
2877  # On the NeXT, cc -E runs the code through the compiler's parser,
2878  # not just through cpp. "Syntax error" is here to catch this case.
2879  cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h.  */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h.  */
2885#ifdef __STDC__
2886# include <limits.h>
2887#else
2888# include <assert.h>
2889#endif
2890		     Syntax error
2891_ACEOF
2892if { (ac_try="$ac_cpp conftest.$ac_ext"
2893case "(($ac_try" in
2894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895  *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2899  ac_status=$?
2900  grep -v '^ *+' conftest.er1 >conftest.err
2901  rm -f conftest.er1
2902  cat conftest.err >&5
2903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); } >/dev/null && {
2905	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2906	 test ! -s conftest.err
2907       }; then
2908  :
2909else
2910  echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913  # Broken: fails on valid input.
2914continue
2915fi
2916
2917rm -f conftest.err conftest.$ac_ext
2918
2919  # OK, works on sane cases.  Now check whether nonexistent headers
2920  # can be detected and how.
2921  cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h.  */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h.  */
2927#include <ac_nonexistent.h>
2928_ACEOF
2929if { (ac_try="$ac_cpp conftest.$ac_ext"
2930case "(($ac_try" in
2931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932  *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2936  ac_status=$?
2937  grep -v '^ *+' conftest.er1 >conftest.err
2938  rm -f conftest.er1
2939  cat conftest.err >&5
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); } >/dev/null && {
2942	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2943	 test ! -s conftest.err
2944       }; then
2945  # Broken: success on invalid input.
2946continue
2947else
2948  echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951  # Passes both tests.
2952ac_preproc_ok=:
2953break
2954fi
2955
2956rm -f conftest.err conftest.$ac_ext
2957
2958done
2959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2960rm -f conftest.err conftest.$ac_ext
2961if $ac_preproc_ok; then
2962  break
2963fi
2964
2965    done
2966    ac_cv_prog_CPP=$CPP
2967
2968fi
2969  CPP=$ac_cv_prog_CPP
2970else
2971  ac_cv_prog_CPP=$CPP
2972fi
2973{ echo "$as_me:$LINENO: result: $CPP" >&5
2974echo "${ECHO_T}$CPP" >&6; }
2975ac_preproc_ok=false
2976for ac_c_preproc_warn_flag in '' yes
2977do
2978  # Use a header file that comes with gcc, so configuring glibc
2979  # with a fresh cross-compiler works.
2980  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981  # <limits.h> exists even on freestanding compilers.
2982  # On the NeXT, cc -E runs the code through the compiler's parser,
2983  # not just through cpp. "Syntax error" is here to catch this case.
2984  cat >conftest.$ac_ext <<_ACEOF
2985/* confdefs.h.  */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h.  */
2990#ifdef __STDC__
2991# include <limits.h>
2992#else
2993# include <assert.h>
2994#endif
2995		     Syntax error
2996_ACEOF
2997if { (ac_try="$ac_cpp conftest.$ac_ext"
2998case "(($ac_try" in
2999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000  *) ac_try_echo=$ac_try;;
3001esac
3002eval "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 && {
3010	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3011	 test ! -s conftest.err
3012       }; then
3013  :
3014else
3015  echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018  # Broken: fails on valid input.
3019continue
3020fi
3021
3022rm -f conftest.err conftest.$ac_ext
3023
3024  # OK, works on sane cases.  Now check whether nonexistent headers
3025  # can be detected and how.
3026  cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h.  */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h.  */
3032#include <ac_nonexistent.h>
3033_ACEOF
3034if { (ac_try="$ac_cpp conftest.$ac_ext"
3035case "(($ac_try" in
3036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037  *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3041  ac_status=$?
3042  grep -v '^ *+' conftest.er1 >conftest.err
3043  rm -f conftest.er1
3044  cat conftest.err >&5
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); } >/dev/null && {
3047	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3048	 test ! -s conftest.err
3049       }; then
3050  # Broken: success on invalid input.
3051continue
3052else
3053  echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056  # Passes both tests.
3057ac_preproc_ok=:
3058break
3059fi
3060
3061rm -f conftest.err conftest.$ac_ext
3062
3063done
3064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065rm -f conftest.err conftest.$ac_ext
3066if $ac_preproc_ok; then
3067  :
3068else
3069  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3070See \`config.log' for more details." >&5
3071echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3072See \`config.log' for more details." >&2;}
3073   { (exit 1); exit 1; }; }
3074fi
3075
3076ac_ext=c
3077ac_cpp='$CPP $CPPFLAGS'
3078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081
3082
3083{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3084echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3085if test "${ac_cv_path_GREP+set}" = set; then
3086  echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088  # Extract the first word of "grep ggrep" to use in msg output
3089if test -z "$GREP"; then
3090set dummy grep ggrep; ac_prog_name=$2
3091if test "${ac_cv_path_GREP+set}" = set; then
3092  echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094  ac_path_GREP_found=false
3095# Loop through the user's path and test for each of PROGNAME-LIST
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3098do
3099  IFS=$as_save_IFS
3100  test -z "$as_dir" && as_dir=.
3101  for ac_prog in grep ggrep; do
3102  for ac_exec_ext in '' $ac_executable_extensions; do
3103    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3104    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3105    # Check for GNU ac_path_GREP and select it if it is found.
3106  # Check for GNU $ac_path_GREP
3107case `"$ac_path_GREP" --version 2>&1` in
3108*GNU*)
3109  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3110*)
3111  ac_count=0
3112  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3113  while :
3114  do
3115    cat "conftest.in" "conftest.in" >"conftest.tmp"
3116    mv "conftest.tmp" "conftest.in"
3117    cp "conftest.in" "conftest.nl"
3118    echo 'GREP' >> "conftest.nl"
3119    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3120    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3121    ac_count=`expr $ac_count + 1`
3122    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3123      # Best one so far, save it but keep looking for a better one
3124      ac_cv_path_GREP="$ac_path_GREP"
3125      ac_path_GREP_max=$ac_count
3126    fi
3127    # 10*(2^10) chars as input seems more than enough
3128    test $ac_count -gt 10 && break
3129  done
3130  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3131esac
3132
3133
3134    $ac_path_GREP_found && break 3
3135  done
3136done
3137
3138done
3139IFS=$as_save_IFS
3140
3141
3142fi
3143
3144GREP="$ac_cv_path_GREP"
3145if test -z "$GREP"; then
3146  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3147echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3148   { (exit 1); exit 1; }; }
3149fi
3150
3151else
3152  ac_cv_path_GREP=$GREP
3153fi
3154
3155
3156fi
3157{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3158echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3159 GREP="$ac_cv_path_GREP"
3160
3161
3162{ echo "$as_me:$LINENO: checking for egrep" >&5
3163echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3164if test "${ac_cv_path_EGREP+set}" = set; then
3165  echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3168   then ac_cv_path_EGREP="$GREP -E"
3169   else
3170     # Extract the first word of "egrep" to use in msg output
3171if test -z "$EGREP"; then
3172set dummy egrep; ac_prog_name=$2
3173if test "${ac_cv_path_EGREP+set}" = set; then
3174  echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176  ac_path_EGREP_found=false
3177# Loop through the user's path and test for each of PROGNAME-LIST
3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3180do
3181  IFS=$as_save_IFS
3182  test -z "$as_dir" && as_dir=.
3183  for ac_prog in egrep; do
3184  for ac_exec_ext in '' $ac_executable_extensions; do
3185    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3186    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3187    # Check for GNU ac_path_EGREP and select it if it is found.
3188  # Check for GNU $ac_path_EGREP
3189case `"$ac_path_EGREP" --version 2>&1` in
3190*GNU*)
3191  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3192*)
3193  ac_count=0
3194  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3195  while :
3196  do
3197    cat "conftest.in" "conftest.in" >"conftest.tmp"
3198    mv "conftest.tmp" "conftest.in"
3199    cp "conftest.in" "conftest.nl"
3200    echo 'EGREP' >> "conftest.nl"
3201    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3202    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3203    ac_count=`expr $ac_count + 1`
3204    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3205      # Best one so far, save it but keep looking for a better one
3206      ac_cv_path_EGREP="$ac_path_EGREP"
3207      ac_path_EGREP_max=$ac_count
3208    fi
3209    # 10*(2^10) chars as input seems more than enough
3210    test $ac_count -gt 10 && break
3211  done
3212  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3213esac
3214
3215
3216    $ac_path_EGREP_found && break 3
3217  done
3218done
3219
3220done
3221IFS=$as_save_IFS
3222
3223
3224fi
3225
3226EGREP="$ac_cv_path_EGREP"
3227if test -z "$EGREP"; then
3228  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3229echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3230   { (exit 1); exit 1; }; }
3231fi
3232
3233else
3234  ac_cv_path_EGREP=$EGREP
3235fi
3236
3237
3238   fi
3239fi
3240{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3241echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3242 EGREP="$ac_cv_path_EGREP"
3243
3244
3245{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3246echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3247if test "${ac_cv_header_stdc+set}" = set; then
3248  echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250  cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h.  */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h.  */
3256#include <stdlib.h>
3257#include <stdarg.h>
3258#include <string.h>
3259#include <float.h>
3260
3261int
3262main ()
3263{
3264
3265  ;
3266  return 0;
3267}
3268_ACEOF
3269rm -f conftest.$ac_objext
3270if { (ac_try="$ac_compile"
3271case "(($ac_try" in
3272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273  *) ac_try_echo=$ac_try;;
3274esac
3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276  (eval "$ac_compile") 2>conftest.er1
3277  ac_status=$?
3278  grep -v '^ *+' conftest.er1 >conftest.err
3279  rm -f conftest.er1
3280  cat conftest.err >&5
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); } && {
3283	 test -z "$ac_c_werror_flag" ||
3284	 test ! -s conftest.err
3285       } && test -s conftest.$ac_objext; then
3286  ac_cv_header_stdc=yes
3287else
3288  echo "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
3291	ac_cv_header_stdc=no
3292fi
3293
3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295
3296if test $ac_cv_header_stdc = yes; then
3297  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3298  cat >conftest.$ac_ext <<_ACEOF
3299/* confdefs.h.  */
3300_ACEOF
3301cat confdefs.h >>conftest.$ac_ext
3302cat >>conftest.$ac_ext <<_ACEOF
3303/* end confdefs.h.  */
3304#include <string.h>
3305
3306_ACEOF
3307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308  $EGREP "memchr" >/dev/null 2>&1; then
3309  :
3310else
3311  ac_cv_header_stdc=no
3312fi
3313rm -f conftest*
3314
3315fi
3316
3317if test $ac_cv_header_stdc = yes; then
3318  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3319  cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h.  */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h.  */
3325#include <stdlib.h>
3326
3327_ACEOF
3328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329  $EGREP "free" >/dev/null 2>&1; then
3330  :
3331else
3332  ac_cv_header_stdc=no
3333fi
3334rm -f conftest*
3335
3336fi
3337
3338if test $ac_cv_header_stdc = yes; then
3339  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3340  if test "$cross_compiling" = yes; then
3341  :
3342else
3343  cat >conftest.$ac_ext <<_ACEOF
3344/* confdefs.h.  */
3345_ACEOF
3346cat confdefs.h >>conftest.$ac_ext
3347cat >>conftest.$ac_ext <<_ACEOF
3348/* end confdefs.h.  */
3349#include <ctype.h>
3350#include <stdlib.h>
3351#if ((' ' & 0x0FF) == 0x020)
3352# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3353# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3354#else
3355# define ISLOWER(c) \
3356		   (('a' <= (c) && (c) <= 'i') \
3357		     || ('j' <= (c) && (c) <= 'r') \
3358		     || ('s' <= (c) && (c) <= 'z'))
3359# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3360#endif
3361
3362#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3363int
3364main ()
3365{
3366  int i;
3367  for (i = 0; i < 256; i++)
3368    if (XOR (islower (i), ISLOWER (i))
3369	|| toupper (i) != TOUPPER (i))
3370      return 2;
3371  return 0;
3372}
3373_ACEOF
3374rm -f conftest$ac_exeext
3375if { (ac_try="$ac_link"
3376case "(($ac_try" in
3377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378  *) ac_try_echo=$ac_try;;
3379esac
3380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381  (eval "$ac_link") 2>&5
3382  ac_status=$?
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3385  { (case "(($ac_try" in
3386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387  *) ac_try_echo=$ac_try;;
3388esac
3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390  (eval "$ac_try") 2>&5
3391  ac_status=$?
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); }; }; then
3394  :
3395else
3396  echo "$as_me: program exited with status $ac_status" >&5
3397echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400( exit $ac_status )
3401ac_cv_header_stdc=no
3402fi
3403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3404fi
3405
3406
3407fi
3408fi
3409{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3410echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3411if test $ac_cv_header_stdc = yes; then
3412
3413cat >>confdefs.h <<\_ACEOF
3414#define STDC_HEADERS 1
3415_ACEOF
3416
3417fi
3418
3419# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3430		  inttypes.h stdint.h unistd.h
3431do
3432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3433{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3436  echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438  cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h.  */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h.  */
3444$ac_includes_default
3445
3446#include <$ac_header>
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (ac_try="$ac_compile"
3450case "(($ac_try" in
3451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452  *) ac_try_echo=$ac_try;;
3453esac
3454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455  (eval "$ac_compile") 2>conftest.er1
3456  ac_status=$?
3457  grep -v '^ *+' conftest.er1 >conftest.err
3458  rm -f conftest.er1
3459  cat conftest.err >&5
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); } && {
3462	 test -z "$ac_c_werror_flag" ||
3463	 test ! -s conftest.err
3464       } && test -s conftest.$ac_objext; then
3465  eval "$as_ac_Header=yes"
3466else
3467  echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470	eval "$as_ac_Header=no"
3471fi
3472
3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474fi
3475ac_res=`eval echo '${'$as_ac_Header'}'`
3476	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3477echo "${ECHO_T}$ac_res" >&6; }
3478if test `eval echo '${'$as_ac_Header'}'` = yes; then
3479  cat >>confdefs.h <<_ACEOF
3480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3481_ACEOF
3482
3483fi
3484
3485done
3486
3487
3488{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3489echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3490if test "${ac_cv_c_bigendian+set}" = set; then
3491  echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493  # See if sys/param.h defines the BYTE_ORDER macro.
3494cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h.  */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
3499/* end confdefs.h.  */
3500#include <sys/types.h>
3501#include <sys/param.h>
3502
3503int
3504main ()
3505{
3506#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3507	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3508 bogus endian macros
3509#endif
3510
3511  ;
3512  return 0;
3513}
3514_ACEOF
3515rm -f conftest.$ac_objext
3516if { (ac_try="$ac_compile"
3517case "(($ac_try" in
3518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519  *) ac_try_echo=$ac_try;;
3520esac
3521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522  (eval "$ac_compile") 2>conftest.er1
3523  ac_status=$?
3524  grep -v '^ *+' conftest.er1 >conftest.err
3525  rm -f conftest.er1
3526  cat conftest.err >&5
3527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528  (exit $ac_status); } && {
3529	 test -z "$ac_c_werror_flag" ||
3530	 test ! -s conftest.err
3531       } && test -s conftest.$ac_objext; then
3532  # It does; now see whether it defined to BIG_ENDIAN or not.
3533cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h.  */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h.  */
3539#include <sys/types.h>
3540#include <sys/param.h>
3541
3542int
3543main ()
3544{
3545#if BYTE_ORDER != BIG_ENDIAN
3546 not big endian
3547#endif
3548
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
3554if { (ac_try="$ac_compile"
3555case "(($ac_try" in
3556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557  *) ac_try_echo=$ac_try;;
3558esac
3559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560  (eval "$ac_compile") 2>conftest.er1
3561  ac_status=$?
3562  grep -v '^ *+' conftest.er1 >conftest.err
3563  rm -f conftest.er1
3564  cat conftest.err >&5
3565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566  (exit $ac_status); } && {
3567	 test -z "$ac_c_werror_flag" ||
3568	 test ! -s conftest.err
3569       } && test -s conftest.$ac_objext; then
3570  ac_cv_c_bigendian=yes
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575	ac_cv_c_bigendian=no
3576fi
3577
3578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579else
3580  echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583	# It does not; compile a test program.
3584if test "$cross_compiling" = yes; then
3585  # try to guess the endianness by grepping values into an object file
3586  ac_cv_c_bigendian=unknown
3587  cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h.  */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h.  */
3593short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3594short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3595void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3596short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3597short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3598void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3599int
3600main ()
3601{
3602 _ascii (); _ebcdic ();
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext
3608if { (ac_try="$ac_compile"
3609case "(($ac_try" in
3610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611  *) ac_try_echo=$ac_try;;
3612esac
3613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614  (eval "$ac_compile") 2>conftest.er1
3615  ac_status=$?
3616  grep -v '^ *+' conftest.er1 >conftest.err
3617  rm -f conftest.er1
3618  cat conftest.err >&5
3619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620  (exit $ac_status); } && {
3621	 test -z "$ac_c_werror_flag" ||
3622	 test ! -s conftest.err
3623       } && test -s conftest.$ac_objext; then
3624  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3625  ac_cv_c_bigendian=yes
3626fi
3627if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3628  if test "$ac_cv_c_bigendian" = unknown; then
3629    ac_cv_c_bigendian=no
3630  else
3631    # finding both strings is unlikely to happen, but who knows?
3632    ac_cv_c_bigendian=unknown
3633  fi
3634fi
3635else
3636  echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639
3640fi
3641
3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643else
3644  cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h.  */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h.  */
3650$ac_includes_default
3651int
3652main ()
3653{
3654
3655  /* Are we little or big endian?  From Harbison&Steele.  */
3656  union
3657  {
3658    long int l;
3659    char c[sizeof (long int)];
3660  } u;
3661  u.l = 1;
3662  return u.c[sizeof (long int) - 1] == 1;
3663
3664  ;
3665  return 0;
3666}
3667_ACEOF
3668rm -f conftest$ac_exeext
3669if { (ac_try="$ac_link"
3670case "(($ac_try" in
3671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672  *) ac_try_echo=$ac_try;;
3673esac
3674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675  (eval "$ac_link") 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3679  { (case "(($ac_try" in
3680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681  *) ac_try_echo=$ac_try;;
3682esac
3683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684  (eval "$ac_try") 2>&5
3685  ac_status=$?
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); }; }; then
3688  ac_cv_c_bigendian=no
3689else
3690  echo "$as_me: program exited with status $ac_status" >&5
3691echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694( exit $ac_status )
3695ac_cv_c_bigendian=yes
3696fi
3697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3698fi
3699
3700
3701fi
3702
3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704fi
3705{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3706echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3707case $ac_cv_c_bigendian in
3708  yes)
3709
3710cat >>confdefs.h <<\_ACEOF
3711#define WORDS_BIGENDIAN 1
3712_ACEOF
3713 ;;
3714  no)
3715     ;;
3716  *)
3717    { { echo "$as_me:$LINENO: error: unknown endianness
3718presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3719echo "$as_me: error: unknown endianness
3720presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3721   { (exit 1); exit 1; }; } ;;
3722esac
3723
3724
3725# Checks for programs.
3726for ac_prog in gawk mawk nawk awk
3727do
3728  # Extract the first word of "$ac_prog", so it can be a program name with args.
3729set dummy $ac_prog; ac_word=$2
3730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3732if test "${ac_cv_prog_AWK+set}" = set; then
3733  echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735  if test -n "$AWK"; then
3736  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3737else
3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH
3740do
3741  IFS=$as_save_IFS
3742  test -z "$as_dir" && as_dir=.
3743  for ac_exec_ext in '' $ac_executable_extensions; do
3744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745    ac_cv_prog_AWK="$ac_prog"
3746    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747    break 2
3748  fi
3749done
3750done
3751IFS=$as_save_IFS
3752
3753fi
3754fi
3755AWK=$ac_cv_prog_AWK
3756if test -n "$AWK"; then
3757  { echo "$as_me:$LINENO: result: $AWK" >&5
3758echo "${ECHO_T}$AWK" >&6; }
3759else
3760  { echo "$as_me:$LINENO: result: no" >&5
3761echo "${ECHO_T}no" >&6; }
3762fi
3763
3764
3765  test -n "$AWK" && break
3766done
3767
3768ac_ext=c
3769ac_cpp='$CPP $CPPFLAGS'
3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3774echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3775# On Suns, sometimes $CPP names a directory.
3776if test -n "$CPP" && test -d "$CPP"; then
3777  CPP=
3778fi
3779if test -z "$CPP"; then
3780  if test "${ac_cv_prog_CPP+set}" = set; then
3781  echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783      # Double quotes because CPP needs to be expanded
3784    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3785    do
3786      ac_preproc_ok=false
3787for ac_c_preproc_warn_flag in '' yes
3788do
3789  # Use a header file that comes with gcc, so configuring glibc
3790  # with a fresh cross-compiler works.
3791  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792  # <limits.h> exists even on freestanding compilers.
3793  # On the NeXT, cc -E runs the code through the compiler's parser,
3794  # not just through cpp. "Syntax error" is here to catch this case.
3795  cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h.  */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h.  */
3801#ifdef __STDC__
3802# include <limits.h>
3803#else
3804# include <assert.h>
3805#endif
3806		     Syntax error
3807_ACEOF
3808if { (ac_try="$ac_cpp conftest.$ac_ext"
3809case "(($ac_try" in
3810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811  *) ac_try_echo=$ac_try;;
3812esac
3813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3815  ac_status=$?
3816  grep -v '^ *+' conftest.er1 >conftest.err
3817  rm -f conftest.er1
3818  cat conftest.err >&5
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); } >/dev/null && {
3821	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822	 test ! -s conftest.err
3823       }; then
3824  :
3825else
3826  echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829  # Broken: fails on valid input.
3830continue
3831fi
3832
3833rm -f conftest.err conftest.$ac_ext
3834
3835  # OK, works on sane cases.  Now check whether nonexistent headers
3836  # can be detected and how.
3837  cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h.  */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h.  */
3843#include <ac_nonexistent.h>
3844_ACEOF
3845if { (ac_try="$ac_cpp conftest.$ac_ext"
3846case "(($ac_try" in
3847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848  *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3852  ac_status=$?
3853  grep -v '^ *+' conftest.er1 >conftest.err
3854  rm -f conftest.er1
3855  cat conftest.err >&5
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); } >/dev/null && {
3858	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3859	 test ! -s conftest.err
3860       }; then
3861  # Broken: success on invalid input.
3862continue
3863else
3864  echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867  # Passes both tests.
3868ac_preproc_ok=:
3869break
3870fi
3871
3872rm -f conftest.err conftest.$ac_ext
3873
3874done
3875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876rm -f conftest.err conftest.$ac_ext
3877if $ac_preproc_ok; then
3878  break
3879fi
3880
3881    done
3882    ac_cv_prog_CPP=$CPP
3883
3884fi
3885  CPP=$ac_cv_prog_CPP
3886else
3887  ac_cv_prog_CPP=$CPP
3888fi
3889{ echo "$as_me:$LINENO: result: $CPP" >&5
3890echo "${ECHO_T}$CPP" >&6; }
3891ac_preproc_ok=false
3892for ac_c_preproc_warn_flag in '' yes
3893do
3894  # Use a header file that comes with gcc, so configuring glibc
3895  # with a fresh cross-compiler works.
3896  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897  # <limits.h> exists even on freestanding compilers.
3898  # On the NeXT, cc -E runs the code through the compiler's parser,
3899  # not just through cpp. "Syntax error" is here to catch this case.
3900  cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h.  */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h.  */
3906#ifdef __STDC__
3907# include <limits.h>
3908#else
3909# include <assert.h>
3910#endif
3911		     Syntax error
3912_ACEOF
3913if { (ac_try="$ac_cpp conftest.$ac_ext"
3914case "(($ac_try" in
3915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916  *) ac_try_echo=$ac_try;;
3917esac
3918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3920  ac_status=$?
3921  grep -v '^ *+' conftest.er1 >conftest.err
3922  rm -f conftest.er1
3923  cat conftest.err >&5
3924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925  (exit $ac_status); } >/dev/null && {
3926	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927	 test ! -s conftest.err
3928       }; then
3929  :
3930else
3931  echo "$as_me: failed program was:" >&5
3932sed 's/^/| /' conftest.$ac_ext >&5
3933
3934  # Broken: fails on valid input.
3935continue
3936fi
3937
3938rm -f conftest.err conftest.$ac_ext
3939
3940  # OK, works on sane cases.  Now check whether nonexistent headers
3941  # can be detected and how.
3942  cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h.  */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h.  */
3948#include <ac_nonexistent.h>
3949_ACEOF
3950if { (ac_try="$ac_cpp conftest.$ac_ext"
3951case "(($ac_try" in
3952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953  *) ac_try_echo=$ac_try;;
3954esac
3955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3957  ac_status=$?
3958  grep -v '^ *+' conftest.er1 >conftest.err
3959  rm -f conftest.er1
3960  cat conftest.err >&5
3961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962  (exit $ac_status); } >/dev/null && {
3963	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3964	 test ! -s conftest.err
3965       }; then
3966  # Broken: success on invalid input.
3967continue
3968else
3969  echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972  # Passes both tests.
3973ac_preproc_ok=:
3974break
3975fi
3976
3977rm -f conftest.err conftest.$ac_ext
3978
3979done
3980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3981rm -f conftest.err conftest.$ac_ext
3982if $ac_preproc_ok; then
3983  :
3984else
3985  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3986See \`config.log' for more details." >&5
3987echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3988See \`config.log' for more details." >&2;}
3989   { (exit 1); exit 1; }; }
3990fi
3991
3992ac_ext=c
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998if test -n "$ac_tool_prefix"; then
3999  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4003if test "${ac_cv_prog_RANLIB+set}" = set; then
4004  echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006  if test -n "$RANLIB"; then
4007  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4008else
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012  IFS=$as_save_IFS
4013  test -z "$as_dir" && as_dir=.
4014  for ac_exec_ext in '' $ac_executable_extensions; do
4015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4017    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018    break 2
4019  fi
4020done
4021done
4022IFS=$as_save_IFS
4023
4024fi
4025fi
4026RANLIB=$ac_cv_prog_RANLIB
4027if test -n "$RANLIB"; then
4028  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4029echo "${ECHO_T}$RANLIB" >&6; }
4030else
4031  { echo "$as_me:$LINENO: result: no" >&5
4032echo "${ECHO_T}no" >&6; }
4033fi
4034
4035
4036fi
4037if test -z "$ac_cv_prog_RANLIB"; then
4038  ac_ct_RANLIB=$RANLIB
4039  # Extract the first word of "ranlib", so it can be a program name with args.
4040set dummy ranlib; ac_word=$2
4041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4043if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4044  echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046  if test -n "$ac_ct_RANLIB"; then
4047  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  test -z "$as_dir" && as_dir=.
4054  for ac_exec_ext in '' $ac_executable_extensions; do
4055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056    ac_cv_prog_ac_ct_RANLIB="ranlib"
4057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058    break 2
4059  fi
4060done
4061done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4067if test -n "$ac_ct_RANLIB"; then
4068  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4069echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4070else
4071  { echo "$as_me:$LINENO: result: no" >&5
4072echo "${ECHO_T}no" >&6; }
4073fi
4074
4075  if test "x$ac_ct_RANLIB" = x; then
4076    RANLIB=":"
4077  else
4078    case $cross_compiling:$ac_tool_warned in
4079yes:)
4080{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4081whose name does not start with the host triplet.  If you think this
4082configuration is useful to you, please write to autoconf@gnu.org." >&5
4083echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4084whose name does not start with the host triplet.  If you think this
4085configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4086ac_tool_warned=yes ;;
4087esac
4088    RANLIB=$ac_ct_RANLIB
4089  fi
4090else
4091  RANLIB="$ac_cv_prog_RANLIB"
4092fi
4093
4094# Find a good install program.  We prefer a C program (faster),
4095# so one script is as good as another.  But avoid the broken or
4096# incompatible versions:
4097# SysV /etc/install, /usr/sbin/install
4098# SunOS /usr/etc/install
4099# IRIX /sbin/install
4100# AIX /bin/install
4101# AmigaOS /C/install, which installs bootblocks on floppy discs
4102# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4103# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4104# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4105# OS/2's system install, which has a completely different semantic
4106# ./install, which can be erroneously created by make from ./install.sh.
4107{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4108echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4109if test -z "$INSTALL"; then
4110if test "${ac_cv_path_install+set}" = set; then
4111  echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114for as_dir in $PATH
4115do
4116  IFS=$as_save_IFS
4117  test -z "$as_dir" && as_dir=.
4118  # Account for people who put trailing slashes in PATH elements.
4119case $as_dir/ in
4120  ./ | .// | /cC/* | \
4121  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4122  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4123  /usr/ucb/* ) ;;
4124  *)
4125    # OSF1 and SCO ODT 3.0 have their own names for install.
4126    # Don't use installbsd from OSF since it installs stuff as root
4127    # by default.
4128    for ac_prog in ginstall scoinst install; do
4129      for ac_exec_ext in '' $ac_executable_extensions; do
4130	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4131	  if test $ac_prog = install &&
4132	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133	    # AIX install.  It has an incompatible calling convention.
4134	    :
4135	  elif test $ac_prog = install &&
4136	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4137	    # program-specific install script used by HP pwplus--don't use.
4138	    :
4139	  else
4140	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4141	    break 3
4142	  fi
4143	fi
4144      done
4145    done
4146    ;;
4147esac
4148done
4149IFS=$as_save_IFS
4150
4151
4152fi
4153  if test "${ac_cv_path_install+set}" = set; then
4154    INSTALL=$ac_cv_path_install
4155  else
4156    # As a last resort, use the slow shell script.  Don't cache a
4157    # value for INSTALL within a source directory, because that will
4158    # break other packages using the cache if that directory is
4159    # removed, or if the value is a relative name.
4160    INSTALL=$ac_install_sh
4161  fi
4162fi
4163{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4164echo "${ECHO_T}$INSTALL" >&6; }
4165
4166# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4167# It thinks the first close brace ends the variable substitution.
4168test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4169
4170test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4171
4172test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4173
4174{ echo "$as_me:$LINENO: checking for egrep" >&5
4175echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4176if test "${ac_cv_path_EGREP+set}" = set; then
4177  echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4180   then ac_cv_path_EGREP="$GREP -E"
4181   else
4182     # Extract the first word of "egrep" to use in msg output
4183if test -z "$EGREP"; then
4184set dummy egrep; ac_prog_name=$2
4185if test "${ac_cv_path_EGREP+set}" = set; then
4186  echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188  ac_path_EGREP_found=false
4189# Loop through the user's path and test for each of PROGNAME-LIST
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192do
4193  IFS=$as_save_IFS
4194  test -z "$as_dir" && as_dir=.
4195  for ac_prog in egrep; do
4196  for ac_exec_ext in '' $ac_executable_extensions; do
4197    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4198    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4199    # Check for GNU ac_path_EGREP and select it if it is found.
4200  # Check for GNU $ac_path_EGREP
4201case `"$ac_path_EGREP" --version 2>&1` in
4202*GNU*)
4203  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4204*)
4205  ac_count=0
4206  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4207  while :
4208  do
4209    cat "conftest.in" "conftest.in" >"conftest.tmp"
4210    mv "conftest.tmp" "conftest.in"
4211    cp "conftest.in" "conftest.nl"
4212    echo 'EGREP' >> "conftest.nl"
4213    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215    ac_count=`expr $ac_count + 1`
4216    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4217      # Best one so far, save it but keep looking for a better one
4218      ac_cv_path_EGREP="$ac_path_EGREP"
4219      ac_path_EGREP_max=$ac_count
4220    fi
4221    # 10*(2^10) chars as input seems more than enough
4222    test $ac_count -gt 10 && break
4223  done
4224  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225esac
4226
4227
4228    $ac_path_EGREP_found && break 3
4229  done
4230done
4231
4232done
4233IFS=$as_save_IFS
4234
4235
4236fi
4237
4238EGREP="$ac_cv_path_EGREP"
4239if test -z "$EGREP"; then
4240  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4241echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4242   { (exit 1); exit 1; }; }
4243fi
4244
4245else
4246  ac_cv_path_EGREP=$EGREP
4247fi
4248
4249
4250   fi
4251fi
4252{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4253echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4254 EGREP="$ac_cv_path_EGREP"
4255
4256
4257if test -n "$ac_tool_prefix"; then
4258  for ac_prog in ar
4259  do
4260    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264if test "${ac_cv_prog_AR+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  if test -n "$AR"; then
4268  ac_cv_prog_AR="$AR" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273  IFS=$as_save_IFS
4274  test -z "$as_dir" && as_dir=.
4275  for ac_exec_ext in '' $ac_executable_extensions; do
4276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279    break 2
4280  fi
4281done
4282done
4283IFS=$as_save_IFS
4284
4285fi
4286fi
4287AR=$ac_cv_prog_AR
4288if test -n "$AR"; then
4289  { echo "$as_me:$LINENO: result: $AR" >&5
4290echo "${ECHO_T}$AR" >&6; }
4291else
4292  { echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6; }
4294fi
4295
4296
4297    test -n "$AR" && break
4298  done
4299fi
4300if test -z "$AR"; then
4301  ac_ct_AR=$AR
4302  for ac_prog in ar
4303do
4304  # Extract the first word of "$ac_prog", so it can be a program name with args.
4305set dummy $ac_prog; ac_word=$2
4306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4309  echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311  if test -n "$ac_ct_AR"; then
4312  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4313else
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317  IFS=$as_save_IFS
4318  test -z "$as_dir" && as_dir=.
4319  for ac_exec_ext in '' $ac_executable_extensions; do
4320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321    ac_cv_prog_ac_ct_AR="$ac_prog"
4322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323    break 2
4324  fi
4325done
4326done
4327IFS=$as_save_IFS
4328
4329fi
4330fi
4331ac_ct_AR=$ac_cv_prog_ac_ct_AR
4332if test -n "$ac_ct_AR"; then
4333  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4334echo "${ECHO_T}$ac_ct_AR" >&6; }
4335else
4336  { echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6; }
4338fi
4339
4340
4341  test -n "$ac_ct_AR" && break
4342done
4343
4344  if test "x$ac_ct_AR" = x; then
4345    AR=""
4346  else
4347    case $cross_compiling:$ac_tool_warned in
4348yes:)
4349{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4350whose name does not start with the host triplet.  If you think this
4351configuration is useful to you, please write to autoconf@gnu.org." >&5
4352echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4353whose name does not start with the host triplet.  If you think this
4354configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4355ac_tool_warned=yes ;;
4356esac
4357    AR=$ac_ct_AR
4358  fi
4359fi
4360
4361# Extract the first word of "cat", so it can be a program name with args.
4362set dummy cat; ac_word=$2
4363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365if test "${ac_cv_path_CAT+set}" = set; then
4366  echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368  case $CAT in
4369  [\\/]* | ?:[\\/]*)
4370  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4371  ;;
4372  *)
4373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376  IFS=$as_save_IFS
4377  test -z "$as_dir" && as_dir=.
4378  for ac_exec_ext in '' $ac_executable_extensions; do
4379  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4381    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382    break 2
4383  fi
4384done
4385done
4386IFS=$as_save_IFS
4387
4388  ;;
4389esac
4390fi
4391CAT=$ac_cv_path_CAT
4392if test -n "$CAT"; then
4393  { echo "$as_me:$LINENO: result: $CAT" >&5
4394echo "${ECHO_T}$CAT" >&6; }
4395else
4396  { echo "$as_me:$LINENO: result: no" >&5
4397echo "${ECHO_T}no" >&6; }
4398fi
4399
4400
4401# Extract the first word of "kill", so it can be a program name with args.
4402set dummy kill; ac_word=$2
4403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405if test "${ac_cv_path_KILL+set}" = set; then
4406  echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408  case $KILL in
4409  [\\/]* | ?:[\\/]*)
4410  ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4411  ;;
4412  *)
4413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418  for ac_exec_ext in '' $ac_executable_extensions; do
4419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420    ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4421    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422    break 2
4423  fi
4424done
4425done
4426IFS=$as_save_IFS
4427
4428  ;;
4429esac
4430fi
4431KILL=$ac_cv_path_KILL
4432if test -n "$KILL"; then
4433  { echo "$as_me:$LINENO: result: $KILL" >&5
4434echo "${ECHO_T}$KILL" >&6; }
4435else
4436  { echo "$as_me:$LINENO: result: no" >&5
4437echo "${ECHO_T}no" >&6; }
4438fi
4439
4440
4441for ac_prog in perl5 perl
4442do
4443  # Extract the first word of "$ac_prog", so it can be a program name with args.
4444set dummy $ac_prog; ac_word=$2
4445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447if test "${ac_cv_path_PERL+set}" = set; then
4448  echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450  case $PERL in
4451  [\\/]* | ?:[\\/]*)
4452  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4453  ;;
4454  *)
4455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH
4457do
4458  IFS=$as_save_IFS
4459  test -z "$as_dir" && as_dir=.
4460  for ac_exec_ext in '' $ac_executable_extensions; do
4461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464    break 2
4465  fi
4466done
4467done
4468IFS=$as_save_IFS
4469
4470  ;;
4471esac
4472fi
4473PERL=$ac_cv_path_PERL
4474if test -n "$PERL"; then
4475  { echo "$as_me:$LINENO: result: $PERL" >&5
4476echo "${ECHO_T}$PERL" >&6; }
4477else
4478  { echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6; }
4480fi
4481
4482
4483  test -n "$PERL" && break
4484done
4485
4486# Extract the first word of "sed", so it can be a program name with args.
4487set dummy sed; ac_word=$2
4488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4490if test "${ac_cv_path_SED+set}" = set; then
4491  echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493  case $SED in
4494  [\\/]* | ?:[\\/]*)
4495  ac_cv_path_SED="$SED" # Let the user override the test with a path.
4496  ;;
4497  *)
4498  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501  IFS=$as_save_IFS
4502  test -z "$as_dir" && as_dir=.
4503  for ac_exec_ext in '' $ac_executable_extensions; do
4504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4506    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507    break 2
4508  fi
4509done
4510done
4511IFS=$as_save_IFS
4512
4513  ;;
4514esac
4515fi
4516SED=$ac_cv_path_SED
4517if test -n "$SED"; then
4518  { echo "$as_me:$LINENO: result: $SED" >&5
4519echo "${ECHO_T}$SED" >&6; }
4520else
4521  { echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6; }
4523fi
4524
4525
4526
4527# Extract the first word of "ent", so it can be a program name with args.
4528set dummy ent; ac_word=$2
4529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4531if test "${ac_cv_path_ENT+set}" = set; then
4532  echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534  case $ENT in
4535  [\\/]* | ?:[\\/]*)
4536  ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4537  ;;
4538  *)
4539  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542  IFS=$as_save_IFS
4543  test -z "$as_dir" && as_dir=.
4544  for ac_exec_ext in '' $ac_executable_extensions; do
4545  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546    ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548    break 2
4549  fi
4550done
4551done
4552IFS=$as_save_IFS
4553
4554  ;;
4555esac
4556fi
4557ENT=$ac_cv_path_ENT
4558if test -n "$ENT"; then
4559  { echo "$as_me:$LINENO: result: $ENT" >&5
4560echo "${ECHO_T}$ENT" >&6; }
4561else
4562  { echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6; }
4564fi
4565
4566
4567
4568# Extract the first word of "bash", so it can be a program name with args.
4569set dummy bash; ac_word=$2
4570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4573  echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575  case $TEST_MINUS_S_SH in
4576  [\\/]* | ?:[\\/]*)
4577  ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4578  ;;
4579  *)
4580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583  IFS=$as_save_IFS
4584  test -z "$as_dir" && as_dir=.
4585  for ac_exec_ext in '' $ac_executable_extensions; do
4586  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587    ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589    break 2
4590  fi
4591done
4592done
4593IFS=$as_save_IFS
4594
4595  ;;
4596esac
4597fi
4598TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4599if test -n "$TEST_MINUS_S_SH"; then
4600  { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4601echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4602else
4603  { echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6; }
4605fi
4606
4607
4608# Extract the first word of "ksh", so it can be a program name with args.
4609set dummy ksh; ac_word=$2
4610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4613  echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615  case $TEST_MINUS_S_SH in
4616  [\\/]* | ?:[\\/]*)
4617  ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4618  ;;
4619  *)
4620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623  IFS=$as_save_IFS
4624  test -z "$as_dir" && as_dir=.
4625  for ac_exec_ext in '' $ac_executable_extensions; do
4626  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627    ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629    break 2
4630  fi
4631done
4632done
4633IFS=$as_save_IFS
4634
4635  ;;
4636esac
4637fi
4638TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4639if test -n "$TEST_MINUS_S_SH"; then
4640  { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4641echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4642else
4643  { echo "$as_me:$LINENO: result: no" >&5
4644echo "${ECHO_T}no" >&6; }
4645fi
4646
4647
4648# Extract the first word of "sh", so it can be a program name with args.
4649set dummy sh; ac_word=$2
4650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4653  echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655  case $TEST_MINUS_S_SH in
4656  [\\/]* | ?:[\\/]*)
4657  ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4658  ;;
4659  *)
4660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663  IFS=$as_save_IFS
4664  test -z "$as_dir" && as_dir=.
4665  for ac_exec_ext in '' $ac_executable_extensions; do
4666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667    ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669    break 2
4670  fi
4671done
4672done
4673IFS=$as_save_IFS
4674
4675  ;;
4676esac
4677fi
4678TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4679if test -n "$TEST_MINUS_S_SH"; then
4680  { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4681echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4682else
4683  { echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6; }
4685fi
4686
4687
4688# Extract the first word of "sh", so it can be a program name with args.
4689set dummy sh; ac_word=$2
4690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692if test "${ac_cv_path_SH+set}" = set; then
4693  echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695  case $SH in
4696  [\\/]* | ?:[\\/]*)
4697  ac_cv_path_SH="$SH" # Let the user override the test with a path.
4698  ;;
4699  *)
4700  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703  IFS=$as_save_IFS
4704  test -z "$as_dir" && as_dir=.
4705  for ac_exec_ext in '' $ac_executable_extensions; do
4706  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709    break 2
4710  fi
4711done
4712done
4713IFS=$as_save_IFS
4714
4715  ;;
4716esac
4717fi
4718SH=$ac_cv_path_SH
4719if test -n "$SH"; then
4720  { echo "$as_me:$LINENO: result: $SH" >&5
4721echo "${ECHO_T}$SH" >&6; }
4722else
4723  { echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6; }
4725fi
4726
4727
4728# Extract the first word of "groff", so it can be a program name with args.
4729set dummy groff; ac_word=$2
4730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732if test "${ac_cv_path_GROFF+set}" = set; then
4733  echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735  case $GROFF in
4736  [\\/]* | ?:[\\/]*)
4737  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4738  ;;
4739  *)
4740  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743  IFS=$as_save_IFS
4744  test -z "$as_dir" && as_dir=.
4745  for ac_exec_ext in '' $ac_executable_extensions; do
4746  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749    break 2
4750  fi
4751done
4752done
4753IFS=$as_save_IFS
4754
4755  ;;
4756esac
4757fi
4758GROFF=$ac_cv_path_GROFF
4759if test -n "$GROFF"; then
4760  { echo "$as_me:$LINENO: result: $GROFF" >&5
4761echo "${ECHO_T}$GROFF" >&6; }
4762else
4763  { echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6; }
4765fi
4766
4767
4768# Extract the first word of "nroff", so it can be a program name with args.
4769set dummy nroff; ac_word=$2
4770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772if test "${ac_cv_path_NROFF+set}" = set; then
4773  echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775  case $NROFF in
4776  [\\/]* | ?:[\\/]*)
4777  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4778  ;;
4779  *)
4780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783  IFS=$as_save_IFS
4784  test -z "$as_dir" && as_dir=.
4785  for ac_exec_ext in '' $ac_executable_extensions; do
4786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789    break 2
4790  fi
4791done
4792done
4793IFS=$as_save_IFS
4794
4795  ;;
4796esac
4797fi
4798NROFF=$ac_cv_path_NROFF
4799if test -n "$NROFF"; then
4800  { echo "$as_me:$LINENO: result: $NROFF" >&5
4801echo "${ECHO_T}$NROFF" >&6; }
4802else
4803  { echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6; }
4805fi
4806
4807
4808# Extract the first word of "mandoc", so it can be a program name with args.
4809set dummy mandoc; ac_word=$2
4810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812if test "${ac_cv_path_MANDOC+set}" = set; then
4813  echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815  case $MANDOC in
4816  [\\/]* | ?:[\\/]*)
4817  ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
4818  ;;
4819  *)
4820  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823  IFS=$as_save_IFS
4824  test -z "$as_dir" && as_dir=.
4825  for ac_exec_ext in '' $ac_executable_extensions; do
4826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827    ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
4828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829    break 2
4830  fi
4831done
4832done
4833IFS=$as_save_IFS
4834
4835  ;;
4836esac
4837fi
4838MANDOC=$ac_cv_path_MANDOC
4839if test -n "$MANDOC"; then
4840  { echo "$as_me:$LINENO: result: $MANDOC" >&5
4841echo "${ECHO_T}$MANDOC" >&6; }
4842else
4843  { echo "$as_me:$LINENO: result: no" >&5
4844echo "${ECHO_T}no" >&6; }
4845fi
4846
4847
4848TEST_SHELL=sh
4849
4850
4851if test "x$MANDOC" != "x" ; then
4852	MANFMT="$MANDOC"
4853elif test "x$NROFF" != "x" ; then
4854	MANFMT="$NROFF -mandoc"
4855elif test "x$GROFF" != "x" ; then
4856	MANFMT="$GROFF -mandoc -Tascii"
4857else
4858	{ echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5
4859echo "$as_me: WARNING: no manpage formatted found" >&2;}
4860	MANFMT="false"
4861fi
4862
4863
4864# Extract the first word of "groupadd", so it can be a program name with args.
4865set dummy groupadd; ac_word=$2
4866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  case $PATH_GROUPADD_PROG in
4872  [\\/]* | ?:[\\/]*)
4873  ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4874  ;;
4875  *)
4876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4878do
4879  IFS=$as_save_IFS
4880  test -z "$as_dir" && as_dir=.
4881  for ac_exec_ext in '' $ac_executable_extensions; do
4882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883    ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885    break 2
4886  fi
4887done
4888done
4889IFS=$as_save_IFS
4890
4891  test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4892  ;;
4893esac
4894fi
4895PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4896if test -n "$PATH_GROUPADD_PROG"; then
4897  { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4898echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4899else
4900  { echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6; }
4902fi
4903
4904
4905# Extract the first word of "useradd", so it can be a program name with args.
4906set dummy useradd; ac_word=$2
4907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4910  echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912  case $PATH_USERADD_PROG in
4913  [\\/]* | ?:[\\/]*)
4914  ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4915  ;;
4916  *)
4917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4919do
4920  IFS=$as_save_IFS
4921  test -z "$as_dir" && as_dir=.
4922  for ac_exec_ext in '' $ac_executable_extensions; do
4923  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924    ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4925    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926    break 2
4927  fi
4928done
4929done
4930IFS=$as_save_IFS
4931
4932  test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4933  ;;
4934esac
4935fi
4936PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4937if test -n "$PATH_USERADD_PROG"; then
4938  { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4939echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4940else
4941  { echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6; }
4943fi
4944
4945
4946# Extract the first word of "pkgmk", so it can be a program name with args.
4947set dummy pkgmk; ac_word=$2
4948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4951  echo $ECHO_N "(cached) $ECHO_C" >&6
4952else
4953  if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4954  ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4955else
4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH
4958do
4959  IFS=$as_save_IFS
4960  test -z "$as_dir" && as_dir=.
4961  for ac_exec_ext in '' $ac_executable_extensions; do
4962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963    ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965    break 2
4966  fi
4967done
4968done
4969IFS=$as_save_IFS
4970
4971  test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4972fi
4973fi
4974MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4975if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4976  { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4977echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4978else
4979  { echo "$as_me:$LINENO: result: no" >&5
4980echo "${ECHO_T}no" >&6; }
4981fi
4982
4983
4984if test -x /sbin/sh; then
4985	STARTUP_SCRIPT_SHELL=/sbin/sh
4986
4987else
4988	STARTUP_SCRIPT_SHELL=/bin/sh
4989
4990fi
4991
4992# System features
4993# Check whether --enable-largefile was given.
4994if test "${enable_largefile+set}" = set; then
4995  enableval=$enable_largefile;
4996fi
4997
4998if test "$enable_largefile" != no; then
4999
5000  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5001echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5002if test "${ac_cv_sys_largefile_CC+set}" = set; then
5003  echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005  ac_cv_sys_largefile_CC=no
5006     if test "$GCC" != yes; then
5007       ac_save_CC=$CC
5008       while :; do
5009	 # IRIX 6.2 and later do not support large files by default,
5010	 # so use the C compiler's -n32 option if that helps.
5011	 cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h.  */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h.  */
5017#include <sys/types.h>
5018 /* Check that off_t can represent 2**63 - 1 correctly.
5019    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5020    since some C++ compilers masquerading as C compilers
5021    incorrectly reject 9223372036854775807.  */
5022#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5023  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5024		       && LARGE_OFF_T % 2147483647 == 1)
5025		      ? 1 : -1];
5026int
5027main ()
5028{
5029
5030  ;
5031  return 0;
5032}
5033_ACEOF
5034	 rm -f conftest.$ac_objext
5035if { (ac_try="$ac_compile"
5036case "(($ac_try" in
5037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038  *) ac_try_echo=$ac_try;;
5039esac
5040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041  (eval "$ac_compile") 2>conftest.er1
5042  ac_status=$?
5043  grep -v '^ *+' conftest.er1 >conftest.err
5044  rm -f conftest.er1
5045  cat conftest.err >&5
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); } && {
5048	 test -z "$ac_c_werror_flag" ||
5049	 test ! -s conftest.err
5050       } && test -s conftest.$ac_objext; then
5051  break
5052else
5053  echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056
5057fi
5058
5059rm -f core conftest.err conftest.$ac_objext
5060	 CC="$CC -n32"
5061	 rm -f conftest.$ac_objext
5062if { (ac_try="$ac_compile"
5063case "(($ac_try" in
5064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065  *) ac_try_echo=$ac_try;;
5066esac
5067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068  (eval "$ac_compile") 2>conftest.er1
5069  ac_status=$?
5070  grep -v '^ *+' conftest.er1 >conftest.err
5071  rm -f conftest.er1
5072  cat conftest.err >&5
5073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074  (exit $ac_status); } && {
5075	 test -z "$ac_c_werror_flag" ||
5076	 test ! -s conftest.err
5077       } && test -s conftest.$ac_objext; then
5078  ac_cv_sys_largefile_CC=' -n32'; break
5079else
5080  echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083
5084fi
5085
5086rm -f core conftest.err conftest.$ac_objext
5087	 break
5088       done
5089       CC=$ac_save_CC
5090       rm -f conftest.$ac_ext
5091    fi
5092fi
5093{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5094echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5095  if test "$ac_cv_sys_largefile_CC" != no; then
5096    CC=$CC$ac_cv_sys_largefile_CC
5097  fi
5098
5099  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5100echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5101if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5102  echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104  while :; do
5105  cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h.  */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h.  */
5111#include <sys/types.h>
5112 /* Check that off_t can represent 2**63 - 1 correctly.
5113    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5114    since some C++ compilers masquerading as C compilers
5115    incorrectly reject 9223372036854775807.  */
5116#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5117  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5118		       && LARGE_OFF_T % 2147483647 == 1)
5119		      ? 1 : -1];
5120int
5121main ()
5122{
5123
5124  ;
5125  return 0;
5126}
5127_ACEOF
5128rm -f conftest.$ac_objext
5129if { (ac_try="$ac_compile"
5130case "(($ac_try" in
5131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132  *) ac_try_echo=$ac_try;;
5133esac
5134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135  (eval "$ac_compile") 2>conftest.er1
5136  ac_status=$?
5137  grep -v '^ *+' conftest.er1 >conftest.err
5138  rm -f conftest.er1
5139  cat conftest.err >&5
5140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141  (exit $ac_status); } && {
5142	 test -z "$ac_c_werror_flag" ||
5143	 test ! -s conftest.err
5144       } && test -s conftest.$ac_objext; then
5145  ac_cv_sys_file_offset_bits=no; break
5146else
5147  echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150
5151fi
5152
5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154  cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h.  */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h.  */
5160#define _FILE_OFFSET_BITS 64
5161#include <sys/types.h>
5162 /* Check that off_t can represent 2**63 - 1 correctly.
5163    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5164    since some C++ compilers masquerading as C compilers
5165    incorrectly reject 9223372036854775807.  */
5166#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5167  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5168		       && LARGE_OFF_T % 2147483647 == 1)
5169		      ? 1 : -1];
5170int
5171main ()
5172{
5173
5174  ;
5175  return 0;
5176}
5177_ACEOF
5178rm -f conftest.$ac_objext
5179if { (ac_try="$ac_compile"
5180case "(($ac_try" in
5181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182  *) ac_try_echo=$ac_try;;
5183esac
5184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185  (eval "$ac_compile") 2>conftest.er1
5186  ac_status=$?
5187  grep -v '^ *+' conftest.er1 >conftest.err
5188  rm -f conftest.er1
5189  cat conftest.err >&5
5190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191  (exit $ac_status); } && {
5192	 test -z "$ac_c_werror_flag" ||
5193	 test ! -s conftest.err
5194       } && test -s conftest.$ac_objext; then
5195  ac_cv_sys_file_offset_bits=64; break
5196else
5197  echo "$as_me: failed program was:" >&5
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200
5201fi
5202
5203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204  ac_cv_sys_file_offset_bits=unknown
5205  break
5206done
5207fi
5208{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5209echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5210case $ac_cv_sys_file_offset_bits in #(
5211  no | unknown) ;;
5212  *)
5213cat >>confdefs.h <<_ACEOF
5214#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5215_ACEOF
5216;;
5217esac
5218rm -f conftest*
5219  if test $ac_cv_sys_file_offset_bits = unknown; then
5220    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5221echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5222if test "${ac_cv_sys_large_files+set}" = set; then
5223  echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225  while :; do
5226  cat >conftest.$ac_ext <<_ACEOF
5227/* confdefs.h.  */
5228_ACEOF
5229cat confdefs.h >>conftest.$ac_ext
5230cat >>conftest.$ac_ext <<_ACEOF
5231/* end confdefs.h.  */
5232#include <sys/types.h>
5233 /* Check that off_t can represent 2**63 - 1 correctly.
5234    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5235    since some C++ compilers masquerading as C compilers
5236    incorrectly reject 9223372036854775807.  */
5237#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5238  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5239		       && LARGE_OFF_T % 2147483647 == 1)
5240		      ? 1 : -1];
5241int
5242main ()
5243{
5244
5245  ;
5246  return 0;
5247}
5248_ACEOF
5249rm -f conftest.$ac_objext
5250if { (ac_try="$ac_compile"
5251case "(($ac_try" in
5252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253  *) ac_try_echo=$ac_try;;
5254esac
5255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256  (eval "$ac_compile") 2>conftest.er1
5257  ac_status=$?
5258  grep -v '^ *+' conftest.er1 >conftest.err
5259  rm -f conftest.er1
5260  cat conftest.err >&5
5261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262  (exit $ac_status); } && {
5263	 test -z "$ac_c_werror_flag" ||
5264	 test ! -s conftest.err
5265       } && test -s conftest.$ac_objext; then
5266  ac_cv_sys_large_files=no; break
5267else
5268  echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271
5272fi
5273
5274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275  cat >conftest.$ac_ext <<_ACEOF
5276/* confdefs.h.  */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h.  */
5281#define _LARGE_FILES 1
5282#include <sys/types.h>
5283 /* Check that off_t can represent 2**63 - 1 correctly.
5284    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5285    since some C++ compilers masquerading as C compilers
5286    incorrectly reject 9223372036854775807.  */
5287#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5288  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5289		       && LARGE_OFF_T % 2147483647 == 1)
5290		      ? 1 : -1];
5291int
5292main ()
5293{
5294
5295  ;
5296  return 0;
5297}
5298_ACEOF
5299rm -f conftest.$ac_objext
5300if { (ac_try="$ac_compile"
5301case "(($ac_try" in
5302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303  *) ac_try_echo=$ac_try;;
5304esac
5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306  (eval "$ac_compile") 2>conftest.er1
5307  ac_status=$?
5308  grep -v '^ *+' conftest.er1 >conftest.err
5309  rm -f conftest.er1
5310  cat conftest.err >&5
5311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312  (exit $ac_status); } && {
5313	 test -z "$ac_c_werror_flag" ||
5314	 test ! -s conftest.err
5315       } && test -s conftest.$ac_objext; then
5316  ac_cv_sys_large_files=1; break
5317else
5318  echo "$as_me: failed program was:" >&5
5319sed 's/^/| /' conftest.$ac_ext >&5
5320
5321
5322fi
5323
5324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325  ac_cv_sys_large_files=unknown
5326  break
5327done
5328fi
5329{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5330echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5331case $ac_cv_sys_large_files in #(
5332  no | unknown) ;;
5333  *)
5334cat >>confdefs.h <<_ACEOF
5335#define _LARGE_FILES $ac_cv_sys_large_files
5336_ACEOF
5337;;
5338esac
5339rm -f conftest*
5340  fi
5341fi
5342
5343
5344if test -z "$AR" ; then
5345	{ { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5346echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5347   { (exit 1); exit 1; }; }
5348fi
5349
5350# Use LOGIN_PROGRAM from environment if possible
5351if test ! -z "$LOGIN_PROGRAM" ; then
5352
5353cat >>confdefs.h <<_ACEOF
5354#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5355_ACEOF
5356
5357else
5358	# Search for login
5359	# Extract the first word of "login", so it can be a program name with args.
5360set dummy login; ac_word=$2
5361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5363if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5364  echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366  case $LOGIN_PROGRAM_FALLBACK in
5367  [\\/]* | ?:[\\/]*)
5368  ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5369  ;;
5370  *)
5371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374  IFS=$as_save_IFS
5375  test -z "$as_dir" && as_dir=.
5376  for ac_exec_ext in '' $ac_executable_extensions; do
5377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378    ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5379    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380    break 2
5381  fi
5382done
5383done
5384IFS=$as_save_IFS
5385
5386  ;;
5387esac
5388fi
5389LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5390if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5391  { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5392echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5393else
5394  { echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6; }
5396fi
5397
5398
5399	if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5400		cat >>confdefs.h <<_ACEOF
5401#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5402_ACEOF
5403
5404	fi
5405fi
5406
5407# Extract the first word of "passwd", so it can be a program name with args.
5408set dummy passwd; ac_word=$2
5409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5411if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5412  echo $ECHO_N "(cached) $ECHO_C" >&6
5413else
5414  case $PATH_PASSWD_PROG in
5415  [\\/]* | ?:[\\/]*)
5416  ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5417  ;;
5418  *)
5419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH
5421do
5422  IFS=$as_save_IFS
5423  test -z "$as_dir" && as_dir=.
5424  for ac_exec_ext in '' $ac_executable_extensions; do
5425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426    ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5427    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428    break 2
5429  fi
5430done
5431done
5432IFS=$as_save_IFS
5433
5434  ;;
5435esac
5436fi
5437PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5438if test -n "$PATH_PASSWD_PROG"; then
5439  { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5440echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5441else
5442  { echo "$as_me:$LINENO: result: no" >&5
5443echo "${ECHO_T}no" >&6; }
5444fi
5445
5446
5447if test ! -z "$PATH_PASSWD_PROG" ; then
5448
5449cat >>confdefs.h <<_ACEOF
5450#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5451_ACEOF
5452
5453fi
5454
5455if test -z "$LD" ; then
5456	LD=$CC
5457fi
5458
5459
5460{ echo "$as_me:$LINENO: checking for inline" >&5
5461echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5462if test "${ac_cv_c_inline+set}" = set; then
5463  echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465  ac_cv_c_inline=no
5466for ac_kw in inline __inline__ __inline; do
5467  cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h.  */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h.  */
5473#ifndef __cplusplus
5474typedef int foo_t;
5475static $ac_kw foo_t static_foo () {return 0; }
5476$ac_kw foo_t foo () {return 0; }
5477#endif
5478
5479_ACEOF
5480rm -f conftest.$ac_objext
5481if { (ac_try="$ac_compile"
5482case "(($ac_try" in
5483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484  *) ac_try_echo=$ac_try;;
5485esac
5486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487  (eval "$ac_compile") 2>conftest.er1
5488  ac_status=$?
5489  grep -v '^ *+' conftest.er1 >conftest.err
5490  rm -f conftest.er1
5491  cat conftest.err >&5
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); } && {
5494	 test -z "$ac_c_werror_flag" ||
5495	 test ! -s conftest.err
5496       } && test -s conftest.$ac_objext; then
5497  ac_cv_c_inline=$ac_kw
5498else
5499  echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502
5503fi
5504
5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506  test "$ac_cv_c_inline" != no && break
5507done
5508
5509fi
5510{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5511echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5512
5513
5514case $ac_cv_c_inline in
5515  inline | yes) ;;
5516  *)
5517    case $ac_cv_c_inline in
5518      no) ac_val=;;
5519      *) ac_val=$ac_cv_c_inline;;
5520    esac
5521    cat >>confdefs.h <<_ACEOF
5522#ifndef __cplusplus
5523#define inline $ac_val
5524#endif
5525_ACEOF
5526    ;;
5527esac
5528
5529
5530{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5531echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5532if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5533  echo $ECHO_N "(cached) $ECHO_C" >&6
5534else
5535  cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h.  */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h.  */
5541#include <limits.h>
5542
5543int
5544main ()
5545{
5546#ifndef LLONG_MAX
5547  (void) LLONG_MAX;
5548#endif
5549
5550  ;
5551  return 0;
5552}
5553_ACEOF
5554rm -f conftest.$ac_objext
5555if { (ac_try="$ac_compile"
5556case "(($ac_try" in
5557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558  *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561  (eval "$ac_compile") 2>conftest.er1
5562  ac_status=$?
5563  grep -v '^ *+' conftest.er1 >conftest.err
5564  rm -f conftest.er1
5565  cat conftest.err >&5
5566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567  (exit $ac_status); } && {
5568	 test -z "$ac_c_werror_flag" ||
5569	 test ! -s conftest.err
5570       } && test -s conftest.$ac_objext; then
5571  ac_cv_have_decl_LLONG_MAX=yes
5572else
5573  echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576	ac_cv_have_decl_LLONG_MAX=no
5577fi
5578
5579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580fi
5581{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5582echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5583if test $ac_cv_have_decl_LLONG_MAX = yes; then
5584  have_llong_max=1
5585fi
5586
5587{ echo "$as_me:$LINENO: checking whether SYSTR_POLICY_KILL is declared" >&5
5588echo $ECHO_N "checking whether SYSTR_POLICY_KILL is declared... $ECHO_C" >&6; }
5589if test "${ac_cv_have_decl_SYSTR_POLICY_KILL+set}" = set; then
5590  echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592  cat >conftest.$ac_ext <<_ACEOF
5593/* confdefs.h.  */
5594_ACEOF
5595cat confdefs.h >>conftest.$ac_ext
5596cat >>conftest.$ac_ext <<_ACEOF
5597/* end confdefs.h.  */
5598
5599	#include <sys/types.h>
5600	#include <sys/param.h>
5601	#include <dev/systrace.h>
5602
5603
5604int
5605main ()
5606{
5607#ifndef SYSTR_POLICY_KILL
5608  (void) SYSTR_POLICY_KILL;
5609#endif
5610
5611  ;
5612  return 0;
5613}
5614_ACEOF
5615rm -f conftest.$ac_objext
5616if { (ac_try="$ac_compile"
5617case "(($ac_try" in
5618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619  *) ac_try_echo=$ac_try;;
5620esac
5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622  (eval "$ac_compile") 2>conftest.er1
5623  ac_status=$?
5624  grep -v '^ *+' conftest.er1 >conftest.err
5625  rm -f conftest.er1
5626  cat conftest.err >&5
5627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628  (exit $ac_status); } && {
5629	 test -z "$ac_c_werror_flag" ||
5630	 test ! -s conftest.err
5631       } && test -s conftest.$ac_objext; then
5632  ac_cv_have_decl_SYSTR_POLICY_KILL=yes
5633else
5634  echo "$as_me: failed program was:" >&5
5635sed 's/^/| /' conftest.$ac_ext >&5
5636
5637	ac_cv_have_decl_SYSTR_POLICY_KILL=no
5638fi
5639
5640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641fi
5642{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SYSTR_POLICY_KILL" >&5
5643echo "${ECHO_T}$ac_cv_have_decl_SYSTR_POLICY_KILL" >&6; }
5644if test $ac_cv_have_decl_SYSTR_POLICY_KILL = yes; then
5645  have_systr_policy_kill=1
5646fi
5647
5648{ echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5
5649echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; }
5650if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then
5651  echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653  cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h.  */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h.  */
5659
5660	#include <sys/types.h>
5661	#include <sys/resource.h>
5662
5663
5664int
5665main ()
5666{
5667#ifndef RLIMIT_NPROC
5668  (void) RLIMIT_NPROC;
5669#endif
5670
5671  ;
5672  return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext
5676if { (ac_try="$ac_compile"
5677case "(($ac_try" in
5678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679  *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682  (eval "$ac_compile") 2>conftest.er1
5683  ac_status=$?
5684  grep -v '^ *+' conftest.er1 >conftest.err
5685  rm -f conftest.er1
5686  cat conftest.err >&5
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); } && {
5689	 test -z "$ac_c_werror_flag" ||
5690	 test ! -s conftest.err
5691       } && test -s conftest.$ac_objext; then
5692  ac_cv_have_decl_RLIMIT_NPROC=yes
5693else
5694  echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697	ac_cv_have_decl_RLIMIT_NPROC=no
5698fi
5699
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701fi
5702{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5
5703echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; }
5704if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then
5705
5706cat >>confdefs.h <<\_ACEOF
5707#define HAVE_RLIMIT_NPROC
5708_ACEOF
5709
5710fi
5711
5712{ echo "$as_me:$LINENO: checking whether PR_SET_NO_NEW_PRIVS is declared" >&5
5713echo $ECHO_N "checking whether PR_SET_NO_NEW_PRIVS is declared... $ECHO_C" >&6; }
5714if test "${ac_cv_have_decl_PR_SET_NO_NEW_PRIVS+set}" = set; then
5715  echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717  cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h.  */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h.  */
5723
5724	#include <sys/types.h>
5725	#include <linux/prctl.h>
5726
5727
5728int
5729main ()
5730{
5731#ifndef PR_SET_NO_NEW_PRIVS
5732  (void) PR_SET_NO_NEW_PRIVS;
5733#endif
5734
5735  ;
5736  return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext
5740if { (ac_try="$ac_compile"
5741case "(($ac_try" in
5742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743  *) ac_try_echo=$ac_try;;
5744esac
5745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746  (eval "$ac_compile") 2>conftest.er1
5747  ac_status=$?
5748  grep -v '^ *+' conftest.er1 >conftest.err
5749  rm -f conftest.er1
5750  cat conftest.err >&5
5751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752  (exit $ac_status); } && {
5753	 test -z "$ac_c_werror_flag" ||
5754	 test ! -s conftest.err
5755       } && test -s conftest.$ac_objext; then
5756  ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=yes
5757else
5758  echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761	ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=no
5762fi
5763
5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765fi
5766{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&5
5767echo "${ECHO_T}$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&6; }
5768if test $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS = yes; then
5769  have_linux_no_new_privs=1
5770fi
5771
5772
5773openssl=yes
5774ssh1=no
5775
5776# Check whether --with-openssl was given.
5777if test "${with_openssl+set}" = set; then
5778  withval=$with_openssl;   if test "x$withval" = "xno" ; then
5779		openssl=no
5780		ssh1=no
5781	   fi
5782
5783
5784fi
5785
5786{ echo "$as_me:$LINENO: checking whether OpenSSL will be used for cryptography" >&5
5787echo $ECHO_N "checking whether OpenSSL will be used for cryptography... $ECHO_C" >&6; }
5788if test "x$openssl" = "xyes" ; then
5789	{ echo "$as_me:$LINENO: result: yes" >&5
5790echo "${ECHO_T}yes" >&6; }
5791
5792cat >>confdefs.h <<_ACEOF
5793#define WITH_OPENSSL 1
5794_ACEOF
5795
5796else
5797	{ echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6; }
5799fi
5800
5801
5802# Check whether --with-ssh1 was given.
5803if test "${with_ssh1+set}" = set; then
5804  withval=$with_ssh1;
5805		if test "x$withval" = "xyes" ; then
5806			if test "x$openssl" = "xno" ; then
5807				{ { echo "$as_me:$LINENO: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&5
5808echo "$as_me: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&2;}
5809   { (exit 1); exit 1; }; }
5810			fi
5811			ssh1=yes
5812		elif test "x$withval" = "xno" ; then
5813			ssh1=no
5814		else
5815			{ { echo "$as_me:$LINENO: error: unknown --with-ssh1 argument" >&5
5816echo "$as_me: error: unknown --with-ssh1 argument" >&2;}
5817   { (exit 1); exit 1; }; }
5818		fi
5819
5820
5821fi
5822
5823{ echo "$as_me:$LINENO: checking whether SSH protocol 1 support is enabled" >&5
5824echo $ECHO_N "checking whether SSH protocol 1 support is enabled... $ECHO_C" >&6; }
5825if test "x$ssh1" = "xyes" ; then
5826	{ echo "$as_me:$LINENO: result: yes" >&5
5827echo "${ECHO_T}yes" >&6; }
5828
5829cat >>confdefs.h <<_ACEOF
5830#define WITH_SSH1 1
5831_ACEOF
5832
5833else
5834	{ echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6; }
5836fi
5837
5838use_stack_protector=1
5839use_toolchain_hardening=1
5840
5841# Check whether --with-stackprotect was given.
5842if test "${with_stackprotect+set}" = set; then
5843  withval=$with_stackprotect;
5844    if test "x$withval" = "xno"; then
5845	use_stack_protector=0
5846    fi
5847fi
5848
5849
5850# Check whether --with-hardening was given.
5851if test "${with_hardening+set}" = set; then
5852  withval=$with_hardening;
5853    if test "x$withval" = "xno"; then
5854	use_toolchain_hardening=0
5855    fi
5856fi
5857
5858
5859# We use -Werror for the tests only so that we catch warnings like "this is
5860# on by default" for things like -fPIE.
5861{ echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
5862echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
5863saved_CFLAGS="$CFLAGS"
5864CFLAGS="$CFLAGS -Werror"
5865cat >conftest.$ac_ext <<_ACEOF
5866/* confdefs.h.  */
5867_ACEOF
5868cat confdefs.h >>conftest.$ac_ext
5869cat >>conftest.$ac_ext <<_ACEOF
5870/* end confdefs.h.  */
5871int main(void) { return 0; }
5872_ACEOF
5873rm -f conftest.$ac_objext
5874if { (ac_try="$ac_compile"
5875case "(($ac_try" in
5876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877  *) ac_try_echo=$ac_try;;
5878esac
5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880  (eval "$ac_compile") 2>conftest.er1
5881  ac_status=$?
5882  grep -v '^ *+' conftest.er1 >conftest.err
5883  rm -f conftest.er1
5884  cat conftest.err >&5
5885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886  (exit $ac_status); } && {
5887	 test -z "$ac_c_werror_flag" ||
5888	 test ! -s conftest.err
5889       } && test -s conftest.$ac_objext; then
5890   { echo "$as_me:$LINENO: result: yes" >&5
5891echo "${ECHO_T}yes" >&6; }
5892	  WERROR="-Werror"
5893else
5894  echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897	 { echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6; }
5899	  WERROR=""
5900
5901fi
5902
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904CFLAGS="$saved_CFLAGS"
5905
5906if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5907	{
5908	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Qunused-arguments" >&5
5909echo $ECHO_N "checking if $CC supports compile flag -Qunused-arguments... $ECHO_C" >&6; }
5910	saved_CFLAGS="$CFLAGS"
5911	CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5912	_define_flag=""
5913	test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5914	cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h.  */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h.  */
5920
5921#include <stdlib.h>
5922#include <stdio.h>
5923int main(int argc, char **argv) {
5924	/* Some math to catch -ftrapv problems in the toolchain */
5925	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5926	float l = i * 2.1;
5927	double m = l / 0.5;
5928	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5929	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5930	exit(0);
5931}
5932
5933_ACEOF
5934rm -f conftest.$ac_objext
5935if { (ac_try="$ac_compile"
5936case "(($ac_try" in
5937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938  *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941  (eval "$ac_compile") 2>conftest.er1
5942  ac_status=$?
5943  grep -v '^ *+' conftest.er1 >conftest.err
5944  rm -f conftest.er1
5945  cat conftest.err >&5
5946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); } && {
5948	 test -z "$ac_c_werror_flag" ||
5949	 test ! -s conftest.err
5950       } && test -s conftest.$ac_objext; then
5951
5952if `grep -i "unrecognized option" conftest.err >/dev/null`
5953then
5954		{ echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6; }
5956		CFLAGS="$saved_CFLAGS"
5957else
5958		{ echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6; }
5960		 CFLAGS="$saved_CFLAGS $_define_flag"
5961fi
5962else
5963  echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966	 { echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6; }
5968		  CFLAGS="$saved_CFLAGS"
5969
5970fi
5971
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973}
5974	{
5975	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5976echo $ECHO_N "checking if $CC supports compile flag -Wunknown-warning-option... $ECHO_C" >&6; }
5977	saved_CFLAGS="$CFLAGS"
5978	CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5979	_define_flag=""
5980	test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5981	cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h.  */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h.  */
5987
5988#include <stdlib.h>
5989#include <stdio.h>
5990int main(int argc, char **argv) {
5991	/* Some math to catch -ftrapv problems in the toolchain */
5992	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5993	float l = i * 2.1;
5994	double m = l / 0.5;
5995	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5996	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5997	exit(0);
5998}
5999
6000_ACEOF
6001rm -f conftest.$ac_objext
6002if { (ac_try="$ac_compile"
6003case "(($ac_try" in
6004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005  *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008  (eval "$ac_compile") 2>conftest.er1
6009  ac_status=$?
6010  grep -v '^ *+' conftest.er1 >conftest.err
6011  rm -f conftest.er1
6012  cat conftest.err >&5
6013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014  (exit $ac_status); } && {
6015	 test -z "$ac_c_werror_flag" ||
6016	 test ! -s conftest.err
6017       } && test -s conftest.$ac_objext; then
6018
6019if `grep -i "unrecognized option" conftest.err >/dev/null`
6020then
6021		{ echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6; }
6023		CFLAGS="$saved_CFLAGS"
6024else
6025		{ echo "$as_me:$LINENO: result: yes" >&5
6026echo "${ECHO_T}yes" >&6; }
6027		 CFLAGS="$saved_CFLAGS $_define_flag"
6028fi
6029else
6030  echo "$as_me: failed program was:" >&5
6031sed 's/^/| /' conftest.$ac_ext >&5
6032
6033	 { echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6; }
6035		  CFLAGS="$saved_CFLAGS"
6036
6037fi
6038
6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040}
6041	{
6042	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wall" >&5
6043echo $ECHO_N "checking if $CC supports compile flag -Wall... $ECHO_C" >&6; }
6044	saved_CFLAGS="$CFLAGS"
6045	CFLAGS="$CFLAGS $WERROR -Wall"
6046	_define_flag=""
6047	test "x$_define_flag" = "x" && _define_flag="-Wall"
6048	cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h.  */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h.  */
6054
6055#include <stdlib.h>
6056#include <stdio.h>
6057int main(int argc, char **argv) {
6058	/* Some math to catch -ftrapv problems in the toolchain */
6059	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6060	float l = i * 2.1;
6061	double m = l / 0.5;
6062	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6063	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6064	exit(0);
6065}
6066
6067_ACEOF
6068rm -f conftest.$ac_objext
6069if { (ac_try="$ac_compile"
6070case "(($ac_try" in
6071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072  *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075  (eval "$ac_compile") 2>conftest.er1
6076  ac_status=$?
6077  grep -v '^ *+' conftest.er1 >conftest.err
6078  rm -f conftest.er1
6079  cat conftest.err >&5
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); } && {
6082	 test -z "$ac_c_werror_flag" ||
6083	 test ! -s conftest.err
6084       } && test -s conftest.$ac_objext; then
6085
6086if `grep -i "unrecognized option" conftest.err >/dev/null`
6087then
6088		{ echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6; }
6090		CFLAGS="$saved_CFLAGS"
6091else
6092		{ echo "$as_me:$LINENO: result: yes" >&5
6093echo "${ECHO_T}yes" >&6; }
6094		 CFLAGS="$saved_CFLAGS $_define_flag"
6095fi
6096else
6097  echo "$as_me: failed program was:" >&5
6098sed 's/^/| /' conftest.$ac_ext >&5
6099
6100	 { echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6; }
6102		  CFLAGS="$saved_CFLAGS"
6103
6104fi
6105
6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107}
6108	{
6109	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-arith" >&5
6110echo $ECHO_N "checking if $CC supports compile flag -Wpointer-arith... $ECHO_C" >&6; }
6111	saved_CFLAGS="$CFLAGS"
6112	CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
6113	_define_flag=""
6114	test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
6115	cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h.  */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h.  */
6121
6122#include <stdlib.h>
6123#include <stdio.h>
6124int main(int argc, char **argv) {
6125	/* Some math to catch -ftrapv problems in the toolchain */
6126	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6127	float l = i * 2.1;
6128	double m = l / 0.5;
6129	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6130	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6131	exit(0);
6132}
6133
6134_ACEOF
6135rm -f conftest.$ac_objext
6136if { (ac_try="$ac_compile"
6137case "(($ac_try" in
6138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139  *) ac_try_echo=$ac_try;;
6140esac
6141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142  (eval "$ac_compile") 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	 test -z "$ac_c_werror_flag" ||
6150	 test ! -s conftest.err
6151       } && test -s conftest.$ac_objext; then
6152
6153if `grep -i "unrecognized option" conftest.err >/dev/null`
6154then
6155		{ echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6; }
6157		CFLAGS="$saved_CFLAGS"
6158else
6159		{ echo "$as_me:$LINENO: result: yes" >&5
6160echo "${ECHO_T}yes" >&6; }
6161		 CFLAGS="$saved_CFLAGS $_define_flag"
6162fi
6163else
6164  echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167	 { echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6; }
6169		  CFLAGS="$saved_CFLAGS"
6170
6171fi
6172
6173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174}
6175	{
6176	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wuninitialized" >&5
6177echo $ECHO_N "checking if $CC supports compile flag -Wuninitialized... $ECHO_C" >&6; }
6178	saved_CFLAGS="$CFLAGS"
6179	CFLAGS="$CFLAGS $WERROR -Wuninitialized"
6180	_define_flag=""
6181	test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
6182	cat >conftest.$ac_ext <<_ACEOF
6183/* confdefs.h.  */
6184_ACEOF
6185cat confdefs.h >>conftest.$ac_ext
6186cat >>conftest.$ac_ext <<_ACEOF
6187/* end confdefs.h.  */
6188
6189#include <stdlib.h>
6190#include <stdio.h>
6191int main(int argc, char **argv) {
6192	/* Some math to catch -ftrapv problems in the toolchain */
6193	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6194	float l = i * 2.1;
6195	double m = l / 0.5;
6196	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6197	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6198	exit(0);
6199}
6200
6201_ACEOF
6202rm -f conftest.$ac_objext
6203if { (ac_try="$ac_compile"
6204case "(($ac_try" in
6205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206  *) ac_try_echo=$ac_try;;
6207esac
6208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209  (eval "$ac_compile") 2>conftest.er1
6210  ac_status=$?
6211  grep -v '^ *+' conftest.er1 >conftest.err
6212  rm -f conftest.er1
6213  cat conftest.err >&5
6214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215  (exit $ac_status); } && {
6216	 test -z "$ac_c_werror_flag" ||
6217	 test ! -s conftest.err
6218       } && test -s conftest.$ac_objext; then
6219
6220if `grep -i "unrecognized option" conftest.err >/dev/null`
6221then
6222		{ echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6; }
6224		CFLAGS="$saved_CFLAGS"
6225else
6226		{ echo "$as_me:$LINENO: result: yes" >&5
6227echo "${ECHO_T}yes" >&6; }
6228		 CFLAGS="$saved_CFLAGS $_define_flag"
6229fi
6230else
6231  echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
6234	 { echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6; }
6236		  CFLAGS="$saved_CFLAGS"
6237
6238fi
6239
6240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241}
6242	{
6243	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsign-compare" >&5
6244echo $ECHO_N "checking if $CC supports compile flag -Wsign-compare... $ECHO_C" >&6; }
6245	saved_CFLAGS="$CFLAGS"
6246	CFLAGS="$CFLAGS $WERROR -Wsign-compare"
6247	_define_flag=""
6248	test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
6249	cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h.  */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h.  */
6255
6256#include <stdlib.h>
6257#include <stdio.h>
6258int main(int argc, char **argv) {
6259	/* Some math to catch -ftrapv problems in the toolchain */
6260	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6261	float l = i * 2.1;
6262	double m = l / 0.5;
6263	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6264	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6265	exit(0);
6266}
6267
6268_ACEOF
6269rm -f conftest.$ac_objext
6270if { (ac_try="$ac_compile"
6271case "(($ac_try" in
6272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273  *) ac_try_echo=$ac_try;;
6274esac
6275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276  (eval "$ac_compile") 2>conftest.er1
6277  ac_status=$?
6278  grep -v '^ *+' conftest.er1 >conftest.err
6279  rm -f conftest.er1
6280  cat conftest.err >&5
6281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282  (exit $ac_status); } && {
6283	 test -z "$ac_c_werror_flag" ||
6284	 test ! -s conftest.err
6285       } && test -s conftest.$ac_objext; then
6286
6287if `grep -i "unrecognized option" conftest.err >/dev/null`
6288then
6289		{ echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6; }
6291		CFLAGS="$saved_CFLAGS"
6292else
6293		{ echo "$as_me:$LINENO: result: yes" >&5
6294echo "${ECHO_T}yes" >&6; }
6295		 CFLAGS="$saved_CFLAGS $_define_flag"
6296fi
6297else
6298  echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301	 { echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6; }
6303		  CFLAGS="$saved_CFLAGS"
6304
6305fi
6306
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308}
6309	{
6310	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wformat-security" >&5
6311echo $ECHO_N "checking if $CC supports compile flag -Wformat-security... $ECHO_C" >&6; }
6312	saved_CFLAGS="$CFLAGS"
6313	CFLAGS="$CFLAGS $WERROR -Wformat-security"
6314	_define_flag=""
6315	test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
6316	cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h.  */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h.  */
6322
6323#include <stdlib.h>
6324#include <stdio.h>
6325int main(int argc, char **argv) {
6326	/* Some math to catch -ftrapv problems in the toolchain */
6327	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6328	float l = i * 2.1;
6329	double m = l / 0.5;
6330	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6331	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6332	exit(0);
6333}
6334
6335_ACEOF
6336rm -f conftest.$ac_objext
6337if { (ac_try="$ac_compile"
6338case "(($ac_try" in
6339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340  *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343  (eval "$ac_compile") 2>conftest.er1
6344  ac_status=$?
6345  grep -v '^ *+' conftest.er1 >conftest.err
6346  rm -f conftest.er1
6347  cat conftest.err >&5
6348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349  (exit $ac_status); } && {
6350	 test -z "$ac_c_werror_flag" ||
6351	 test ! -s conftest.err
6352       } && test -s conftest.$ac_objext; then
6353
6354if `grep -i "unrecognized option" conftest.err >/dev/null`
6355then
6356		{ echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6; }
6358		CFLAGS="$saved_CFLAGS"
6359else
6360		{ echo "$as_me:$LINENO: result: yes" >&5
6361echo "${ECHO_T}yes" >&6; }
6362		 CFLAGS="$saved_CFLAGS $_define_flag"
6363fi
6364else
6365  echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368	 { echo "$as_me:$LINENO: result: no" >&5
6369echo "${ECHO_T}no" >&6; }
6370		  CFLAGS="$saved_CFLAGS"
6371
6372fi
6373
6374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375}
6376	{
6377	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
6378echo $ECHO_N "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... $ECHO_C" >&6; }
6379	saved_CFLAGS="$CFLAGS"
6380	CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
6381	_define_flag=""
6382	test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
6383	cat >conftest.$ac_ext <<_ACEOF
6384/* confdefs.h.  */
6385_ACEOF
6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h.  */
6389
6390#include <stdlib.h>
6391#include <stdio.h>
6392int main(int argc, char **argv) {
6393	/* Some math to catch -ftrapv problems in the toolchain */
6394	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6395	float l = i * 2.1;
6396	double m = l / 0.5;
6397	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6398	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6399	exit(0);
6400}
6401
6402_ACEOF
6403rm -f conftest.$ac_objext
6404if { (ac_try="$ac_compile"
6405case "(($ac_try" in
6406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407  *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410  (eval "$ac_compile") 2>conftest.er1
6411  ac_status=$?
6412  grep -v '^ *+' conftest.er1 >conftest.err
6413  rm -f conftest.er1
6414  cat conftest.err >&5
6415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416  (exit $ac_status); } && {
6417	 test -z "$ac_c_werror_flag" ||
6418	 test ! -s conftest.err
6419       } && test -s conftest.$ac_objext; then
6420
6421if `grep -i "unrecognized option" conftest.err >/dev/null`
6422then
6423		{ echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6; }
6425		CFLAGS="$saved_CFLAGS"
6426else
6427		{ echo "$as_me:$LINENO: result: yes" >&5
6428echo "${ECHO_T}yes" >&6; }
6429		 CFLAGS="$saved_CFLAGS $_define_flag"
6430fi
6431else
6432  echo "$as_me: failed program was:" >&5
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435	 { echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6; }
6437		  CFLAGS="$saved_CFLAGS"
6438
6439fi
6440
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442}
6443	{
6444	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-sign" >&5
6445echo $ECHO_N "checking if $CC supports compile flag -Wpointer-sign... $ECHO_C" >&6; }
6446	saved_CFLAGS="$CFLAGS"
6447	CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
6448	_define_flag="-Wno-pointer-sign"
6449	test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
6450	cat >conftest.$ac_ext <<_ACEOF
6451/* confdefs.h.  */
6452_ACEOF
6453cat confdefs.h >>conftest.$ac_ext
6454cat >>conftest.$ac_ext <<_ACEOF
6455/* end confdefs.h.  */
6456
6457#include <stdlib.h>
6458#include <stdio.h>
6459int main(int argc, char **argv) {
6460	/* Some math to catch -ftrapv problems in the toolchain */
6461	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6462	float l = i * 2.1;
6463	double m = l / 0.5;
6464	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6465	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6466	exit(0);
6467}
6468
6469_ACEOF
6470rm -f conftest.$ac_objext
6471if { (ac_try="$ac_compile"
6472case "(($ac_try" in
6473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474  *) ac_try_echo=$ac_try;;
6475esac
6476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477  (eval "$ac_compile") 2>conftest.er1
6478  ac_status=$?
6479  grep -v '^ *+' conftest.er1 >conftest.err
6480  rm -f conftest.er1
6481  cat conftest.err >&5
6482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483  (exit $ac_status); } && {
6484	 test -z "$ac_c_werror_flag" ||
6485	 test ! -s conftest.err
6486       } && test -s conftest.$ac_objext; then
6487
6488if `grep -i "unrecognized option" conftest.err >/dev/null`
6489then
6490		{ echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6; }
6492		CFLAGS="$saved_CFLAGS"
6493else
6494		{ echo "$as_me:$LINENO: result: yes" >&5
6495echo "${ECHO_T}yes" >&6; }
6496		 CFLAGS="$saved_CFLAGS $_define_flag"
6497fi
6498else
6499  echo "$as_me: failed program was:" >&5
6500sed 's/^/| /' conftest.$ac_ext >&5
6501
6502	 { echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6; }
6504		  CFLAGS="$saved_CFLAGS"
6505
6506fi
6507
6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509}
6510	{
6511	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunused-result" >&5
6512echo $ECHO_N "checking if $CC supports compile flag -Wunused-result... $ECHO_C" >&6; }
6513	saved_CFLAGS="$CFLAGS"
6514	CFLAGS="$CFLAGS $WERROR -Wunused-result"
6515	_define_flag="-Wno-unused-result"
6516	test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6517	cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h.  */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h.  */
6523
6524#include <stdlib.h>
6525#include <stdio.h>
6526int main(int argc, char **argv) {
6527	/* Some math to catch -ftrapv problems in the toolchain */
6528	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6529	float l = i * 2.1;
6530	double m = l / 0.5;
6531	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6532	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6533	exit(0);
6534}
6535
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (ac_try="$ac_compile"
6539case "(($ac_try" in
6540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541  *) ac_try_echo=$ac_try;;
6542esac
6543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544  (eval "$ac_compile") 2>conftest.er1
6545  ac_status=$?
6546  grep -v '^ *+' conftest.er1 >conftest.err
6547  rm -f conftest.er1
6548  cat conftest.err >&5
6549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); } && {
6551	 test -z "$ac_c_werror_flag" ||
6552	 test ! -s conftest.err
6553       } && test -s conftest.$ac_objext; then
6554
6555if `grep -i "unrecognized option" conftest.err >/dev/null`
6556then
6557		{ echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6; }
6559		CFLAGS="$saved_CFLAGS"
6560else
6561		{ echo "$as_me:$LINENO: result: yes" >&5
6562echo "${ECHO_T}yes" >&6; }
6563		 CFLAGS="$saved_CFLAGS $_define_flag"
6564fi
6565else
6566  echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569	 { echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6; }
6571		  CFLAGS="$saved_CFLAGS"
6572
6573fi
6574
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576}
6577	{
6578	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6579echo $ECHO_N "checking if $CC supports compile flag -fno-strict-aliasing... $ECHO_C" >&6; }
6580	saved_CFLAGS="$CFLAGS"
6581	CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6582	_define_flag=""
6583	test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6584	cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h.  */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h.  */
6590
6591#include <stdlib.h>
6592#include <stdio.h>
6593int main(int argc, char **argv) {
6594	/* Some math to catch -ftrapv problems in the toolchain */
6595	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6596	float l = i * 2.1;
6597	double m = l / 0.5;
6598	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6599	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6600	exit(0);
6601}
6602
6603_ACEOF
6604rm -f conftest.$ac_objext
6605if { (ac_try="$ac_compile"
6606case "(($ac_try" in
6607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608  *) ac_try_echo=$ac_try;;
6609esac
6610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611  (eval "$ac_compile") 2>conftest.er1
6612  ac_status=$?
6613  grep -v '^ *+' conftest.er1 >conftest.err
6614  rm -f conftest.er1
6615  cat conftest.err >&5
6616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617  (exit $ac_status); } && {
6618	 test -z "$ac_c_werror_flag" ||
6619	 test ! -s conftest.err
6620       } && test -s conftest.$ac_objext; then
6621
6622if `grep -i "unrecognized option" conftest.err >/dev/null`
6623then
6624		{ echo "$as_me:$LINENO: result: no" >&5
6625echo "${ECHO_T}no" >&6; }
6626		CFLAGS="$saved_CFLAGS"
6627else
6628		{ echo "$as_me:$LINENO: result: yes" >&5
6629echo "${ECHO_T}yes" >&6; }
6630		 CFLAGS="$saved_CFLAGS $_define_flag"
6631fi
6632else
6633  echo "$as_me: failed program was:" >&5
6634sed 's/^/| /' conftest.$ac_ext >&5
6635
6636	 { echo "$as_me:$LINENO: result: no" >&5
6637echo "${ECHO_T}no" >&6; }
6638		  CFLAGS="$saved_CFLAGS"
6639
6640fi
6641
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643}
6644	{
6645	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6646echo $ECHO_N "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... $ECHO_C" >&6; }
6647	saved_CFLAGS="$CFLAGS"
6648	CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6649	_define_flag=""
6650	test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6651	cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h.  */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h.  */
6657
6658#include <stdlib.h>
6659#include <stdio.h>
6660int main(int argc, char **argv) {
6661	/* Some math to catch -ftrapv problems in the toolchain */
6662	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6663	float l = i * 2.1;
6664	double m = l / 0.5;
6665	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6666	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6667	exit(0);
6668}
6669
6670_ACEOF
6671rm -f conftest.$ac_objext
6672if { (ac_try="$ac_compile"
6673case "(($ac_try" in
6674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675  *) ac_try_echo=$ac_try;;
6676esac
6677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6678  (eval "$ac_compile") 2>conftest.er1
6679  ac_status=$?
6680  grep -v '^ *+' conftest.er1 >conftest.err
6681  rm -f conftest.er1
6682  cat conftest.err >&5
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); } && {
6685	 test -z "$ac_c_werror_flag" ||
6686	 test ! -s conftest.err
6687       } && test -s conftest.$ac_objext; then
6688
6689if `grep -i "unrecognized option" conftest.err >/dev/null`
6690then
6691		{ echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6; }
6693		CFLAGS="$saved_CFLAGS"
6694else
6695		{ echo "$as_me:$LINENO: result: yes" >&5
6696echo "${ECHO_T}yes" >&6; }
6697		 CFLAGS="$saved_CFLAGS $_define_flag"
6698fi
6699else
6700  echo "$as_me: failed program was:" >&5
6701sed 's/^/| /' conftest.$ac_ext >&5
6702
6703	 { echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6; }
6705		  CFLAGS="$saved_CFLAGS"
6706
6707fi
6708
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710}
6711    if test "x$use_toolchain_hardening" = "x1"; then
6712	{
6713	{ echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,relro" >&5
6714echo $ECHO_N "checking if $LD supports link flag -Wl,-z,relro... $ECHO_C" >&6; }
6715	saved_LDFLAGS="$LDFLAGS"
6716	LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6717	_define_flag=""
6718	test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6719	cat >conftest.$ac_ext <<_ACEOF
6720/* confdefs.h.  */
6721_ACEOF
6722cat confdefs.h >>conftest.$ac_ext
6723cat >>conftest.$ac_ext <<_ACEOF
6724/* end confdefs.h.  */
6725
6726#include <stdlib.h>
6727#include <stdio.h>
6728int main(int argc, char **argv) {
6729	/* Some math to catch -ftrapv problems in the toolchain */
6730	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6731	float l = i * 2.1;
6732	double m = l / 0.5;
6733	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6734	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6735	exit(0);
6736}
6737
6738_ACEOF
6739rm -f conftest.$ac_objext conftest$ac_exeext
6740if { (ac_try="$ac_link"
6741case "(($ac_try" in
6742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743  *) ac_try_echo=$ac_try;;
6744esac
6745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746  (eval "$ac_link") 2>conftest.er1
6747  ac_status=$?
6748  grep -v '^ *+' conftest.er1 >conftest.err
6749  rm -f conftest.er1
6750  cat conftest.err >&5
6751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752  (exit $ac_status); } && {
6753	 test -z "$ac_c_werror_flag" ||
6754	 test ! -s conftest.err
6755       } && test -s conftest$ac_exeext &&
6756       $as_test_x conftest$ac_exeext; then
6757   { echo "$as_me:$LINENO: result: yes" >&5
6758echo "${ECHO_T}yes" >&6; }
6759		  LDFLAGS="$saved_LDFLAGS $_define_flag"
6760else
6761  echo "$as_me: failed program was:" >&5
6762sed 's/^/| /' conftest.$ac_ext >&5
6763
6764	 { echo "$as_me:$LINENO: result: no" >&5
6765echo "${ECHO_T}no" >&6; }
6766		  LDFLAGS="$saved_LDFLAGS"
6767
6768fi
6769
6770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6771      conftest$ac_exeext conftest.$ac_ext
6772}
6773	{
6774	{ echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,now" >&5
6775echo $ECHO_N "checking if $LD supports link flag -Wl,-z,now... $ECHO_C" >&6; }
6776	saved_LDFLAGS="$LDFLAGS"
6777	LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6778	_define_flag=""
6779	test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6780	cat >conftest.$ac_ext <<_ACEOF
6781/* confdefs.h.  */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h.  */
6786
6787#include <stdlib.h>
6788#include <stdio.h>
6789int main(int argc, char **argv) {
6790	/* Some math to catch -ftrapv problems in the toolchain */
6791	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6792	float l = i * 2.1;
6793	double m = l / 0.5;
6794	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6795	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6796	exit(0);
6797}
6798
6799_ACEOF
6800rm -f conftest.$ac_objext conftest$ac_exeext
6801if { (ac_try="$ac_link"
6802case "(($ac_try" in
6803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804  *) ac_try_echo=$ac_try;;
6805esac
6806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807  (eval "$ac_link") 2>conftest.er1
6808  ac_status=$?
6809  grep -v '^ *+' conftest.er1 >conftest.err
6810  rm -f conftest.er1
6811  cat conftest.err >&5
6812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813  (exit $ac_status); } && {
6814	 test -z "$ac_c_werror_flag" ||
6815	 test ! -s conftest.err
6816       } && test -s conftest$ac_exeext &&
6817       $as_test_x conftest$ac_exeext; then
6818   { echo "$as_me:$LINENO: result: yes" >&5
6819echo "${ECHO_T}yes" >&6; }
6820		  LDFLAGS="$saved_LDFLAGS $_define_flag"
6821else
6822  echo "$as_me: failed program was:" >&5
6823sed 's/^/| /' conftest.$ac_ext >&5
6824
6825	 { echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6; }
6827		  LDFLAGS="$saved_LDFLAGS"
6828
6829fi
6830
6831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832      conftest$ac_exeext conftest.$ac_ext
6833}
6834	{
6835	{ echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6836echo $ECHO_N "checking if $LD supports link flag -Wl,-z,noexecstack... $ECHO_C" >&6; }
6837	saved_LDFLAGS="$LDFLAGS"
6838	LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6839	_define_flag=""
6840	test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6841	cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h.  */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h.  */
6847
6848#include <stdlib.h>
6849#include <stdio.h>
6850int main(int argc, char **argv) {
6851	/* Some math to catch -ftrapv problems in the toolchain */
6852	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6853	float l = i * 2.1;
6854	double m = l / 0.5;
6855	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6856	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6857	exit(0);
6858}
6859
6860_ACEOF
6861rm -f conftest.$ac_objext conftest$ac_exeext
6862if { (ac_try="$ac_link"
6863case "(($ac_try" in
6864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865  *) ac_try_echo=$ac_try;;
6866esac
6867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868  (eval "$ac_link") 2>conftest.er1
6869  ac_status=$?
6870  grep -v '^ *+' conftest.er1 >conftest.err
6871  rm -f conftest.er1
6872  cat conftest.err >&5
6873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874  (exit $ac_status); } && {
6875	 test -z "$ac_c_werror_flag" ||
6876	 test ! -s conftest.err
6877       } && test -s conftest$ac_exeext &&
6878       $as_test_x conftest$ac_exeext; then
6879   { echo "$as_me:$LINENO: result: yes" >&5
6880echo "${ECHO_T}yes" >&6; }
6881		  LDFLAGS="$saved_LDFLAGS $_define_flag"
6882else
6883  echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886	 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888		  LDFLAGS="$saved_LDFLAGS"
6889
6890fi
6891
6892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6893      conftest$ac_exeext conftest.$ac_ext
6894}
6895	# NB. -ftrapv expects certain support functions to be present in
6896	# the compiler library (libgcc or similar) to detect integer operations
6897	# that can overflow. We must check that the result of enabling it
6898	# actually links. The test program compiled/linked includes a number
6899	# of integer operations that should exercise this.
6900	{
6901	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6902echo $ECHO_N "checking if $CC supports compile flag -ftrapv and linking succeeds... $ECHO_C" >&6; }
6903	saved_CFLAGS="$CFLAGS"
6904	CFLAGS="$CFLAGS $WERROR -ftrapv"
6905	_define_flag=""
6906	test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6907	cat >conftest.$ac_ext <<_ACEOF
6908/* confdefs.h.  */
6909_ACEOF
6910cat confdefs.h >>conftest.$ac_ext
6911cat >>conftest.$ac_ext <<_ACEOF
6912/* end confdefs.h.  */
6913
6914#include <stdlib.h>
6915#include <stdio.h>
6916int main(int argc, char **argv) {
6917	/* Some math to catch -ftrapv problems in the toolchain */
6918	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6919	float l = i * 2.1;
6920	double m = l / 0.5;
6921	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6922	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6923	exit(0);
6924}
6925
6926_ACEOF
6927rm -f conftest.$ac_objext conftest$ac_exeext
6928if { (ac_try="$ac_link"
6929case "(($ac_try" in
6930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931  *) ac_try_echo=$ac_try;;
6932esac
6933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934  (eval "$ac_link") 2>conftest.er1
6935  ac_status=$?
6936  grep -v '^ *+' conftest.er1 >conftest.err
6937  rm -f conftest.er1
6938  cat conftest.err >&5
6939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940  (exit $ac_status); } && {
6941	 test -z "$ac_c_werror_flag" ||
6942	 test ! -s conftest.err
6943       } && test -s conftest$ac_exeext &&
6944       $as_test_x conftest$ac_exeext; then
6945
6946if `grep -i "unrecognized option" conftest.err >/dev/null`
6947then
6948		{ echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6; }
6950		CFLAGS="$saved_CFLAGS"
6951else
6952		{ echo "$as_me:$LINENO: result: yes" >&5
6953echo "${ECHO_T}yes" >&6; }
6954		 CFLAGS="$saved_CFLAGS $_define_flag"
6955fi
6956else
6957  echo "$as_me: failed program was:" >&5
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960	 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
6962		  CFLAGS="$saved_CFLAGS"
6963
6964fi
6965
6966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6967      conftest$ac_exeext conftest.$ac_ext
6968}
6969    fi
6970	{ echo "$as_me:$LINENO: checking gcc version" >&5
6971echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
6972	GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6973	case $GCC_VER in
6974		1.*) no_attrib_nonnull=1 ;;
6975		2.8* | 2.9*)
6976		     no_attrib_nonnull=1
6977		     ;;
6978		2.*) no_attrib_nonnull=1 ;;
6979		*) ;;
6980	esac
6981	{ echo "$as_me:$LINENO: result: $GCC_VER" >&5
6982echo "${ECHO_T}$GCC_VER" >&6; }
6983
6984	{ echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
6985echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
6986	saved_CFLAGS="$CFLAGS"
6987	CFLAGS="$CFLAGS -fno-builtin-memset"
6988	cat >conftest.$ac_ext <<_ACEOF
6989/* confdefs.h.  */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h.  */
6994 #include <string.h>
6995int
6996main ()
6997{
6998 char b[10]; memset(b, 0, sizeof(b));
6999  ;
7000  return 0;
7001}
7002_ACEOF
7003rm -f conftest.$ac_objext conftest$ac_exeext
7004if { (ac_try="$ac_link"
7005case "(($ac_try" in
7006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007  *) ac_try_echo=$ac_try;;
7008esac
7009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010  (eval "$ac_link") 2>conftest.er1
7011  ac_status=$?
7012  grep -v '^ *+' conftest.er1 >conftest.err
7013  rm -f conftest.er1
7014  cat conftest.err >&5
7015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016  (exit $ac_status); } && {
7017	 test -z "$ac_c_werror_flag" ||
7018	 test ! -s conftest.err
7019       } && test -s conftest$ac_exeext &&
7020       $as_test_x conftest$ac_exeext; then
7021   { echo "$as_me:$LINENO: result: yes" >&5
7022echo "${ECHO_T}yes" >&6; }
7023else
7024  echo "$as_me: failed program was:" >&5
7025sed 's/^/| /' conftest.$ac_ext >&5
7026
7027	 { echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6; }
7029		  CFLAGS="$saved_CFLAGS"
7030
7031fi
7032
7033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7034      conftest$ac_exeext conftest.$ac_ext
7035
7036	# -fstack-protector-all doesn't always work for some GCC versions
7037	# and/or platforms, so we test if we can.  If it's not supported
7038	# on a given platform gcc will emit a warning so we use -Werror.
7039	if test "x$use_stack_protector" = "x1"; then
7040	    for t in -fstack-protector-strong -fstack-protector-all \
7041		    -fstack-protector; do
7042		{ echo "$as_me:$LINENO: checking if $CC supports $t" >&5
7043echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
7044		saved_CFLAGS="$CFLAGS"
7045		saved_LDFLAGS="$LDFLAGS"
7046		CFLAGS="$CFLAGS $t -Werror"
7047		LDFLAGS="$LDFLAGS $t -Werror"
7048		cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h.  */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h.  */
7054 #include <stdio.h>
7055int
7056main ()
7057{
7058
7059	char x[256];
7060	snprintf(x, sizeof(x), "XXX");
7061
7062  ;
7063  return 0;
7064}
7065_ACEOF
7066rm -f conftest.$ac_objext conftest$ac_exeext
7067if { (ac_try="$ac_link"
7068case "(($ac_try" in
7069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070  *) ac_try_echo=$ac_try;;
7071esac
7072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073  (eval "$ac_link") 2>conftest.er1
7074  ac_status=$?
7075  grep -v '^ *+' conftest.er1 >conftest.err
7076  rm -f conftest.er1
7077  cat conftest.err >&5
7078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079  (exit $ac_status); } && {
7080	 test -z "$ac_c_werror_flag" ||
7081	 test ! -s conftest.err
7082       } && test -s conftest$ac_exeext &&
7083       $as_test_x conftest$ac_exeext; then
7084   { echo "$as_me:$LINENO: result: yes" >&5
7085echo "${ECHO_T}yes" >&6; }
7086		      CFLAGS="$saved_CFLAGS $t"
7087		      LDFLAGS="$saved_LDFLAGS $t"
7088		      { echo "$as_me:$LINENO: checking if $t works" >&5
7089echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
7090		      if test "$cross_compiling" = yes; then
7091   { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
7092echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
7093			  break
7094
7095else
7096  cat >conftest.$ac_ext <<_ACEOF
7097/* confdefs.h.  */
7098_ACEOF
7099cat confdefs.h >>conftest.$ac_ext
7100cat >>conftest.$ac_ext <<_ACEOF
7101/* end confdefs.h.  */
7102 #include <stdio.h>
7103int
7104main ()
7105{
7106
7107	char x[256];
7108	snprintf(x, sizeof(x), "XXX");
7109
7110  ;
7111  return 0;
7112}
7113_ACEOF
7114rm -f conftest$ac_exeext
7115if { (ac_try="$ac_link"
7116case "(($ac_try" in
7117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118  *) ac_try_echo=$ac_try;;
7119esac
7120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121  (eval "$ac_link") 2>&5
7122  ac_status=$?
7123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7125  { (case "(($ac_try" in
7126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127  *) ac_try_echo=$ac_try;;
7128esac
7129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130  (eval "$ac_try") 2>&5
7131  ac_status=$?
7132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133  (exit $ac_status); }; }; then
7134   { echo "$as_me:$LINENO: result: yes" >&5
7135echo "${ECHO_T}yes" >&6; }
7136			  break
7137else
7138  echo "$as_me: program exited with status $ac_status" >&5
7139echo "$as_me: failed program was:" >&5
7140sed 's/^/| /' conftest.$ac_ext >&5
7141
7142( exit $ac_status )
7143 { echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6; }
7145fi
7146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7147fi
7148
7149
7150
7151else
7152  echo "$as_me: failed program was:" >&5
7153sed 's/^/| /' conftest.$ac_ext >&5
7154
7155	 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157
7158fi
7159
7160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7161      conftest$ac_exeext conftest.$ac_ext
7162		CFLAGS="$saved_CFLAGS"
7163		LDFLAGS="$saved_LDFLAGS"
7164	    done
7165	fi
7166
7167	if test -z "$have_llong_max"; then
7168		# retry LLONG_MAX with -std=gnu99, needed on some Linuxes
7169		unset ac_cv_have_decl_LLONG_MAX
7170		saved_CFLAGS="$CFLAGS"
7171		CFLAGS="$CFLAGS -std=gnu99"
7172		{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
7173echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
7174if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
7175  echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177  cat >conftest.$ac_ext <<_ACEOF
7178/* confdefs.h.  */
7179_ACEOF
7180cat confdefs.h >>conftest.$ac_ext
7181cat >>conftest.$ac_ext <<_ACEOF
7182/* end confdefs.h.  */
7183#include <limits.h>
7184
7185
7186int
7187main ()
7188{
7189#ifndef LLONG_MAX
7190  (void) LLONG_MAX;
7191#endif
7192
7193  ;
7194  return 0;
7195}
7196_ACEOF
7197rm -f conftest.$ac_objext
7198if { (ac_try="$ac_compile"
7199case "(($ac_try" in
7200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201  *) ac_try_echo=$ac_try;;
7202esac
7203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204  (eval "$ac_compile") 2>conftest.er1
7205  ac_status=$?
7206  grep -v '^ *+' conftest.er1 >conftest.err
7207  rm -f conftest.er1
7208  cat conftest.err >&5
7209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210  (exit $ac_status); } && {
7211	 test -z "$ac_c_werror_flag" ||
7212	 test ! -s conftest.err
7213       } && test -s conftest.$ac_objext; then
7214  ac_cv_have_decl_LLONG_MAX=yes
7215else
7216  echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
7219	ac_cv_have_decl_LLONG_MAX=no
7220fi
7221
7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223fi
7224{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
7225echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
7226if test $ac_cv_have_decl_LLONG_MAX = yes; then
7227  have_llong_max=1
7228else
7229  CFLAGS="$saved_CFLAGS"
7230fi
7231
7232	fi
7233fi
7234
7235{ echo "$as_me:$LINENO: checking if compiler allows __attribute__ on return types" >&5
7236echo $ECHO_N "checking if compiler allows __attribute__ on return types... $ECHO_C" >&6; }
7237cat >conftest.$ac_ext <<_ACEOF
7238/* confdefs.h.  */
7239_ACEOF
7240cat confdefs.h >>conftest.$ac_ext
7241cat >>conftest.$ac_ext <<_ACEOF
7242/* end confdefs.h.  */
7243
7244#include <stdlib.h>
7245__attribute__((__unused__)) static void foo(void){return;}
7246int
7247main ()
7248{
7249 exit(0);
7250  ;
7251  return 0;
7252}
7253_ACEOF
7254rm -f conftest.$ac_objext
7255if { (ac_try="$ac_compile"
7256case "(($ac_try" in
7257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258  *) ac_try_echo=$ac_try;;
7259esac
7260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261  (eval "$ac_compile") 2>conftest.er1
7262  ac_status=$?
7263  grep -v '^ *+' conftest.er1 >conftest.err
7264  rm -f conftest.er1
7265  cat conftest.err >&5
7266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267  (exit $ac_status); } && {
7268	 test -z "$ac_c_werror_flag" ||
7269	 test ! -s conftest.err
7270       } && test -s conftest.$ac_objext; then
7271   { echo "$as_me:$LINENO: result: yes" >&5
7272echo "${ECHO_T}yes" >&6; }
7273else
7274  echo "$as_me: failed program was:" >&5
7275sed 's/^/| /' conftest.$ac_ext >&5
7276
7277	 { echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6; }
7279
7280cat >>confdefs.h <<\_ACEOF
7281#define NO_ATTRIBUTE_ON_RETURN_TYPE 1
7282_ACEOF
7283
7284
7285fi
7286
7287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288
7289if test "x$no_attrib_nonnull" != "x1" ; then
7290
7291cat >>confdefs.h <<\_ACEOF
7292#define HAVE_ATTRIBUTE__NONNULL__ 1
7293_ACEOF
7294
7295fi
7296
7297
7298# Check whether --with-rpath was given.
7299if test "${with_rpath+set}" = set; then
7300  withval=$with_rpath;
7301		if test "x$withval" = "xno" ; then
7302			need_dash_r=""
7303		fi
7304		if test "x$withval" = "xyes" ; then
7305			need_dash_r=1
7306		fi
7307
7308
7309fi
7310
7311
7312# Allow user to specify flags
7313
7314# Check whether --with-cflags was given.
7315if test "${with_cflags+set}" = set; then
7316  withval=$with_cflags;
7317		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
7318		    test "x${withval}" != "xyes"; then
7319			CFLAGS="$CFLAGS $withval"
7320		fi
7321
7322
7323fi
7324
7325
7326# Check whether --with-cppflags was given.
7327if test "${with_cppflags+set}" = set; then
7328  withval=$with_cppflags;
7329		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
7330		    test "x${withval}" != "xyes"; then
7331			CPPFLAGS="$CPPFLAGS $withval"
7332		fi
7333
7334
7335fi
7336
7337
7338# Check whether --with-ldflags was given.
7339if test "${with_ldflags+set}" = set; then
7340  withval=$with_ldflags;
7341		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
7342		    test "x${withval}" != "xyes"; then
7343			LDFLAGS="$LDFLAGS $withval"
7344		fi
7345
7346
7347fi
7348
7349
7350# Check whether --with-libs was given.
7351if test "${with_libs+set}" = set; then
7352  withval=$with_libs;
7353		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
7354		    test "x${withval}" != "xyes"; then
7355			LIBS="$LIBS $withval"
7356		fi
7357
7358
7359fi
7360
7361
7362# Check whether --with-Werror was given.
7363if test "${with_Werror+set}" = set; then
7364  withval=$with_Werror;
7365		if test -n "$withval"  &&  test "x$withval" != "xno"; then
7366			werror_flags="-Werror"
7367			if test "x${withval}" != "xyes"; then
7368				werror_flags="$withval"
7369			fi
7370		fi
7371
7372
7373fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443for ac_header in  \
7444	blf.h \
7445	bstring.h \
7446	crypt.h \
7447	crypto/sha2.h \
7448	dirent.h \
7449	endian.h \
7450	elf.h \
7451	features.h \
7452	fcntl.h \
7453	floatingpoint.h \
7454	getopt.h \
7455	glob.h \
7456	ia.h \
7457	iaf.h \
7458	inttypes.h \
7459	limits.h \
7460	locale.h \
7461	login.h \
7462	maillock.h \
7463	ndir.h \
7464	net/if_tun.h \
7465	netdb.h \
7466	netgroup.h \
7467	pam/pam_appl.h \
7468	paths.h \
7469	poll.h \
7470	pty.h \
7471	readpassphrase.h \
7472	rpc/types.h \
7473	security/pam_appl.h \
7474	sha2.h \
7475	shadow.h \
7476	stddef.h \
7477	stdint.h \
7478	string.h \
7479	strings.h \
7480	sys/audit.h \
7481	sys/bitypes.h \
7482	sys/bsdtty.h \
7483	sys/capability.h \
7484	sys/cdefs.h \
7485	sys/dir.h \
7486	sys/mman.h \
7487	sys/ndir.h \
7488	sys/poll.h \
7489	sys/prctl.h \
7490	sys/pstat.h \
7491	sys/select.h \
7492	sys/stat.h \
7493	sys/stream.h \
7494	sys/stropts.h \
7495	sys/strtio.h \
7496	sys/statvfs.h \
7497	sys/sysmacros.h \
7498	sys/time.h \
7499	sys/timers.h \
7500	time.h \
7501	tmpdir.h \
7502	ttyent.h \
7503	ucred.h \
7504	unistd.h \
7505	usersec.h \
7506	util.h \
7507	utime.h \
7508	utmp.h \
7509	utmpx.h \
7510	vis.h \
7511
7512do
7513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7518  echo $ECHO_N "(cached) $ECHO_C" >&6
7519fi
7520ac_res=`eval echo '${'$as_ac_Header'}'`
7521	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7522echo "${ECHO_T}$ac_res" >&6; }
7523else
7524  # Is the header compilable?
7525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7527cat >conftest.$ac_ext <<_ACEOF
7528/* confdefs.h.  */
7529_ACEOF
7530cat confdefs.h >>conftest.$ac_ext
7531cat >>conftest.$ac_ext <<_ACEOF
7532/* end confdefs.h.  */
7533$ac_includes_default
7534#include <$ac_header>
7535_ACEOF
7536rm -f conftest.$ac_objext
7537if { (ac_try="$ac_compile"
7538case "(($ac_try" in
7539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540  *) ac_try_echo=$ac_try;;
7541esac
7542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543  (eval "$ac_compile") 2>conftest.er1
7544  ac_status=$?
7545  grep -v '^ *+' conftest.er1 >conftest.err
7546  rm -f conftest.er1
7547  cat conftest.err >&5
7548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549  (exit $ac_status); } && {
7550	 test -z "$ac_c_werror_flag" ||
7551	 test ! -s conftest.err
7552       } && test -s conftest.$ac_objext; then
7553  ac_header_compiler=yes
7554else
7555  echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558	ac_header_compiler=no
7559fi
7560
7561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7563echo "${ECHO_T}$ac_header_compiler" >&6; }
7564
7565# Is the header present?
7566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7568cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h.  */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h.  */
7574#include <$ac_header>
7575_ACEOF
7576if { (ac_try="$ac_cpp conftest.$ac_ext"
7577case "(($ac_try" in
7578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579  *) ac_try_echo=$ac_try;;
7580esac
7581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7583  ac_status=$?
7584  grep -v '^ *+' conftest.er1 >conftest.err
7585  rm -f conftest.er1
7586  cat conftest.err >&5
7587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588  (exit $ac_status); } >/dev/null && {
7589	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7590	 test ! -s conftest.err
7591       }; then
7592  ac_header_preproc=yes
7593else
7594  echo "$as_me: failed program was:" >&5
7595sed 's/^/| /' conftest.$ac_ext >&5
7596
7597  ac_header_preproc=no
7598fi
7599
7600rm -f conftest.err conftest.$ac_ext
7601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7602echo "${ECHO_T}$ac_header_preproc" >&6; }
7603
7604# So?  What about this header?
7605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7606  yes:no: )
7607    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7609    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7611    ac_header_preproc=yes
7612    ;;
7613  no:yes:* )
7614    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7616    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7617echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7618    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7620    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7621echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7622    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7624    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7626    ( cat <<\_ASBOX
7627## ------------------------------------------- ##
7628## Report this to openssh-unix-dev@mindrot.org ##
7629## ------------------------------------------- ##
7630_ASBOX
7631     ) | sed "s/^/$as_me: WARNING:     /" >&2
7632    ;;
7633esac
7634{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7637  echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639  eval "$as_ac_Header=\$ac_header_preproc"
7640fi
7641ac_res=`eval echo '${'$as_ac_Header'}'`
7642	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7643echo "${ECHO_T}$ac_res" >&6; }
7644
7645fi
7646if test `eval echo '${'$as_ac_Header'}'` = yes; then
7647  cat >>confdefs.h <<_ACEOF
7648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7649_ACEOF
7650
7651fi
7652
7653done
7654
7655
7656# lastlog.h requires sys/time.h to be included first on Solaris
7657
7658for ac_header in lastlog.h
7659do
7660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7661{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h.  */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h.  */
7672
7673#ifdef HAVE_SYS_TIME_H
7674# include <sys/time.h>
7675#endif
7676
7677
7678#include <$ac_header>
7679_ACEOF
7680rm -f conftest.$ac_objext
7681if { (ac_try="$ac_compile"
7682case "(($ac_try" in
7683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684  *) ac_try_echo=$ac_try;;
7685esac
7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687  (eval "$ac_compile") 2>conftest.er1
7688  ac_status=$?
7689  grep -v '^ *+' conftest.er1 >conftest.err
7690  rm -f conftest.er1
7691  cat conftest.err >&5
7692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693  (exit $ac_status); } && {
7694	 test -z "$ac_c_werror_flag" ||
7695	 test ! -s conftest.err
7696       } && test -s conftest.$ac_objext; then
7697  eval "$as_ac_Header=yes"
7698else
7699  echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702	eval "$as_ac_Header=no"
7703fi
7704
7705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706fi
7707ac_res=`eval echo '${'$as_ac_Header'}'`
7708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7709echo "${ECHO_T}$ac_res" >&6; }
7710if test `eval echo '${'$as_ac_Header'}'` = yes; then
7711  cat >>confdefs.h <<_ACEOF
7712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7713_ACEOF
7714
7715fi
7716
7717done
7718
7719
7720# sys/ptms.h requires sys/stream.h to be included first on Solaris
7721
7722for ac_header in sys/ptms.h
7723do
7724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7725{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7728  echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730  cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h.  */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h.  */
7736
7737#ifdef HAVE_SYS_STREAM_H
7738# include <sys/stream.h>
7739#endif
7740
7741
7742#include <$ac_header>
7743_ACEOF
7744rm -f conftest.$ac_objext
7745if { (ac_try="$ac_compile"
7746case "(($ac_try" in
7747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748  *) ac_try_echo=$ac_try;;
7749esac
7750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751  (eval "$ac_compile") 2>conftest.er1
7752  ac_status=$?
7753  grep -v '^ *+' conftest.er1 >conftest.err
7754  rm -f conftest.er1
7755  cat conftest.err >&5
7756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757  (exit $ac_status); } && {
7758	 test -z "$ac_c_werror_flag" ||
7759	 test ! -s conftest.err
7760       } && test -s conftest.$ac_objext; then
7761  eval "$as_ac_Header=yes"
7762else
7763  echo "$as_me: failed program was:" >&5
7764sed 's/^/| /' conftest.$ac_ext >&5
7765
7766	eval "$as_ac_Header=no"
7767fi
7768
7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770fi
7771ac_res=`eval echo '${'$as_ac_Header'}'`
7772	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7773echo "${ECHO_T}$ac_res" >&6; }
7774if test `eval echo '${'$as_ac_Header'}'` = yes; then
7775  cat >>confdefs.h <<_ACEOF
7776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7777_ACEOF
7778
7779fi
7780
7781done
7782
7783
7784# login_cap.h requires sys/types.h on NetBSD
7785
7786for ac_header in login_cap.h
7787do
7788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7789{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7792  echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794  cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h.  */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h.  */
7800
7801#include <sys/types.h>
7802
7803
7804#include <$ac_header>
7805_ACEOF
7806rm -f conftest.$ac_objext
7807if { (ac_try="$ac_compile"
7808case "(($ac_try" in
7809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810  *) ac_try_echo=$ac_try;;
7811esac
7812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813  (eval "$ac_compile") 2>conftest.er1
7814  ac_status=$?
7815  grep -v '^ *+' conftest.er1 >conftest.err
7816  rm -f conftest.er1
7817  cat conftest.err >&5
7818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819  (exit $ac_status); } && {
7820	 test -z "$ac_c_werror_flag" ||
7821	 test ! -s conftest.err
7822       } && test -s conftest.$ac_objext; then
7823  eval "$as_ac_Header=yes"
7824else
7825  echo "$as_me: failed program was:" >&5
7826sed 's/^/| /' conftest.$ac_ext >&5
7827
7828	eval "$as_ac_Header=no"
7829fi
7830
7831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832fi
7833ac_res=`eval echo '${'$as_ac_Header'}'`
7834	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7835echo "${ECHO_T}$ac_res" >&6; }
7836if test `eval echo '${'$as_ac_Header'}'` = yes; then
7837  cat >>confdefs.h <<_ACEOF
7838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839_ACEOF
7840
7841fi
7842
7843done
7844
7845
7846# older BSDs need sys/param.h before sys/mount.h
7847
7848for ac_header in sys/mount.h
7849do
7850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7851{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7854  echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856  cat >conftest.$ac_ext <<_ACEOF
7857/* confdefs.h.  */
7858_ACEOF
7859cat confdefs.h >>conftest.$ac_ext
7860cat >>conftest.$ac_ext <<_ACEOF
7861/* end confdefs.h.  */
7862
7863#include <sys/param.h>
7864
7865
7866#include <$ac_header>
7867_ACEOF
7868rm -f conftest.$ac_objext
7869if { (ac_try="$ac_compile"
7870case "(($ac_try" in
7871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872  *) ac_try_echo=$ac_try;;
7873esac
7874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875  (eval "$ac_compile") 2>conftest.er1
7876  ac_status=$?
7877  grep -v '^ *+' conftest.er1 >conftest.err
7878  rm -f conftest.er1
7879  cat conftest.err >&5
7880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881  (exit $ac_status); } && {
7882	 test -z "$ac_c_werror_flag" ||
7883	 test ! -s conftest.err
7884       } && test -s conftest.$ac_objext; then
7885  eval "$as_ac_Header=yes"
7886else
7887  echo "$as_me: failed program was:" >&5
7888sed 's/^/| /' conftest.$ac_ext >&5
7889
7890	eval "$as_ac_Header=no"
7891fi
7892
7893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894fi
7895ac_res=`eval echo '${'$as_ac_Header'}'`
7896	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7897echo "${ECHO_T}$ac_res" >&6; }
7898if test `eval echo '${'$as_ac_Header'}'` = yes; then
7899  cat >>confdefs.h <<_ACEOF
7900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7901_ACEOF
7902
7903fi
7904
7905done
7906
7907
7908# Android requires sys/socket.h to be included before sys/un.h
7909
7910for ac_header in sys/un.h
7911do
7912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7913{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7916  echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918  cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h.  */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h.  */
7924
7925#include <sys/types.h>
7926#include <sys/socket.h>
7927
7928
7929#include <$ac_header>
7930_ACEOF
7931rm -f conftest.$ac_objext
7932if { (ac_try="$ac_compile"
7933case "(($ac_try" in
7934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935  *) ac_try_echo=$ac_try;;
7936esac
7937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938  (eval "$ac_compile") 2>conftest.er1
7939  ac_status=$?
7940  grep -v '^ *+' conftest.er1 >conftest.err
7941  rm -f conftest.er1
7942  cat conftest.err >&5
7943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944  (exit $ac_status); } && {
7945	 test -z "$ac_c_werror_flag" ||
7946	 test ! -s conftest.err
7947       } && test -s conftest.$ac_objext; then
7948  eval "$as_ac_Header=yes"
7949else
7950  echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
7953	eval "$as_ac_Header=no"
7954fi
7955
7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957fi
7958ac_res=`eval echo '${'$as_ac_Header'}'`
7959	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7960echo "${ECHO_T}$ac_res" >&6; }
7961if test `eval echo '${'$as_ac_Header'}'` = yes; then
7962  cat >>confdefs.h <<_ACEOF
7963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7964_ACEOF
7965
7966fi
7967
7968done
7969
7970
7971# Messages for features tested for in target-specific section
7972SIA_MSG="no"
7973SPC_MSG="no"
7974SP_MSG="no"
7975
7976# Check for some target-specific stuff
7977case "$host" in
7978*-*-aix*)
7979	# Some versions of VAC won't allow macro redefinitions at
7980	# -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
7981	# particularly with older versions of vac or xlc.
7982	# It also throws errors about null macro argments, but these are
7983	# not fatal.
7984	{ echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
7985echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
7986	cat >conftest.$ac_ext <<_ACEOF
7987/* confdefs.h.  */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h.  */
7992
7993#define testmacro foo
7994#define testmacro bar
7995int
7996main ()
7997{
7998 exit(0);
7999  ;
8000  return 0;
8001}
8002_ACEOF
8003rm -f conftest.$ac_objext
8004if { (ac_try="$ac_compile"
8005case "(($ac_try" in
8006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007  *) ac_try_echo=$ac_try;;
8008esac
8009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010  (eval "$ac_compile") 2>conftest.er1
8011  ac_status=$?
8012  grep -v '^ *+' conftest.er1 >conftest.err
8013  rm -f conftest.er1
8014  cat conftest.err >&5
8015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016  (exit $ac_status); } && {
8017	 test -z "$ac_c_werror_flag" ||
8018	 test ! -s conftest.err
8019       } && test -s conftest.$ac_objext; then
8020   { echo "$as_me:$LINENO: result: yes" >&5
8021echo "${ECHO_T}yes" >&6; }
8022else
8023  echo "$as_me: failed program was:" >&5
8024sed 's/^/| /' conftest.$ac_ext >&5
8025
8026	 { echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6; }
8028	      CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
8029	      LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
8030	      CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
8031	      CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
8032
8033
8034fi
8035
8036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037
8038	{ echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
8039echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
8040	if (test -z "$blibpath"); then
8041		blibpath="/usr/lib:/lib"
8042	fi
8043	saved_LDFLAGS="$LDFLAGS"
8044	if test "$GCC" = "yes"; then
8045		flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
8046	else
8047		flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
8048	fi
8049	for tryflags in $flags ;do
8050		if (test -z "$blibflags"); then
8051			LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
8052			cat >conftest.$ac_ext <<_ACEOF
8053/* confdefs.h.  */
8054_ACEOF
8055cat confdefs.h >>conftest.$ac_ext
8056cat >>conftest.$ac_ext <<_ACEOF
8057/* end confdefs.h.  */
8058
8059int
8060main ()
8061{
8062
8063  ;
8064  return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext conftest$ac_exeext
8068if { (ac_try="$ac_link"
8069case "(($ac_try" in
8070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071  *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074  (eval "$ac_link") 2>conftest.er1
8075  ac_status=$?
8076  grep -v '^ *+' conftest.er1 >conftest.err
8077  rm -f conftest.er1
8078  cat conftest.err >&5
8079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080  (exit $ac_status); } && {
8081	 test -z "$ac_c_werror_flag" ||
8082	 test ! -s conftest.err
8083       } && test -s conftest$ac_exeext &&
8084       $as_test_x conftest$ac_exeext; then
8085  blibflags=$tryflags
8086else
8087  echo "$as_me: failed program was:" >&5
8088sed 's/^/| /' conftest.$ac_ext >&5
8089
8090
8091fi
8092
8093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8094      conftest$ac_exeext conftest.$ac_ext
8095		fi
8096	done
8097	if (test -z "$blibflags"); then
8098		{ echo "$as_me:$LINENO: result: not found" >&5
8099echo "${ECHO_T}not found" >&6; }
8100		{ { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
8101echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
8102   { (exit 1); exit 1; }; }
8103	else
8104		{ echo "$as_me:$LINENO: result: $blibflags" >&5
8105echo "${ECHO_T}$blibflags" >&6; }
8106	fi
8107	LDFLAGS="$saved_LDFLAGS"
8108		{ echo "$as_me:$LINENO: checking for authenticate" >&5
8109echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
8110if test "${ac_cv_func_authenticate+set}" = set; then
8111  echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113  cat >conftest.$ac_ext <<_ACEOF
8114/* confdefs.h.  */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h.  */
8119/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
8120   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8121#define authenticate innocuous_authenticate
8122
8123/* System header to define __stub macros and hopefully few prototypes,
8124    which can conflict with char authenticate (); below.
8125    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8126    <limits.h> exists even on freestanding compilers.  */
8127
8128#ifdef __STDC__
8129# include <limits.h>
8130#else
8131# include <assert.h>
8132#endif
8133
8134#undef authenticate
8135
8136/* Override any GCC internal prototype to avoid an error.
8137   Use char because int might match the return type of a GCC
8138   builtin and then its argument prototype would still apply.  */
8139#ifdef __cplusplus
8140extern "C"
8141#endif
8142char authenticate ();
8143/* The GNU C library defines this for functions which it implements
8144    to always fail with ENOSYS.  Some functions are actually named
8145    something starting with __ and the normal name is an alias.  */
8146#if defined __stub_authenticate || defined __stub___authenticate
8147choke me
8148#endif
8149
8150int
8151main ()
8152{
8153return authenticate ();
8154  ;
8155  return 0;
8156}
8157_ACEOF
8158rm -f conftest.$ac_objext conftest$ac_exeext
8159if { (ac_try="$ac_link"
8160case "(($ac_try" in
8161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162  *) ac_try_echo=$ac_try;;
8163esac
8164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165  (eval "$ac_link") 2>conftest.er1
8166  ac_status=$?
8167  grep -v '^ *+' conftest.er1 >conftest.err
8168  rm -f conftest.er1
8169  cat conftest.err >&5
8170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171  (exit $ac_status); } && {
8172	 test -z "$ac_c_werror_flag" ||
8173	 test ! -s conftest.err
8174       } && test -s conftest$ac_exeext &&
8175       $as_test_x conftest$ac_exeext; then
8176  ac_cv_func_authenticate=yes
8177else
8178  echo "$as_me: failed program was:" >&5
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
8181	ac_cv_func_authenticate=no
8182fi
8183
8184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8185      conftest$ac_exeext conftest.$ac_ext
8186fi
8187{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
8188echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
8189if test $ac_cv_func_authenticate = yes; then
8190
8191cat >>confdefs.h <<\_ACEOF
8192#define WITH_AIXAUTHENTICATE 1
8193_ACEOF
8194
8195else
8196  { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
8197echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
8198if test "${ac_cv_lib_s_authenticate+set}" = set; then
8199  echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201  ac_check_lib_save_LIBS=$LIBS
8202LIBS="-ls  $LIBS"
8203cat >conftest.$ac_ext <<_ACEOF
8204/* confdefs.h.  */
8205_ACEOF
8206cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h.  */
8209
8210/* Override any GCC internal prototype to avoid an error.
8211   Use char because int might match the return type of a GCC
8212   builtin and then its argument prototype would still apply.  */
8213#ifdef __cplusplus
8214extern "C"
8215#endif
8216char authenticate ();
8217int
8218main ()
8219{
8220return authenticate ();
8221  ;
8222  return 0;
8223}
8224_ACEOF
8225rm -f conftest.$ac_objext conftest$ac_exeext
8226if { (ac_try="$ac_link"
8227case "(($ac_try" in
8228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229  *) ac_try_echo=$ac_try;;
8230esac
8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232  (eval "$ac_link") 2>conftest.er1
8233  ac_status=$?
8234  grep -v '^ *+' conftest.er1 >conftest.err
8235  rm -f conftest.er1
8236  cat conftest.err >&5
8237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238  (exit $ac_status); } && {
8239	 test -z "$ac_c_werror_flag" ||
8240	 test ! -s conftest.err
8241       } && test -s conftest$ac_exeext &&
8242       $as_test_x conftest$ac_exeext; then
8243  ac_cv_lib_s_authenticate=yes
8244else
8245  echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
8248	ac_cv_lib_s_authenticate=no
8249fi
8250
8251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8252      conftest$ac_exeext conftest.$ac_ext
8253LIBS=$ac_check_lib_save_LIBS
8254fi
8255{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
8256echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
8257if test $ac_cv_lib_s_authenticate = yes; then
8258   cat >>confdefs.h <<\_ACEOF
8259#define WITH_AIXAUTHENTICATE 1
8260_ACEOF
8261
8262				LIBS="$LIBS -ls"
8263
8264fi
8265
8266
8267fi
8268
8269		{ echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
8270echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
8271if test "${ac_cv_have_decl_authenticate+set}" = set; then
8272  echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274  cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h.  */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h.  */
8280#include <usersec.h>
8281
8282int
8283main ()
8284{
8285#ifndef authenticate
8286  (void) authenticate;
8287#endif
8288
8289  ;
8290  return 0;
8291}
8292_ACEOF
8293rm -f conftest.$ac_objext
8294if { (ac_try="$ac_compile"
8295case "(($ac_try" in
8296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297  *) ac_try_echo=$ac_try;;
8298esac
8299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300  (eval "$ac_compile") 2>conftest.er1
8301  ac_status=$?
8302  grep -v '^ *+' conftest.er1 >conftest.err
8303  rm -f conftest.er1
8304  cat conftest.err >&5
8305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306  (exit $ac_status); } && {
8307	 test -z "$ac_c_werror_flag" ||
8308	 test ! -s conftest.err
8309       } && test -s conftest.$ac_objext; then
8310  ac_cv_have_decl_authenticate=yes
8311else
8312  echo "$as_me: failed program was:" >&5
8313sed 's/^/| /' conftest.$ac_ext >&5
8314
8315	ac_cv_have_decl_authenticate=no
8316fi
8317
8318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319fi
8320{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
8321echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
8322if test $ac_cv_have_decl_authenticate = yes; then
8323
8324cat >>confdefs.h <<_ACEOF
8325#define HAVE_DECL_AUTHENTICATE 1
8326_ACEOF
8327
8328
8329else
8330  cat >>confdefs.h <<_ACEOF
8331#define HAVE_DECL_AUTHENTICATE 0
8332_ACEOF
8333
8334
8335fi
8336{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
8337echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
8338if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
8339  echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341  cat >conftest.$ac_ext <<_ACEOF
8342/* confdefs.h.  */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
8346/* end confdefs.h.  */
8347#include <usersec.h>
8348
8349int
8350main ()
8351{
8352#ifndef loginrestrictions
8353  (void) loginrestrictions;
8354#endif
8355
8356  ;
8357  return 0;
8358}
8359_ACEOF
8360rm -f conftest.$ac_objext
8361if { (ac_try="$ac_compile"
8362case "(($ac_try" in
8363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364  *) ac_try_echo=$ac_try;;
8365esac
8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367  (eval "$ac_compile") 2>conftest.er1
8368  ac_status=$?
8369  grep -v '^ *+' conftest.er1 >conftest.err
8370  rm -f conftest.er1
8371  cat conftest.err >&5
8372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373  (exit $ac_status); } && {
8374	 test -z "$ac_c_werror_flag" ||
8375	 test ! -s conftest.err
8376       } && test -s conftest.$ac_objext; then
8377  ac_cv_have_decl_loginrestrictions=yes
8378else
8379  echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
8382	ac_cv_have_decl_loginrestrictions=no
8383fi
8384
8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386fi
8387{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
8388echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
8389if test $ac_cv_have_decl_loginrestrictions = yes; then
8390
8391cat >>confdefs.h <<_ACEOF
8392#define HAVE_DECL_LOGINRESTRICTIONS 1
8393_ACEOF
8394
8395
8396else
8397  cat >>confdefs.h <<_ACEOF
8398#define HAVE_DECL_LOGINRESTRICTIONS 0
8399_ACEOF
8400
8401
8402fi
8403{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
8404echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
8405if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
8406  echo $ECHO_N "(cached) $ECHO_C" >&6
8407else
8408  cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h.  */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h.  */
8414#include <usersec.h>
8415
8416int
8417main ()
8418{
8419#ifndef loginsuccess
8420  (void) loginsuccess;
8421#endif
8422
8423  ;
8424  return 0;
8425}
8426_ACEOF
8427rm -f conftest.$ac_objext
8428if { (ac_try="$ac_compile"
8429case "(($ac_try" in
8430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431  *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434  (eval "$ac_compile") 2>conftest.er1
8435  ac_status=$?
8436  grep -v '^ *+' conftest.er1 >conftest.err
8437  rm -f conftest.er1
8438  cat conftest.err >&5
8439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440  (exit $ac_status); } && {
8441	 test -z "$ac_c_werror_flag" ||
8442	 test ! -s conftest.err
8443       } && test -s conftest.$ac_objext; then
8444  ac_cv_have_decl_loginsuccess=yes
8445else
8446  echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449	ac_cv_have_decl_loginsuccess=no
8450fi
8451
8452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453fi
8454{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
8455echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
8456if test $ac_cv_have_decl_loginsuccess = yes; then
8457
8458cat >>confdefs.h <<_ACEOF
8459#define HAVE_DECL_LOGINSUCCESS 1
8460_ACEOF
8461
8462
8463else
8464  cat >>confdefs.h <<_ACEOF
8465#define HAVE_DECL_LOGINSUCCESS 0
8466_ACEOF
8467
8468
8469fi
8470{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
8471echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
8472if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
8473  echo $ECHO_N "(cached) $ECHO_C" >&6
8474else
8475  cat >conftest.$ac_ext <<_ACEOF
8476/* confdefs.h.  */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
8480/* end confdefs.h.  */
8481#include <usersec.h>
8482
8483int
8484main ()
8485{
8486#ifndef passwdexpired
8487  (void) passwdexpired;
8488#endif
8489
8490  ;
8491  return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext
8495if { (ac_try="$ac_compile"
8496case "(($ac_try" in
8497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498  *) ac_try_echo=$ac_try;;
8499esac
8500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501  (eval "$ac_compile") 2>conftest.er1
8502  ac_status=$?
8503  grep -v '^ *+' conftest.er1 >conftest.err
8504  rm -f conftest.er1
8505  cat conftest.err >&5
8506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507  (exit $ac_status); } && {
8508	 test -z "$ac_c_werror_flag" ||
8509	 test ! -s conftest.err
8510       } && test -s conftest.$ac_objext; then
8511  ac_cv_have_decl_passwdexpired=yes
8512else
8513  echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516	ac_cv_have_decl_passwdexpired=no
8517fi
8518
8519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520fi
8521{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
8522echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
8523if test $ac_cv_have_decl_passwdexpired = yes; then
8524
8525cat >>confdefs.h <<_ACEOF
8526#define HAVE_DECL_PASSWDEXPIRED 1
8527_ACEOF
8528
8529
8530else
8531  cat >>confdefs.h <<_ACEOF
8532#define HAVE_DECL_PASSWDEXPIRED 0
8533_ACEOF
8534
8535
8536fi
8537{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
8538echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
8539if test "${ac_cv_have_decl_setauthdb+set}" = set; then
8540  echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542  cat >conftest.$ac_ext <<_ACEOF
8543/* confdefs.h.  */
8544_ACEOF
8545cat confdefs.h >>conftest.$ac_ext
8546cat >>conftest.$ac_ext <<_ACEOF
8547/* end confdefs.h.  */
8548#include <usersec.h>
8549
8550int
8551main ()
8552{
8553#ifndef setauthdb
8554  (void) setauthdb;
8555#endif
8556
8557  ;
8558  return 0;
8559}
8560_ACEOF
8561rm -f conftest.$ac_objext
8562if { (ac_try="$ac_compile"
8563case "(($ac_try" in
8564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565  *) ac_try_echo=$ac_try;;
8566esac
8567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568  (eval "$ac_compile") 2>conftest.er1
8569  ac_status=$?
8570  grep -v '^ *+' conftest.er1 >conftest.err
8571  rm -f conftest.er1
8572  cat conftest.err >&5
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); } && {
8575	 test -z "$ac_c_werror_flag" ||
8576	 test ! -s conftest.err
8577       } && test -s conftest.$ac_objext; then
8578  ac_cv_have_decl_setauthdb=yes
8579else
8580  echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5
8582
8583	ac_cv_have_decl_setauthdb=no
8584fi
8585
8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587fi
8588{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
8589echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
8590if test $ac_cv_have_decl_setauthdb = yes; then
8591
8592cat >>confdefs.h <<_ACEOF
8593#define HAVE_DECL_SETAUTHDB 1
8594_ACEOF
8595
8596
8597else
8598  cat >>confdefs.h <<_ACEOF
8599#define HAVE_DECL_SETAUTHDB 0
8600_ACEOF
8601
8602
8603fi
8604
8605
8606		{ echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
8607echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
8608if test "${ac_cv_have_decl_loginfailed+set}" = set; then
8609  echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611  cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h.  */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h.  */
8617#include <usersec.h>
8618
8619
8620int
8621main ()
8622{
8623#ifndef loginfailed
8624  (void) loginfailed;
8625#endif
8626
8627  ;
8628  return 0;
8629}
8630_ACEOF
8631rm -f conftest.$ac_objext
8632if { (ac_try="$ac_compile"
8633case "(($ac_try" in
8634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635  *) ac_try_echo=$ac_try;;
8636esac
8637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638  (eval "$ac_compile") 2>conftest.er1
8639  ac_status=$?
8640  grep -v '^ *+' conftest.er1 >conftest.err
8641  rm -f conftest.er1
8642  cat conftest.err >&5
8643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644  (exit $ac_status); } && {
8645	 test -z "$ac_c_werror_flag" ||
8646	 test ! -s conftest.err
8647       } && test -s conftest.$ac_objext; then
8648  ac_cv_have_decl_loginfailed=yes
8649else
8650  echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653	ac_cv_have_decl_loginfailed=no
8654fi
8655
8656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657fi
8658{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
8659echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
8660if test $ac_cv_have_decl_loginfailed = yes; then
8661
8662cat >>confdefs.h <<_ACEOF
8663#define HAVE_DECL_LOGINFAILED 1
8664_ACEOF
8665
8666{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
8667echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
8668	    cat >conftest.$ac_ext <<_ACEOF
8669/* confdefs.h.  */
8670_ACEOF
8671cat confdefs.h >>conftest.$ac_ext
8672cat >>conftest.$ac_ext <<_ACEOF
8673/* end confdefs.h.  */
8674 #include <usersec.h>
8675int
8676main ()
8677{
8678 (void)loginfailed("user","host","tty",0);
8679  ;
8680  return 0;
8681}
8682_ACEOF
8683rm -f conftest.$ac_objext
8684if { (ac_try="$ac_compile"
8685case "(($ac_try" in
8686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687  *) ac_try_echo=$ac_try;;
8688esac
8689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690  (eval "$ac_compile") 2>conftest.er1
8691  ac_status=$?
8692  grep -v '^ *+' conftest.er1 >conftest.err
8693  rm -f conftest.er1
8694  cat conftest.err >&5
8695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696  (exit $ac_status); } && {
8697	 test -z "$ac_c_werror_flag" ||
8698	 test ! -s conftest.err
8699       } && test -s conftest.$ac_objext; then
8700  { echo "$as_me:$LINENO: result: yes" >&5
8701echo "${ECHO_T}yes" >&6; }
8702
8703cat >>confdefs.h <<\_ACEOF
8704#define AIX_LOGINFAILED_4ARG 1
8705_ACEOF
8706
8707else
8708  echo "$as_me: failed program was:" >&5
8709sed 's/^/| /' conftest.$ac_ext >&5
8710
8711	{ echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6; }
8713
8714fi
8715
8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717else
8718  cat >>confdefs.h <<_ACEOF
8719#define HAVE_DECL_LOGINFAILED 0
8720_ACEOF
8721
8722
8723fi
8724
8725
8726
8727
8728for ac_func in getgrset setauthdb
8729do
8730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8731{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8733if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8734  echo $ECHO_N "(cached) $ECHO_C" >&6
8735else
8736  cat >conftest.$ac_ext <<_ACEOF
8737/* confdefs.h.  */
8738_ACEOF
8739cat confdefs.h >>conftest.$ac_ext
8740cat >>conftest.$ac_ext <<_ACEOF
8741/* end confdefs.h.  */
8742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8743   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8744#define $ac_func innocuous_$ac_func
8745
8746/* System header to define __stub macros and hopefully few prototypes,
8747    which can conflict with char $ac_func (); below.
8748    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8749    <limits.h> exists even on freestanding compilers.  */
8750
8751#ifdef __STDC__
8752# include <limits.h>
8753#else
8754# include <assert.h>
8755#endif
8756
8757#undef $ac_func
8758
8759/* Override any GCC internal prototype to avoid an error.
8760   Use char because int might match the return type of a GCC
8761   builtin and then its argument prototype would still apply.  */
8762#ifdef __cplusplus
8763extern "C"
8764#endif
8765char $ac_func ();
8766/* The GNU C library defines this for functions which it implements
8767    to always fail with ENOSYS.  Some functions are actually named
8768    something starting with __ and the normal name is an alias.  */
8769#if defined __stub_$ac_func || defined __stub___$ac_func
8770choke me
8771#endif
8772
8773int
8774main ()
8775{
8776return $ac_func ();
8777  ;
8778  return 0;
8779}
8780_ACEOF
8781rm -f conftest.$ac_objext conftest$ac_exeext
8782if { (ac_try="$ac_link"
8783case "(($ac_try" in
8784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785  *) ac_try_echo=$ac_try;;
8786esac
8787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788  (eval "$ac_link") 2>conftest.er1
8789  ac_status=$?
8790  grep -v '^ *+' conftest.er1 >conftest.err
8791  rm -f conftest.er1
8792  cat conftest.err >&5
8793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794  (exit $ac_status); } && {
8795	 test -z "$ac_c_werror_flag" ||
8796	 test ! -s conftest.err
8797       } && test -s conftest$ac_exeext &&
8798       $as_test_x conftest$ac_exeext; then
8799  eval "$as_ac_var=yes"
8800else
8801  echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804	eval "$as_ac_var=no"
8805fi
8806
8807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8808      conftest$ac_exeext conftest.$ac_ext
8809fi
8810ac_res=`eval echo '${'$as_ac_var'}'`
8811	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8812echo "${ECHO_T}$ac_res" >&6; }
8813if test `eval echo '${'$as_ac_var'}'` = yes; then
8814  cat >>confdefs.h <<_ACEOF
8815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8816_ACEOF
8817
8818fi
8819done
8820
8821	{ echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
8822echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
8823if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
8824  echo $ECHO_N "(cached) $ECHO_C" >&6
8825else
8826  cat >conftest.$ac_ext <<_ACEOF
8827/* confdefs.h.  */
8828_ACEOF
8829cat confdefs.h >>conftest.$ac_ext
8830cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h.  */
8832 #include <limits.h>
8833	      #include <fcntl.h>
8834
8835
8836int
8837main ()
8838{
8839#ifndef F_CLOSEM
8840  (void) F_CLOSEM;
8841#endif
8842
8843  ;
8844  return 0;
8845}
8846_ACEOF
8847rm -f conftest.$ac_objext
8848if { (ac_try="$ac_compile"
8849case "(($ac_try" in
8850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851  *) ac_try_echo=$ac_try;;
8852esac
8853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854  (eval "$ac_compile") 2>conftest.er1
8855  ac_status=$?
8856  grep -v '^ *+' conftest.er1 >conftest.err
8857  rm -f conftest.er1
8858  cat conftest.err >&5
8859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860  (exit $ac_status); } && {
8861	 test -z "$ac_c_werror_flag" ||
8862	 test ! -s conftest.err
8863       } && test -s conftest.$ac_objext; then
8864  ac_cv_have_decl_F_CLOSEM=yes
8865else
8866  echo "$as_me: failed program was:" >&5
8867sed 's/^/| /' conftest.$ac_ext >&5
8868
8869	ac_cv_have_decl_F_CLOSEM=no
8870fi
8871
8872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873fi
8874{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
8875echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
8876if test $ac_cv_have_decl_F_CLOSEM = yes; then
8877
8878cat >>confdefs.h <<\_ACEOF
8879#define HAVE_FCNTL_CLOSEM 1
8880_ACEOF
8881
8882fi
8883
8884	check_for_aix_broken_getaddrinfo=1
8885
8886cat >>confdefs.h <<\_ACEOF
8887#define BROKEN_REALPATH 1
8888_ACEOF
8889
8890
8891cat >>confdefs.h <<\_ACEOF
8892#define SETEUID_BREAKS_SETUID 1
8893_ACEOF
8894
8895
8896cat >>confdefs.h <<\_ACEOF
8897#define BROKEN_SETREUID 1
8898_ACEOF
8899
8900
8901cat >>confdefs.h <<\_ACEOF
8902#define BROKEN_SETREGID 1
8903_ACEOF
8904
8905
8906cat >>confdefs.h <<\_ACEOF
8907#define DISABLE_LASTLOG 1
8908_ACEOF
8909
8910
8911cat >>confdefs.h <<\_ACEOF
8912#define LOGIN_NEEDS_UTMPX 1
8913_ACEOF
8914
8915
8916cat >>confdefs.h <<\_ACEOF
8917#define SPT_TYPE SPT_REUSEARGV
8918_ACEOF
8919
8920
8921cat >>confdefs.h <<\_ACEOF
8922#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8923_ACEOF
8924
8925
8926cat >>confdefs.h <<\_ACEOF
8927#define PTY_ZEROREAD 1
8928_ACEOF
8929
8930
8931cat >>confdefs.h <<\_ACEOF
8932#define PLATFORM_SYS_DIR_UID 2
8933_ACEOF
8934
8935	;;
8936*-*-android*)
8937
8938cat >>confdefs.h <<\_ACEOF
8939#define DISABLE_UTMP 1
8940_ACEOF
8941
8942
8943cat >>confdefs.h <<\_ACEOF
8944#define DISABLE_WTMP 1
8945_ACEOF
8946
8947	;;
8948*-*-cygwin*)
8949	check_for_libcrypt_later=1
8950	LIBS="$LIBS /usr/lib/textreadmode.o"
8951
8952cat >>confdefs.h <<\_ACEOF
8953#define HAVE_CYGWIN 1
8954_ACEOF
8955
8956
8957cat >>confdefs.h <<\_ACEOF
8958#define USE_PIPES 1
8959_ACEOF
8960
8961
8962cat >>confdefs.h <<\_ACEOF
8963#define DISABLE_SHADOW 1
8964_ACEOF
8965
8966
8967cat >>confdefs.h <<\_ACEOF
8968#define NO_X11_UNIX_SOCKETS 1
8969_ACEOF
8970
8971
8972cat >>confdefs.h <<\_ACEOF
8973#define NO_IPPORT_RESERVED_CONCEPT 1
8974_ACEOF
8975
8976
8977cat >>confdefs.h <<\_ACEOF
8978#define DISABLE_FD_PASSING 1
8979_ACEOF
8980
8981
8982cat >>confdefs.h <<\_ACEOF
8983#define SSH_IOBUFSZ 65535
8984_ACEOF
8985
8986
8987cat >>confdefs.h <<\_ACEOF
8988#define FILESYSTEM_NO_BACKSLASH 1
8989_ACEOF
8990
8991	# Cygwin defines optargs, optargs as declspec(dllimport) for historical
8992	# reasons which cause compile warnings, so we disable those warnings.
8993	{
8994	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wno-attributes" >&5
8995echo $ECHO_N "checking if $CC supports compile flag -Wno-attributes... $ECHO_C" >&6; }
8996	saved_CFLAGS="$CFLAGS"
8997	CFLAGS="$CFLAGS $WERROR -Wno-attributes"
8998	_define_flag=""
8999	test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
9000	cat >conftest.$ac_ext <<_ACEOF
9001/* confdefs.h.  */
9002_ACEOF
9003cat confdefs.h >>conftest.$ac_ext
9004cat >>conftest.$ac_ext <<_ACEOF
9005/* end confdefs.h.  */
9006
9007#include <stdlib.h>
9008#include <stdio.h>
9009int main(int argc, char **argv) {
9010	/* Some math to catch -ftrapv problems in the toolchain */
9011	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
9012	float l = i * 2.1;
9013	double m = l / 0.5;
9014	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
9015	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
9016	exit(0);
9017}
9018
9019_ACEOF
9020rm -f conftest.$ac_objext
9021if { (ac_try="$ac_compile"
9022case "(($ac_try" in
9023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024  *) ac_try_echo=$ac_try;;
9025esac
9026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027  (eval "$ac_compile") 2>conftest.er1
9028  ac_status=$?
9029  grep -v '^ *+' conftest.er1 >conftest.err
9030  rm -f conftest.er1
9031  cat conftest.err >&5
9032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033  (exit $ac_status); } && {
9034	 test -z "$ac_c_werror_flag" ||
9035	 test ! -s conftest.err
9036       } && test -s conftest.$ac_objext; then
9037
9038if `grep -i "unrecognized option" conftest.err >/dev/null`
9039then
9040		{ echo "$as_me:$LINENO: result: no" >&5
9041echo "${ECHO_T}no" >&6; }
9042		CFLAGS="$saved_CFLAGS"
9043else
9044		{ echo "$as_me:$LINENO: result: yes" >&5
9045echo "${ECHO_T}yes" >&6; }
9046		 CFLAGS="$saved_CFLAGS $_define_flag"
9047fi
9048else
9049  echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052	 { echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6; }
9054		  CFLAGS="$saved_CFLAGS"
9055
9056fi
9057
9058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059}
9060	;;
9061*-*-dgux*)
9062
9063cat >>confdefs.h <<\_ACEOF
9064#define IP_TOS_IS_BROKEN 1
9065_ACEOF
9066
9067	cat >>confdefs.h <<\_ACEOF
9068#define SETEUID_BREAKS_SETUID 1
9069_ACEOF
9070
9071	cat >>confdefs.h <<\_ACEOF
9072#define BROKEN_SETREUID 1
9073_ACEOF
9074
9075	cat >>confdefs.h <<\_ACEOF
9076#define BROKEN_SETREGID 1
9077_ACEOF
9078
9079	;;
9080*-*-darwin*)
9081	use_pie=auto
9082	{ echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
9083echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
9084	if test "$cross_compiling" = yes; then
9085  { echo "$as_me:$LINENO: result: assume it is working" >&5
9086echo "${ECHO_T}assume it is working" >&6; }
9087else
9088  cat >conftest.$ac_ext <<_ACEOF
9089/* confdefs.h.  */
9090_ACEOF
9091cat confdefs.h >>conftest.$ac_ext
9092cat >>conftest.$ac_ext <<_ACEOF
9093/* end confdefs.h.  */
9094 #include <mach-o/dyld.h>
9095main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
9096		exit(0);
9097	else
9098		exit(1);
9099}
9100
9101_ACEOF
9102rm -f conftest$ac_exeext
9103if { (ac_try="$ac_link"
9104case "(($ac_try" in
9105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9106  *) ac_try_echo=$ac_try;;
9107esac
9108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9109  (eval "$ac_link") 2>&5
9110  ac_status=$?
9111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9113  { (case "(($ac_try" in
9114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115  *) ac_try_echo=$ac_try;;
9116esac
9117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118  (eval "$ac_try") 2>&5
9119  ac_status=$?
9120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121  (exit $ac_status); }; }; then
9122  { echo "$as_me:$LINENO: result: working" >&5
9123echo "${ECHO_T}working" >&6; }
9124else
9125  echo "$as_me: program exited with status $ac_status" >&5
9126echo "$as_me: failed program was:" >&5
9127sed 's/^/| /' conftest.$ac_ext >&5
9128
9129( exit $ac_status )
9130{ echo "$as_me:$LINENO: result: buggy" >&5
9131echo "${ECHO_T}buggy" >&6; }
9132
9133cat >>confdefs.h <<\_ACEOF
9134#define BROKEN_GETADDRINFO 1
9135_ACEOF
9136
9137
9138fi
9139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9140fi
9141
9142
9143	cat >>confdefs.h <<\_ACEOF
9144#define SETEUID_BREAKS_SETUID 1
9145_ACEOF
9146
9147	cat >>confdefs.h <<\_ACEOF
9148#define BROKEN_SETREUID 1
9149_ACEOF
9150
9151	cat >>confdefs.h <<\_ACEOF
9152#define BROKEN_SETREGID 1
9153_ACEOF
9154
9155
9156cat >>confdefs.h <<\_ACEOF
9157#define BROKEN_GLOB 1
9158_ACEOF
9159
9160
9161cat >>confdefs.h <<_ACEOF
9162#define BIND_8_COMPAT 1
9163_ACEOF
9164
9165
9166cat >>confdefs.h <<\_ACEOF
9167#define SSH_TUN_FREEBSD 1
9168_ACEOF
9169
9170
9171cat >>confdefs.h <<\_ACEOF
9172#define SSH_TUN_COMPAT_AF 1
9173_ACEOF
9174
9175
9176cat >>confdefs.h <<\_ACEOF
9177#define SSH_TUN_PREPEND_AF 1
9178_ACEOF
9179
9180
9181	{ echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
9182echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
9183if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
9184  echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186  cat >conftest.$ac_ext <<_ACEOF
9187/* confdefs.h.  */
9188_ACEOF
9189cat confdefs.h >>conftest.$ac_ext
9190cat >>conftest.$ac_ext <<_ACEOF
9191/* end confdefs.h.  */
9192$ac_includes_default
9193int
9194main ()
9195{
9196#ifndef AU_IPv4
9197  (void) AU_IPv4;
9198#endif
9199
9200  ;
9201  return 0;
9202}
9203_ACEOF
9204rm -f conftest.$ac_objext
9205if { (ac_try="$ac_compile"
9206case "(($ac_try" in
9207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208  *) ac_try_echo=$ac_try;;
9209esac
9210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211  (eval "$ac_compile") 2>conftest.er1
9212  ac_status=$?
9213  grep -v '^ *+' conftest.er1 >conftest.err
9214  rm -f conftest.er1
9215  cat conftest.err >&5
9216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217  (exit $ac_status); } && {
9218	 test -z "$ac_c_werror_flag" ||
9219	 test ! -s conftest.err
9220       } && test -s conftest.$ac_objext; then
9221  ac_cv_have_decl_AU_IPv4=yes
9222else
9223  echo "$as_me: failed program was:" >&5
9224sed 's/^/| /' conftest.$ac_ext >&5
9225
9226	ac_cv_have_decl_AU_IPv4=no
9227fi
9228
9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230fi
9231{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
9232echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
9233if test $ac_cv_have_decl_AU_IPv4 = yes; then
9234  :
9235else
9236
9237cat >>confdefs.h <<\_ACEOF
9238#define AU_IPv4 0
9239_ACEOF
9240
9241	    #include <bsm/audit.h>
9242
9243cat >>confdefs.h <<\_ACEOF
9244#define LASTLOG_WRITE_PUTUTXLINE 1
9245_ACEOF
9246
9247
9248fi
9249
9250
9251cat >>confdefs.h <<\_ACEOF
9252#define SPT_TYPE SPT_REUSEARGV
9253_ACEOF
9254
9255
9256for ac_func in sandbox_init
9257do
9258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9262  echo $ECHO_N "(cached) $ECHO_C" >&6
9263else
9264  cat >conftest.$ac_ext <<_ACEOF
9265/* confdefs.h.  */
9266_ACEOF
9267cat confdefs.h >>conftest.$ac_ext
9268cat >>conftest.$ac_ext <<_ACEOF
9269/* end confdefs.h.  */
9270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9271   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9272#define $ac_func innocuous_$ac_func
9273
9274/* System header to define __stub macros and hopefully few prototypes,
9275    which can conflict with char $ac_func (); below.
9276    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9277    <limits.h> exists even on freestanding compilers.  */
9278
9279#ifdef __STDC__
9280# include <limits.h>
9281#else
9282# include <assert.h>
9283#endif
9284
9285#undef $ac_func
9286
9287/* Override any GCC internal prototype to avoid an error.
9288   Use char because int might match the return type of a GCC
9289   builtin and then its argument prototype would still apply.  */
9290#ifdef __cplusplus
9291extern "C"
9292#endif
9293char $ac_func ();
9294/* The GNU C library defines this for functions which it implements
9295    to always fail with ENOSYS.  Some functions are actually named
9296    something starting with __ and the normal name is an alias.  */
9297#if defined __stub_$ac_func || defined __stub___$ac_func
9298choke me
9299#endif
9300
9301int
9302main ()
9303{
9304return $ac_func ();
9305  ;
9306  return 0;
9307}
9308_ACEOF
9309rm -f conftest.$ac_objext conftest$ac_exeext
9310if { (ac_try="$ac_link"
9311case "(($ac_try" in
9312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313  *) ac_try_echo=$ac_try;;
9314esac
9315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316  (eval "$ac_link") 2>conftest.er1
9317  ac_status=$?
9318  grep -v '^ *+' conftest.er1 >conftest.err
9319  rm -f conftest.er1
9320  cat conftest.err >&5
9321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322  (exit $ac_status); } && {
9323	 test -z "$ac_c_werror_flag" ||
9324	 test ! -s conftest.err
9325       } && test -s conftest$ac_exeext &&
9326       $as_test_x conftest$ac_exeext; then
9327  eval "$as_ac_var=yes"
9328else
9329  echo "$as_me: failed program was:" >&5
9330sed 's/^/| /' conftest.$ac_ext >&5
9331
9332	eval "$as_ac_var=no"
9333fi
9334
9335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9336      conftest$ac_exeext conftest.$ac_ext
9337fi
9338ac_res=`eval echo '${'$as_ac_var'}'`
9339	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9340echo "${ECHO_T}$ac_res" >&6; }
9341if test `eval echo '${'$as_ac_var'}'` = yes; then
9342  cat >>confdefs.h <<_ACEOF
9343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9344_ACEOF
9345
9346fi
9347done
9348
9349
9350for ac_header in sandbox.h
9351do
9352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9354  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9357  echo $ECHO_N "(cached) $ECHO_C" >&6
9358fi
9359ac_res=`eval echo '${'$as_ac_Header'}'`
9360	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9361echo "${ECHO_T}$ac_res" >&6; }
9362else
9363  # Is the header compilable?
9364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9366cat >conftest.$ac_ext <<_ACEOF
9367/* confdefs.h.  */
9368_ACEOF
9369cat confdefs.h >>conftest.$ac_ext
9370cat >>conftest.$ac_ext <<_ACEOF
9371/* end confdefs.h.  */
9372$ac_includes_default
9373#include <$ac_header>
9374_ACEOF
9375rm -f conftest.$ac_objext
9376if { (ac_try="$ac_compile"
9377case "(($ac_try" in
9378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379  *) ac_try_echo=$ac_try;;
9380esac
9381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382  (eval "$ac_compile") 2>conftest.er1
9383  ac_status=$?
9384  grep -v '^ *+' conftest.er1 >conftest.err
9385  rm -f conftest.er1
9386  cat conftest.err >&5
9387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388  (exit $ac_status); } && {
9389	 test -z "$ac_c_werror_flag" ||
9390	 test ! -s conftest.err
9391       } && test -s conftest.$ac_objext; then
9392  ac_header_compiler=yes
9393else
9394  echo "$as_me: failed program was:" >&5
9395sed 's/^/| /' conftest.$ac_ext >&5
9396
9397	ac_header_compiler=no
9398fi
9399
9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9402echo "${ECHO_T}$ac_header_compiler" >&6; }
9403
9404# Is the header present?
9405{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9407cat >conftest.$ac_ext <<_ACEOF
9408/* confdefs.h.  */
9409_ACEOF
9410cat confdefs.h >>conftest.$ac_ext
9411cat >>conftest.$ac_ext <<_ACEOF
9412/* end confdefs.h.  */
9413#include <$ac_header>
9414_ACEOF
9415if { (ac_try="$ac_cpp conftest.$ac_ext"
9416case "(($ac_try" in
9417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418  *) ac_try_echo=$ac_try;;
9419esac
9420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421  (eval "$ac_cpp conftest.$ac_ext") 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); } >/dev/null && {
9428	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9429	 test ! -s conftest.err
9430       }; then
9431  ac_header_preproc=yes
9432else
9433  echo "$as_me: failed program was:" >&5
9434sed 's/^/| /' conftest.$ac_ext >&5
9435
9436  ac_header_preproc=no
9437fi
9438
9439rm -f conftest.err conftest.$ac_ext
9440{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9441echo "${ECHO_T}$ac_header_preproc" >&6; }
9442
9443# So?  What about this header?
9444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9445  yes:no: )
9446    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9448    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9450    ac_header_preproc=yes
9451    ;;
9452  no:yes:* )
9453    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9455    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9456echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9457    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9459    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9460echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9461    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9463    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9465    ( cat <<\_ASBOX
9466## ------------------------------------------- ##
9467## Report this to openssh-unix-dev@mindrot.org ##
9468## ------------------------------------------- ##
9469_ASBOX
9470     ) | sed "s/^/$as_me: WARNING:     /" >&2
9471    ;;
9472esac
9473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9476  echo $ECHO_N "(cached) $ECHO_C" >&6
9477else
9478  eval "$as_ac_Header=\$ac_header_preproc"
9479fi
9480ac_res=`eval echo '${'$as_ac_Header'}'`
9481	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9482echo "${ECHO_T}$ac_res" >&6; }
9483
9484fi
9485if test `eval echo '${'$as_ac_Header'}'` = yes; then
9486  cat >>confdefs.h <<_ACEOF
9487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9488_ACEOF
9489
9490fi
9491
9492done
9493
9494	;;
9495*-*-dragonfly*)
9496	SSHDLIBS="$SSHDLIBS -lcrypt"
9497	TEST_MALLOC_OPTIONS="AFGJPRX"
9498	;;
9499*-*-haiku*)
9500    LIBS="$LIBS -lbsd "
9501
9502{ echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
9503echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
9504if test "${ac_cv_lib_network_socket+set}" = set; then
9505  echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507  ac_check_lib_save_LIBS=$LIBS
9508LIBS="-lnetwork  $LIBS"
9509cat >conftest.$ac_ext <<_ACEOF
9510/* confdefs.h.  */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h.  */
9515
9516/* Override any GCC internal prototype to avoid an error.
9517   Use char because int might match the return type of a GCC
9518   builtin and then its argument prototype would still apply.  */
9519#ifdef __cplusplus
9520extern "C"
9521#endif
9522char socket ();
9523int
9524main ()
9525{
9526return socket ();
9527  ;
9528  return 0;
9529}
9530_ACEOF
9531rm -f conftest.$ac_objext conftest$ac_exeext
9532if { (ac_try="$ac_link"
9533case "(($ac_try" in
9534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535  *) ac_try_echo=$ac_try;;
9536esac
9537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538  (eval "$ac_link") 2>conftest.er1
9539  ac_status=$?
9540  grep -v '^ *+' conftest.er1 >conftest.err
9541  rm -f conftest.er1
9542  cat conftest.err >&5
9543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544  (exit $ac_status); } && {
9545	 test -z "$ac_c_werror_flag" ||
9546	 test ! -s conftest.err
9547       } && test -s conftest$ac_exeext &&
9548       $as_test_x conftest$ac_exeext; then
9549  ac_cv_lib_network_socket=yes
9550else
9551  echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554	ac_cv_lib_network_socket=no
9555fi
9556
9557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9558      conftest$ac_exeext conftest.$ac_ext
9559LIBS=$ac_check_lib_save_LIBS
9560fi
9561{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
9562echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
9563if test $ac_cv_lib_network_socket = yes; then
9564  cat >>confdefs.h <<_ACEOF
9565#define HAVE_LIBNETWORK 1
9566_ACEOF
9567
9568  LIBS="-lnetwork $LIBS"
9569
9570fi
9571
9572    cat >>confdefs.h <<\_ACEOF
9573#define HAVE_U_INT64_T 1
9574_ACEOF
9575
9576    MANTYPE=man
9577    ;;
9578*-*-hpux*)
9579	# first we define all of the options common to all HP-UX releases
9580	CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
9581	IPADDR_IN_DISPLAY=yes
9582	cat >>confdefs.h <<\_ACEOF
9583#define USE_PIPES 1
9584_ACEOF
9585
9586
9587cat >>confdefs.h <<\_ACEOF
9588#define LOGIN_NO_ENDOPT 1
9589_ACEOF
9590
9591	cat >>confdefs.h <<\_ACEOF
9592#define LOGIN_NEEDS_UTMPX 1
9593_ACEOF
9594
9595
9596cat >>confdefs.h <<\_ACEOF
9597#define LOCKED_PASSWD_STRING "*"
9598_ACEOF
9599
9600	cat >>confdefs.h <<\_ACEOF
9601#define SPT_TYPE SPT_PSTAT
9602_ACEOF
9603
9604
9605cat >>confdefs.h <<\_ACEOF
9606#define PLATFORM_SYS_DIR_UID 2
9607_ACEOF
9608
9609	maildir="/var/mail"
9610	LIBS="$LIBS -lsec"
9611
9612{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
9613echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
9614if test "${ac_cv_lib_xnet_t_error+set}" = set; then
9615  echo $ECHO_N "(cached) $ECHO_C" >&6
9616else
9617  ac_check_lib_save_LIBS=$LIBS
9618LIBS="-lxnet  $LIBS"
9619cat >conftest.$ac_ext <<_ACEOF
9620/* confdefs.h.  */
9621_ACEOF
9622cat confdefs.h >>conftest.$ac_ext
9623cat >>conftest.$ac_ext <<_ACEOF
9624/* end confdefs.h.  */
9625
9626/* Override any GCC internal prototype to avoid an error.
9627   Use char because int might match the return type of a GCC
9628   builtin and then its argument prototype would still apply.  */
9629#ifdef __cplusplus
9630extern "C"
9631#endif
9632char t_error ();
9633int
9634main ()
9635{
9636return t_error ();
9637  ;
9638  return 0;
9639}
9640_ACEOF
9641rm -f conftest.$ac_objext conftest$ac_exeext
9642if { (ac_try="$ac_link"
9643case "(($ac_try" in
9644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645  *) ac_try_echo=$ac_try;;
9646esac
9647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648  (eval "$ac_link") 2>conftest.er1
9649  ac_status=$?
9650  grep -v '^ *+' conftest.er1 >conftest.err
9651  rm -f conftest.er1
9652  cat conftest.err >&5
9653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654  (exit $ac_status); } && {
9655	 test -z "$ac_c_werror_flag" ||
9656	 test ! -s conftest.err
9657       } && test -s conftest$ac_exeext &&
9658       $as_test_x conftest$ac_exeext; then
9659  ac_cv_lib_xnet_t_error=yes
9660else
9661  echo "$as_me: failed program was:" >&5
9662sed 's/^/| /' conftest.$ac_ext >&5
9663
9664	ac_cv_lib_xnet_t_error=no
9665fi
9666
9667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9668      conftest$ac_exeext conftest.$ac_ext
9669LIBS=$ac_check_lib_save_LIBS
9670fi
9671{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
9672echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
9673if test $ac_cv_lib_xnet_t_error = yes; then
9674  cat >>confdefs.h <<_ACEOF
9675#define HAVE_LIBXNET 1
9676_ACEOF
9677
9678  LIBS="-lxnet $LIBS"
9679
9680else
9681  { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
9682echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
9683   { (exit 1); exit 1; }; }
9684fi
9685
9686
9687	# next, we define all of the options specific to major releases
9688	case "$host" in
9689	*-*-hpux10*)
9690		if test -z "$GCC"; then
9691			CFLAGS="$CFLAGS -Ae"
9692		fi
9693		;;
9694	*-*-hpux11*)
9695
9696cat >>confdefs.h <<\_ACEOF
9697#define PAM_SUN_CODEBASE 1
9698_ACEOF
9699
9700
9701cat >>confdefs.h <<\_ACEOF
9702#define DISABLE_UTMP 1
9703_ACEOF
9704
9705
9706cat >>confdefs.h <<\_ACEOF
9707#define USE_BTMP 1
9708_ACEOF
9709
9710		check_for_hpux_broken_getaddrinfo=1
9711		check_for_conflicting_getspnam=1
9712		;;
9713	esac
9714
9715	# lastly, we define options specific to minor releases
9716	case "$host" in
9717	*-*-hpux10.26)
9718
9719cat >>confdefs.h <<\_ACEOF
9720#define HAVE_SECUREWARE 1
9721_ACEOF
9722
9723		disable_ptmx_check=yes
9724		LIBS="$LIBS -lsecpw"
9725		;;
9726	esac
9727	;;
9728*-*-irix5*)
9729	PATH="$PATH:/usr/etc"
9730
9731cat >>confdefs.h <<\_ACEOF
9732#define BROKEN_INET_NTOA 1
9733_ACEOF
9734
9735	cat >>confdefs.h <<\_ACEOF
9736#define SETEUID_BREAKS_SETUID 1
9737_ACEOF
9738
9739	cat >>confdefs.h <<\_ACEOF
9740#define BROKEN_SETREUID 1
9741_ACEOF
9742
9743	cat >>confdefs.h <<\_ACEOF
9744#define BROKEN_SETREGID 1
9745_ACEOF
9746
9747
9748cat >>confdefs.h <<\_ACEOF
9749#define WITH_ABBREV_NO_TTY 1
9750_ACEOF
9751
9752	cat >>confdefs.h <<\_ACEOF
9753#define LOCKED_PASSWD_STRING "*LK*"
9754_ACEOF
9755
9756	;;
9757*-*-irix6*)
9758	PATH="$PATH:/usr/etc"
9759
9760cat >>confdefs.h <<\_ACEOF
9761#define WITH_IRIX_ARRAY 1
9762_ACEOF
9763
9764
9765cat >>confdefs.h <<\_ACEOF
9766#define WITH_IRIX_PROJECT 1
9767_ACEOF
9768
9769
9770cat >>confdefs.h <<\_ACEOF
9771#define WITH_IRIX_AUDIT 1
9772_ACEOF
9773
9774	{ echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
9775echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
9776if test "${ac_cv_func_jlimit_startjob+set}" = set; then
9777  echo $ECHO_N "(cached) $ECHO_C" >&6
9778else
9779  cat >conftest.$ac_ext <<_ACEOF
9780/* confdefs.h.  */
9781_ACEOF
9782cat confdefs.h >>conftest.$ac_ext
9783cat >>conftest.$ac_ext <<_ACEOF
9784/* end confdefs.h.  */
9785/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
9786   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9787#define jlimit_startjob innocuous_jlimit_startjob
9788
9789/* System header to define __stub macros and hopefully few prototypes,
9790    which can conflict with char jlimit_startjob (); below.
9791    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9792    <limits.h> exists even on freestanding compilers.  */
9793
9794#ifdef __STDC__
9795# include <limits.h>
9796#else
9797# include <assert.h>
9798#endif
9799
9800#undef jlimit_startjob
9801
9802/* Override any GCC internal prototype to avoid an error.
9803   Use char because int might match the return type of a GCC
9804   builtin and then its argument prototype would still apply.  */
9805#ifdef __cplusplus
9806extern "C"
9807#endif
9808char jlimit_startjob ();
9809/* The GNU C library defines this for functions which it implements
9810    to always fail with ENOSYS.  Some functions are actually named
9811    something starting with __ and the normal name is an alias.  */
9812#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
9813choke me
9814#endif
9815
9816int
9817main ()
9818{
9819return jlimit_startjob ();
9820  ;
9821  return 0;
9822}
9823_ACEOF
9824rm -f conftest.$ac_objext conftest$ac_exeext
9825if { (ac_try="$ac_link"
9826case "(($ac_try" in
9827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828  *) ac_try_echo=$ac_try;;
9829esac
9830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831  (eval "$ac_link") 2>conftest.er1
9832  ac_status=$?
9833  grep -v '^ *+' conftest.er1 >conftest.err
9834  rm -f conftest.er1
9835  cat conftest.err >&5
9836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837  (exit $ac_status); } && {
9838	 test -z "$ac_c_werror_flag" ||
9839	 test ! -s conftest.err
9840       } && test -s conftest$ac_exeext &&
9841       $as_test_x conftest$ac_exeext; then
9842  ac_cv_func_jlimit_startjob=yes
9843else
9844  echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847	ac_cv_func_jlimit_startjob=no
9848fi
9849
9850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9851      conftest$ac_exeext conftest.$ac_ext
9852fi
9853{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
9854echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
9855if test $ac_cv_func_jlimit_startjob = yes; then
9856
9857cat >>confdefs.h <<\_ACEOF
9858#define WITH_IRIX_JOBS 1
9859_ACEOF
9860
9861fi
9862
9863	cat >>confdefs.h <<\_ACEOF
9864#define BROKEN_INET_NTOA 1
9865_ACEOF
9866
9867	cat >>confdefs.h <<\_ACEOF
9868#define SETEUID_BREAKS_SETUID 1
9869_ACEOF
9870
9871	cat >>confdefs.h <<\_ACEOF
9872#define BROKEN_SETREUID 1
9873_ACEOF
9874
9875	cat >>confdefs.h <<\_ACEOF
9876#define BROKEN_SETREGID 1
9877_ACEOF
9878
9879
9880cat >>confdefs.h <<\_ACEOF
9881#define BROKEN_UPDWTMPX 1
9882_ACEOF
9883
9884	cat >>confdefs.h <<\_ACEOF
9885#define WITH_ABBREV_NO_TTY 1
9886_ACEOF
9887
9888	cat >>confdefs.h <<\_ACEOF
9889#define LOCKED_PASSWD_STRING "*LK*"
9890_ACEOF
9891
9892	;;
9893*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9894	check_for_libcrypt_later=1
9895	cat >>confdefs.h <<\_ACEOF
9896#define PAM_TTY_KLUDGE 1
9897_ACEOF
9898
9899	cat >>confdefs.h <<\_ACEOF
9900#define LOCKED_PASSWD_PREFIX "!"
9901_ACEOF
9902
9903	cat >>confdefs.h <<\_ACEOF
9904#define SPT_TYPE SPT_REUSEARGV
9905_ACEOF
9906
9907
9908cat >>confdefs.h <<\_ACEOF
9909#define _PATH_BTMP "/var/log/btmp"
9910_ACEOF
9911
9912
9913cat >>confdefs.h <<\_ACEOF
9914#define USE_BTMP 1
9915_ACEOF
9916
9917	;;
9918*-*-linux*)
9919	no_dev_ptmx=1
9920	use_pie=auto
9921	check_for_libcrypt_later=1
9922	check_for_openpty_ctty_bug=1
9923
9924cat >>confdefs.h <<\_ACEOF
9925#define PAM_TTY_KLUDGE 1
9926_ACEOF
9927
9928
9929cat >>confdefs.h <<\_ACEOF
9930#define LOCKED_PASSWD_PREFIX "!"
9931_ACEOF
9932
9933	cat >>confdefs.h <<\_ACEOF
9934#define SPT_TYPE SPT_REUSEARGV
9935_ACEOF
9936
9937
9938cat >>confdefs.h <<\_ACEOF
9939#define LINK_OPNOTSUPP_ERRNO EPERM
9940_ACEOF
9941
9942
9943cat >>confdefs.h <<\_ACEOF
9944#define _PATH_BTMP "/var/log/btmp"
9945_ACEOF
9946
9947	cat >>confdefs.h <<\_ACEOF
9948#define USE_BTMP 1
9949_ACEOF
9950
9951
9952cat >>confdefs.h <<\_ACEOF
9953#define LINUX_OOM_ADJUST 1
9954_ACEOF
9955
9956	inet6_default_4in6=yes
9957	case `uname -r` in
9958	1.*|2.0.*)
9959
9960cat >>confdefs.h <<\_ACEOF
9961#define BROKEN_CMSG_TYPE 1
9962_ACEOF
9963
9964		;;
9965	esac
9966	# tun(4) forwarding compat code
9967
9968for ac_header in linux/if_tun.h
9969do
9970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9972  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9975  echo $ECHO_N "(cached) $ECHO_C" >&6
9976fi
9977ac_res=`eval echo '${'$as_ac_Header'}'`
9978	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9979echo "${ECHO_T}$ac_res" >&6; }
9980else
9981  # Is the header compilable?
9982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9984cat >conftest.$ac_ext <<_ACEOF
9985/* confdefs.h.  */
9986_ACEOF
9987cat confdefs.h >>conftest.$ac_ext
9988cat >>conftest.$ac_ext <<_ACEOF
9989/* end confdefs.h.  */
9990$ac_includes_default
9991#include <$ac_header>
9992_ACEOF
9993rm -f conftest.$ac_objext
9994if { (ac_try="$ac_compile"
9995case "(($ac_try" in
9996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997  *) ac_try_echo=$ac_try;;
9998esac
9999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000  (eval "$ac_compile") 2>conftest.er1
10001  ac_status=$?
10002  grep -v '^ *+' conftest.er1 >conftest.err
10003  rm -f conftest.er1
10004  cat conftest.err >&5
10005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006  (exit $ac_status); } && {
10007	 test -z "$ac_c_werror_flag" ||
10008	 test ! -s conftest.err
10009       } && test -s conftest.$ac_objext; then
10010  ac_header_compiler=yes
10011else
10012  echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
10015	ac_header_compiler=no
10016fi
10017
10018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10020echo "${ECHO_T}$ac_header_compiler" >&6; }
10021
10022# Is the header present?
10023{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10025cat >conftest.$ac_ext <<_ACEOF
10026/* confdefs.h.  */
10027_ACEOF
10028cat confdefs.h >>conftest.$ac_ext
10029cat >>conftest.$ac_ext <<_ACEOF
10030/* end confdefs.h.  */
10031#include <$ac_header>
10032_ACEOF
10033if { (ac_try="$ac_cpp conftest.$ac_ext"
10034case "(($ac_try" in
10035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036  *) ac_try_echo=$ac_try;;
10037esac
10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10040  ac_status=$?
10041  grep -v '^ *+' conftest.er1 >conftest.err
10042  rm -f conftest.er1
10043  cat conftest.err >&5
10044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045  (exit $ac_status); } >/dev/null && {
10046	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10047	 test ! -s conftest.err
10048       }; then
10049  ac_header_preproc=yes
10050else
10051  echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054  ac_header_preproc=no
10055fi
10056
10057rm -f conftest.err conftest.$ac_ext
10058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10059echo "${ECHO_T}$ac_header_preproc" >&6; }
10060
10061# So?  What about this header?
10062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10063  yes:no: )
10064    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10066    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10068    ac_header_preproc=yes
10069    ;;
10070  no:yes:* )
10071    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10073    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10074echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10075    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10077    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10078echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10079    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10081    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10083    ( cat <<\_ASBOX
10084## ------------------------------------------- ##
10085## Report this to openssh-unix-dev@mindrot.org ##
10086## ------------------------------------------- ##
10087_ASBOX
10088     ) | sed "s/^/$as_me: WARNING:     /" >&2
10089    ;;
10090esac
10091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10094  echo $ECHO_N "(cached) $ECHO_C" >&6
10095else
10096  eval "$as_ac_Header=\$ac_header_preproc"
10097fi
10098ac_res=`eval echo '${'$as_ac_Header'}'`
10099	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10100echo "${ECHO_T}$ac_res" >&6; }
10101
10102fi
10103if test `eval echo '${'$as_ac_Header'}'` = yes; then
10104  cat >>confdefs.h <<_ACEOF
10105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10106_ACEOF
10107
10108fi
10109
10110done
10111
10112	if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
10113
10114cat >>confdefs.h <<\_ACEOF
10115#define SSH_TUN_LINUX 1
10116_ACEOF
10117
10118
10119cat >>confdefs.h <<\_ACEOF
10120#define SSH_TUN_COMPAT_AF 1
10121_ACEOF
10122
10123
10124cat >>confdefs.h <<\_ACEOF
10125#define SSH_TUN_PREPEND_AF 1
10126_ACEOF
10127
10128	fi
10129
10130
10131
10132for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
10133do
10134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10138  echo $ECHO_N "(cached) $ECHO_C" >&6
10139else
10140  cat >conftest.$ac_ext <<_ACEOF
10141/* confdefs.h.  */
10142_ACEOF
10143cat confdefs.h >>conftest.$ac_ext
10144cat >>conftest.$ac_ext <<_ACEOF
10145/* end confdefs.h.  */
10146#include <linux/types.h>
10147
10148#include <$ac_header>
10149_ACEOF
10150rm -f conftest.$ac_objext
10151if { (ac_try="$ac_compile"
10152case "(($ac_try" in
10153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154  *) ac_try_echo=$ac_try;;
10155esac
10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157  (eval "$ac_compile") 2>conftest.er1
10158  ac_status=$?
10159  grep -v '^ *+' conftest.er1 >conftest.err
10160  rm -f conftest.er1
10161  cat conftest.err >&5
10162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163  (exit $ac_status); } && {
10164	 test -z "$ac_c_werror_flag" ||
10165	 test ! -s conftest.err
10166       } && test -s conftest.$ac_objext; then
10167  eval "$as_ac_Header=yes"
10168else
10169  echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172	eval "$as_ac_Header=no"
10173fi
10174
10175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10176fi
10177ac_res=`eval echo '${'$as_ac_Header'}'`
10178	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10179echo "${ECHO_T}$ac_res" >&6; }
10180if test `eval echo '${'$as_ac_Header'}'` = yes; then
10181  cat >>confdefs.h <<_ACEOF
10182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10183_ACEOF
10184
10185fi
10186
10187done
10188
10189
10190for ac_func in prctl
10191do
10192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10193{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10196  echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198  cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h.  */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h.  */
10204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10205   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10206#define $ac_func innocuous_$ac_func
10207
10208/* System header to define __stub macros and hopefully few prototypes,
10209    which can conflict with char $ac_func (); below.
10210    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211    <limits.h> exists even on freestanding compilers.  */
10212
10213#ifdef __STDC__
10214# include <limits.h>
10215#else
10216# include <assert.h>
10217#endif
10218
10219#undef $ac_func
10220
10221/* Override any GCC internal prototype to avoid an error.
10222   Use char because int might match the return type of a GCC
10223   builtin and then its argument prototype would still apply.  */
10224#ifdef __cplusplus
10225extern "C"
10226#endif
10227char $ac_func ();
10228/* The GNU C library defines this for functions which it implements
10229    to always fail with ENOSYS.  Some functions are actually named
10230    something starting with __ and the normal name is an alias.  */
10231#if defined __stub_$ac_func || defined __stub___$ac_func
10232choke me
10233#endif
10234
10235int
10236main ()
10237{
10238return $ac_func ();
10239  ;
10240  return 0;
10241}
10242_ACEOF
10243rm -f conftest.$ac_objext conftest$ac_exeext
10244if { (ac_try="$ac_link"
10245case "(($ac_try" in
10246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247  *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250  (eval "$ac_link") 2>conftest.er1
10251  ac_status=$?
10252  grep -v '^ *+' conftest.er1 >conftest.err
10253  rm -f conftest.er1
10254  cat conftest.err >&5
10255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256  (exit $ac_status); } && {
10257	 test -z "$ac_c_werror_flag" ||
10258	 test ! -s conftest.err
10259       } && test -s conftest$ac_exeext &&
10260       $as_test_x conftest$ac_exeext; then
10261  eval "$as_ac_var=yes"
10262else
10263  echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266	eval "$as_ac_var=no"
10267fi
10268
10269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10270      conftest$ac_exeext conftest.$ac_ext
10271fi
10272ac_res=`eval echo '${'$as_ac_var'}'`
10273	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10274echo "${ECHO_T}$ac_res" >&6; }
10275if test `eval echo '${'$as_ac_var'}'` = yes; then
10276  cat >>confdefs.h <<_ACEOF
10277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10278_ACEOF
10279
10280fi
10281done
10282
10283	{ echo "$as_me:$LINENO: checking for seccomp architecture" >&5
10284echo $ECHO_N "checking for seccomp architecture... $ECHO_C" >&6; }
10285	seccomp_audit_arch=
10286	case "$host" in
10287	x86_64-*)
10288		seccomp_audit_arch=AUDIT_ARCH_X86_64
10289		;;
10290	i*86-*)
10291		seccomp_audit_arch=AUDIT_ARCH_I386
10292		;;
10293	arm*-*)
10294		seccomp_audit_arch=AUDIT_ARCH_ARM
10295		;;
10296	aarch64*-*)
10297		seccomp_audit_arch=AUDIT_ARCH_AARCH64
10298		;;
10299	esac
10300	if test "x$seccomp_audit_arch" != "x" ; then
10301		{ echo "$as_me:$LINENO: result: \"$seccomp_audit_arch\"" >&5
10302echo "${ECHO_T}\"$seccomp_audit_arch\"" >&6; }
10303
10304cat >>confdefs.h <<_ACEOF
10305#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
10306_ACEOF
10307
10308	else
10309		{ echo "$as_me:$LINENO: result: architecture not supported" >&5
10310echo "${ECHO_T}architecture not supported" >&6; }
10311	fi
10312	;;
10313mips-sony-bsd|mips-sony-newsos4)
10314
10315cat >>confdefs.h <<\_ACEOF
10316#define NEED_SETPGRP 1
10317_ACEOF
10318
10319	SONY=1
10320	;;
10321*-*-netbsd*)
10322	check_for_libcrypt_before=1
10323	if test "x$withval" != "xno" ; then
10324		need_dash_r=1
10325	fi
10326
10327cat >>confdefs.h <<\_ACEOF
10328#define SSH_TUN_FREEBSD 1
10329_ACEOF
10330
10331	if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10332  { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10333echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10334if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10335  echo $ECHO_N "(cached) $ECHO_C" >&6
10336fi
10337{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10338echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10339else
10340  # Is the header compilable?
10341{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10342echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10343cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h.  */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h.  */
10349$ac_includes_default
10350#include <net/if_tap.h>
10351_ACEOF
10352rm -f conftest.$ac_objext
10353if { (ac_try="$ac_compile"
10354case "(($ac_try" in
10355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356  *) ac_try_echo=$ac_try;;
10357esac
10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359  (eval "$ac_compile") 2>conftest.er1
10360  ac_status=$?
10361  grep -v '^ *+' conftest.er1 >conftest.err
10362  rm -f conftest.er1
10363  cat conftest.err >&5
10364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365  (exit $ac_status); } && {
10366	 test -z "$ac_c_werror_flag" ||
10367	 test ! -s conftest.err
10368       } && test -s conftest.$ac_objext; then
10369  ac_header_compiler=yes
10370else
10371  echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374	ac_header_compiler=no
10375fi
10376
10377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10379echo "${ECHO_T}$ac_header_compiler" >&6; }
10380
10381# Is the header present?
10382{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10383echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10384cat >conftest.$ac_ext <<_ACEOF
10385/* confdefs.h.  */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h.  */
10390#include <net/if_tap.h>
10391_ACEOF
10392if { (ac_try="$ac_cpp conftest.$ac_ext"
10393case "(($ac_try" in
10394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395  *) ac_try_echo=$ac_try;;
10396esac
10397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10399  ac_status=$?
10400  grep -v '^ *+' conftest.er1 >conftest.err
10401  rm -f conftest.er1
10402  cat conftest.err >&5
10403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404  (exit $ac_status); } >/dev/null && {
10405	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10406	 test ! -s conftest.err
10407       }; then
10408  ac_header_preproc=yes
10409else
10410  echo "$as_me: failed program was:" >&5
10411sed 's/^/| /' conftest.$ac_ext >&5
10412
10413  ac_header_preproc=no
10414fi
10415
10416rm -f conftest.err conftest.$ac_ext
10417{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10418echo "${ECHO_T}$ac_header_preproc" >&6; }
10419
10420# So?  What about this header?
10421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10422  yes:no: )
10423    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10424echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10425    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10426echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10427    ac_header_preproc=yes
10428    ;;
10429  no:yes:* )
10430    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10431echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10432    { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&5
10433echo "$as_me: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&2;}
10434    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10435echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10436    { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&5
10437echo "$as_me: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10438    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10439echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10440    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10441echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10442    ( cat <<\_ASBOX
10443## ------------------------------------------- ##
10444## Report this to openssh-unix-dev@mindrot.org ##
10445## ------------------------------------------- ##
10446_ASBOX
10447     ) | sed "s/^/$as_me: WARNING:     /" >&2
10448    ;;
10449esac
10450{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10451echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10452if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10453  echo $ECHO_N "(cached) $ECHO_C" >&6
10454else
10455  ac_cv_header_net_if_tap_h=$ac_header_preproc
10456fi
10457{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10458echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10459
10460fi
10461if test $ac_cv_header_net_if_tap_h = yes; then
10462  :
10463else
10464
10465cat >>confdefs.h <<\_ACEOF
10466#define SSH_TUN_NO_L2 1
10467_ACEOF
10468
10469fi
10470
10471
10472
10473cat >>confdefs.h <<\_ACEOF
10474#define SSH_TUN_PREPEND_AF 1
10475_ACEOF
10476
10477	TEST_MALLOC_OPTIONS="AJRX"
10478
10479cat >>confdefs.h <<\_ACEOF
10480#define BROKEN_STRNVIS 1
10481_ACEOF
10482
10483
10484cat >>confdefs.h <<\_ACEOF
10485#define BROKEN_READ_COMPARISON 1
10486_ACEOF
10487
10488	;;
10489*-*-freebsd*)
10490	check_for_libcrypt_later=1
10491
10492cat >>confdefs.h <<\_ACEOF
10493#define LOCKED_PASSWD_PREFIX "*LOCKED*"
10494_ACEOF
10495
10496
10497cat >>confdefs.h <<\_ACEOF
10498#define SSH_TUN_FREEBSD 1
10499_ACEOF
10500
10501	if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10502  { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10503echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10504if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10505  echo $ECHO_N "(cached) $ECHO_C" >&6
10506fi
10507{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10508echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10509else
10510  # Is the header compilable?
10511{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10512echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10513cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h.  */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h.  */
10519$ac_includes_default
10520#include <net/if_tap.h>
10521_ACEOF
10522rm -f conftest.$ac_objext
10523if { (ac_try="$ac_compile"
10524case "(($ac_try" in
10525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526  *) ac_try_echo=$ac_try;;
10527esac
10528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529  (eval "$ac_compile") 2>conftest.er1
10530  ac_status=$?
10531  grep -v '^ *+' conftest.er1 >conftest.err
10532  rm -f conftest.er1
10533  cat conftest.err >&5
10534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535  (exit $ac_status); } && {
10536	 test -z "$ac_c_werror_flag" ||
10537	 test ! -s conftest.err
10538       } && test -s conftest.$ac_objext; then
10539  ac_header_compiler=yes
10540else
10541  echo "$as_me: failed program was:" >&5
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544	ac_header_compiler=no
10545fi
10546
10547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10548{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10549echo "${ECHO_T}$ac_header_compiler" >&6; }
10550
10551# Is the header present?
10552{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10553echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10554cat >conftest.$ac_ext <<_ACEOF
10555/* confdefs.h.  */
10556_ACEOF
10557cat confdefs.h >>conftest.$ac_ext
10558cat >>conftest.$ac_ext <<_ACEOF
10559/* end confdefs.h.  */
10560#include <net/if_tap.h>
10561_ACEOF
10562if { (ac_try="$ac_cpp conftest.$ac_ext"
10563case "(($ac_try" in
10564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565  *) ac_try_echo=$ac_try;;
10566esac
10567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10569  ac_status=$?
10570  grep -v '^ *+' conftest.er1 >conftest.err
10571  rm -f conftest.er1
10572  cat conftest.err >&5
10573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574  (exit $ac_status); } >/dev/null && {
10575	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10576	 test ! -s conftest.err
10577       }; then
10578  ac_header_preproc=yes
10579else
10580  echo "$as_me: failed program was:" >&5
10581sed 's/^/| /' conftest.$ac_ext >&5
10582
10583  ac_header_preproc=no
10584fi
10585
10586rm -f conftest.err conftest.$ac_ext
10587{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10588echo "${ECHO_T}$ac_header_preproc" >&6; }
10589
10590# So?  What about this header?
10591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10592  yes:no: )
10593    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10594echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10595    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10596echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10597    ac_header_preproc=yes
10598    ;;
10599  no:yes:* )
10600    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10601echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10602    { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&5
10603echo "$as_me: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&2;}
10604    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10605echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10606    { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&5
10607echo "$as_me: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10608    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10609echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10610    { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10611echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10612    ( cat <<\_ASBOX
10613## ------------------------------------------- ##
10614## Report this to openssh-unix-dev@mindrot.org ##
10615## ------------------------------------------- ##
10616_ASBOX
10617     ) | sed "s/^/$as_me: WARNING:     /" >&2
10618    ;;
10619esac
10620{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10621echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10622if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10623  echo $ECHO_N "(cached) $ECHO_C" >&6
10624else
10625  ac_cv_header_net_if_tap_h=$ac_header_preproc
10626fi
10627{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10628echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10629
10630fi
10631if test $ac_cv_header_net_if_tap_h = yes; then
10632  :
10633else
10634
10635cat >>confdefs.h <<\_ACEOF
10636#define SSH_TUN_NO_L2 1
10637_ACEOF
10638
10639fi
10640
10641
10642
10643cat >>confdefs.h <<\_ACEOF
10644#define BROKEN_GLOB 1
10645_ACEOF
10646
10647
10648cat >>confdefs.h <<\_ACEOF
10649#define BROKEN_STRNVIS 1
10650_ACEOF
10651
10652	TEST_MALLOC_OPTIONS="AJRX"
10653	# Preauth crypto occasionally uses file descriptors for crypto offload
10654	# and will crash if they cannot be opened.
10655
10656cat >>confdefs.h <<\_ACEOF
10657#define SANDBOX_SKIP_RLIMIT_NOFILE 1
10658_ACEOF
10659
10660	;;
10661*-*-bsdi*)
10662	cat >>confdefs.h <<\_ACEOF
10663#define SETEUID_BREAKS_SETUID 1
10664_ACEOF
10665
10666	cat >>confdefs.h <<\_ACEOF
10667#define BROKEN_SETREUID 1
10668_ACEOF
10669
10670	cat >>confdefs.h <<\_ACEOF
10671#define BROKEN_SETREGID 1
10672_ACEOF
10673
10674	;;
10675*-next-*)
10676	conf_lastlog_location="/usr/adm/lastlog"
10677	conf_utmp_location=/etc/utmp
10678	conf_wtmp_location=/usr/adm/wtmp
10679	maildir=/usr/spool/mail
10680
10681cat >>confdefs.h <<\_ACEOF
10682#define HAVE_NEXT 1
10683_ACEOF
10684
10685	cat >>confdefs.h <<\_ACEOF
10686#define BROKEN_REALPATH 1
10687_ACEOF
10688
10689	cat >>confdefs.h <<\_ACEOF
10690#define USE_PIPES 1
10691_ACEOF
10692
10693
10694cat >>confdefs.h <<\_ACEOF
10695#define BROKEN_SAVED_UIDS 1
10696_ACEOF
10697
10698	;;
10699*-*-openbsd*)
10700	use_pie=auto
10701
10702cat >>confdefs.h <<\_ACEOF
10703#define HAVE_ATTRIBUTE__SENTINEL__ 1
10704_ACEOF
10705
10706
10707cat >>confdefs.h <<\_ACEOF
10708#define HAVE_ATTRIBUTE__BOUNDED__ 1
10709_ACEOF
10710
10711
10712cat >>confdefs.h <<\_ACEOF
10713#define SSH_TUN_OPENBSD 1
10714_ACEOF
10715
10716
10717cat >>confdefs.h <<\_ACEOF
10718#define SYSLOG_R_SAFE_IN_SIGHAND 1
10719_ACEOF
10720
10721	TEST_MALLOC_OPTIONS="AFGJPRX"
10722	;;
10723*-*-solaris*)
10724	if test "x$withval" != "xno" ; then
10725		need_dash_r=1
10726	fi
10727	cat >>confdefs.h <<\_ACEOF
10728#define PAM_SUN_CODEBASE 1
10729_ACEOF
10730
10731	cat >>confdefs.h <<\_ACEOF
10732#define LOGIN_NEEDS_UTMPX 1
10733_ACEOF
10734
10735
10736cat >>confdefs.h <<\_ACEOF
10737#define LOGIN_NEEDS_TERM 1
10738_ACEOF
10739
10740	cat >>confdefs.h <<\_ACEOF
10741#define PAM_TTY_KLUDGE 1
10742_ACEOF
10743
10744
10745cat >>confdefs.h <<\_ACEOF
10746#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
10747_ACEOF
10748
10749	cat >>confdefs.h <<\_ACEOF
10750#define LOCKED_PASSWD_STRING "*LK*"
10751_ACEOF
10752
10753	# Pushing STREAMS modules will cause sshd to acquire a controlling tty.
10754
10755cat >>confdefs.h <<\_ACEOF
10756#define SSHD_ACQUIRES_CTTY 1
10757_ACEOF
10758
10759
10760cat >>confdefs.h <<\_ACEOF
10761#define PASSWD_NEEDS_USERNAME 1
10762_ACEOF
10763
10764
10765cat >>confdefs.h <<\_ACEOF
10766#define BROKEN_TCGETATTR_ICANON 1
10767_ACEOF
10768
10769	external_path_file=/etc/default/login
10770	# hardwire lastlog location (can't detect it on some versions)
10771	conf_lastlog_location="/var/adm/lastlog"
10772	{ echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
10773echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
10774	sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
10775	if test "$sol2ver" -ge 8; then
10776		{ echo "$as_me:$LINENO: result: yes" >&5
10777echo "${ECHO_T}yes" >&6; }
10778		cat >>confdefs.h <<\_ACEOF
10779#define DISABLE_UTMP 1
10780_ACEOF
10781
10782
10783cat >>confdefs.h <<\_ACEOF
10784#define DISABLE_WTMP 1
10785_ACEOF
10786
10787	else
10788		{ echo "$as_me:$LINENO: result: no" >&5
10789echo "${ECHO_T}no" >&6; }
10790	fi
10791
10792# Check whether --with-solaris-contracts was given.
10793if test "${with_solaris_contracts+set}" = set; then
10794  withval=$with_solaris_contracts;
10795		{ echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
10796echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
10797if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
10798  echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800  ac_check_lib_save_LIBS=$LIBS
10801LIBS="-lcontract  $LIBS"
10802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h.  */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h.  */
10808
10809/* Override any GCC internal prototype to avoid an error.
10810   Use char because int might match the return type of a GCC
10811   builtin and then its argument prototype would still apply.  */
10812#ifdef __cplusplus
10813extern "C"
10814#endif
10815char ct_tmpl_activate ();
10816int
10817main ()
10818{
10819return ct_tmpl_activate ();
10820  ;
10821  return 0;
10822}
10823_ACEOF
10824rm -f conftest.$ac_objext conftest$ac_exeext
10825if { (ac_try="$ac_link"
10826case "(($ac_try" in
10827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828  *) ac_try_echo=$ac_try;;
10829esac
10830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831  (eval "$ac_link") 2>conftest.er1
10832  ac_status=$?
10833  grep -v '^ *+' conftest.er1 >conftest.err
10834  rm -f conftest.er1
10835  cat conftest.err >&5
10836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837  (exit $ac_status); } && {
10838	 test -z "$ac_c_werror_flag" ||
10839	 test ! -s conftest.err
10840       } && test -s conftest$ac_exeext &&
10841       $as_test_x conftest$ac_exeext; then
10842  ac_cv_lib_contract_ct_tmpl_activate=yes
10843else
10844  echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847	ac_cv_lib_contract_ct_tmpl_activate=no
10848fi
10849
10850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10851      conftest$ac_exeext conftest.$ac_ext
10852LIBS=$ac_check_lib_save_LIBS
10853fi
10854{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
10855echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
10856if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
10857
10858cat >>confdefs.h <<\_ACEOF
10859#define USE_SOLARIS_PROCESS_CONTRACTS 1
10860_ACEOF
10861
10862			  SSHDLIBS="$SSHDLIBS -lcontract"
10863			  SPC_MSG="yes"
10864fi
10865
10866
10867fi
10868
10869
10870# Check whether --with-solaris-projects was given.
10871if test "${with_solaris_projects+set}" = set; then
10872  withval=$with_solaris_projects;
10873		{ echo "$as_me:$LINENO: checking for setproject in -lproject" >&5
10874echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; }
10875if test "${ac_cv_lib_project_setproject+set}" = set; then
10876  echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878  ac_check_lib_save_LIBS=$LIBS
10879LIBS="-lproject  $LIBS"
10880cat >conftest.$ac_ext <<_ACEOF
10881/* confdefs.h.  */
10882_ACEOF
10883cat confdefs.h >>conftest.$ac_ext
10884cat >>conftest.$ac_ext <<_ACEOF
10885/* end confdefs.h.  */
10886
10887/* Override any GCC internal prototype to avoid an error.
10888   Use char because int might match the return type of a GCC
10889   builtin and then its argument prototype would still apply.  */
10890#ifdef __cplusplus
10891extern "C"
10892#endif
10893char setproject ();
10894int
10895main ()
10896{
10897return setproject ();
10898  ;
10899  return 0;
10900}
10901_ACEOF
10902rm -f conftest.$ac_objext conftest$ac_exeext
10903if { (ac_try="$ac_link"
10904case "(($ac_try" in
10905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906  *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909  (eval "$ac_link") 2>conftest.er1
10910  ac_status=$?
10911  grep -v '^ *+' conftest.er1 >conftest.err
10912  rm -f conftest.er1
10913  cat conftest.err >&5
10914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915  (exit $ac_status); } && {
10916	 test -z "$ac_c_werror_flag" ||
10917	 test ! -s conftest.err
10918       } && test -s conftest$ac_exeext &&
10919       $as_test_x conftest$ac_exeext; then
10920  ac_cv_lib_project_setproject=yes
10921else
10922  echo "$as_me: failed program was:" >&5
10923sed 's/^/| /' conftest.$ac_ext >&5
10924
10925	ac_cv_lib_project_setproject=no
10926fi
10927
10928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10929      conftest$ac_exeext conftest.$ac_ext
10930LIBS=$ac_check_lib_save_LIBS
10931fi
10932{ echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5
10933echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; }
10934if test $ac_cv_lib_project_setproject = yes; then
10935
10936cat >>confdefs.h <<\_ACEOF
10937#define USE_SOLARIS_PROJECTS 1
10938_ACEOF
10939
10940			SSHDLIBS="$SSHDLIBS -lproject"
10941			SP_MSG="yes"
10942fi
10943
10944
10945fi
10946
10947	TEST_SHELL=$SHELL	# let configure find us a capable shell
10948	;;
10949*-*-sunos4*)
10950	CPPFLAGS="$CPPFLAGS -DSUNOS4"
10951
10952for ac_func in getpwanam
10953do
10954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10958  echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960  cat >conftest.$ac_ext <<_ACEOF
10961/* confdefs.h.  */
10962_ACEOF
10963cat confdefs.h >>conftest.$ac_ext
10964cat >>conftest.$ac_ext <<_ACEOF
10965/* end confdefs.h.  */
10966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10967   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10968#define $ac_func innocuous_$ac_func
10969
10970/* System header to define __stub macros and hopefully few prototypes,
10971    which can conflict with char $ac_func (); below.
10972    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973    <limits.h> exists even on freestanding compilers.  */
10974
10975#ifdef __STDC__
10976# include <limits.h>
10977#else
10978# include <assert.h>
10979#endif
10980
10981#undef $ac_func
10982
10983/* Override any GCC internal prototype to avoid an error.
10984   Use char because int might match the return type of a GCC
10985   builtin and then its argument prototype would still apply.  */
10986#ifdef __cplusplus
10987extern "C"
10988#endif
10989char $ac_func ();
10990/* The GNU C library defines this for functions which it implements
10991    to always fail with ENOSYS.  Some functions are actually named
10992    something starting with __ and the normal name is an alias.  */
10993#if defined __stub_$ac_func || defined __stub___$ac_func
10994choke me
10995#endif
10996
10997int
10998main ()
10999{
11000return $ac_func ();
11001  ;
11002  return 0;
11003}
11004_ACEOF
11005rm -f conftest.$ac_objext conftest$ac_exeext
11006if { (ac_try="$ac_link"
11007case "(($ac_try" in
11008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009  *) ac_try_echo=$ac_try;;
11010esac
11011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012  (eval "$ac_link") 2>conftest.er1
11013  ac_status=$?
11014  grep -v '^ *+' conftest.er1 >conftest.err
11015  rm -f conftest.er1
11016  cat conftest.err >&5
11017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018  (exit $ac_status); } && {
11019	 test -z "$ac_c_werror_flag" ||
11020	 test ! -s conftest.err
11021       } && test -s conftest$ac_exeext &&
11022       $as_test_x conftest$ac_exeext; then
11023  eval "$as_ac_var=yes"
11024else
11025  echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
11027
11028	eval "$as_ac_var=no"
11029fi
11030
11031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032      conftest$ac_exeext conftest.$ac_ext
11033fi
11034ac_res=`eval echo '${'$as_ac_var'}'`
11035	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11036echo "${ECHO_T}$ac_res" >&6; }
11037if test `eval echo '${'$as_ac_var'}'` = yes; then
11038  cat >>confdefs.h <<_ACEOF
11039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11040_ACEOF
11041
11042fi
11043done
11044
11045	cat >>confdefs.h <<\_ACEOF
11046#define PAM_SUN_CODEBASE 1
11047_ACEOF
11048
11049	conf_utmp_location=/etc/utmp
11050	conf_wtmp_location=/var/adm/wtmp
11051	conf_lastlog_location=/var/adm/lastlog
11052	cat >>confdefs.h <<\_ACEOF
11053#define USE_PIPES 1
11054_ACEOF
11055
11056	;;
11057*-ncr-sysv*)
11058	LIBS="$LIBS -lc89"
11059	cat >>confdefs.h <<\_ACEOF
11060#define USE_PIPES 1
11061_ACEOF
11062
11063	cat >>confdefs.h <<\_ACEOF
11064#define SSHD_ACQUIRES_CTTY 1
11065_ACEOF
11066
11067	cat >>confdefs.h <<\_ACEOF
11068#define SETEUID_BREAKS_SETUID 1
11069_ACEOF
11070
11071	cat >>confdefs.h <<\_ACEOF
11072#define BROKEN_SETREUID 1
11073_ACEOF
11074
11075	cat >>confdefs.h <<\_ACEOF
11076#define BROKEN_SETREGID 1
11077_ACEOF
11078
11079	;;
11080*-sni-sysv*)
11081	# /usr/ucblib MUST NOT be searched on ReliantUNIX
11082
11083{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11084echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
11085if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11086  echo $ECHO_N "(cached) $ECHO_C" >&6
11087else
11088  ac_check_lib_save_LIBS=$LIBS
11089LIBS="-ldl  $LIBS"
11090cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h.  */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h.  */
11096
11097/* Override any GCC internal prototype to avoid an error.
11098   Use char because int might match the return type of a GCC
11099   builtin and then its argument prototype would still apply.  */
11100#ifdef __cplusplus
11101extern "C"
11102#endif
11103char dlsym ();
11104int
11105main ()
11106{
11107return dlsym ();
11108  ;
11109  return 0;
11110}
11111_ACEOF
11112rm -f conftest.$ac_objext conftest$ac_exeext
11113if { (ac_try="$ac_link"
11114case "(($ac_try" in
11115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116  *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119  (eval "$ac_link") 2>conftest.er1
11120  ac_status=$?
11121  grep -v '^ *+' conftest.er1 >conftest.err
11122  rm -f conftest.er1
11123  cat conftest.err >&5
11124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125  (exit $ac_status); } && {
11126	 test -z "$ac_c_werror_flag" ||
11127	 test ! -s conftest.err
11128       } && test -s conftest$ac_exeext &&
11129       $as_test_x conftest$ac_exeext; then
11130  ac_cv_lib_dl_dlsym=yes
11131else
11132  echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
11135	ac_cv_lib_dl_dlsym=no
11136fi
11137
11138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11139      conftest$ac_exeext conftest.$ac_ext
11140LIBS=$ac_check_lib_save_LIBS
11141fi
11142{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11143echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
11144if test $ac_cv_lib_dl_dlsym = yes; then
11145  cat >>confdefs.h <<_ACEOF
11146#define HAVE_LIBDL 1
11147_ACEOF
11148
11149  LIBS="-ldl $LIBS"
11150
11151fi
11152
11153	# -lresolv needs to be at the end of LIBS or DNS lookups break
11154	{ echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11155echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
11156if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11157  echo $ECHO_N "(cached) $ECHO_C" >&6
11158else
11159  ac_check_lib_save_LIBS=$LIBS
11160LIBS="-lresolv  $LIBS"
11161cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h.  */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h.  */
11167
11168/* Override any GCC internal prototype to avoid an error.
11169   Use char because int might match the return type of a GCC
11170   builtin and then its argument prototype would still apply.  */
11171#ifdef __cplusplus
11172extern "C"
11173#endif
11174char res_query ();
11175int
11176main ()
11177{
11178return res_query ();
11179  ;
11180  return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext conftest$ac_exeext
11184if { (ac_try="$ac_link"
11185case "(($ac_try" in
11186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187  *) ac_try_echo=$ac_try;;
11188esac
11189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190  (eval "$ac_link") 2>conftest.er1
11191  ac_status=$?
11192  grep -v '^ *+' conftest.er1 >conftest.err
11193  rm -f conftest.er1
11194  cat conftest.err >&5
11195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196  (exit $ac_status); } && {
11197	 test -z "$ac_c_werror_flag" ||
11198	 test ! -s conftest.err
11199       } && test -s conftest$ac_exeext &&
11200       $as_test_x conftest$ac_exeext; then
11201  ac_cv_lib_resolv_res_query=yes
11202else
11203  echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
11206	ac_cv_lib_resolv_res_query=no
11207fi
11208
11209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11210      conftest$ac_exeext conftest.$ac_ext
11211LIBS=$ac_check_lib_save_LIBS
11212fi
11213{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
11214echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
11215if test $ac_cv_lib_resolv_res_query = yes; then
11216   LIBS="$LIBS -lresolv"
11217fi
11218
11219	IPADDR_IN_DISPLAY=yes
11220	cat >>confdefs.h <<\_ACEOF
11221#define USE_PIPES 1
11222_ACEOF
11223
11224	cat >>confdefs.h <<\_ACEOF
11225#define IP_TOS_IS_BROKEN 1
11226_ACEOF
11227
11228	cat >>confdefs.h <<\_ACEOF
11229#define SETEUID_BREAKS_SETUID 1
11230_ACEOF
11231
11232	cat >>confdefs.h <<\_ACEOF
11233#define BROKEN_SETREUID 1
11234_ACEOF
11235
11236	cat >>confdefs.h <<\_ACEOF
11237#define BROKEN_SETREGID 1
11238_ACEOF
11239
11240	cat >>confdefs.h <<\_ACEOF
11241#define SSHD_ACQUIRES_CTTY 1
11242_ACEOF
11243
11244	external_path_file=/etc/default/login
11245	# /usr/ucblib/libucb.a no longer needed on ReliantUNIX
11246	# Attention: always take care to bind libsocket and libnsl before libc,
11247	# otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
11248	;;
11249# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
11250*-*-sysv4.2*)
11251	cat >>confdefs.h <<\_ACEOF
11252#define USE_PIPES 1
11253_ACEOF
11254
11255	cat >>confdefs.h <<\_ACEOF
11256#define SETEUID_BREAKS_SETUID 1
11257_ACEOF
11258
11259	cat >>confdefs.h <<\_ACEOF
11260#define BROKEN_SETREUID 1
11261_ACEOF
11262
11263	cat >>confdefs.h <<\_ACEOF
11264#define BROKEN_SETREGID 1
11265_ACEOF
11266
11267
11268cat >>confdefs.h <<\_ACEOF
11269#define PASSWD_NEEDS_USERNAME 1
11270_ACEOF
11271
11272	cat >>confdefs.h <<\_ACEOF
11273#define LOCKED_PASSWD_STRING "*LK*"
11274_ACEOF
11275
11276	TEST_SHELL=$SHELL	# let configure find us a capable shell
11277	;;
11278# UnixWare 7.x, OpenUNIX 8
11279*-*-sysv5*)
11280	CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
11281
11282cat >>confdefs.h <<\_ACEOF
11283#define UNIXWARE_LONG_PASSWORDS 1
11284_ACEOF
11285
11286	cat >>confdefs.h <<\_ACEOF
11287#define USE_PIPES 1
11288_ACEOF
11289
11290	cat >>confdefs.h <<\_ACEOF
11291#define SETEUID_BREAKS_SETUID 1
11292_ACEOF
11293
11294	cat >>confdefs.h <<\_ACEOF
11295#define BROKEN_GETADDRINFO 1
11296_ACEOF
11297
11298	cat >>confdefs.h <<\_ACEOF
11299#define BROKEN_SETREUID 1
11300_ACEOF
11301
11302	cat >>confdefs.h <<\_ACEOF
11303#define BROKEN_SETREGID 1
11304_ACEOF
11305
11306	cat >>confdefs.h <<\_ACEOF
11307#define PASSWD_NEEDS_USERNAME 1
11308_ACEOF
11309
11310	TEST_SHELL=$SHELL	# let configure find us a capable shell
11311	case "$host" in
11312	*-*-sysv5SCO_SV*)	# SCO OpenServer 6.x
11313		maildir=/var/spool/mail
11314
11315cat >>confdefs.h <<\_ACEOF
11316#define BROKEN_LIBIAF 1
11317_ACEOF
11318
11319		cat >>confdefs.h <<\_ACEOF
11320#define BROKEN_UPDWTMPX 1
11321_ACEOF
11322
11323		{ echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
11324echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
11325if test "${ac_cv_lib_prot_getluid+set}" = set; then
11326  echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328  ac_check_lib_save_LIBS=$LIBS
11329LIBS="-lprot  $LIBS"
11330cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h.  */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h.  */
11336
11337/* Override any GCC internal prototype to avoid an error.
11338   Use char because int might match the return type of a GCC
11339   builtin and then its argument prototype would still apply.  */
11340#ifdef __cplusplus
11341extern "C"
11342#endif
11343char getluid ();
11344int
11345main ()
11346{
11347return getluid ();
11348  ;
11349  return 0;
11350}
11351_ACEOF
11352rm -f conftest.$ac_objext conftest$ac_exeext
11353if { (ac_try="$ac_link"
11354case "(($ac_try" in
11355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356  *) ac_try_echo=$ac_try;;
11357esac
11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359  (eval "$ac_link") 2>conftest.er1
11360  ac_status=$?
11361  grep -v '^ *+' conftest.er1 >conftest.err
11362  rm -f conftest.er1
11363  cat conftest.err >&5
11364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365  (exit $ac_status); } && {
11366	 test -z "$ac_c_werror_flag" ||
11367	 test ! -s conftest.err
11368       } && test -s conftest$ac_exeext &&
11369       $as_test_x conftest$ac_exeext; then
11370  ac_cv_lib_prot_getluid=yes
11371else
11372  echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375	ac_cv_lib_prot_getluid=no
11376fi
11377
11378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11379      conftest$ac_exeext conftest.$ac_ext
11380LIBS=$ac_check_lib_save_LIBS
11381fi
11382{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
11383echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
11384if test $ac_cv_lib_prot_getluid = yes; then
11385   LIBS="$LIBS -lprot"
11386
11387
11388for ac_func in getluid setluid
11389do
11390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394  echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396  cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h.  */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h.  */
11402/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11404#define $ac_func innocuous_$ac_func
11405
11406/* System header to define __stub macros and hopefully few prototypes,
11407    which can conflict with char $ac_func (); below.
11408    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409    <limits.h> exists even on freestanding compilers.  */
11410
11411#ifdef __STDC__
11412# include <limits.h>
11413#else
11414# include <assert.h>
11415#endif
11416
11417#undef $ac_func
11418
11419/* Override any GCC internal prototype to avoid an error.
11420   Use char because int might match the return type of a GCC
11421   builtin and then its argument prototype would still apply.  */
11422#ifdef __cplusplus
11423extern "C"
11424#endif
11425char $ac_func ();
11426/* The GNU C library defines this for functions which it implements
11427    to always fail with ENOSYS.  Some functions are actually named
11428    something starting with __ and the normal name is an alias.  */
11429#if defined __stub_$ac_func || defined __stub___$ac_func
11430choke me
11431#endif
11432
11433int
11434main ()
11435{
11436return $ac_func ();
11437  ;
11438  return 0;
11439}
11440_ACEOF
11441rm -f conftest.$ac_objext conftest$ac_exeext
11442if { (ac_try="$ac_link"
11443case "(($ac_try" in
11444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445  *) ac_try_echo=$ac_try;;
11446esac
11447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448  (eval "$ac_link") 2>conftest.er1
11449  ac_status=$?
11450  grep -v '^ *+' conftest.er1 >conftest.err
11451  rm -f conftest.er1
11452  cat conftest.err >&5
11453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454  (exit $ac_status); } && {
11455	 test -z "$ac_c_werror_flag" ||
11456	 test ! -s conftest.err
11457       } && test -s conftest$ac_exeext &&
11458       $as_test_x conftest$ac_exeext; then
11459  eval "$as_ac_var=yes"
11460else
11461  echo "$as_me: failed program was:" >&5
11462sed 's/^/| /' conftest.$ac_ext >&5
11463
11464	eval "$as_ac_var=no"
11465fi
11466
11467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11468      conftest$ac_exeext conftest.$ac_ext
11469fi
11470ac_res=`eval echo '${'$as_ac_var'}'`
11471	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11472echo "${ECHO_T}$ac_res" >&6; }
11473if test `eval echo '${'$as_ac_var'}'` = yes; then
11474  cat >>confdefs.h <<_ACEOF
11475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11476_ACEOF
11477
11478fi
11479done
11480
11481			cat >>confdefs.h <<\_ACEOF
11482#define HAVE_SECUREWARE 1
11483_ACEOF
11484
11485			cat >>confdefs.h <<\_ACEOF
11486#define DISABLE_SHADOW 1
11487_ACEOF
11488
11489
11490fi
11491
11492		;;
11493	*)	cat >>confdefs.h <<\_ACEOF
11494#define LOCKED_PASSWD_STRING "*LK*"
11495_ACEOF
11496
11497		check_for_libcrypt_later=1
11498		;;
11499	esac
11500	;;
11501*-*-sysv*)
11502	;;
11503# SCO UNIX and OEM versions of SCO UNIX
11504*-*-sco3.2v4*)
11505	{ { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
11506echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
11507   { (exit 1); exit 1; }; }
11508	;;
11509# SCO OpenServer 5.x
11510*-*-sco3.2v5*)
11511	if test -z "$GCC"; then
11512		CFLAGS="$CFLAGS -belf"
11513	fi
11514	LIBS="$LIBS -lprot -lx -ltinfo -lm"
11515	no_dev_ptmx=1
11516	cat >>confdefs.h <<\_ACEOF
11517#define USE_PIPES 1
11518_ACEOF
11519
11520	cat >>confdefs.h <<\_ACEOF
11521#define HAVE_SECUREWARE 1
11522_ACEOF
11523
11524	cat >>confdefs.h <<\_ACEOF
11525#define DISABLE_SHADOW 1
11526_ACEOF
11527
11528	cat >>confdefs.h <<\_ACEOF
11529#define DISABLE_FD_PASSING 1
11530_ACEOF
11531
11532	cat >>confdefs.h <<\_ACEOF
11533#define SETEUID_BREAKS_SETUID 1
11534_ACEOF
11535
11536	cat >>confdefs.h <<\_ACEOF
11537#define BROKEN_GETADDRINFO 1
11538_ACEOF
11539
11540	cat >>confdefs.h <<\_ACEOF
11541#define BROKEN_SETREUID 1
11542_ACEOF
11543
11544	cat >>confdefs.h <<\_ACEOF
11545#define BROKEN_SETREGID 1
11546_ACEOF
11547
11548	cat >>confdefs.h <<\_ACEOF
11549#define WITH_ABBREV_NO_TTY 1
11550_ACEOF
11551
11552	cat >>confdefs.h <<\_ACEOF
11553#define BROKEN_UPDWTMPX 1
11554_ACEOF
11555
11556	cat >>confdefs.h <<\_ACEOF
11557#define PASSWD_NEEDS_USERNAME 1
11558_ACEOF
11559
11560
11561
11562for ac_func in getluid setluid
11563do
11564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11565{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11567if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11568  echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570  cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h.  */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h.  */
11576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11577   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11578#define $ac_func innocuous_$ac_func
11579
11580/* System header to define __stub macros and hopefully few prototypes,
11581    which can conflict with char $ac_func (); below.
11582    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583    <limits.h> exists even on freestanding compilers.  */
11584
11585#ifdef __STDC__
11586# include <limits.h>
11587#else
11588# include <assert.h>
11589#endif
11590
11591#undef $ac_func
11592
11593/* Override any GCC internal prototype to avoid an error.
11594   Use char because int might match the return type of a GCC
11595   builtin and then its argument prototype would still apply.  */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599char $ac_func ();
11600/* The GNU C library defines this for functions which it implements
11601    to always fail with ENOSYS.  Some functions are actually named
11602    something starting with __ and the normal name is an alias.  */
11603#if defined __stub_$ac_func || defined __stub___$ac_func
11604choke me
11605#endif
11606
11607int
11608main ()
11609{
11610return $ac_func ();
11611  ;
11612  return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext conftest$ac_exeext
11616if { (ac_try="$ac_link"
11617case "(($ac_try" in
11618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619  *) ac_try_echo=$ac_try;;
11620esac
11621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622  (eval "$ac_link") 2>conftest.er1
11623  ac_status=$?
11624  grep -v '^ *+' conftest.er1 >conftest.err
11625  rm -f conftest.er1
11626  cat conftest.err >&5
11627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628  (exit $ac_status); } && {
11629	 test -z "$ac_c_werror_flag" ||
11630	 test ! -s conftest.err
11631       } && test -s conftest$ac_exeext &&
11632       $as_test_x conftest$ac_exeext; then
11633  eval "$as_ac_var=yes"
11634else
11635  echo "$as_me: failed program was:" >&5
11636sed 's/^/| /' conftest.$ac_ext >&5
11637
11638	eval "$as_ac_var=no"
11639fi
11640
11641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11642      conftest$ac_exeext conftest.$ac_ext
11643fi
11644ac_res=`eval echo '${'$as_ac_var'}'`
11645	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11646echo "${ECHO_T}$ac_res" >&6; }
11647if test `eval echo '${'$as_ac_var'}'` = yes; then
11648  cat >>confdefs.h <<_ACEOF
11649#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11650_ACEOF
11651
11652fi
11653done
11654
11655	MANTYPE=man
11656	TEST_SHELL=$SHELL	# let configure find us a capable shell
11657	SKIP_DISABLE_LASTLOG_DEFINE=yes
11658	;;
11659*-*-unicosmk*)
11660
11661cat >>confdefs.h <<\_ACEOF
11662#define NO_SSH_LASTLOG 1
11663_ACEOF
11664
11665	cat >>confdefs.h <<\_ACEOF
11666#define SETEUID_BREAKS_SETUID 1
11667_ACEOF
11668
11669	cat >>confdefs.h <<\_ACEOF
11670#define BROKEN_SETREUID 1
11671_ACEOF
11672
11673	cat >>confdefs.h <<\_ACEOF
11674#define BROKEN_SETREGID 1
11675_ACEOF
11676
11677	cat >>confdefs.h <<\_ACEOF
11678#define USE_PIPES 1
11679_ACEOF
11680
11681	cat >>confdefs.h <<\_ACEOF
11682#define DISABLE_FD_PASSING 1
11683_ACEOF
11684
11685	LDFLAGS="$LDFLAGS"
11686	LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
11687	MANTYPE=cat
11688	;;
11689*-*-unicosmp*)
11690	cat >>confdefs.h <<\_ACEOF
11691#define SETEUID_BREAKS_SETUID 1
11692_ACEOF
11693
11694	cat >>confdefs.h <<\_ACEOF
11695#define BROKEN_SETREUID 1
11696_ACEOF
11697
11698	cat >>confdefs.h <<\_ACEOF
11699#define BROKEN_SETREGID 1
11700_ACEOF
11701
11702	cat >>confdefs.h <<\_ACEOF
11703#define WITH_ABBREV_NO_TTY 1
11704_ACEOF
11705
11706	cat >>confdefs.h <<\_ACEOF
11707#define USE_PIPES 1
11708_ACEOF
11709
11710	cat >>confdefs.h <<\_ACEOF
11711#define DISABLE_FD_PASSING 1
11712_ACEOF
11713
11714	LDFLAGS="$LDFLAGS"
11715	LIBS="$LIBS -lgen -lacid -ldb"
11716	MANTYPE=cat
11717	;;
11718*-*-unicos*)
11719	cat >>confdefs.h <<\_ACEOF
11720#define SETEUID_BREAKS_SETUID 1
11721_ACEOF
11722
11723	cat >>confdefs.h <<\_ACEOF
11724#define BROKEN_SETREUID 1
11725_ACEOF
11726
11727	cat >>confdefs.h <<\_ACEOF
11728#define BROKEN_SETREGID 1
11729_ACEOF
11730
11731	cat >>confdefs.h <<\_ACEOF
11732#define USE_PIPES 1
11733_ACEOF
11734
11735	cat >>confdefs.h <<\_ACEOF
11736#define DISABLE_FD_PASSING 1
11737_ACEOF
11738
11739	cat >>confdefs.h <<\_ACEOF
11740#define NO_SSH_LASTLOG 1
11741_ACEOF
11742
11743	LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
11744	LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
11745	MANTYPE=cat
11746	;;
11747*-dec-osf*)
11748	{ echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
11749echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
11750	no_osfsia=""
11751
11752# Check whether --with-osfsia was given.
11753if test "${with_osfsia+set}" = set; then
11754  withval=$with_osfsia;
11755			if test "x$withval" = "xno" ; then
11756				{ echo "$as_me:$LINENO: result: disabled" >&5
11757echo "${ECHO_T}disabled" >&6; }
11758				no_osfsia=1
11759			fi
11760
11761fi
11762
11763	if test -z "$no_osfsia" ; then
11764		if test -f /etc/sia/matrix.conf; then
11765			{ echo "$as_me:$LINENO: result: yes" >&5
11766echo "${ECHO_T}yes" >&6; }
11767
11768cat >>confdefs.h <<\_ACEOF
11769#define HAVE_OSF_SIA 1
11770_ACEOF
11771
11772
11773cat >>confdefs.h <<\_ACEOF
11774#define DISABLE_LOGIN 1
11775_ACEOF
11776
11777			cat >>confdefs.h <<\_ACEOF
11778#define DISABLE_FD_PASSING 1
11779_ACEOF
11780
11781			LIBS="$LIBS -lsecurity -ldb -lm -laud"
11782			SIA_MSG="yes"
11783		else
11784			{ echo "$as_me:$LINENO: result: no" >&5
11785echo "${ECHO_T}no" >&6; }
11786
11787cat >>confdefs.h <<\_ACEOF
11788#define LOCKED_PASSWD_SUBSTR "Nologin"
11789_ACEOF
11790
11791		fi
11792	fi
11793	cat >>confdefs.h <<\_ACEOF
11794#define BROKEN_GETADDRINFO 1
11795_ACEOF
11796
11797	cat >>confdefs.h <<\_ACEOF
11798#define SETEUID_BREAKS_SETUID 1
11799_ACEOF
11800
11801	cat >>confdefs.h <<\_ACEOF
11802#define BROKEN_SETREUID 1
11803_ACEOF
11804
11805	cat >>confdefs.h <<\_ACEOF
11806#define BROKEN_SETREGID 1
11807_ACEOF
11808
11809
11810cat >>confdefs.h <<\_ACEOF
11811#define BROKEN_READV_COMPARISON 1
11812_ACEOF
11813
11814	;;
11815
11816*-*-nto-qnx*)
11817	cat >>confdefs.h <<\_ACEOF
11818#define USE_PIPES 1
11819_ACEOF
11820
11821	cat >>confdefs.h <<\_ACEOF
11822#define NO_X11_UNIX_SOCKETS 1
11823_ACEOF
11824
11825	cat >>confdefs.h <<\_ACEOF
11826#define DISABLE_LASTLOG 1
11827_ACEOF
11828
11829	cat >>confdefs.h <<\_ACEOF
11830#define SSHD_ACQUIRES_CTTY 1
11831_ACEOF
11832
11833
11834cat >>confdefs.h <<\_ACEOF
11835#define BROKEN_SHADOW_EXPIRE 1
11836_ACEOF
11837
11838	enable_etc_default_login=no	# has incompatible /etc/default/login
11839	case "$host" in
11840	*-*-nto-qnx6*)
11841		cat >>confdefs.h <<\_ACEOF
11842#define DISABLE_FD_PASSING 1
11843_ACEOF
11844
11845		;;
11846	esac
11847	;;
11848
11849*-*-ultrix*)
11850
11851cat >>confdefs.h <<\_ACEOF
11852#define BROKEN_GETGROUPS 1
11853_ACEOF
11854
11855
11856cat >>confdefs.h <<\_ACEOF
11857#define BROKEN_MMAP 1
11858_ACEOF
11859
11860	cat >>confdefs.h <<\_ACEOF
11861#define NEED_SETPGRP 1
11862_ACEOF
11863
11864
11865cat >>confdefs.h <<\_ACEOF
11866#define HAVE_SYS_SYSLOG_H 1
11867_ACEOF
11868
11869	;;
11870
11871*-*-lynxos)
11872        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
11873
11874cat >>confdefs.h <<\_ACEOF
11875#define BROKEN_SETVBUF 1
11876_ACEOF
11877
11878        ;;
11879esac
11880
11881{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
11882echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
11883if test "$cross_compiling" = yes; then
11884  	{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
11885echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
11886
11887else
11888  cat >conftest.$ac_ext <<_ACEOF
11889/* confdefs.h.  */
11890_ACEOF
11891cat confdefs.h >>conftest.$ac_ext
11892cat >>conftest.$ac_ext <<_ACEOF
11893/* end confdefs.h.  */
11894 #include <stdio.h>
11895int
11896main ()
11897{
11898 exit(0);
11899  ;
11900  return 0;
11901}
11902_ACEOF
11903rm -f conftest$ac_exeext
11904if { (ac_try="$ac_link"
11905case "(($ac_try" in
11906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907  *) ac_try_echo=$ac_try;;
11908esac
11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910  (eval "$ac_link") 2>&5
11911  ac_status=$?
11912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11914  { (case "(($ac_try" in
11915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916  *) ac_try_echo=$ac_try;;
11917esac
11918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919  (eval "$ac_try") 2>&5
11920  ac_status=$?
11921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922  (exit $ac_status); }; }; then
11923  	{ echo "$as_me:$LINENO: result: yes" >&5
11924echo "${ECHO_T}yes" >&6; }
11925else
11926  echo "$as_me: program exited with status $ac_status" >&5
11927echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930( exit $ac_status )
11931
11932		{ echo "$as_me:$LINENO: result: no" >&5
11933echo "${ECHO_T}no" >&6; }
11934		{ { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
11935echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
11936   { (exit 1); exit 1; }; }
11937
11938fi
11939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11940fi
11941
11942
11943
11944# Checks for libraries.
11945{ echo "$as_me:$LINENO: checking for yp_match" >&5
11946echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
11947if test "${ac_cv_func_yp_match+set}" = set; then
11948  echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950  cat >conftest.$ac_ext <<_ACEOF
11951/* confdefs.h.  */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h.  */
11956/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
11957   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11958#define yp_match innocuous_yp_match
11959
11960/* System header to define __stub macros and hopefully few prototypes,
11961    which can conflict with char yp_match (); below.
11962    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11963    <limits.h> exists even on freestanding compilers.  */
11964
11965#ifdef __STDC__
11966# include <limits.h>
11967#else
11968# include <assert.h>
11969#endif
11970
11971#undef yp_match
11972
11973/* Override any GCC internal prototype to avoid an error.
11974   Use char because int might match the return type of a GCC
11975   builtin and then its argument prototype would still apply.  */
11976#ifdef __cplusplus
11977extern "C"
11978#endif
11979char yp_match ();
11980/* The GNU C library defines this for functions which it implements
11981    to always fail with ENOSYS.  Some functions are actually named
11982    something starting with __ and the normal name is an alias.  */
11983#if defined __stub_yp_match || defined __stub___yp_match
11984choke me
11985#endif
11986
11987int
11988main ()
11989{
11990return yp_match ();
11991  ;
11992  return 0;
11993}
11994_ACEOF
11995rm -f conftest.$ac_objext conftest$ac_exeext
11996if { (ac_try="$ac_link"
11997case "(($ac_try" in
11998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999  *) ac_try_echo=$ac_try;;
12000esac
12001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002  (eval "$ac_link") 2>conftest.er1
12003  ac_status=$?
12004  grep -v '^ *+' conftest.er1 >conftest.err
12005  rm -f conftest.er1
12006  cat conftest.err >&5
12007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008  (exit $ac_status); } && {
12009	 test -z "$ac_c_werror_flag" ||
12010	 test ! -s conftest.err
12011       } && test -s conftest$ac_exeext &&
12012       $as_test_x conftest$ac_exeext; then
12013  ac_cv_func_yp_match=yes
12014else
12015  echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018	ac_cv_func_yp_match=no
12019fi
12020
12021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12022      conftest$ac_exeext conftest.$ac_ext
12023fi
12024{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
12025echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
12026if test $ac_cv_func_yp_match = yes; then
12027  :
12028else
12029
12030{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
12031echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
12032if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
12033  echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035  ac_check_lib_save_LIBS=$LIBS
12036LIBS="-lnsl  $LIBS"
12037cat >conftest.$ac_ext <<_ACEOF
12038/* confdefs.h.  */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h.  */
12043
12044/* Override any GCC internal prototype to avoid an error.
12045   Use char because int might match the return type of a GCC
12046   builtin and then its argument prototype would still apply.  */
12047#ifdef __cplusplus
12048extern "C"
12049#endif
12050char yp_match ();
12051int
12052main ()
12053{
12054return yp_match ();
12055  ;
12056  return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext conftest$ac_exeext
12060if { (ac_try="$ac_link"
12061case "(($ac_try" in
12062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063  *) ac_try_echo=$ac_try;;
12064esac
12065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066  (eval "$ac_link") 2>conftest.er1
12067  ac_status=$?
12068  grep -v '^ *+' conftest.er1 >conftest.err
12069  rm -f conftest.er1
12070  cat conftest.err >&5
12071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072  (exit $ac_status); } && {
12073	 test -z "$ac_c_werror_flag" ||
12074	 test ! -s conftest.err
12075       } && test -s conftest$ac_exeext &&
12076       $as_test_x conftest$ac_exeext; then
12077  ac_cv_lib_nsl_yp_match=yes
12078else
12079  echo "$as_me: failed program was:" >&5
12080sed 's/^/| /' conftest.$ac_ext >&5
12081
12082	ac_cv_lib_nsl_yp_match=no
12083fi
12084
12085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12086      conftest$ac_exeext conftest.$ac_ext
12087LIBS=$ac_check_lib_save_LIBS
12088fi
12089{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
12090echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
12091if test $ac_cv_lib_nsl_yp_match = yes; then
12092  cat >>confdefs.h <<_ACEOF
12093#define HAVE_LIBNSL 1
12094_ACEOF
12095
12096  LIBS="-lnsl $LIBS"
12097
12098fi
12099
12100fi
12101
12102{ echo "$as_me:$LINENO: checking for setsockopt" >&5
12103echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
12104if test "${ac_cv_func_setsockopt+set}" = set; then
12105  echo $ECHO_N "(cached) $ECHO_C" >&6
12106else
12107  cat >conftest.$ac_ext <<_ACEOF
12108/* confdefs.h.  */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h.  */
12113/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
12114   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12115#define setsockopt innocuous_setsockopt
12116
12117/* System header to define __stub macros and hopefully few prototypes,
12118    which can conflict with char setsockopt (); below.
12119    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120    <limits.h> exists even on freestanding compilers.  */
12121
12122#ifdef __STDC__
12123# include <limits.h>
12124#else
12125# include <assert.h>
12126#endif
12127
12128#undef setsockopt
12129
12130/* Override any GCC internal prototype to avoid an error.
12131   Use char because int might match the return type of a GCC
12132   builtin and then its argument prototype would still apply.  */
12133#ifdef __cplusplus
12134extern "C"
12135#endif
12136char setsockopt ();
12137/* The GNU C library defines this for functions which it implements
12138    to always fail with ENOSYS.  Some functions are actually named
12139    something starting with __ and the normal name is an alias.  */
12140#if defined __stub_setsockopt || defined __stub___setsockopt
12141choke me
12142#endif
12143
12144int
12145main ()
12146{
12147return setsockopt ();
12148  ;
12149  return 0;
12150}
12151_ACEOF
12152rm -f conftest.$ac_objext conftest$ac_exeext
12153if { (ac_try="$ac_link"
12154case "(($ac_try" in
12155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156  *) ac_try_echo=$ac_try;;
12157esac
12158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159  (eval "$ac_link") 2>conftest.er1
12160  ac_status=$?
12161  grep -v '^ *+' conftest.er1 >conftest.err
12162  rm -f conftest.er1
12163  cat conftest.err >&5
12164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165  (exit $ac_status); } && {
12166	 test -z "$ac_c_werror_flag" ||
12167	 test ! -s conftest.err
12168       } && test -s conftest$ac_exeext &&
12169       $as_test_x conftest$ac_exeext; then
12170  ac_cv_func_setsockopt=yes
12171else
12172  echo "$as_me: failed program was:" >&5
12173sed 's/^/| /' conftest.$ac_ext >&5
12174
12175	ac_cv_func_setsockopt=no
12176fi
12177
12178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12179      conftest$ac_exeext conftest.$ac_ext
12180fi
12181{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
12182echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
12183if test $ac_cv_func_setsockopt = yes; then
12184  :
12185else
12186
12187{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
12188echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
12189if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
12190  echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192  ac_check_lib_save_LIBS=$LIBS
12193LIBS="-lsocket  $LIBS"
12194cat >conftest.$ac_ext <<_ACEOF
12195/* confdefs.h.  */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h.  */
12200
12201/* Override any GCC internal prototype to avoid an error.
12202   Use char because int might match the return type of a GCC
12203   builtin and then its argument prototype would still apply.  */
12204#ifdef __cplusplus
12205extern "C"
12206#endif
12207char setsockopt ();
12208int
12209main ()
12210{
12211return setsockopt ();
12212  ;
12213  return 0;
12214}
12215_ACEOF
12216rm -f conftest.$ac_objext conftest$ac_exeext
12217if { (ac_try="$ac_link"
12218case "(($ac_try" in
12219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220  *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223  (eval "$ac_link") 2>conftest.er1
12224  ac_status=$?
12225  grep -v '^ *+' conftest.er1 >conftest.err
12226  rm -f conftest.er1
12227  cat conftest.err >&5
12228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229  (exit $ac_status); } && {
12230	 test -z "$ac_c_werror_flag" ||
12231	 test ! -s conftest.err
12232       } && test -s conftest$ac_exeext &&
12233       $as_test_x conftest$ac_exeext; then
12234  ac_cv_lib_socket_setsockopt=yes
12235else
12236  echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239	ac_cv_lib_socket_setsockopt=no
12240fi
12241
12242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243      conftest$ac_exeext conftest.$ac_ext
12244LIBS=$ac_check_lib_save_LIBS
12245fi
12246{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
12247echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
12248if test $ac_cv_lib_socket_setsockopt = yes; then
12249  cat >>confdefs.h <<_ACEOF
12250#define HAVE_LIBSOCKET 1
12251_ACEOF
12252
12253  LIBS="-lsocket $LIBS"
12254
12255fi
12256
12257fi
12258
12259
12260
12261for ac_func in dirname
12262do
12263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12264{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12266if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12267  echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269  cat >conftest.$ac_ext <<_ACEOF
12270/* confdefs.h.  */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
12274/* end confdefs.h.  */
12275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12276   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12277#define $ac_func innocuous_$ac_func
12278
12279/* System header to define __stub macros and hopefully few prototypes,
12280    which can conflict with char $ac_func (); below.
12281    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12282    <limits.h> exists even on freestanding compilers.  */
12283
12284#ifdef __STDC__
12285# include <limits.h>
12286#else
12287# include <assert.h>
12288#endif
12289
12290#undef $ac_func
12291
12292/* Override any GCC internal prototype to avoid an error.
12293   Use char because int might match the return type of a GCC
12294   builtin and then its argument prototype would still apply.  */
12295#ifdef __cplusplus
12296extern "C"
12297#endif
12298char $ac_func ();
12299/* The GNU C library defines this for functions which it implements
12300    to always fail with ENOSYS.  Some functions are actually named
12301    something starting with __ and the normal name is an alias.  */
12302#if defined __stub_$ac_func || defined __stub___$ac_func
12303choke me
12304#endif
12305
12306int
12307main ()
12308{
12309return $ac_func ();
12310  ;
12311  return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext conftest$ac_exeext
12315if { (ac_try="$ac_link"
12316case "(($ac_try" in
12317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318  *) ac_try_echo=$ac_try;;
12319esac
12320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321  (eval "$ac_link") 2>conftest.er1
12322  ac_status=$?
12323  grep -v '^ *+' conftest.er1 >conftest.err
12324  rm -f conftest.er1
12325  cat conftest.err >&5
12326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327  (exit $ac_status); } && {
12328	 test -z "$ac_c_werror_flag" ||
12329	 test ! -s conftest.err
12330       } && test -s conftest$ac_exeext &&
12331       $as_test_x conftest$ac_exeext; then
12332  eval "$as_ac_var=yes"
12333else
12334  echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337	eval "$as_ac_var=no"
12338fi
12339
12340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12341      conftest$ac_exeext conftest.$ac_ext
12342fi
12343ac_res=`eval echo '${'$as_ac_var'}'`
12344	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12345echo "${ECHO_T}$ac_res" >&6; }
12346if test `eval echo '${'$as_ac_var'}'` = yes; then
12347  cat >>confdefs.h <<_ACEOF
12348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12349_ACEOF
12350
12351for ac_header in libgen.h
12352do
12353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12355  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358  echo $ECHO_N "(cached) $ECHO_C" >&6
12359fi
12360ac_res=`eval echo '${'$as_ac_Header'}'`
12361	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12362echo "${ECHO_T}$ac_res" >&6; }
12363else
12364  # Is the header compilable?
12365{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12367cat >conftest.$ac_ext <<_ACEOF
12368/* confdefs.h.  */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h.  */
12373$ac_includes_default
12374#include <$ac_header>
12375_ACEOF
12376rm -f conftest.$ac_objext
12377if { (ac_try="$ac_compile"
12378case "(($ac_try" in
12379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380  *) ac_try_echo=$ac_try;;
12381esac
12382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383  (eval "$ac_compile") 2>conftest.er1
12384  ac_status=$?
12385  grep -v '^ *+' conftest.er1 >conftest.err
12386  rm -f conftest.er1
12387  cat conftest.err >&5
12388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389  (exit $ac_status); } && {
12390	 test -z "$ac_c_werror_flag" ||
12391	 test ! -s conftest.err
12392       } && test -s conftest.$ac_objext; then
12393  ac_header_compiler=yes
12394else
12395  echo "$as_me: failed program was:" >&5
12396sed 's/^/| /' conftest.$ac_ext >&5
12397
12398	ac_header_compiler=no
12399fi
12400
12401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12403echo "${ECHO_T}$ac_header_compiler" >&6; }
12404
12405# Is the header present?
12406{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12407echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12408cat >conftest.$ac_ext <<_ACEOF
12409/* confdefs.h.  */
12410_ACEOF
12411cat confdefs.h >>conftest.$ac_ext
12412cat >>conftest.$ac_ext <<_ACEOF
12413/* end confdefs.h.  */
12414#include <$ac_header>
12415_ACEOF
12416if { (ac_try="$ac_cpp conftest.$ac_ext"
12417case "(($ac_try" in
12418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419  *) ac_try_echo=$ac_try;;
12420esac
12421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12423  ac_status=$?
12424  grep -v '^ *+' conftest.er1 >conftest.err
12425  rm -f conftest.er1
12426  cat conftest.err >&5
12427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428  (exit $ac_status); } >/dev/null && {
12429	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12430	 test ! -s conftest.err
12431       }; then
12432  ac_header_preproc=yes
12433else
12434  echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437  ac_header_preproc=no
12438fi
12439
12440rm -f conftest.err conftest.$ac_ext
12441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442echo "${ECHO_T}$ac_header_preproc" >&6; }
12443
12444# So?  What about this header?
12445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446  yes:no: )
12447    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451    ac_header_preproc=yes
12452    ;;
12453  no:yes:* )
12454    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12457echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12458    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12461echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12462    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12466    ( cat <<\_ASBOX
12467## ------------------------------------------- ##
12468## Report this to openssh-unix-dev@mindrot.org ##
12469## ------------------------------------------- ##
12470_ASBOX
12471     ) | sed "s/^/$as_me: WARNING:     /" >&2
12472    ;;
12473esac
12474{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477  echo $ECHO_N "(cached) $ECHO_C" >&6
12478else
12479  eval "$as_ac_Header=\$ac_header_preproc"
12480fi
12481ac_res=`eval echo '${'$as_ac_Header'}'`
12482	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12483echo "${ECHO_T}$ac_res" >&6; }
12484
12485fi
12486if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487  cat >>confdefs.h <<_ACEOF
12488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12489_ACEOF
12490
12491fi
12492
12493done
12494
12495else
12496
12497	{ echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
12498echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
12499if test "${ac_cv_lib_gen_dirname+set}" = set; then
12500  echo $ECHO_N "(cached) $ECHO_C" >&6
12501else
12502  ac_check_lib_save_LIBS=$LIBS
12503LIBS="-lgen  $LIBS"
12504cat >conftest.$ac_ext <<_ACEOF
12505/* confdefs.h.  */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h.  */
12510
12511/* Override any GCC internal prototype to avoid an error.
12512   Use char because int might match the return type of a GCC
12513   builtin and then its argument prototype would still apply.  */
12514#ifdef __cplusplus
12515extern "C"
12516#endif
12517char dirname ();
12518int
12519main ()
12520{
12521return dirname ();
12522  ;
12523  return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext conftest$ac_exeext
12527if { (ac_try="$ac_link"
12528case "(($ac_try" in
12529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530  *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533  (eval "$ac_link") 2>conftest.er1
12534  ac_status=$?
12535  grep -v '^ *+' conftest.er1 >conftest.err
12536  rm -f conftest.er1
12537  cat conftest.err >&5
12538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539  (exit $ac_status); } && {
12540	 test -z "$ac_c_werror_flag" ||
12541	 test ! -s conftest.err
12542       } && test -s conftest$ac_exeext &&
12543       $as_test_x conftest$ac_exeext; then
12544  ac_cv_lib_gen_dirname=yes
12545else
12546  echo "$as_me: failed program was:" >&5
12547sed 's/^/| /' conftest.$ac_ext >&5
12548
12549	ac_cv_lib_gen_dirname=no
12550fi
12551
12552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12553      conftest$ac_exeext conftest.$ac_ext
12554LIBS=$ac_check_lib_save_LIBS
12555fi
12556{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
12557echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
12558if test $ac_cv_lib_gen_dirname = yes; then
12559
12560		{ echo "$as_me:$LINENO: checking for broken dirname" >&5
12561echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
12562if test "${ac_cv_have_broken_dirname+set}" = set; then
12563  echo $ECHO_N "(cached) $ECHO_C" >&6
12564else
12565
12566			save_LIBS="$LIBS"
12567			LIBS="$LIBS -lgen"
12568			if test "$cross_compiling" = yes; then
12569   ac_cv_have_broken_dirname="no"
12570else
12571  cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h.  */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h.  */
12577
12578#include <libgen.h>
12579#include <string.h>
12580
12581int main(int argc, char **argv) {
12582    char *s, buf[32];
12583
12584    strncpy(buf,"/etc", 32);
12585    s = dirname(buf);
12586    if (!s || strncmp(s, "/", 32) != 0) {
12587	exit(1);
12588    } else {
12589	exit(0);
12590    }
12591}
12592
12593_ACEOF
12594rm -f conftest$ac_exeext
12595if { (ac_try="$ac_link"
12596case "(($ac_try" in
12597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598  *) ac_try_echo=$ac_try;;
12599esac
12600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601  (eval "$ac_link") 2>&5
12602  ac_status=$?
12603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12605  { (case "(($ac_try" in
12606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607  *) ac_try_echo=$ac_try;;
12608esac
12609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610  (eval "$ac_try") 2>&5
12611  ac_status=$?
12612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613  (exit $ac_status); }; }; then
12614   ac_cv_have_broken_dirname="no"
12615else
12616  echo "$as_me: program exited with status $ac_status" >&5
12617echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620( exit $ac_status )
12621 ac_cv_have_broken_dirname="yes"
12622fi
12623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12624fi
12625
12626
12627			LIBS="$save_LIBS"
12628
12629fi
12630{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
12631echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
12632		if test "x$ac_cv_have_broken_dirname" = "xno" ; then
12633			LIBS="$LIBS -lgen"
12634			cat >>confdefs.h <<\_ACEOF
12635#define HAVE_DIRNAME 1
12636_ACEOF
12637
12638
12639for ac_header in libgen.h
12640do
12641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12643  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12646  echo $ECHO_N "(cached) $ECHO_C" >&6
12647fi
12648ac_res=`eval echo '${'$as_ac_Header'}'`
12649	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12650echo "${ECHO_T}$ac_res" >&6; }
12651else
12652  # Is the header compilable?
12653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12655cat >conftest.$ac_ext <<_ACEOF
12656/* confdefs.h.  */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h.  */
12661$ac_includes_default
12662#include <$ac_header>
12663_ACEOF
12664rm -f conftest.$ac_objext
12665if { (ac_try="$ac_compile"
12666case "(($ac_try" in
12667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668  *) ac_try_echo=$ac_try;;
12669esac
12670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671  (eval "$ac_compile") 2>conftest.er1
12672  ac_status=$?
12673  grep -v '^ *+' conftest.er1 >conftest.err
12674  rm -f conftest.er1
12675  cat conftest.err >&5
12676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677  (exit $ac_status); } && {
12678	 test -z "$ac_c_werror_flag" ||
12679	 test ! -s conftest.err
12680       } && test -s conftest.$ac_objext; then
12681  ac_header_compiler=yes
12682else
12683  echo "$as_me: failed program was:" >&5
12684sed 's/^/| /' conftest.$ac_ext >&5
12685
12686	ac_header_compiler=no
12687fi
12688
12689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12691echo "${ECHO_T}$ac_header_compiler" >&6; }
12692
12693# Is the header present?
12694{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12696cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h.  */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h.  */
12702#include <$ac_header>
12703_ACEOF
12704if { (ac_try="$ac_cpp conftest.$ac_ext"
12705case "(($ac_try" in
12706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707  *) ac_try_echo=$ac_try;;
12708esac
12709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12711  ac_status=$?
12712  grep -v '^ *+' conftest.er1 >conftest.err
12713  rm -f conftest.er1
12714  cat conftest.err >&5
12715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716  (exit $ac_status); } >/dev/null && {
12717	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12718	 test ! -s conftest.err
12719       }; then
12720  ac_header_preproc=yes
12721else
12722  echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724
12725  ac_header_preproc=no
12726fi
12727
12728rm -f conftest.err conftest.$ac_ext
12729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12730echo "${ECHO_T}$ac_header_preproc" >&6; }
12731
12732# So?  What about this header?
12733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12734  yes:no: )
12735    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12737    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12739    ac_header_preproc=yes
12740    ;;
12741  no:yes:* )
12742    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12744    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12745echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12746    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12748    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12749echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12750    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12752    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12754    ( cat <<\_ASBOX
12755## ------------------------------------------- ##
12756## Report this to openssh-unix-dev@mindrot.org ##
12757## ------------------------------------------- ##
12758_ASBOX
12759     ) | sed "s/^/$as_me: WARNING:     /" >&2
12760    ;;
12761esac
12762{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12765  echo $ECHO_N "(cached) $ECHO_C" >&6
12766else
12767  eval "$as_ac_Header=\$ac_header_preproc"
12768fi
12769ac_res=`eval echo '${'$as_ac_Header'}'`
12770	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12771echo "${ECHO_T}$ac_res" >&6; }
12772
12773fi
12774if test `eval echo '${'$as_ac_Header'}'` = yes; then
12775  cat >>confdefs.h <<_ACEOF
12776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12777_ACEOF
12778
12779fi
12780
12781done
12782
12783		fi
12784
12785fi
12786
12787
12788fi
12789done
12790
12791
12792{ echo "$as_me:$LINENO: checking for getspnam" >&5
12793echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
12794if test "${ac_cv_func_getspnam+set}" = set; then
12795  echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797  cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h.  */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h.  */
12803/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
12804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12805#define getspnam innocuous_getspnam
12806
12807/* System header to define __stub macros and hopefully few prototypes,
12808    which can conflict with char getspnam (); below.
12809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12810    <limits.h> exists even on freestanding compilers.  */
12811
12812#ifdef __STDC__
12813# include <limits.h>
12814#else
12815# include <assert.h>
12816#endif
12817
12818#undef getspnam
12819
12820/* Override any GCC internal prototype to avoid an error.
12821   Use char because int might match the return type of a GCC
12822   builtin and then its argument prototype would still apply.  */
12823#ifdef __cplusplus
12824extern "C"
12825#endif
12826char getspnam ();
12827/* The GNU C library defines this for functions which it implements
12828    to always fail with ENOSYS.  Some functions are actually named
12829    something starting with __ and the normal name is an alias.  */
12830#if defined __stub_getspnam || defined __stub___getspnam
12831choke me
12832#endif
12833
12834int
12835main ()
12836{
12837return getspnam ();
12838  ;
12839  return 0;
12840}
12841_ACEOF
12842rm -f conftest.$ac_objext conftest$ac_exeext
12843if { (ac_try="$ac_link"
12844case "(($ac_try" in
12845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846  *) ac_try_echo=$ac_try;;
12847esac
12848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849  (eval "$ac_link") 2>conftest.er1
12850  ac_status=$?
12851  grep -v '^ *+' conftest.er1 >conftest.err
12852  rm -f conftest.er1
12853  cat conftest.err >&5
12854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855  (exit $ac_status); } && {
12856	 test -z "$ac_c_werror_flag" ||
12857	 test ! -s conftest.err
12858       } && test -s conftest$ac_exeext &&
12859       $as_test_x conftest$ac_exeext; then
12860  ac_cv_func_getspnam=yes
12861else
12862  echo "$as_me: failed program was:" >&5
12863sed 's/^/| /' conftest.$ac_ext >&5
12864
12865	ac_cv_func_getspnam=no
12866fi
12867
12868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12869      conftest$ac_exeext conftest.$ac_ext
12870fi
12871{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
12872echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
12873if test $ac_cv_func_getspnam = yes; then
12874  :
12875else
12876  { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
12877echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
12878if test "${ac_cv_lib_gen_getspnam+set}" = set; then
12879  echo $ECHO_N "(cached) $ECHO_C" >&6
12880else
12881  ac_check_lib_save_LIBS=$LIBS
12882LIBS="-lgen  $LIBS"
12883cat >conftest.$ac_ext <<_ACEOF
12884/* confdefs.h.  */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h.  */
12889
12890/* Override any GCC internal prototype to avoid an error.
12891   Use char because int might match the return type of a GCC
12892   builtin and then its argument prototype would still apply.  */
12893#ifdef __cplusplus
12894extern "C"
12895#endif
12896char getspnam ();
12897int
12898main ()
12899{
12900return getspnam ();
12901  ;
12902  return 0;
12903}
12904_ACEOF
12905rm -f conftest.$ac_objext conftest$ac_exeext
12906if { (ac_try="$ac_link"
12907case "(($ac_try" in
12908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909  *) ac_try_echo=$ac_try;;
12910esac
12911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912  (eval "$ac_link") 2>conftest.er1
12913  ac_status=$?
12914  grep -v '^ *+' conftest.er1 >conftest.err
12915  rm -f conftest.er1
12916  cat conftest.err >&5
12917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918  (exit $ac_status); } && {
12919	 test -z "$ac_c_werror_flag" ||
12920	 test ! -s conftest.err
12921       } && test -s conftest$ac_exeext &&
12922       $as_test_x conftest$ac_exeext; then
12923  ac_cv_lib_gen_getspnam=yes
12924else
12925  echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
12928	ac_cv_lib_gen_getspnam=no
12929fi
12930
12931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12932      conftest$ac_exeext conftest.$ac_ext
12933LIBS=$ac_check_lib_save_LIBS
12934fi
12935{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
12936echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
12937if test $ac_cv_lib_gen_getspnam = yes; then
12938  LIBS="$LIBS -lgen"
12939fi
12940
12941fi
12942
12943{ echo "$as_me:$LINENO: checking for library containing basename" >&5
12944echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
12945if test "${ac_cv_search_basename+set}" = set; then
12946  echo $ECHO_N "(cached) $ECHO_C" >&6
12947else
12948  ac_func_search_save_LIBS=$LIBS
12949cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h.  */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h.  */
12955
12956/* Override any GCC internal prototype to avoid an error.
12957   Use char because int might match the return type of a GCC
12958   builtin and then its argument prototype would still apply.  */
12959#ifdef __cplusplus
12960extern "C"
12961#endif
12962char basename ();
12963int
12964main ()
12965{
12966return basename ();
12967  ;
12968  return 0;
12969}
12970_ACEOF
12971for ac_lib in '' gen; do
12972  if test -z "$ac_lib"; then
12973    ac_res="none required"
12974  else
12975    ac_res=-l$ac_lib
12976    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12977  fi
12978  rm -f conftest.$ac_objext conftest$ac_exeext
12979if { (ac_try="$ac_link"
12980case "(($ac_try" in
12981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982  *) ac_try_echo=$ac_try;;
12983esac
12984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985  (eval "$ac_link") 2>conftest.er1
12986  ac_status=$?
12987  grep -v '^ *+' conftest.er1 >conftest.err
12988  rm -f conftest.er1
12989  cat conftest.err >&5
12990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991  (exit $ac_status); } && {
12992	 test -z "$ac_c_werror_flag" ||
12993	 test ! -s conftest.err
12994       } && test -s conftest$ac_exeext &&
12995       $as_test_x conftest$ac_exeext; then
12996  ac_cv_search_basename=$ac_res
12997else
12998  echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001
13002fi
13003
13004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13005      conftest$ac_exeext
13006  if test "${ac_cv_search_basename+set}" = set; then
13007  break
13008fi
13009done
13010if test "${ac_cv_search_basename+set}" = set; then
13011  :
13012else
13013  ac_cv_search_basename=no
13014fi
13015rm conftest.$ac_ext
13016LIBS=$ac_func_search_save_LIBS
13017fi
13018{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
13019echo "${ECHO_T}$ac_cv_search_basename" >&6; }
13020ac_res=$ac_cv_search_basename
13021if test "$ac_res" != no; then
13022  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13023
13024cat >>confdefs.h <<\_ACEOF
13025#define HAVE_BASENAME 1
13026_ACEOF
13027
13028fi
13029
13030
13031
13032# Check whether --with-zlib was given.
13033if test "${with_zlib+set}" = set; then
13034  withval=$with_zlib;  if test "x$withval" = "xno" ; then
13035		{ { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
13036echo "$as_me: error: *** zlib is required ***" >&2;}
13037   { (exit 1); exit 1; }; }
13038	  elif test "x$withval" != "xyes"; then
13039		if test -d "$withval/lib"; then
13040			if test -n "${need_dash_r}"; then
13041				LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13042			else
13043				LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13044			fi
13045		else
13046			if test -n "${need_dash_r}"; then
13047				LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
13048			else
13049				LDFLAGS="-L${withval} ${LDFLAGS}"
13050			fi
13051		fi
13052		if test -d "$withval/include"; then
13053			CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
13054		else
13055			CPPFLAGS="-I${withval} ${CPPFLAGS}"
13056		fi
13057	fi
13058
13059fi
13060
13061
13062if test "${ac_cv_header_zlib_h+set}" = set; then
13063  { echo "$as_me:$LINENO: checking for zlib.h" >&5
13064echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13065if test "${ac_cv_header_zlib_h+set}" = set; then
13066  echo $ECHO_N "(cached) $ECHO_C" >&6
13067fi
13068{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13069echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13070else
13071  # Is the header compilable?
13072{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
13073echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
13074cat >conftest.$ac_ext <<_ACEOF
13075/* confdefs.h.  */
13076_ACEOF
13077cat confdefs.h >>conftest.$ac_ext
13078cat >>conftest.$ac_ext <<_ACEOF
13079/* end confdefs.h.  */
13080$ac_includes_default
13081#include <zlib.h>
13082_ACEOF
13083rm -f conftest.$ac_objext
13084if { (ac_try="$ac_compile"
13085case "(($ac_try" in
13086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087  *) ac_try_echo=$ac_try;;
13088esac
13089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090  (eval "$ac_compile") 2>conftest.er1
13091  ac_status=$?
13092  grep -v '^ *+' conftest.er1 >conftest.err
13093  rm -f conftest.er1
13094  cat conftest.err >&5
13095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096  (exit $ac_status); } && {
13097	 test -z "$ac_c_werror_flag" ||
13098	 test ! -s conftest.err
13099       } && test -s conftest.$ac_objext; then
13100  ac_header_compiler=yes
13101else
13102  echo "$as_me: failed program was:" >&5
13103sed 's/^/| /' conftest.$ac_ext >&5
13104
13105	ac_header_compiler=no
13106fi
13107
13108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110echo "${ECHO_T}$ac_header_compiler" >&6; }
13111
13112# Is the header present?
13113{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
13114echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
13115cat >conftest.$ac_ext <<_ACEOF
13116/* confdefs.h.  */
13117_ACEOF
13118cat confdefs.h >>conftest.$ac_ext
13119cat >>conftest.$ac_ext <<_ACEOF
13120/* end confdefs.h.  */
13121#include <zlib.h>
13122_ACEOF
13123if { (ac_try="$ac_cpp conftest.$ac_ext"
13124case "(($ac_try" in
13125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126  *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13130  ac_status=$?
13131  grep -v '^ *+' conftest.er1 >conftest.err
13132  rm -f conftest.er1
13133  cat conftest.err >&5
13134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135  (exit $ac_status); } >/dev/null && {
13136	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13137	 test ! -s conftest.err
13138       }; then
13139  ac_header_preproc=yes
13140else
13141  echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
13144  ac_header_preproc=no
13145fi
13146
13147rm -f conftest.err conftest.$ac_ext
13148{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13149echo "${ECHO_T}$ac_header_preproc" >&6; }
13150
13151# So?  What about this header?
13152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13153  yes:no: )
13154    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13155echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13156    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13157echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13158    ac_header_preproc=yes
13159    ;;
13160  no:yes:* )
13161    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13162echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13163    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
13164echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
13165    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13166echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13167    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
13168echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13169    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13170echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13171    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13172echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13173    ( cat <<\_ASBOX
13174## ------------------------------------------- ##
13175## Report this to openssh-unix-dev@mindrot.org ##
13176## ------------------------------------------- ##
13177_ASBOX
13178     ) | sed "s/^/$as_me: WARNING:     /" >&2
13179    ;;
13180esac
13181{ echo "$as_me:$LINENO: checking for zlib.h" >&5
13182echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13183if test "${ac_cv_header_zlib_h+set}" = set; then
13184  echo $ECHO_N "(cached) $ECHO_C" >&6
13185else
13186  ac_cv_header_zlib_h=$ac_header_preproc
13187fi
13188{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13189echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13190
13191fi
13192if test $ac_cv_header_zlib_h = yes; then
13193  :
13194else
13195  { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
13196echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
13197   { (exit 1); exit 1; }; }
13198fi
13199
13200
13201
13202{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13203echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
13204if test "${ac_cv_lib_z_deflate+set}" = set; then
13205  echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207  ac_check_lib_save_LIBS=$LIBS
13208LIBS="-lz  $LIBS"
13209cat >conftest.$ac_ext <<_ACEOF
13210/* confdefs.h.  */
13211_ACEOF
13212cat confdefs.h >>conftest.$ac_ext
13213cat >>conftest.$ac_ext <<_ACEOF
13214/* end confdefs.h.  */
13215
13216/* Override any GCC internal prototype to avoid an error.
13217   Use char because int might match the return type of a GCC
13218   builtin and then its argument prototype would still apply.  */
13219#ifdef __cplusplus
13220extern "C"
13221#endif
13222char deflate ();
13223int
13224main ()
13225{
13226return deflate ();
13227  ;
13228  return 0;
13229}
13230_ACEOF
13231rm -f conftest.$ac_objext conftest$ac_exeext
13232if { (ac_try="$ac_link"
13233case "(($ac_try" in
13234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235  *) ac_try_echo=$ac_try;;
13236esac
13237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238  (eval "$ac_link") 2>conftest.er1
13239  ac_status=$?
13240  grep -v '^ *+' conftest.er1 >conftest.err
13241  rm -f conftest.er1
13242  cat conftest.err >&5
13243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244  (exit $ac_status); } && {
13245	 test -z "$ac_c_werror_flag" ||
13246	 test ! -s conftest.err
13247       } && test -s conftest$ac_exeext &&
13248       $as_test_x conftest$ac_exeext; then
13249  ac_cv_lib_z_deflate=yes
13250else
13251  echo "$as_me: failed program was:" >&5
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
13254	ac_cv_lib_z_deflate=no
13255fi
13256
13257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13258      conftest$ac_exeext conftest.$ac_ext
13259LIBS=$ac_check_lib_save_LIBS
13260fi
13261{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13262echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
13263if test $ac_cv_lib_z_deflate = yes; then
13264  cat >>confdefs.h <<_ACEOF
13265#define HAVE_LIBZ 1
13266_ACEOF
13267
13268  LIBS="-lz $LIBS"
13269
13270else
13271
13272		saved_CPPFLAGS="$CPPFLAGS"
13273		saved_LDFLAGS="$LDFLAGS"
13274		save_LIBS="$LIBS"
13275				if test -n "${need_dash_r}"; then
13276			LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
13277		else
13278			LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
13279		fi
13280		CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
13281		LIBS="$LIBS -lz"
13282		cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h.  */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h.  */
13288
13289/* Override any GCC internal prototype to avoid an error.
13290   Use char because int might match the return type of a GCC
13291   builtin and then its argument prototype would still apply.  */
13292#ifdef __cplusplus
13293extern "C"
13294#endif
13295char deflate ();
13296int
13297main ()
13298{
13299return deflate ();
13300  ;
13301  return 0;
13302}
13303_ACEOF
13304rm -f conftest.$ac_objext conftest$ac_exeext
13305if { (ac_try="$ac_link"
13306case "(($ac_try" in
13307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308  *) ac_try_echo=$ac_try;;
13309esac
13310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311  (eval "$ac_link") 2>conftest.er1
13312  ac_status=$?
13313  grep -v '^ *+' conftest.er1 >conftest.err
13314  rm -f conftest.er1
13315  cat conftest.err >&5
13316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317  (exit $ac_status); } && {
13318	 test -z "$ac_c_werror_flag" ||
13319	 test ! -s conftest.err
13320       } && test -s conftest$ac_exeext &&
13321       $as_test_x conftest$ac_exeext; then
13322  cat >>confdefs.h <<\_ACEOF
13323#define HAVE_LIBZ 1
13324_ACEOF
13325
13326else
13327  echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330
13331				{ { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
13332echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
13333   { (exit 1); exit 1; }; }
13334
13335
13336fi
13337
13338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13339      conftest$ac_exeext conftest.$ac_ext
13340
13341
13342fi
13343
13344
13345
13346# Check whether --with-zlib-version-check was given.
13347if test "${with_zlib_version_check+set}" = set; then
13348  withval=$with_zlib_version_check;   if test "x$withval" = "xno" ; then
13349		zlib_check_nonfatal=1
13350	   fi
13351
13352
13353fi
13354
13355
13356{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
13357echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
13358if test "$cross_compiling" = yes; then
13359  	{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
13360echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
13361
13362else
13363  cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h.  */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h.  */
13369
13370#include <stdio.h>
13371#include <stdlib.h>
13372#include <zlib.h>
13373
13374int
13375main ()
13376{
13377
13378	int a=0, b=0, c=0, d=0, n, v;
13379	n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
13380	if (n != 3 && n != 4)
13381		exit(1);
13382	v = a*1000000 + b*10000 + c*100 + d;
13383	fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
13384
13385	/* 1.1.4 is OK */
13386	if (a == 1 && b == 1 && c >= 4)
13387		exit(0);
13388
13389	/* 1.2.3 and up are OK */
13390	if (v >= 1020300)
13391		exit(0);
13392
13393	exit(2);
13394
13395  ;
13396  return 0;
13397}
13398_ACEOF
13399rm -f conftest$ac_exeext
13400if { (ac_try="$ac_link"
13401case "(($ac_try" in
13402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403  *) ac_try_echo=$ac_try;;
13404esac
13405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406  (eval "$ac_link") 2>&5
13407  ac_status=$?
13408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13410  { (case "(($ac_try" in
13411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412  *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415  (eval "$ac_try") 2>&5
13416  ac_status=$?
13417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418  (exit $ac_status); }; }; then
13419  { echo "$as_me:$LINENO: result: no" >&5
13420echo "${ECHO_T}no" >&6; }
13421else
13422  echo "$as_me: program exited with status $ac_status" >&5
13423echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426( exit $ac_status )
13427 { echo "$as_me:$LINENO: result: yes" >&5
13428echo "${ECHO_T}yes" >&6; }
13429	  if test -z "$zlib_check_nonfatal" ; then
13430		{ { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
13431Your reported zlib version has known security problems.  It's possible your
13432vendor has fixed these problems without changing the version number.  If you
13433are sure this is the case, you can disable the check by running
13434\"./configure --without-zlib-version-check\".
13435If you are in doubt, upgrade zlib to version 1.2.3 or greater.
13436See http://www.gzip.org/zlib/ for details." >&5
13437echo "$as_me: error: *** zlib too old - check config.log ***
13438Your reported zlib version has known security problems.  It's possible your
13439vendor has fixed these problems without changing the version number.  If you
13440are sure this is the case, you can disable the check by running
13441\"./configure --without-zlib-version-check\".
13442If you are in doubt, upgrade zlib to version 1.2.3 or greater.
13443See http://www.gzip.org/zlib/ for details." >&2;}
13444   { (exit 1); exit 1; }; }
13445	  else
13446		{ echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
13447echo "$as_me: WARNING: zlib version may have security problems" >&2;}
13448	  fi
13449
13450fi
13451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13452fi
13453
13454
13455
13456{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
13457echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
13458if test "${ac_cv_func_strcasecmp+set}" = set; then
13459  echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461  cat >conftest.$ac_ext <<_ACEOF
13462/* confdefs.h.  */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
13466/* end confdefs.h.  */
13467/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
13468   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13469#define strcasecmp innocuous_strcasecmp
13470
13471/* System header to define __stub macros and hopefully few prototypes,
13472    which can conflict with char strcasecmp (); below.
13473    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13474    <limits.h> exists even on freestanding compilers.  */
13475
13476#ifdef __STDC__
13477# include <limits.h>
13478#else
13479# include <assert.h>
13480#endif
13481
13482#undef strcasecmp
13483
13484/* Override any GCC internal prototype to avoid an error.
13485   Use char because int might match the return type of a GCC
13486   builtin and then its argument prototype would still apply.  */
13487#ifdef __cplusplus
13488extern "C"
13489#endif
13490char strcasecmp ();
13491/* The GNU C library defines this for functions which it implements
13492    to always fail with ENOSYS.  Some functions are actually named
13493    something starting with __ and the normal name is an alias.  */
13494#if defined __stub_strcasecmp || defined __stub___strcasecmp
13495choke me
13496#endif
13497
13498int
13499main ()
13500{
13501return strcasecmp ();
13502  ;
13503  return 0;
13504}
13505_ACEOF
13506rm -f conftest.$ac_objext conftest$ac_exeext
13507if { (ac_try="$ac_link"
13508case "(($ac_try" in
13509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510  *) ac_try_echo=$ac_try;;
13511esac
13512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513  (eval "$ac_link") 2>conftest.er1
13514  ac_status=$?
13515  grep -v '^ *+' conftest.er1 >conftest.err
13516  rm -f conftest.er1
13517  cat conftest.err >&5
13518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519  (exit $ac_status); } && {
13520	 test -z "$ac_c_werror_flag" ||
13521	 test ! -s conftest.err
13522       } && test -s conftest$ac_exeext &&
13523       $as_test_x conftest$ac_exeext; then
13524  ac_cv_func_strcasecmp=yes
13525else
13526  echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529	ac_cv_func_strcasecmp=no
13530fi
13531
13532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13533      conftest$ac_exeext conftest.$ac_ext
13534fi
13535{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
13536echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
13537if test $ac_cv_func_strcasecmp = yes; then
13538  :
13539else
13540   { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
13541echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
13542if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
13543  echo $ECHO_N "(cached) $ECHO_C" >&6
13544else
13545  ac_check_lib_save_LIBS=$LIBS
13546LIBS="-lresolv  $LIBS"
13547cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h.  */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h.  */
13553
13554/* Override any GCC internal prototype to avoid an error.
13555   Use char because int might match the return type of a GCC
13556   builtin and then its argument prototype would still apply.  */
13557#ifdef __cplusplus
13558extern "C"
13559#endif
13560char strcasecmp ();
13561int
13562main ()
13563{
13564return strcasecmp ();
13565  ;
13566  return 0;
13567}
13568_ACEOF
13569rm -f conftest.$ac_objext conftest$ac_exeext
13570if { (ac_try="$ac_link"
13571case "(($ac_try" in
13572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573  *) ac_try_echo=$ac_try;;
13574esac
13575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576  (eval "$ac_link") 2>conftest.er1
13577  ac_status=$?
13578  grep -v '^ *+' conftest.er1 >conftest.err
13579  rm -f conftest.er1
13580  cat conftest.err >&5
13581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582  (exit $ac_status); } && {
13583	 test -z "$ac_c_werror_flag" ||
13584	 test ! -s conftest.err
13585       } && test -s conftest$ac_exeext &&
13586       $as_test_x conftest$ac_exeext; then
13587  ac_cv_lib_resolv_strcasecmp=yes
13588else
13589  echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592	ac_cv_lib_resolv_strcasecmp=no
13593fi
13594
13595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13596      conftest$ac_exeext conftest.$ac_ext
13597LIBS=$ac_check_lib_save_LIBS
13598fi
13599{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
13600echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
13601if test $ac_cv_lib_resolv_strcasecmp = yes; then
13602  LIBS="$LIBS -lresolv"
13603fi
13604
13605
13606fi
13607
13608
13609for ac_func in utimes
13610do
13611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13615  echo $ECHO_N "(cached) $ECHO_C" >&6
13616else
13617  cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h.  */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h.  */
13623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13624   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13625#define $ac_func innocuous_$ac_func
13626
13627/* System header to define __stub macros and hopefully few prototypes,
13628    which can conflict with char $ac_func (); below.
13629    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13630    <limits.h> exists even on freestanding compilers.  */
13631
13632#ifdef __STDC__
13633# include <limits.h>
13634#else
13635# include <assert.h>
13636#endif
13637
13638#undef $ac_func
13639
13640/* Override any GCC internal prototype to avoid an error.
13641   Use char because int might match the return type of a GCC
13642   builtin and then its argument prototype would still apply.  */
13643#ifdef __cplusplus
13644extern "C"
13645#endif
13646char $ac_func ();
13647/* The GNU C library defines this for functions which it implements
13648    to always fail with ENOSYS.  Some functions are actually named
13649    something starting with __ and the normal name is an alias.  */
13650#if defined __stub_$ac_func || defined __stub___$ac_func
13651choke me
13652#endif
13653
13654int
13655main ()
13656{
13657return $ac_func ();
13658  ;
13659  return 0;
13660}
13661_ACEOF
13662rm -f conftest.$ac_objext conftest$ac_exeext
13663if { (ac_try="$ac_link"
13664case "(($ac_try" in
13665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666  *) ac_try_echo=$ac_try;;
13667esac
13668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669  (eval "$ac_link") 2>conftest.er1
13670  ac_status=$?
13671  grep -v '^ *+' conftest.er1 >conftest.err
13672  rm -f conftest.er1
13673  cat conftest.err >&5
13674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675  (exit $ac_status); } && {
13676	 test -z "$ac_c_werror_flag" ||
13677	 test ! -s conftest.err
13678       } && test -s conftest$ac_exeext &&
13679       $as_test_x conftest$ac_exeext; then
13680  eval "$as_ac_var=yes"
13681else
13682  echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685	eval "$as_ac_var=no"
13686fi
13687
13688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13689      conftest$ac_exeext conftest.$ac_ext
13690fi
13691ac_res=`eval echo '${'$as_ac_var'}'`
13692	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13693echo "${ECHO_T}$ac_res" >&6; }
13694if test `eval echo '${'$as_ac_var'}'` = yes; then
13695  cat >>confdefs.h <<_ACEOF
13696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13697_ACEOF
13698
13699else
13700   { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
13701echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
13702if test "${ac_cv_lib_c89_utimes+set}" = set; then
13703  echo $ECHO_N "(cached) $ECHO_C" >&6
13704else
13705  ac_check_lib_save_LIBS=$LIBS
13706LIBS="-lc89  $LIBS"
13707cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h.  */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h.  */
13713
13714/* Override any GCC internal prototype to avoid an error.
13715   Use char because int might match the return type of a GCC
13716   builtin and then its argument prototype would still apply.  */
13717#ifdef __cplusplus
13718extern "C"
13719#endif
13720char utimes ();
13721int
13722main ()
13723{
13724return utimes ();
13725  ;
13726  return 0;
13727}
13728_ACEOF
13729rm -f conftest.$ac_objext conftest$ac_exeext
13730if { (ac_try="$ac_link"
13731case "(($ac_try" in
13732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733  *) ac_try_echo=$ac_try;;
13734esac
13735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736  (eval "$ac_link") 2>conftest.er1
13737  ac_status=$?
13738  grep -v '^ *+' conftest.er1 >conftest.err
13739  rm -f conftest.er1
13740  cat conftest.err >&5
13741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742  (exit $ac_status); } && {
13743	 test -z "$ac_c_werror_flag" ||
13744	 test ! -s conftest.err
13745       } && test -s conftest$ac_exeext &&
13746       $as_test_x conftest$ac_exeext; then
13747  ac_cv_lib_c89_utimes=yes
13748else
13749  echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
13752	ac_cv_lib_c89_utimes=no
13753fi
13754
13755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13756      conftest$ac_exeext conftest.$ac_ext
13757LIBS=$ac_check_lib_save_LIBS
13758fi
13759{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
13760echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
13761if test $ac_cv_lib_c89_utimes = yes; then
13762  cat >>confdefs.h <<\_ACEOF
13763#define HAVE_UTIMES 1
13764_ACEOF
13765
13766					LIBS="$LIBS -lc89"
13767fi
13768
13769
13770fi
13771done
13772
13773
13774
13775
13776for ac_header in bsd/libutil.h libutil.h
13777do
13778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13780  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13783  echo $ECHO_N "(cached) $ECHO_C" >&6
13784fi
13785ac_res=`eval echo '${'$as_ac_Header'}'`
13786	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13787echo "${ECHO_T}$ac_res" >&6; }
13788else
13789  # Is the header compilable?
13790{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13792cat >conftest.$ac_ext <<_ACEOF
13793/* confdefs.h.  */
13794_ACEOF
13795cat confdefs.h >>conftest.$ac_ext
13796cat >>conftest.$ac_ext <<_ACEOF
13797/* end confdefs.h.  */
13798$ac_includes_default
13799#include <$ac_header>
13800_ACEOF
13801rm -f conftest.$ac_objext
13802if { (ac_try="$ac_compile"
13803case "(($ac_try" in
13804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805  *) ac_try_echo=$ac_try;;
13806esac
13807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808  (eval "$ac_compile") 2>conftest.er1
13809  ac_status=$?
13810  grep -v '^ *+' conftest.er1 >conftest.err
13811  rm -f conftest.er1
13812  cat conftest.err >&5
13813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814  (exit $ac_status); } && {
13815	 test -z "$ac_c_werror_flag" ||
13816	 test ! -s conftest.err
13817       } && test -s conftest.$ac_objext; then
13818  ac_header_compiler=yes
13819else
13820  echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823	ac_header_compiler=no
13824fi
13825
13826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13828echo "${ECHO_T}$ac_header_compiler" >&6; }
13829
13830# Is the header present?
13831{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13833cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h.  */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
13838/* end confdefs.h.  */
13839#include <$ac_header>
13840_ACEOF
13841if { (ac_try="$ac_cpp conftest.$ac_ext"
13842case "(($ac_try" in
13843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844  *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13848  ac_status=$?
13849  grep -v '^ *+' conftest.er1 >conftest.err
13850  rm -f conftest.er1
13851  cat conftest.err >&5
13852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853  (exit $ac_status); } >/dev/null && {
13854	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13855	 test ! -s conftest.err
13856       }; then
13857  ac_header_preproc=yes
13858else
13859  echo "$as_me: failed program was:" >&5
13860sed 's/^/| /' conftest.$ac_ext >&5
13861
13862  ac_header_preproc=no
13863fi
13864
13865rm -f conftest.err conftest.$ac_ext
13866{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13867echo "${ECHO_T}$ac_header_preproc" >&6; }
13868
13869# So?  What about this header?
13870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13871  yes:no: )
13872    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13874    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13876    ac_header_preproc=yes
13877    ;;
13878  no:yes:* )
13879    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13881    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13882echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13883    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13885    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13886echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13887    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13889    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13891    ( cat <<\_ASBOX
13892## ------------------------------------------- ##
13893## Report this to openssh-unix-dev@mindrot.org ##
13894## ------------------------------------------- ##
13895_ASBOX
13896     ) | sed "s/^/$as_me: WARNING:     /" >&2
13897    ;;
13898esac
13899{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13902  echo $ECHO_N "(cached) $ECHO_C" >&6
13903else
13904  eval "$as_ac_Header=\$ac_header_preproc"
13905fi
13906ac_res=`eval echo '${'$as_ac_Header'}'`
13907	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13908echo "${ECHO_T}$ac_res" >&6; }
13909
13910fi
13911if test `eval echo '${'$as_ac_Header'}'` = yes; then
13912  cat >>confdefs.h <<_ACEOF
13913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13914_ACEOF
13915
13916fi
13917
13918done
13919
13920{ echo "$as_me:$LINENO: checking for library containing fmt_scaled" >&5
13921echo $ECHO_N "checking for library containing fmt_scaled... $ECHO_C" >&6; }
13922if test "${ac_cv_search_fmt_scaled+set}" = set; then
13923  echo $ECHO_N "(cached) $ECHO_C" >&6
13924else
13925  ac_func_search_save_LIBS=$LIBS
13926cat >conftest.$ac_ext <<_ACEOF
13927/* confdefs.h.  */
13928_ACEOF
13929cat confdefs.h >>conftest.$ac_ext
13930cat >>conftest.$ac_ext <<_ACEOF
13931/* end confdefs.h.  */
13932
13933/* Override any GCC internal prototype to avoid an error.
13934   Use char because int might match the return type of a GCC
13935   builtin and then its argument prototype would still apply.  */
13936#ifdef __cplusplus
13937extern "C"
13938#endif
13939char fmt_scaled ();
13940int
13941main ()
13942{
13943return fmt_scaled ();
13944  ;
13945  return 0;
13946}
13947_ACEOF
13948for ac_lib in '' util bsd; do
13949  if test -z "$ac_lib"; then
13950    ac_res="none required"
13951  else
13952    ac_res=-l$ac_lib
13953    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13954  fi
13955  rm -f conftest.$ac_objext conftest$ac_exeext
13956if { (ac_try="$ac_link"
13957case "(($ac_try" in
13958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959  *) ac_try_echo=$ac_try;;
13960esac
13961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962  (eval "$ac_link") 2>conftest.er1
13963  ac_status=$?
13964  grep -v '^ *+' conftest.er1 >conftest.err
13965  rm -f conftest.er1
13966  cat conftest.err >&5
13967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968  (exit $ac_status); } && {
13969	 test -z "$ac_c_werror_flag" ||
13970	 test ! -s conftest.err
13971       } && test -s conftest$ac_exeext &&
13972       $as_test_x conftest$ac_exeext; then
13973  ac_cv_search_fmt_scaled=$ac_res
13974else
13975  echo "$as_me: failed program was:" >&5
13976sed 's/^/| /' conftest.$ac_ext >&5
13977
13978
13979fi
13980
13981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13982      conftest$ac_exeext
13983  if test "${ac_cv_search_fmt_scaled+set}" = set; then
13984  break
13985fi
13986done
13987if test "${ac_cv_search_fmt_scaled+set}" = set; then
13988  :
13989else
13990  ac_cv_search_fmt_scaled=no
13991fi
13992rm conftest.$ac_ext
13993LIBS=$ac_func_search_save_LIBS
13994fi
13995{ echo "$as_me:$LINENO: result: $ac_cv_search_fmt_scaled" >&5
13996echo "${ECHO_T}$ac_cv_search_fmt_scaled" >&6; }
13997ac_res=$ac_cv_search_fmt_scaled
13998if test "$ac_res" != no; then
13999  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14000
14001fi
14002
14003{ echo "$as_me:$LINENO: checking for library containing scan_scaled" >&5
14004echo $ECHO_N "checking for library containing scan_scaled... $ECHO_C" >&6; }
14005if test "${ac_cv_search_scan_scaled+set}" = set; then
14006  echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008  ac_func_search_save_LIBS=$LIBS
14009cat >conftest.$ac_ext <<_ACEOF
14010/* confdefs.h.  */
14011_ACEOF
14012cat confdefs.h >>conftest.$ac_ext
14013cat >>conftest.$ac_ext <<_ACEOF
14014/* end confdefs.h.  */
14015
14016/* Override any GCC internal prototype to avoid an error.
14017   Use char because int might match the return type of a GCC
14018   builtin and then its argument prototype would still apply.  */
14019#ifdef __cplusplus
14020extern "C"
14021#endif
14022char scan_scaled ();
14023int
14024main ()
14025{
14026return scan_scaled ();
14027  ;
14028  return 0;
14029}
14030_ACEOF
14031for ac_lib in '' util bsd; do
14032  if test -z "$ac_lib"; then
14033    ac_res="none required"
14034  else
14035    ac_res=-l$ac_lib
14036    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14037  fi
14038  rm -f conftest.$ac_objext conftest$ac_exeext
14039if { (ac_try="$ac_link"
14040case "(($ac_try" in
14041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042  *) ac_try_echo=$ac_try;;
14043esac
14044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14045  (eval "$ac_link") 2>conftest.er1
14046  ac_status=$?
14047  grep -v '^ *+' conftest.er1 >conftest.err
14048  rm -f conftest.er1
14049  cat conftest.err >&5
14050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051  (exit $ac_status); } && {
14052	 test -z "$ac_c_werror_flag" ||
14053	 test ! -s conftest.err
14054       } && test -s conftest$ac_exeext &&
14055       $as_test_x conftest$ac_exeext; then
14056  ac_cv_search_scan_scaled=$ac_res
14057else
14058  echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
14061
14062fi
14063
14064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14065      conftest$ac_exeext
14066  if test "${ac_cv_search_scan_scaled+set}" = set; then
14067  break
14068fi
14069done
14070if test "${ac_cv_search_scan_scaled+set}" = set; then
14071  :
14072else
14073  ac_cv_search_scan_scaled=no
14074fi
14075rm conftest.$ac_ext
14076LIBS=$ac_func_search_save_LIBS
14077fi
14078{ echo "$as_me:$LINENO: result: $ac_cv_search_scan_scaled" >&5
14079echo "${ECHO_T}$ac_cv_search_scan_scaled" >&6; }
14080ac_res=$ac_cv_search_scan_scaled
14081if test "$ac_res" != no; then
14082  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14083
14084fi
14085
14086{ echo "$as_me:$LINENO: checking for library containing login" >&5
14087echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
14088if test "${ac_cv_search_login+set}" = set; then
14089  echo $ECHO_N "(cached) $ECHO_C" >&6
14090else
14091  ac_func_search_save_LIBS=$LIBS
14092cat >conftest.$ac_ext <<_ACEOF
14093/* confdefs.h.  */
14094_ACEOF
14095cat confdefs.h >>conftest.$ac_ext
14096cat >>conftest.$ac_ext <<_ACEOF
14097/* end confdefs.h.  */
14098
14099/* Override any GCC internal prototype to avoid an error.
14100   Use char because int might match the return type of a GCC
14101   builtin and then its argument prototype would still apply.  */
14102#ifdef __cplusplus
14103extern "C"
14104#endif
14105char login ();
14106int
14107main ()
14108{
14109return login ();
14110  ;
14111  return 0;
14112}
14113_ACEOF
14114for ac_lib in '' util bsd; do
14115  if test -z "$ac_lib"; then
14116    ac_res="none required"
14117  else
14118    ac_res=-l$ac_lib
14119    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14120  fi
14121  rm -f conftest.$ac_objext conftest$ac_exeext
14122if { (ac_try="$ac_link"
14123case "(($ac_try" in
14124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125  *) ac_try_echo=$ac_try;;
14126esac
14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128  (eval "$ac_link") 2>conftest.er1
14129  ac_status=$?
14130  grep -v '^ *+' conftest.er1 >conftest.err
14131  rm -f conftest.er1
14132  cat conftest.err >&5
14133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134  (exit $ac_status); } && {
14135	 test -z "$ac_c_werror_flag" ||
14136	 test ! -s conftest.err
14137       } && test -s conftest$ac_exeext &&
14138       $as_test_x conftest$ac_exeext; then
14139  ac_cv_search_login=$ac_res
14140else
14141  echo "$as_me: failed program was:" >&5
14142sed 's/^/| /' conftest.$ac_ext >&5
14143
14144
14145fi
14146
14147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14148      conftest$ac_exeext
14149  if test "${ac_cv_search_login+set}" = set; then
14150  break
14151fi
14152done
14153if test "${ac_cv_search_login+set}" = set; then
14154  :
14155else
14156  ac_cv_search_login=no
14157fi
14158rm conftest.$ac_ext
14159LIBS=$ac_func_search_save_LIBS
14160fi
14161{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
14162echo "${ECHO_T}$ac_cv_search_login" >&6; }
14163ac_res=$ac_cv_search_login
14164if test "$ac_res" != no; then
14165  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14166
14167fi
14168
14169{ echo "$as_me:$LINENO: checking for library containing logout" >&5
14170echo $ECHO_N "checking for library containing logout... $ECHO_C" >&6; }
14171if test "${ac_cv_search_logout+set}" = set; then
14172  echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174  ac_func_search_save_LIBS=$LIBS
14175cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h.  */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h.  */
14181
14182/* Override any GCC internal prototype to avoid an error.
14183   Use char because int might match the return type of a GCC
14184   builtin and then its argument prototype would still apply.  */
14185#ifdef __cplusplus
14186extern "C"
14187#endif
14188char logout ();
14189int
14190main ()
14191{
14192return logout ();
14193  ;
14194  return 0;
14195}
14196_ACEOF
14197for ac_lib in '' util bsd; do
14198  if test -z "$ac_lib"; then
14199    ac_res="none required"
14200  else
14201    ac_res=-l$ac_lib
14202    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14203  fi
14204  rm -f conftest.$ac_objext conftest$ac_exeext
14205if { (ac_try="$ac_link"
14206case "(($ac_try" in
14207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208  *) ac_try_echo=$ac_try;;
14209esac
14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211  (eval "$ac_link") 2>conftest.er1
14212  ac_status=$?
14213  grep -v '^ *+' conftest.er1 >conftest.err
14214  rm -f conftest.er1
14215  cat conftest.err >&5
14216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217  (exit $ac_status); } && {
14218	 test -z "$ac_c_werror_flag" ||
14219	 test ! -s conftest.err
14220       } && test -s conftest$ac_exeext &&
14221       $as_test_x conftest$ac_exeext; then
14222  ac_cv_search_logout=$ac_res
14223else
14224  echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
14227
14228fi
14229
14230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14231      conftest$ac_exeext
14232  if test "${ac_cv_search_logout+set}" = set; then
14233  break
14234fi
14235done
14236if test "${ac_cv_search_logout+set}" = set; then
14237  :
14238else
14239  ac_cv_search_logout=no
14240fi
14241rm conftest.$ac_ext
14242LIBS=$ac_func_search_save_LIBS
14243fi
14244{ echo "$as_me:$LINENO: result: $ac_cv_search_logout" >&5
14245echo "${ECHO_T}$ac_cv_search_logout" >&6; }
14246ac_res=$ac_cv_search_logout
14247if test "$ac_res" != no; then
14248  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14249
14250fi
14251
14252{ echo "$as_me:$LINENO: checking for library containing logwtmp" >&5
14253echo $ECHO_N "checking for library containing logwtmp... $ECHO_C" >&6; }
14254if test "${ac_cv_search_logwtmp+set}" = set; then
14255  echo $ECHO_N "(cached) $ECHO_C" >&6
14256else
14257  ac_func_search_save_LIBS=$LIBS
14258cat >conftest.$ac_ext <<_ACEOF
14259/* confdefs.h.  */
14260_ACEOF
14261cat confdefs.h >>conftest.$ac_ext
14262cat >>conftest.$ac_ext <<_ACEOF
14263/* end confdefs.h.  */
14264
14265/* Override any GCC internal prototype to avoid an error.
14266   Use char because int might match the return type of a GCC
14267   builtin and then its argument prototype would still apply.  */
14268#ifdef __cplusplus
14269extern "C"
14270#endif
14271char logwtmp ();
14272int
14273main ()
14274{
14275return logwtmp ();
14276  ;
14277  return 0;
14278}
14279_ACEOF
14280for ac_lib in '' util bsd; do
14281  if test -z "$ac_lib"; then
14282    ac_res="none required"
14283  else
14284    ac_res=-l$ac_lib
14285    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14286  fi
14287  rm -f conftest.$ac_objext conftest$ac_exeext
14288if { (ac_try="$ac_link"
14289case "(($ac_try" in
14290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291  *) ac_try_echo=$ac_try;;
14292esac
14293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294  (eval "$ac_link") 2>conftest.er1
14295  ac_status=$?
14296  grep -v '^ *+' conftest.er1 >conftest.err
14297  rm -f conftest.er1
14298  cat conftest.err >&5
14299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300  (exit $ac_status); } && {
14301	 test -z "$ac_c_werror_flag" ||
14302	 test ! -s conftest.err
14303       } && test -s conftest$ac_exeext &&
14304       $as_test_x conftest$ac_exeext; then
14305  ac_cv_search_logwtmp=$ac_res
14306else
14307  echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
14310
14311fi
14312
14313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14314      conftest$ac_exeext
14315  if test "${ac_cv_search_logwtmp+set}" = set; then
14316  break
14317fi
14318done
14319if test "${ac_cv_search_logwtmp+set}" = set; then
14320  :
14321else
14322  ac_cv_search_logwtmp=no
14323fi
14324rm conftest.$ac_ext
14325LIBS=$ac_func_search_save_LIBS
14326fi
14327{ echo "$as_me:$LINENO: result: $ac_cv_search_logwtmp" >&5
14328echo "${ECHO_T}$ac_cv_search_logwtmp" >&6; }
14329ac_res=$ac_cv_search_logwtmp
14330if test "$ac_res" != no; then
14331  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14332
14333fi
14334
14335{ echo "$as_me:$LINENO: checking for library containing openpty" >&5
14336echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; }
14337if test "${ac_cv_search_openpty+set}" = set; then
14338  echo $ECHO_N "(cached) $ECHO_C" >&6
14339else
14340  ac_func_search_save_LIBS=$LIBS
14341cat >conftest.$ac_ext <<_ACEOF
14342/* confdefs.h.  */
14343_ACEOF
14344cat confdefs.h >>conftest.$ac_ext
14345cat >>conftest.$ac_ext <<_ACEOF
14346/* end confdefs.h.  */
14347
14348/* Override any GCC internal prototype to avoid an error.
14349   Use char because int might match the return type of a GCC
14350   builtin and then its argument prototype would still apply.  */
14351#ifdef __cplusplus
14352extern "C"
14353#endif
14354char openpty ();
14355int
14356main ()
14357{
14358return openpty ();
14359  ;
14360  return 0;
14361}
14362_ACEOF
14363for ac_lib in '' util bsd; do
14364  if test -z "$ac_lib"; then
14365    ac_res="none required"
14366  else
14367    ac_res=-l$ac_lib
14368    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14369  fi
14370  rm -f conftest.$ac_objext conftest$ac_exeext
14371if { (ac_try="$ac_link"
14372case "(($ac_try" in
14373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374  *) ac_try_echo=$ac_try;;
14375esac
14376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377  (eval "$ac_link") 2>conftest.er1
14378  ac_status=$?
14379  grep -v '^ *+' conftest.er1 >conftest.err
14380  rm -f conftest.er1
14381  cat conftest.err >&5
14382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383  (exit $ac_status); } && {
14384	 test -z "$ac_c_werror_flag" ||
14385	 test ! -s conftest.err
14386       } && test -s conftest$ac_exeext &&
14387       $as_test_x conftest$ac_exeext; then
14388  ac_cv_search_openpty=$ac_res
14389else
14390  echo "$as_me: failed program was:" >&5
14391sed 's/^/| /' conftest.$ac_ext >&5
14392
14393
14394fi
14395
14396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14397      conftest$ac_exeext
14398  if test "${ac_cv_search_openpty+set}" = set; then
14399  break
14400fi
14401done
14402if test "${ac_cv_search_openpty+set}" = set; then
14403  :
14404else
14405  ac_cv_search_openpty=no
14406fi
14407rm conftest.$ac_ext
14408LIBS=$ac_func_search_save_LIBS
14409fi
14410{ echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5
14411echo "${ECHO_T}$ac_cv_search_openpty" >&6; }
14412ac_res=$ac_cv_search_openpty
14413if test "$ac_res" != no; then
14414  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14415
14416fi
14417
14418{ echo "$as_me:$LINENO: checking for library containing updwtmp" >&5
14419echo $ECHO_N "checking for library containing updwtmp... $ECHO_C" >&6; }
14420if test "${ac_cv_search_updwtmp+set}" = set; then
14421  echo $ECHO_N "(cached) $ECHO_C" >&6
14422else
14423  ac_func_search_save_LIBS=$LIBS
14424cat >conftest.$ac_ext <<_ACEOF
14425/* confdefs.h.  */
14426_ACEOF
14427cat confdefs.h >>conftest.$ac_ext
14428cat >>conftest.$ac_ext <<_ACEOF
14429/* end confdefs.h.  */
14430
14431/* Override any GCC internal prototype to avoid an error.
14432   Use char because int might match the return type of a GCC
14433   builtin and then its argument prototype would still apply.  */
14434#ifdef __cplusplus
14435extern "C"
14436#endif
14437char updwtmp ();
14438int
14439main ()
14440{
14441return updwtmp ();
14442  ;
14443  return 0;
14444}
14445_ACEOF
14446for ac_lib in '' util bsd; do
14447  if test -z "$ac_lib"; then
14448    ac_res="none required"
14449  else
14450    ac_res=-l$ac_lib
14451    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14452  fi
14453  rm -f conftest.$ac_objext conftest$ac_exeext
14454if { (ac_try="$ac_link"
14455case "(($ac_try" in
14456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457  *) ac_try_echo=$ac_try;;
14458esac
14459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460  (eval "$ac_link") 2>conftest.er1
14461  ac_status=$?
14462  grep -v '^ *+' conftest.er1 >conftest.err
14463  rm -f conftest.er1
14464  cat conftest.err >&5
14465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466  (exit $ac_status); } && {
14467	 test -z "$ac_c_werror_flag" ||
14468	 test ! -s conftest.err
14469       } && test -s conftest$ac_exeext &&
14470       $as_test_x conftest$ac_exeext; then
14471  ac_cv_search_updwtmp=$ac_res
14472else
14473  echo "$as_me: failed program was:" >&5
14474sed 's/^/| /' conftest.$ac_ext >&5
14475
14476
14477fi
14478
14479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14480      conftest$ac_exeext
14481  if test "${ac_cv_search_updwtmp+set}" = set; then
14482  break
14483fi
14484done
14485if test "${ac_cv_search_updwtmp+set}" = set; then
14486  :
14487else
14488  ac_cv_search_updwtmp=no
14489fi
14490rm conftest.$ac_ext
14491LIBS=$ac_func_search_save_LIBS
14492fi
14493{ echo "$as_me:$LINENO: result: $ac_cv_search_updwtmp" >&5
14494echo "${ECHO_T}$ac_cv_search_updwtmp" >&6; }
14495ac_res=$ac_cv_search_updwtmp
14496if test "$ac_res" != no; then
14497  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14498
14499fi
14500
14501
14502
14503
14504
14505
14506
14507
14508for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
14509do
14510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14511{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14514  echo $ECHO_N "(cached) $ECHO_C" >&6
14515else
14516  cat >conftest.$ac_ext <<_ACEOF
14517/* confdefs.h.  */
14518_ACEOF
14519cat confdefs.h >>conftest.$ac_ext
14520cat >>conftest.$ac_ext <<_ACEOF
14521/* end confdefs.h.  */
14522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14523   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14524#define $ac_func innocuous_$ac_func
14525
14526/* System header to define __stub macros and hopefully few prototypes,
14527    which can conflict with char $ac_func (); below.
14528    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14529    <limits.h> exists even on freestanding compilers.  */
14530
14531#ifdef __STDC__
14532# include <limits.h>
14533#else
14534# include <assert.h>
14535#endif
14536
14537#undef $ac_func
14538
14539/* Override any GCC internal prototype to avoid an error.
14540   Use char because int might match the return type of a GCC
14541   builtin and then its argument prototype would still apply.  */
14542#ifdef __cplusplus
14543extern "C"
14544#endif
14545char $ac_func ();
14546/* The GNU C library defines this for functions which it implements
14547    to always fail with ENOSYS.  Some functions are actually named
14548    something starting with __ and the normal name is an alias.  */
14549#if defined __stub_$ac_func || defined __stub___$ac_func
14550choke me
14551#endif
14552
14553int
14554main ()
14555{
14556return $ac_func ();
14557  ;
14558  return 0;
14559}
14560_ACEOF
14561rm -f conftest.$ac_objext conftest$ac_exeext
14562if { (ac_try="$ac_link"
14563case "(($ac_try" in
14564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565  *) ac_try_echo=$ac_try;;
14566esac
14567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568  (eval "$ac_link") 2>conftest.er1
14569  ac_status=$?
14570  grep -v '^ *+' conftest.er1 >conftest.err
14571  rm -f conftest.er1
14572  cat conftest.err >&5
14573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574  (exit $ac_status); } && {
14575	 test -z "$ac_c_werror_flag" ||
14576	 test ! -s conftest.err
14577       } && test -s conftest$ac_exeext &&
14578       $as_test_x conftest$ac_exeext; then
14579  eval "$as_ac_var=yes"
14580else
14581  echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584	eval "$as_ac_var=no"
14585fi
14586
14587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14588      conftest$ac_exeext conftest.$ac_ext
14589fi
14590ac_res=`eval echo '${'$as_ac_var'}'`
14591	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14592echo "${ECHO_T}$ac_res" >&6; }
14593if test `eval echo '${'$as_ac_var'}'` = yes; then
14594  cat >>confdefs.h <<_ACEOF
14595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14596_ACEOF
14597
14598fi
14599done
14600
14601
14602# On some platforms, inet_ntop may be found in libresolv or libnsl.
14603{ echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
14604echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; }
14605if test "${ac_cv_search_inet_ntop+set}" = set; then
14606  echo $ECHO_N "(cached) $ECHO_C" >&6
14607else
14608  ac_func_search_save_LIBS=$LIBS
14609cat >conftest.$ac_ext <<_ACEOF
14610/* confdefs.h.  */
14611_ACEOF
14612cat confdefs.h >>conftest.$ac_ext
14613cat >>conftest.$ac_ext <<_ACEOF
14614/* end confdefs.h.  */
14615
14616/* Override any GCC internal prototype to avoid an error.
14617   Use char because int might match the return type of a GCC
14618   builtin and then its argument prototype would still apply.  */
14619#ifdef __cplusplus
14620extern "C"
14621#endif
14622char inet_ntop ();
14623int
14624main ()
14625{
14626return inet_ntop ();
14627  ;
14628  return 0;
14629}
14630_ACEOF
14631for ac_lib in '' resolv nsl; do
14632  if test -z "$ac_lib"; then
14633    ac_res="none required"
14634  else
14635    ac_res=-l$ac_lib
14636    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14637  fi
14638  rm -f conftest.$ac_objext conftest$ac_exeext
14639if { (ac_try="$ac_link"
14640case "(($ac_try" in
14641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642  *) ac_try_echo=$ac_try;;
14643esac
14644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645  (eval "$ac_link") 2>conftest.er1
14646  ac_status=$?
14647  grep -v '^ *+' conftest.er1 >conftest.err
14648  rm -f conftest.er1
14649  cat conftest.err >&5
14650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651  (exit $ac_status); } && {
14652	 test -z "$ac_c_werror_flag" ||
14653	 test ! -s conftest.err
14654       } && test -s conftest$ac_exeext &&
14655       $as_test_x conftest$ac_exeext; then
14656  ac_cv_search_inet_ntop=$ac_res
14657else
14658  echo "$as_me: failed program was:" >&5
14659sed 's/^/| /' conftest.$ac_ext >&5
14660
14661
14662fi
14663
14664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14665      conftest$ac_exeext
14666  if test "${ac_cv_search_inet_ntop+set}" = set; then
14667  break
14668fi
14669done
14670if test "${ac_cv_search_inet_ntop+set}" = set; then
14671  :
14672else
14673  ac_cv_search_inet_ntop=no
14674fi
14675rm conftest.$ac_ext
14676LIBS=$ac_func_search_save_LIBS
14677fi
14678{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
14679echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; }
14680ac_res=$ac_cv_search_inet_ntop
14681if test "$ac_res" != no; then
14682  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14683
14684fi
14685
14686
14687
14688for ac_func in strftime
14689do
14690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14694  echo $ECHO_N "(cached) $ECHO_C" >&6
14695else
14696  cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h.  */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h.  */
14702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14703   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14704#define $ac_func innocuous_$ac_func
14705
14706/* System header to define __stub macros and hopefully few prototypes,
14707    which can conflict with char $ac_func (); below.
14708    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14709    <limits.h> exists even on freestanding compilers.  */
14710
14711#ifdef __STDC__
14712# include <limits.h>
14713#else
14714# include <assert.h>
14715#endif
14716
14717#undef $ac_func
14718
14719/* Override any GCC internal prototype to avoid an error.
14720   Use char because int might match the return type of a GCC
14721   builtin and then its argument prototype would still apply.  */
14722#ifdef __cplusplus
14723extern "C"
14724#endif
14725char $ac_func ();
14726/* The GNU C library defines this for functions which it implements
14727    to always fail with ENOSYS.  Some functions are actually named
14728    something starting with __ and the normal name is an alias.  */
14729#if defined __stub_$ac_func || defined __stub___$ac_func
14730choke me
14731#endif
14732
14733int
14734main ()
14735{
14736return $ac_func ();
14737  ;
14738  return 0;
14739}
14740_ACEOF
14741rm -f conftest.$ac_objext conftest$ac_exeext
14742if { (ac_try="$ac_link"
14743case "(($ac_try" in
14744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745  *) ac_try_echo=$ac_try;;
14746esac
14747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748  (eval "$ac_link") 2>conftest.er1
14749  ac_status=$?
14750  grep -v '^ *+' conftest.er1 >conftest.err
14751  rm -f conftest.er1
14752  cat conftest.err >&5
14753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754  (exit $ac_status); } && {
14755	 test -z "$ac_c_werror_flag" ||
14756	 test ! -s conftest.err
14757       } && test -s conftest$ac_exeext &&
14758       $as_test_x conftest$ac_exeext; then
14759  eval "$as_ac_var=yes"
14760else
14761  echo "$as_me: failed program was:" >&5
14762sed 's/^/| /' conftest.$ac_ext >&5
14763
14764	eval "$as_ac_var=no"
14765fi
14766
14767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14768      conftest$ac_exeext conftest.$ac_ext
14769fi
14770ac_res=`eval echo '${'$as_ac_var'}'`
14771	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14772echo "${ECHO_T}$ac_res" >&6; }
14773if test `eval echo '${'$as_ac_var'}'` = yes; then
14774  cat >>confdefs.h <<_ACEOF
14775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14776_ACEOF
14777
14778else
14779  # strftime is in -lintl on SCO UNIX.
14780{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14781echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14782if test "${ac_cv_lib_intl_strftime+set}" = set; then
14783  echo $ECHO_N "(cached) $ECHO_C" >&6
14784else
14785  ac_check_lib_save_LIBS=$LIBS
14786LIBS="-lintl  $LIBS"
14787cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h.  */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h.  */
14793
14794/* Override any GCC internal prototype to avoid an error.
14795   Use char because int might match the return type of a GCC
14796   builtin and then its argument prototype would still apply.  */
14797#ifdef __cplusplus
14798extern "C"
14799#endif
14800char strftime ();
14801int
14802main ()
14803{
14804return strftime ();
14805  ;
14806  return 0;
14807}
14808_ACEOF
14809rm -f conftest.$ac_objext conftest$ac_exeext
14810if { (ac_try="$ac_link"
14811case "(($ac_try" in
14812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813  *) ac_try_echo=$ac_try;;
14814esac
14815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816  (eval "$ac_link") 2>conftest.er1
14817  ac_status=$?
14818  grep -v '^ *+' conftest.er1 >conftest.err
14819  rm -f conftest.er1
14820  cat conftest.err >&5
14821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822  (exit $ac_status); } && {
14823	 test -z "$ac_c_werror_flag" ||
14824	 test ! -s conftest.err
14825       } && test -s conftest$ac_exeext &&
14826       $as_test_x conftest$ac_exeext; then
14827  ac_cv_lib_intl_strftime=yes
14828else
14829  echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
14831
14832	ac_cv_lib_intl_strftime=no
14833fi
14834
14835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836      conftest$ac_exeext conftest.$ac_ext
14837LIBS=$ac_check_lib_save_LIBS
14838fi
14839{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14840echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14841if test $ac_cv_lib_intl_strftime = yes; then
14842  cat >>confdefs.h <<\_ACEOF
14843#define HAVE_STRFTIME 1
14844_ACEOF
14845
14846LIBS="-lintl $LIBS"
14847fi
14848
14849fi
14850done
14851
14852
14853# Check for ALTDIRFUNC glob() extension
14854{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
14855echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
14856cat >conftest.$ac_ext <<_ACEOF
14857/* confdefs.h.  */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h.  */
14862
14863		#include <glob.h>
14864		#ifdef GLOB_ALTDIRFUNC
14865		FOUNDIT
14866		#endif
14867
14868_ACEOF
14869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14870  $EGREP "FOUNDIT" >/dev/null 2>&1; then
14871
14872
14873cat >>confdefs.h <<\_ACEOF
14874#define GLOB_HAS_ALTDIRFUNC 1
14875_ACEOF
14876
14877		{ echo "$as_me:$LINENO: result: yes" >&5
14878echo "${ECHO_T}yes" >&6; }
14879
14880else
14881
14882		{ echo "$as_me:$LINENO: result: no" >&5
14883echo "${ECHO_T}no" >&6; }
14884
14885
14886fi
14887rm -f conftest*
14888
14889
14890# Check for g.gl_matchc glob() extension
14891{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
14892echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
14893cat >conftest.$ac_ext <<_ACEOF
14894/* confdefs.h.  */
14895_ACEOF
14896cat confdefs.h >>conftest.$ac_ext
14897cat >>conftest.$ac_ext <<_ACEOF
14898/* end confdefs.h.  */
14899 #include <glob.h>
14900int
14901main ()
14902{
14903 glob_t g; g.gl_matchc = 1;
14904  ;
14905  return 0;
14906}
14907_ACEOF
14908rm -f conftest.$ac_objext
14909if { (ac_try="$ac_compile"
14910case "(($ac_try" in
14911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912  *) ac_try_echo=$ac_try;;
14913esac
14914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915  (eval "$ac_compile") 2>conftest.er1
14916  ac_status=$?
14917  grep -v '^ *+' conftest.er1 >conftest.err
14918  rm -f conftest.er1
14919  cat conftest.err >&5
14920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921  (exit $ac_status); } && {
14922	 test -z "$ac_c_werror_flag" ||
14923	 test ! -s conftest.err
14924       } && test -s conftest.$ac_objext; then
14925
14926
14927cat >>confdefs.h <<\_ACEOF
14928#define GLOB_HAS_GL_MATCHC 1
14929_ACEOF
14930
14931		{ echo "$as_me:$LINENO: result: yes" >&5
14932echo "${ECHO_T}yes" >&6; }
14933
14934else
14935  echo "$as_me: failed program was:" >&5
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
14938
14939		{ echo "$as_me:$LINENO: result: no" >&5
14940echo "${ECHO_T}no" >&6; }
14941
14942fi
14943
14944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945
14946# Check for g.gl_statv glob() extension
14947{ echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
14948echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; }
14949cat >conftest.$ac_ext <<_ACEOF
14950/* confdefs.h.  */
14951_ACEOF
14952cat confdefs.h >>conftest.$ac_ext
14953cat >>conftest.$ac_ext <<_ACEOF
14954/* end confdefs.h.  */
14955 #include <glob.h>
14956int
14957main ()
14958{
14959
14960#ifndef GLOB_KEEPSTAT
14961#error "glob does not support GLOB_KEEPSTAT extension"
14962#endif
14963glob_t g;
14964g.gl_statv = NULL;
14965
14966  ;
14967  return 0;
14968}
14969_ACEOF
14970rm -f conftest.$ac_objext
14971if { (ac_try="$ac_compile"
14972case "(($ac_try" in
14973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974  *) ac_try_echo=$ac_try;;
14975esac
14976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977  (eval "$ac_compile") 2>conftest.er1
14978  ac_status=$?
14979  grep -v '^ *+' conftest.er1 >conftest.err
14980  rm -f conftest.er1
14981  cat conftest.err >&5
14982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983  (exit $ac_status); } && {
14984	 test -z "$ac_c_werror_flag" ||
14985	 test ! -s conftest.err
14986       } && test -s conftest.$ac_objext; then
14987
14988
14989cat >>confdefs.h <<\_ACEOF
14990#define GLOB_HAS_GL_STATV 1
14991_ACEOF
14992
14993		{ echo "$as_me:$LINENO: result: yes" >&5
14994echo "${ECHO_T}yes" >&6; }
14995
14996else
14997  echo "$as_me: failed program was:" >&5
14998sed 's/^/| /' conftest.$ac_ext >&5
14999
15000
15001		{ echo "$as_me:$LINENO: result: no" >&5
15002echo "${ECHO_T}no" >&6; }
15003
15004
15005fi
15006
15007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15008
15009{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
15010echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
15011if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
15012  echo $ECHO_N "(cached) $ECHO_C" >&6
15013else
15014  cat >conftest.$ac_ext <<_ACEOF
15015/* confdefs.h.  */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h.  */
15020#include <glob.h>
15021
15022int
15023main ()
15024{
15025#ifndef GLOB_NOMATCH
15026  (void) GLOB_NOMATCH;
15027#endif
15028
15029  ;
15030  return 0;
15031}
15032_ACEOF
15033rm -f conftest.$ac_objext
15034if { (ac_try="$ac_compile"
15035case "(($ac_try" in
15036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037  *) ac_try_echo=$ac_try;;
15038esac
15039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040  (eval "$ac_compile") 2>conftest.er1
15041  ac_status=$?
15042  grep -v '^ *+' conftest.er1 >conftest.err
15043  rm -f conftest.er1
15044  cat conftest.err >&5
15045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046  (exit $ac_status); } && {
15047	 test -z "$ac_c_werror_flag" ||
15048	 test ! -s conftest.err
15049       } && test -s conftest.$ac_objext; then
15050  ac_cv_have_decl_GLOB_NOMATCH=yes
15051else
15052  echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055	ac_cv_have_decl_GLOB_NOMATCH=no
15056fi
15057
15058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059fi
15060{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
15061echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
15062if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
15063
15064cat >>confdefs.h <<_ACEOF
15065#define HAVE_DECL_GLOB_NOMATCH 1
15066_ACEOF
15067
15068
15069else
15070  cat >>confdefs.h <<_ACEOF
15071#define HAVE_DECL_GLOB_NOMATCH 0
15072_ACEOF
15073
15074
15075fi
15076
15077
15078
15079{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
15080echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
15081if test "$cross_compiling" = yes; then
15082
15083		{ echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
15084echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
15085		cat >>confdefs.h <<\_ACEOF
15086#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15087_ACEOF
15088
15089
15090
15091else
15092  cat >conftest.$ac_ext <<_ACEOF
15093/* confdefs.h.  */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h.  */
15098
15099#include <sys/types.h>
15100#include <dirent.h>
15101int
15102main ()
15103{
15104
15105	struct dirent d;
15106	exit(sizeof(d.d_name)<=sizeof(char));
15107
15108  ;
15109  return 0;
15110}
15111_ACEOF
15112rm -f conftest$ac_exeext
15113if { (ac_try="$ac_link"
15114case "(($ac_try" in
15115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116  *) ac_try_echo=$ac_try;;
15117esac
15118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119  (eval "$ac_link") 2>&5
15120  ac_status=$?
15121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15123  { (case "(($ac_try" in
15124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125  *) ac_try_echo=$ac_try;;
15126esac
15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128  (eval "$ac_try") 2>&5
15129  ac_status=$?
15130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131  (exit $ac_status); }; }; then
15132  { echo "$as_me:$LINENO: result: yes" >&5
15133echo "${ECHO_T}yes" >&6; }
15134else
15135  echo "$as_me: program exited with status $ac_status" >&5
15136echo "$as_me: failed program was:" >&5
15137sed 's/^/| /' conftest.$ac_ext >&5
15138
15139( exit $ac_status )
15140
15141		{ echo "$as_me:$LINENO: result: no" >&5
15142echo "${ECHO_T}no" >&6; }
15143
15144cat >>confdefs.h <<\_ACEOF
15145#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15146_ACEOF
15147
15148
15149fi
15150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15151fi
15152
15153
15154
15155{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
15156echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
15157if test -d "/proc/$$/fd" ; then
15158
15159cat >>confdefs.h <<\_ACEOF
15160#define HAVE_PROC_PID 1
15161_ACEOF
15162
15163	{ echo "$as_me:$LINENO: result: yes" >&5
15164echo "${ECHO_T}yes" >&6; }
15165else
15166	{ echo "$as_me:$LINENO: result: no" >&5
15167echo "${ECHO_T}no" >&6; }
15168fi
15169
15170# Check whether user wants S/Key support
15171SKEY_MSG="no"
15172
15173# Check whether --with-skey was given.
15174if test "${with_skey+set}" = set; then
15175  withval=$with_skey;
15176		if test "x$withval" != "xno" ; then
15177
15178			if test "x$withval" != "xyes" ; then
15179				CPPFLAGS="$CPPFLAGS -I${withval}/include"
15180				LDFLAGS="$LDFLAGS -L${withval}/lib"
15181			fi
15182
15183
15184cat >>confdefs.h <<\_ACEOF
15185#define SKEY 1
15186_ACEOF
15187
15188			LIBS="-lskey $LIBS"
15189			SKEY_MSG="yes"
15190
15191			{ echo "$as_me:$LINENO: checking for s/key support" >&5
15192echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
15193			cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h.  */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h.  */
15199
15200#include <stdio.h>
15201#include <skey.h>
15202
15203int
15204main ()
15205{
15206
15207	char *ff = skey_keyinfo(""); ff="";
15208	exit(0);
15209
15210  ;
15211  return 0;
15212}
15213_ACEOF
15214rm -f conftest.$ac_objext conftest$ac_exeext
15215if { (ac_try="$ac_link"
15216case "(($ac_try" in
15217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218  *) ac_try_echo=$ac_try;;
15219esac
15220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221  (eval "$ac_link") 2>conftest.er1
15222  ac_status=$?
15223  grep -v '^ *+' conftest.er1 >conftest.err
15224  rm -f conftest.er1
15225  cat conftest.err >&5
15226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227  (exit $ac_status); } && {
15228	 test -z "$ac_c_werror_flag" ||
15229	 test ! -s conftest.err
15230       } && test -s conftest$ac_exeext &&
15231       $as_test_x conftest$ac_exeext; then
15232  { echo "$as_me:$LINENO: result: yes" >&5
15233echo "${ECHO_T}yes" >&6; }
15234else
15235  echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
15238
15239					{ echo "$as_me:$LINENO: result: no" >&5
15240echo "${ECHO_T}no" >&6; }
15241					{ { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
15242echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
15243   { (exit 1); exit 1; }; }
15244
15245fi
15246
15247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15248      conftest$ac_exeext conftest.$ac_ext
15249                 	{ echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
15250echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
15251			cat >conftest.$ac_ext <<_ACEOF
15252/* confdefs.h.  */
15253_ACEOF
15254cat confdefs.h >>conftest.$ac_ext
15255cat >>conftest.$ac_ext <<_ACEOF
15256/* end confdefs.h.  */
15257
15258#include <stdio.h>
15259#include <skey.h>
15260
15261int
15262main ()
15263{
15264
15265	(void)skeychallenge(NULL,"name","",0);
15266
15267  ;
15268  return 0;
15269}
15270_ACEOF
15271rm -f conftest.$ac_objext
15272if { (ac_try="$ac_compile"
15273case "(($ac_try" in
15274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275  *) ac_try_echo=$ac_try;;
15276esac
15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278  (eval "$ac_compile") 2>conftest.er1
15279  ac_status=$?
15280  grep -v '^ *+' conftest.er1 >conftest.err
15281  rm -f conftest.er1
15282  cat conftest.err >&5
15283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284  (exit $ac_status); } && {
15285	 test -z "$ac_c_werror_flag" ||
15286	 test ! -s conftest.err
15287       } && test -s conftest.$ac_objext; then
15288
15289				{ echo "$as_me:$LINENO: result: yes" >&5
15290echo "${ECHO_T}yes" >&6; }
15291
15292cat >>confdefs.h <<\_ACEOF
15293#define SKEYCHALLENGE_4ARG 1
15294_ACEOF
15295
15296else
15297  echo "$as_me: failed program was:" >&5
15298sed 's/^/| /' conftest.$ac_ext >&5
15299
15300
15301				{ echo "$as_me:$LINENO: result: no" >&5
15302echo "${ECHO_T}no" >&6; }
15303
15304fi
15305
15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307		fi
15308
15309
15310fi
15311
15312
15313# Check whether user wants to use ldns
15314LDNS_MSG="no"
15315
15316# Check whether --with-ldns was given.
15317if test "${with_ldns+set}" = set; then
15318  withval=$with_ldns;
15319        if test "x$withval" != "xno" ; then
15320
15321			if test "x$withval" != "xyes" ; then
15322				CPPFLAGS="$CPPFLAGS -I${withval}/include"
15323				LDFLAGS="$LDFLAGS -L${withval}/lib"
15324			fi
15325
15326
15327cat >>confdefs.h <<\_ACEOF
15328#define HAVE_LDNS 1
15329_ACEOF
15330
15331            LIBS="-lldns $LIBS"
15332            LDNS_MSG="yes"
15333
15334            { echo "$as_me:$LINENO: checking for ldns support" >&5
15335echo $ECHO_N "checking for ldns support... $ECHO_C" >&6; }
15336            cat >conftest.$ac_ext <<_ACEOF
15337/* confdefs.h.  */
15338_ACEOF
15339cat confdefs.h >>conftest.$ac_ext
15340cat >>conftest.$ac_ext <<_ACEOF
15341/* end confdefs.h.  */
15342
15343#include <stdio.h>
15344#include <stdlib.h>
15345#include <stdint.h>
15346#include <ldns/ldns.h>
15347int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
15348
15349
15350_ACEOF
15351rm -f conftest.$ac_objext conftest$ac_exeext
15352if { (ac_try="$ac_link"
15353case "(($ac_try" in
15354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355  *) ac_try_echo=$ac_try;;
15356esac
15357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358  (eval "$ac_link") 2>conftest.er1
15359  ac_status=$?
15360  grep -v '^ *+' conftest.er1 >conftest.err
15361  rm -f conftest.er1
15362  cat conftest.err >&5
15363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364  (exit $ac_status); } && {
15365	 test -z "$ac_c_werror_flag" ||
15366	 test ! -s conftest.err
15367       } && test -s conftest$ac_exeext &&
15368       $as_test_x conftest$ac_exeext; then
15369  { echo "$as_me:$LINENO: result: yes" >&5
15370echo "${ECHO_T}yes" >&6; }
15371else
15372  echo "$as_me: failed program was:" >&5
15373sed 's/^/| /' conftest.$ac_ext >&5
15374
15375
15376					{ echo "$as_me:$LINENO: result: no" >&5
15377echo "${ECHO_T}no" >&6; }
15378					{ { echo "$as_me:$LINENO: error: ** Incomplete or missing ldns libraries." >&5
15379echo "$as_me: error: ** Incomplete or missing ldns libraries." >&2;}
15380   { (exit 1); exit 1; }; }
15381
15382fi
15383
15384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15385      conftest$ac_exeext conftest.$ac_ext
15386        fi
15387
15388
15389fi
15390
15391
15392# Check whether user wants libedit support
15393LIBEDIT_MSG="no"
15394
15395# Check whether --with-libedit was given.
15396if test "${with_libedit+set}" = set; then
15397  withval=$with_libedit;  if test "x$withval" != "xno" ; then
15398		if test "x$withval" = "xyes" ; then
15399			if test -n "$ac_tool_prefix"; then
15400  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15401set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15404if test "${ac_cv_path_PKGCONFIG+set}" = set; then
15405  echo $ECHO_N "(cached) $ECHO_C" >&6
15406else
15407  case $PKGCONFIG in
15408  [\\/]* | ?:[\\/]*)
15409  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15410  ;;
15411  *)
15412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15413for as_dir in $PATH
15414do
15415  IFS=$as_save_IFS
15416  test -z "$as_dir" && as_dir=.
15417  for ac_exec_ext in '' $ac_executable_extensions; do
15418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15419    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15420    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15421    break 2
15422  fi
15423done
15424done
15425IFS=$as_save_IFS
15426
15427  ;;
15428esac
15429fi
15430PKGCONFIG=$ac_cv_path_PKGCONFIG
15431if test -n "$PKGCONFIG"; then
15432  { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
15433echo "${ECHO_T}$PKGCONFIG" >&6; }
15434else
15435  { echo "$as_me:$LINENO: result: no" >&5
15436echo "${ECHO_T}no" >&6; }
15437fi
15438
15439
15440fi
15441if test -z "$ac_cv_path_PKGCONFIG"; then
15442  ac_pt_PKGCONFIG=$PKGCONFIG
15443  # Extract the first word of "pkg-config", so it can be a program name with args.
15444set dummy pkg-config; ac_word=$2
15445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15447if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then
15448  echo $ECHO_N "(cached) $ECHO_C" >&6
15449else
15450  case $ac_pt_PKGCONFIG in
15451  [\\/]* | ?:[\\/]*)
15452  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
15453  ;;
15454  *)
15455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15456for as_dir in $PATH
15457do
15458  IFS=$as_save_IFS
15459  test -z "$as_dir" && as_dir=.
15460  for ac_exec_ext in '' $ac_executable_extensions; do
15461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15462    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15464    break 2
15465  fi
15466done
15467done
15468IFS=$as_save_IFS
15469
15470  ;;
15471esac
15472fi
15473ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
15474if test -n "$ac_pt_PKGCONFIG"; then
15475  { echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5
15476echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; }
15477else
15478  { echo "$as_me:$LINENO: result: no" >&5
15479echo "${ECHO_T}no" >&6; }
15480fi
15481
15482  if test "x$ac_pt_PKGCONFIG" = x; then
15483    PKGCONFIG="no"
15484  else
15485    case $cross_compiling:$ac_tool_warned in
15486yes:)
15487{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15488whose name does not start with the host triplet.  If you think this
15489configuration is useful to you, please write to autoconf@gnu.org." >&5
15490echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15491whose name does not start with the host triplet.  If you think this
15492configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15493ac_tool_warned=yes ;;
15494esac
15495    PKGCONFIG=$ac_pt_PKGCONFIG
15496  fi
15497else
15498  PKGCONFIG="$ac_cv_path_PKGCONFIG"
15499fi
15500
15501			if test "x$PKGCONFIG" != "xno"; then
15502				{ echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
15503echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
15504			 	if "$PKGCONFIG" libedit; then
15505					{ echo "$as_me:$LINENO: result: yes" >&5
15506echo "${ECHO_T}yes" >&6; }
15507					use_pkgconfig_for_libedit=yes
15508				else
15509					{ echo "$as_me:$LINENO: result: no" >&5
15510echo "${ECHO_T}no" >&6; }
15511				fi
15512			fi
15513		else
15514			CPPFLAGS="$CPPFLAGS -I${withval}/include"
15515			if test -n "${need_dash_r}"; then
15516				LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
15517			else
15518				LDFLAGS="-L${withval}/lib ${LDFLAGS}"
15519			fi
15520		fi
15521		if test "x$use_pkgconfig_for_libedit" = "xyes"; then
15522			LIBEDIT=`$PKGCONFIG --libs libedit`
15523			CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
15524		else
15525			LIBEDIT="-ledit -lcurses"
15526		fi
15527		OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
15528		{ echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
15529echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
15530if test "${ac_cv_lib_edit_el_init+set}" = set; then
15531  echo $ECHO_N "(cached) $ECHO_C" >&6
15532else
15533  ac_check_lib_save_LIBS=$LIBS
15534LIBS="-ledit  $OTHERLIBS
15535		 $LIBS"
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h.  */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h.  */
15542
15543/* Override any GCC internal prototype to avoid an error.
15544   Use char because int might match the return type of a GCC
15545   builtin and then its argument prototype would still apply.  */
15546#ifdef __cplusplus
15547extern "C"
15548#endif
15549char el_init ();
15550int
15551main ()
15552{
15553return el_init ();
15554  ;
15555  return 0;
15556}
15557_ACEOF
15558rm -f conftest.$ac_objext conftest$ac_exeext
15559if { (ac_try="$ac_link"
15560case "(($ac_try" in
15561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562  *) ac_try_echo=$ac_try;;
15563esac
15564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565  (eval "$ac_link") 2>conftest.er1
15566  ac_status=$?
15567  grep -v '^ *+' conftest.er1 >conftest.err
15568  rm -f conftest.er1
15569  cat conftest.err >&5
15570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571  (exit $ac_status); } && {
15572	 test -z "$ac_c_werror_flag" ||
15573	 test ! -s conftest.err
15574       } && test -s conftest$ac_exeext &&
15575       $as_test_x conftest$ac_exeext; then
15576  ac_cv_lib_edit_el_init=yes
15577else
15578  echo "$as_me: failed program was:" >&5
15579sed 's/^/| /' conftest.$ac_ext >&5
15580
15581	ac_cv_lib_edit_el_init=no
15582fi
15583
15584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585      conftest$ac_exeext conftest.$ac_ext
15586LIBS=$ac_check_lib_save_LIBS
15587fi
15588{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
15589echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
15590if test $ac_cv_lib_edit_el_init = yes; then
15591
15592cat >>confdefs.h <<\_ACEOF
15593#define USE_LIBEDIT 1
15594_ACEOF
15595
15596			  LIBEDIT_MSG="yes"
15597
15598
15599else
15600   { { echo "$as_me:$LINENO: error: libedit not found" >&5
15601echo "$as_me: error: libedit not found" >&2;}
15602   { (exit 1); exit 1; }; }
15603fi
15604
15605		{ echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
15606echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
15607		cat >conftest.$ac_ext <<_ACEOF
15608/* confdefs.h.  */
15609_ACEOF
15610cat confdefs.h >>conftest.$ac_ext
15611cat >>conftest.$ac_ext <<_ACEOF
15612/* end confdefs.h.  */
15613 #include <histedit.h>
15614int
15615main ()
15616{
15617
15618	int i = H_SETSIZE;
15619	el_init("", NULL, NULL, NULL);
15620	exit(0);
15621
15622  ;
15623  return 0;
15624}
15625_ACEOF
15626rm -f conftest.$ac_objext
15627if { (ac_try="$ac_compile"
15628case "(($ac_try" in
15629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630  *) ac_try_echo=$ac_try;;
15631esac
15632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633  (eval "$ac_compile") 2>conftest.er1
15634  ac_status=$?
15635  grep -v '^ *+' conftest.er1 >conftest.err
15636  rm -f conftest.er1
15637  cat conftest.err >&5
15638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639  (exit $ac_status); } && {
15640	 test -z "$ac_c_werror_flag" ||
15641	 test ! -s conftest.err
15642       } && test -s conftest.$ac_objext; then
15643   { echo "$as_me:$LINENO: result: yes" >&5
15644echo "${ECHO_T}yes" >&6; }
15645else
15646  echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649	 { echo "$as_me:$LINENO: result: no" >&5
15650echo "${ECHO_T}no" >&6; }
15651		      { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
15652echo "$as_me: error: libedit version is not compatible" >&2;}
15653   { (exit 1); exit 1; }; }
15654
15655fi
15656
15657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658	fi
15659
15660fi
15661
15662
15663AUDIT_MODULE=none
15664
15665# Check whether --with-audit was given.
15666if test "${with_audit+set}" = set; then
15667  withval=$with_audit;
15668	  { echo "$as_me:$LINENO: checking for supported audit module" >&5
15669echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
15670	  case "$withval" in
15671	  bsm)
15672		{ echo "$as_me:$LINENO: result: bsm" >&5
15673echo "${ECHO_T}bsm" >&6; }
15674		AUDIT_MODULE=bsm
15675
15676for ac_header in bsm/audit.h
15677do
15678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15679{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15682  echo $ECHO_N "(cached) $ECHO_C" >&6
15683else
15684  cat >conftest.$ac_ext <<_ACEOF
15685/* confdefs.h.  */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h.  */
15690
15691#ifdef HAVE_TIME_H
15692# include <time.h>
15693#endif
15694
15695
15696
15697#include <$ac_header>
15698_ACEOF
15699rm -f conftest.$ac_objext
15700if { (ac_try="$ac_compile"
15701case "(($ac_try" in
15702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703  *) ac_try_echo=$ac_try;;
15704esac
15705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706  (eval "$ac_compile") 2>conftest.er1
15707  ac_status=$?
15708  grep -v '^ *+' conftest.er1 >conftest.err
15709  rm -f conftest.er1
15710  cat conftest.err >&5
15711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712  (exit $ac_status); } && {
15713	 test -z "$ac_c_werror_flag" ||
15714	 test ! -s conftest.err
15715       } && test -s conftest.$ac_objext; then
15716  eval "$as_ac_Header=yes"
15717else
15718  echo "$as_me: failed program was:" >&5
15719sed 's/^/| /' conftest.$ac_ext >&5
15720
15721	eval "$as_ac_Header=no"
15722fi
15723
15724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725fi
15726ac_res=`eval echo '${'$as_ac_Header'}'`
15727	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15728echo "${ECHO_T}$ac_res" >&6; }
15729if test `eval echo '${'$as_ac_Header'}'` = yes; then
15730  cat >>confdefs.h <<_ACEOF
15731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15732_ACEOF
15733
15734else
15735  { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
15736echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
15737   { (exit 1); exit 1; }; }
15738fi
15739
15740done
15741
15742
15743{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
15744echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
15745if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
15746  echo $ECHO_N "(cached) $ECHO_C" >&6
15747else
15748  ac_check_lib_save_LIBS=$LIBS
15749LIBS="-lbsm  $LIBS"
15750cat >conftest.$ac_ext <<_ACEOF
15751/* confdefs.h.  */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h.  */
15756
15757/* Override any GCC internal prototype to avoid an error.
15758   Use char because int might match the return type of a GCC
15759   builtin and then its argument prototype would still apply.  */
15760#ifdef __cplusplus
15761extern "C"
15762#endif
15763char getaudit ();
15764int
15765main ()
15766{
15767return getaudit ();
15768  ;
15769  return 0;
15770}
15771_ACEOF
15772rm -f conftest.$ac_objext conftest$ac_exeext
15773if { (ac_try="$ac_link"
15774case "(($ac_try" in
15775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776  *) ac_try_echo=$ac_try;;
15777esac
15778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779  (eval "$ac_link") 2>conftest.er1
15780  ac_status=$?
15781  grep -v '^ *+' conftest.er1 >conftest.err
15782  rm -f conftest.er1
15783  cat conftest.err >&5
15784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785  (exit $ac_status); } && {
15786	 test -z "$ac_c_werror_flag" ||
15787	 test ! -s conftest.err
15788       } && test -s conftest$ac_exeext &&
15789       $as_test_x conftest$ac_exeext; then
15790  ac_cv_lib_bsm_getaudit=yes
15791else
15792  echo "$as_me: failed program was:" >&5
15793sed 's/^/| /' conftest.$ac_ext >&5
15794
15795	ac_cv_lib_bsm_getaudit=no
15796fi
15797
15798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15799      conftest$ac_exeext conftest.$ac_ext
15800LIBS=$ac_check_lib_save_LIBS
15801fi
15802{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
15803echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
15804if test $ac_cv_lib_bsm_getaudit = yes; then
15805  cat >>confdefs.h <<_ACEOF
15806#define HAVE_LIBBSM 1
15807_ACEOF
15808
15809  LIBS="-lbsm $LIBS"
15810
15811else
15812  { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
15813echo "$as_me: error: BSM enabled and required library not found" >&2;}
15814   { (exit 1); exit 1; }; }
15815fi
15816
15817
15818for ac_func in getaudit
15819do
15820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15821{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15823if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15824  echo $ECHO_N "(cached) $ECHO_C" >&6
15825else
15826  cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h.  */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h.  */
15832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15833   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15834#define $ac_func innocuous_$ac_func
15835
15836/* System header to define __stub macros and hopefully few prototypes,
15837    which can conflict with char $ac_func (); below.
15838    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15839    <limits.h> exists even on freestanding compilers.  */
15840
15841#ifdef __STDC__
15842# include <limits.h>
15843#else
15844# include <assert.h>
15845#endif
15846
15847#undef $ac_func
15848
15849/* Override any GCC internal prototype to avoid an error.
15850   Use char because int might match the return type of a GCC
15851   builtin and then its argument prototype would still apply.  */
15852#ifdef __cplusplus
15853extern "C"
15854#endif
15855char $ac_func ();
15856/* The GNU C library defines this for functions which it implements
15857    to always fail with ENOSYS.  Some functions are actually named
15858    something starting with __ and the normal name is an alias.  */
15859#if defined __stub_$ac_func || defined __stub___$ac_func
15860choke me
15861#endif
15862
15863int
15864main ()
15865{
15866return $ac_func ();
15867  ;
15868  return 0;
15869}
15870_ACEOF
15871rm -f conftest.$ac_objext conftest$ac_exeext
15872if { (ac_try="$ac_link"
15873case "(($ac_try" in
15874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875  *) ac_try_echo=$ac_try;;
15876esac
15877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15878  (eval "$ac_link") 2>conftest.er1
15879  ac_status=$?
15880  grep -v '^ *+' conftest.er1 >conftest.err
15881  rm -f conftest.er1
15882  cat conftest.err >&5
15883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884  (exit $ac_status); } && {
15885	 test -z "$ac_c_werror_flag" ||
15886	 test ! -s conftest.err
15887       } && test -s conftest$ac_exeext &&
15888       $as_test_x conftest$ac_exeext; then
15889  eval "$as_ac_var=yes"
15890else
15891  echo "$as_me: failed program was:" >&5
15892sed 's/^/| /' conftest.$ac_ext >&5
15893
15894	eval "$as_ac_var=no"
15895fi
15896
15897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15898      conftest$ac_exeext conftest.$ac_ext
15899fi
15900ac_res=`eval echo '${'$as_ac_var'}'`
15901	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15902echo "${ECHO_T}$ac_res" >&6; }
15903if test `eval echo '${'$as_ac_var'}'` = yes; then
15904  cat >>confdefs.h <<_ACEOF
15905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15906_ACEOF
15907
15908else
15909  { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
15910echo "$as_me: error: BSM enabled and required function not found" >&2;}
15911   { (exit 1); exit 1; }; }
15912fi
15913done
15914
15915		# These are optional
15916
15917
15918for ac_func in getaudit_addr aug_get_machine
15919do
15920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15924  echo $ECHO_N "(cached) $ECHO_C" >&6
15925else
15926  cat >conftest.$ac_ext <<_ACEOF
15927/* confdefs.h.  */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h.  */
15932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15933   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15934#define $ac_func innocuous_$ac_func
15935
15936/* System header to define __stub macros and hopefully few prototypes,
15937    which can conflict with char $ac_func (); below.
15938    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15939    <limits.h> exists even on freestanding compilers.  */
15940
15941#ifdef __STDC__
15942# include <limits.h>
15943#else
15944# include <assert.h>
15945#endif
15946
15947#undef $ac_func
15948
15949/* Override any GCC internal prototype to avoid an error.
15950   Use char because int might match the return type of a GCC
15951   builtin and then its argument prototype would still apply.  */
15952#ifdef __cplusplus
15953extern "C"
15954#endif
15955char $ac_func ();
15956/* The GNU C library defines this for functions which it implements
15957    to always fail with ENOSYS.  Some functions are actually named
15958    something starting with __ and the normal name is an alias.  */
15959#if defined __stub_$ac_func || defined __stub___$ac_func
15960choke me
15961#endif
15962
15963int
15964main ()
15965{
15966return $ac_func ();
15967  ;
15968  return 0;
15969}
15970_ACEOF
15971rm -f conftest.$ac_objext conftest$ac_exeext
15972if { (ac_try="$ac_link"
15973case "(($ac_try" in
15974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975  *) ac_try_echo=$ac_try;;
15976esac
15977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978  (eval "$ac_link") 2>conftest.er1
15979  ac_status=$?
15980  grep -v '^ *+' conftest.er1 >conftest.err
15981  rm -f conftest.er1
15982  cat conftest.err >&5
15983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984  (exit $ac_status); } && {
15985	 test -z "$ac_c_werror_flag" ||
15986	 test ! -s conftest.err
15987       } && test -s conftest$ac_exeext &&
15988       $as_test_x conftest$ac_exeext; then
15989  eval "$as_ac_var=yes"
15990else
15991  echo "$as_me: failed program was:" >&5
15992sed 's/^/| /' conftest.$ac_ext >&5
15993
15994	eval "$as_ac_var=no"
15995fi
15996
15997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15998      conftest$ac_exeext conftest.$ac_ext
15999fi
16000ac_res=`eval echo '${'$as_ac_var'}'`
16001	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16002echo "${ECHO_T}$ac_res" >&6; }
16003if test `eval echo '${'$as_ac_var'}'` = yes; then
16004  cat >>confdefs.h <<_ACEOF
16005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16006_ACEOF
16007
16008fi
16009done
16010
16011
16012cat >>confdefs.h <<\_ACEOF
16013#define USE_BSM_AUDIT 1
16014_ACEOF
16015
16016		if test "$sol2ver" -ge 11; then
16017		   	SSHDLIBS="$SSHDLIBS -lscf"
16018
16019cat >>confdefs.h <<\_ACEOF
16020#define BROKEN_BSM_API 1
16021_ACEOF
16022
16023		fi
16024		;;
16025	  linux)
16026		{ echo "$as_me:$LINENO: result: linux" >&5
16027echo "${ECHO_T}linux" >&6; }
16028		AUDIT_MODULE=linux
16029
16030for ac_header in libaudit.h
16031do
16032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037  echo $ECHO_N "(cached) $ECHO_C" >&6
16038fi
16039ac_res=`eval echo '${'$as_ac_Header'}'`
16040	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16041echo "${ECHO_T}$ac_res" >&6; }
16042else
16043  # Is the header compilable?
16044{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16046cat >conftest.$ac_ext <<_ACEOF
16047/* confdefs.h.  */
16048_ACEOF
16049cat confdefs.h >>conftest.$ac_ext
16050cat >>conftest.$ac_ext <<_ACEOF
16051/* end confdefs.h.  */
16052$ac_includes_default
16053#include <$ac_header>
16054_ACEOF
16055rm -f conftest.$ac_objext
16056if { (ac_try="$ac_compile"
16057case "(($ac_try" in
16058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059  *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062  (eval "$ac_compile") 2>conftest.er1
16063  ac_status=$?
16064  grep -v '^ *+' conftest.er1 >conftest.err
16065  rm -f conftest.er1
16066  cat conftest.err >&5
16067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068  (exit $ac_status); } && {
16069	 test -z "$ac_c_werror_flag" ||
16070	 test ! -s conftest.err
16071       } && test -s conftest.$ac_objext; then
16072  ac_header_compiler=yes
16073else
16074  echo "$as_me: failed program was:" >&5
16075sed 's/^/| /' conftest.$ac_ext >&5
16076
16077	ac_header_compiler=no
16078fi
16079
16080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16082echo "${ECHO_T}$ac_header_compiler" >&6; }
16083
16084# Is the header present?
16085{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16087cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h.  */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h.  */
16093#include <$ac_header>
16094_ACEOF
16095if { (ac_try="$ac_cpp conftest.$ac_ext"
16096case "(($ac_try" in
16097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098  *) ac_try_echo=$ac_try;;
16099esac
16100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16102  ac_status=$?
16103  grep -v '^ *+' conftest.er1 >conftest.err
16104  rm -f conftest.er1
16105  cat conftest.err >&5
16106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107  (exit $ac_status); } >/dev/null && {
16108	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16109	 test ! -s conftest.err
16110       }; then
16111  ac_header_preproc=yes
16112else
16113  echo "$as_me: failed program was:" >&5
16114sed 's/^/| /' conftest.$ac_ext >&5
16115
16116  ac_header_preproc=no
16117fi
16118
16119rm -f conftest.err conftest.$ac_ext
16120{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16121echo "${ECHO_T}$ac_header_preproc" >&6; }
16122
16123# So?  What about this header?
16124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16125  yes:no: )
16126    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16128    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16130    ac_header_preproc=yes
16131    ;;
16132  no:yes:* )
16133    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16135    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16136echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16137    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16139    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16140echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16141    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16143    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16145    ( cat <<\_ASBOX
16146## ------------------------------------------- ##
16147## Report this to openssh-unix-dev@mindrot.org ##
16148## ------------------------------------------- ##
16149_ASBOX
16150     ) | sed "s/^/$as_me: WARNING:     /" >&2
16151    ;;
16152esac
16153{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16156  echo $ECHO_N "(cached) $ECHO_C" >&6
16157else
16158  eval "$as_ac_Header=\$ac_header_preproc"
16159fi
16160ac_res=`eval echo '${'$as_ac_Header'}'`
16161	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16162echo "${ECHO_T}$ac_res" >&6; }
16163
16164fi
16165if test `eval echo '${'$as_ac_Header'}'` = yes; then
16166  cat >>confdefs.h <<_ACEOF
16167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16168_ACEOF
16169
16170fi
16171
16172done
16173
16174		SSHDLIBS="$SSHDLIBS -laudit"
16175
16176cat >>confdefs.h <<\_ACEOF
16177#define USE_LINUX_AUDIT 1
16178_ACEOF
16179
16180		;;
16181	  debug)
16182		AUDIT_MODULE=debug
16183		{ echo "$as_me:$LINENO: result: debug" >&5
16184echo "${ECHO_T}debug" >&6; }
16185
16186cat >>confdefs.h <<\_ACEOF
16187#define SSH_AUDIT_EVENTS 1
16188_ACEOF
16189
16190		;;
16191	  no)
16192		{ echo "$as_me:$LINENO: result: no" >&5
16193echo "${ECHO_T}no" >&6; }
16194		;;
16195	  *)
16196		{ { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
16197echo "$as_me: error: Unknown audit module $withval" >&2;}
16198   { (exit 1); exit 1; }; }
16199		;;
16200	esac
16201
16202fi
16203
16204
16205
16206# Check whether --with-pie was given.
16207if test "${with_pie+set}" = set; then
16208  withval=$with_pie;
16209	if test "x$withval" = "xno"; then
16210		use_pie=no
16211	fi
16212	if test "x$withval" = "xyes"; then
16213		use_pie=yes
16214	fi
16215
16216
16217fi
16218
16219if test "x$use_pie" = "x"; then
16220	use_pie=no
16221fi
16222if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
16223	# Turn off automatic PIE when toolchain hardening is off.
16224	use_pie=no
16225fi
16226if test "x$use_pie" = "xauto"; then
16227	# Automatic PIE requires gcc >= 4.x
16228	{ echo "$as_me:$LINENO: checking for gcc >= 4.x" >&5
16229echo $ECHO_N "checking for gcc >= 4.x... $ECHO_C" >&6; }
16230	cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h.  */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h.  */
16236
16237#if !defined(__GNUC__) || __GNUC__ < 4
16238#error gcc is too old
16239#endif
16240
16241_ACEOF
16242rm -f conftest.$ac_objext
16243if { (ac_try="$ac_compile"
16244case "(($ac_try" in
16245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246  *) ac_try_echo=$ac_try;;
16247esac
16248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249  (eval "$ac_compile") 2>conftest.er1
16250  ac_status=$?
16251  grep -v '^ *+' conftest.er1 >conftest.err
16252  rm -f conftest.er1
16253  cat conftest.err >&5
16254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255  (exit $ac_status); } && {
16256	 test -z "$ac_c_werror_flag" ||
16257	 test ! -s conftest.err
16258       } && test -s conftest.$ac_objext; then
16259   { echo "$as_me:$LINENO: result: yes" >&5
16260echo "${ECHO_T}yes" >&6; }
16261else
16262  echo "$as_me: failed program was:" >&5
16263sed 's/^/| /' conftest.$ac_ext >&5
16264
16265	 { echo "$as_me:$LINENO: result: no" >&5
16266echo "${ECHO_T}no" >&6; }
16267	  use_pie=no
16268
16269fi
16270
16271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16272fi
16273if test "x$use_pie" != "xno"; then
16274	SAVED_CFLAGS="$CFLAGS"
16275	SAVED_LDFLAGS="$LDFLAGS"
16276	{
16277	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -fPIE" >&5
16278echo $ECHO_N "checking if $CC supports compile flag -fPIE... $ECHO_C" >&6; }
16279	saved_CFLAGS="$CFLAGS"
16280	CFLAGS="$CFLAGS $WERROR -fPIE"
16281	_define_flag=""
16282	test "x$_define_flag" = "x" && _define_flag="-fPIE"
16283	cat >conftest.$ac_ext <<_ACEOF
16284/* confdefs.h.  */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h.  */
16289
16290#include <stdlib.h>
16291#include <stdio.h>
16292int main(int argc, char **argv) {
16293	/* Some math to catch -ftrapv problems in the toolchain */
16294	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
16295	float l = i * 2.1;
16296	double m = l / 0.5;
16297	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
16298	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
16299	exit(0);
16300}
16301
16302_ACEOF
16303rm -f conftest.$ac_objext
16304if { (ac_try="$ac_compile"
16305case "(($ac_try" in
16306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307  *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310  (eval "$ac_compile") 2>conftest.er1
16311  ac_status=$?
16312  grep -v '^ *+' conftest.er1 >conftest.err
16313  rm -f conftest.er1
16314  cat conftest.err >&5
16315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316  (exit $ac_status); } && {
16317	 test -z "$ac_c_werror_flag" ||
16318	 test ! -s conftest.err
16319       } && test -s conftest.$ac_objext; then
16320
16321if `grep -i "unrecognized option" conftest.err >/dev/null`
16322then
16323		{ echo "$as_me:$LINENO: result: no" >&5
16324echo "${ECHO_T}no" >&6; }
16325		CFLAGS="$saved_CFLAGS"
16326else
16327		{ echo "$as_me:$LINENO: result: yes" >&5
16328echo "${ECHO_T}yes" >&6; }
16329		 CFLAGS="$saved_CFLAGS $_define_flag"
16330fi
16331else
16332  echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335	 { echo "$as_me:$LINENO: result: no" >&5
16336echo "${ECHO_T}no" >&6; }
16337		  CFLAGS="$saved_CFLAGS"
16338
16339fi
16340
16341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342}
16343	{
16344	{ echo "$as_me:$LINENO: checking if $LD supports link flag -pie" >&5
16345echo $ECHO_N "checking if $LD supports link flag -pie... $ECHO_C" >&6; }
16346	saved_LDFLAGS="$LDFLAGS"
16347	LDFLAGS="$LDFLAGS $WERROR -pie"
16348	_define_flag=""
16349	test "x$_define_flag" = "x" && _define_flag="-pie"
16350	cat >conftest.$ac_ext <<_ACEOF
16351/* confdefs.h.  */
16352_ACEOF
16353cat confdefs.h >>conftest.$ac_ext
16354cat >>conftest.$ac_ext <<_ACEOF
16355/* end confdefs.h.  */
16356
16357#include <stdlib.h>
16358#include <stdio.h>
16359int main(int argc, char **argv) {
16360	/* Some math to catch -ftrapv problems in the toolchain */
16361	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
16362	float l = i * 2.1;
16363	double m = l / 0.5;
16364	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
16365	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
16366	exit(0);
16367}
16368
16369_ACEOF
16370rm -f conftest.$ac_objext conftest$ac_exeext
16371if { (ac_try="$ac_link"
16372case "(($ac_try" in
16373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374  *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377  (eval "$ac_link") 2>conftest.er1
16378  ac_status=$?
16379  grep -v '^ *+' conftest.er1 >conftest.err
16380  rm -f conftest.er1
16381  cat conftest.err >&5
16382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383  (exit $ac_status); } && {
16384	 test -z "$ac_c_werror_flag" ||
16385	 test ! -s conftest.err
16386       } && test -s conftest$ac_exeext &&
16387       $as_test_x conftest$ac_exeext; then
16388   { echo "$as_me:$LINENO: result: yes" >&5
16389echo "${ECHO_T}yes" >&6; }
16390		  LDFLAGS="$saved_LDFLAGS $_define_flag"
16391else
16392  echo "$as_me: failed program was:" >&5
16393sed 's/^/| /' conftest.$ac_ext >&5
16394
16395	 { echo "$as_me:$LINENO: result: no" >&5
16396echo "${ECHO_T}no" >&6; }
16397		  LDFLAGS="$saved_LDFLAGS"
16398
16399fi
16400
16401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16402      conftest$ac_exeext conftest.$ac_ext
16403}
16404	# We use both -fPIE and -pie or neither.
16405	{ echo "$as_me:$LINENO: checking whether both -fPIE and -pie are supported" >&5
16406echo $ECHO_N "checking whether both -fPIE and -pie are supported... $ECHO_C" >&6; }
16407	if echo "x $CFLAGS"  | grep ' -fPIE' >/dev/null 2>&1 && \
16408	   echo "x $LDFLAGS" | grep ' -pie'  >/dev/null 2>&1 ; then
16409		{ echo "$as_me:$LINENO: result: yes" >&5
16410echo "${ECHO_T}yes" >&6; }
16411	else
16412		{ echo "$as_me:$LINENO: result: no" >&5
16413echo "${ECHO_T}no" >&6; }
16414		CFLAGS="$SAVED_CFLAGS"
16415		LDFLAGS="$SAVED_LDFLAGS"
16416	fi
16417fi
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527for ac_func in  \
16528	Blowfish_initstate \
16529	Blowfish_expandstate \
16530	Blowfish_expand0state \
16531	Blowfish_stream2word \
16532	asprintf \
16533	b64_ntop \
16534	__b64_ntop \
16535	b64_pton \
16536	__b64_pton \
16537	bcopy \
16538	bcrypt_pbkdf \
16539	bindresvport_sa \
16540	blf_enc \
16541	cap_rights_limit \
16542	clock \
16543	closefrom \
16544	dirfd \
16545	endgrent \
16546	explicit_bzero \
16547	fchmod \
16548	fchown \
16549	freeaddrinfo \
16550	fstatfs \
16551	fstatvfs \
16552	futimes \
16553	getaddrinfo \
16554	getcwd \
16555	getgrouplist \
16556	getnameinfo \
16557	getopt \
16558	getpeereid \
16559	getpeerucred \
16560	getpgid \
16561	getpgrp \
16562	_getpty \
16563	getrlimit \
16564	getttyent \
16565	glob \
16566	group_from_gid \
16567	inet_aton \
16568	inet_ntoa \
16569	inet_ntop \
16570	innetgr \
16571	login_getcapbool \
16572	mblen \
16573	md5_crypt \
16574	memmove \
16575	memset_s \
16576	mkdtemp \
16577	mmap \
16578	ngetaddrinfo \
16579	nsleep \
16580	ogetaddrinfo \
16581	openlog_r \
16582	poll \
16583	prctl \
16584	pstat \
16585	readpassphrase \
16586	reallocarray \
16587	recvmsg \
16588	rresvport_af \
16589	sendmsg \
16590	setdtablesize \
16591	setegid \
16592	setenv \
16593	seteuid \
16594	setgroupent \
16595	setgroups \
16596	setlinebuf \
16597	setlogin \
16598	setpassent\
16599	setpcred \
16600	setproctitle \
16601	setregid \
16602	setreuid \
16603	setrlimit \
16604	setsid \
16605	setvbuf \
16606	sigaction \
16607	sigvec \
16608	snprintf \
16609	socketpair \
16610	statfs \
16611	statvfs \
16612	strdup \
16613	strerror \
16614	strlcat \
16615	strlcpy \
16616	strmode \
16617	strnlen \
16618	strnvis \
16619	strptime \
16620	strtonum \
16621	strtoll \
16622	strtoul \
16623	strtoull \
16624	swap32 \
16625	sysconf \
16626	tcgetpgrp \
16627	timingsafe_bcmp \
16628	truncate \
16629	unsetenv \
16630	updwtmpx \
16631	user_from_uid \
16632	usleep \
16633	vasprintf \
16634	vsnprintf \
16635	waitpid \
16636
16637do
16638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16639{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16641if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16642  echo $ECHO_N "(cached) $ECHO_C" >&6
16643else
16644  cat >conftest.$ac_ext <<_ACEOF
16645/* confdefs.h.  */
16646_ACEOF
16647cat confdefs.h >>conftest.$ac_ext
16648cat >>conftest.$ac_ext <<_ACEOF
16649/* end confdefs.h.  */
16650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16651   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16652#define $ac_func innocuous_$ac_func
16653
16654/* System header to define __stub macros and hopefully few prototypes,
16655    which can conflict with char $ac_func (); below.
16656    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16657    <limits.h> exists even on freestanding compilers.  */
16658
16659#ifdef __STDC__
16660# include <limits.h>
16661#else
16662# include <assert.h>
16663#endif
16664
16665#undef $ac_func
16666
16667/* Override any GCC internal prototype to avoid an error.
16668   Use char because int might match the return type of a GCC
16669   builtin and then its argument prototype would still apply.  */
16670#ifdef __cplusplus
16671extern "C"
16672#endif
16673char $ac_func ();
16674/* The GNU C library defines this for functions which it implements
16675    to always fail with ENOSYS.  Some functions are actually named
16676    something starting with __ and the normal name is an alias.  */
16677#if defined __stub_$ac_func || defined __stub___$ac_func
16678choke me
16679#endif
16680
16681int
16682main ()
16683{
16684return $ac_func ();
16685  ;
16686  return 0;
16687}
16688_ACEOF
16689rm -f conftest.$ac_objext conftest$ac_exeext
16690if { (ac_try="$ac_link"
16691case "(($ac_try" in
16692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693  *) ac_try_echo=$ac_try;;
16694esac
16695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696  (eval "$ac_link") 2>conftest.er1
16697  ac_status=$?
16698  grep -v '^ *+' conftest.er1 >conftest.err
16699  rm -f conftest.er1
16700  cat conftest.err >&5
16701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702  (exit $ac_status); } && {
16703	 test -z "$ac_c_werror_flag" ||
16704	 test ! -s conftest.err
16705       } && test -s conftest$ac_exeext &&
16706       $as_test_x conftest$ac_exeext; then
16707  eval "$as_ac_var=yes"
16708else
16709  echo "$as_me: failed program was:" >&5
16710sed 's/^/| /' conftest.$ac_ext >&5
16711
16712	eval "$as_ac_var=no"
16713fi
16714
16715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16716      conftest$ac_exeext conftest.$ac_ext
16717fi
16718ac_res=`eval echo '${'$as_ac_var'}'`
16719	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16720echo "${ECHO_T}$ac_res" >&6; }
16721if test `eval echo '${'$as_ac_var'}'` = yes; then
16722  cat >>confdefs.h <<_ACEOF
16723#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16724_ACEOF
16725
16726fi
16727done
16728
16729
16730cat >conftest.$ac_ext <<_ACEOF
16731/* confdefs.h.  */
16732_ACEOF
16733cat confdefs.h >>conftest.$ac_ext
16734cat >>conftest.$ac_ext <<_ACEOF
16735/* end confdefs.h.  */
16736 #include <ctype.h>
16737int
16738main ()
16739{
16740 return (isblank('a'));
16741  ;
16742  return 0;
16743}
16744_ACEOF
16745rm -f conftest.$ac_objext conftest$ac_exeext
16746if { (ac_try="$ac_link"
16747case "(($ac_try" in
16748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749  *) ac_try_echo=$ac_try;;
16750esac
16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752  (eval "$ac_link") 2>conftest.er1
16753  ac_status=$?
16754  grep -v '^ *+' conftest.er1 >conftest.err
16755  rm -f conftest.er1
16756  cat conftest.err >&5
16757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758  (exit $ac_status); } && {
16759	 test -z "$ac_c_werror_flag" ||
16760	 test ! -s conftest.err
16761       } && test -s conftest$ac_exeext &&
16762       $as_test_x conftest$ac_exeext; then
16763
16764cat >>confdefs.h <<\_ACEOF
16765#define HAVE_ISBLANK 1
16766_ACEOF
16767
16768
16769else
16770  echo "$as_me: failed program was:" >&5
16771sed 's/^/| /' conftest.$ac_ext >&5
16772
16773
16774fi
16775
16776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16777      conftest$ac_exeext conftest.$ac_ext
16778
16779# PKCS11 depends on OpenSSL.
16780if test "x$openssl" = "xyes" ; then
16781	# PKCS#11 support requires dlopen() and co
16782	{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16783echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16784if test "${ac_cv_search_dlopen+set}" = set; then
16785  echo $ECHO_N "(cached) $ECHO_C" >&6
16786else
16787  ac_func_search_save_LIBS=$LIBS
16788cat >conftest.$ac_ext <<_ACEOF
16789/* confdefs.h.  */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h.  */
16794
16795/* Override any GCC internal prototype to avoid an error.
16796   Use char because int might match the return type of a GCC
16797   builtin and then its argument prototype would still apply.  */
16798#ifdef __cplusplus
16799extern "C"
16800#endif
16801char dlopen ();
16802int
16803main ()
16804{
16805return dlopen ();
16806  ;
16807  return 0;
16808}
16809_ACEOF
16810for ac_lib in '' dl; do
16811  if test -z "$ac_lib"; then
16812    ac_res="none required"
16813  else
16814    ac_res=-l$ac_lib
16815    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16816  fi
16817  rm -f conftest.$ac_objext conftest$ac_exeext
16818if { (ac_try="$ac_link"
16819case "(($ac_try" in
16820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821  *) ac_try_echo=$ac_try;;
16822esac
16823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824  (eval "$ac_link") 2>conftest.er1
16825  ac_status=$?
16826  grep -v '^ *+' conftest.er1 >conftest.err
16827  rm -f conftest.er1
16828  cat conftest.err >&5
16829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830  (exit $ac_status); } && {
16831	 test -z "$ac_c_werror_flag" ||
16832	 test ! -s conftest.err
16833       } && test -s conftest$ac_exeext &&
16834       $as_test_x conftest$ac_exeext; then
16835  ac_cv_search_dlopen=$ac_res
16836else
16837  echo "$as_me: failed program was:" >&5
16838sed 's/^/| /' conftest.$ac_ext >&5
16839
16840
16841fi
16842
16843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16844      conftest$ac_exeext
16845  if test "${ac_cv_search_dlopen+set}" = set; then
16846  break
16847fi
16848done
16849if test "${ac_cv_search_dlopen+set}" = set; then
16850  :
16851else
16852  ac_cv_search_dlopen=no
16853fi
16854rm conftest.$ac_ext
16855LIBS=$ac_func_search_save_LIBS
16856fi
16857{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16858echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16859ac_res=$ac_cv_search_dlopen
16860if test "$ac_res" != no; then
16861  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16862
16863cat >>confdefs.h <<\_ACEOF
16864#define ENABLE_PKCS11
16865_ACEOF
16866
16867
16868fi
16869
16870fi
16871
16872# IRIX has a const char return value for gai_strerror()
16873
16874for ac_func in gai_strerror
16875do
16876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16877{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16879if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16880  echo $ECHO_N "(cached) $ECHO_C" >&6
16881else
16882  cat >conftest.$ac_ext <<_ACEOF
16883/* confdefs.h.  */
16884_ACEOF
16885cat confdefs.h >>conftest.$ac_ext
16886cat >>conftest.$ac_ext <<_ACEOF
16887/* end confdefs.h.  */
16888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16889   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16890#define $ac_func innocuous_$ac_func
16891
16892/* System header to define __stub macros and hopefully few prototypes,
16893    which can conflict with char $ac_func (); below.
16894    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16895    <limits.h> exists even on freestanding compilers.  */
16896
16897#ifdef __STDC__
16898# include <limits.h>
16899#else
16900# include <assert.h>
16901#endif
16902
16903#undef $ac_func
16904
16905/* Override any GCC internal prototype to avoid an error.
16906   Use char because int might match the return type of a GCC
16907   builtin and then its argument prototype would still apply.  */
16908#ifdef __cplusplus
16909extern "C"
16910#endif
16911char $ac_func ();
16912/* The GNU C library defines this for functions which it implements
16913    to always fail with ENOSYS.  Some functions are actually named
16914    something starting with __ and the normal name is an alias.  */
16915#if defined __stub_$ac_func || defined __stub___$ac_func
16916choke me
16917#endif
16918
16919int
16920main ()
16921{
16922return $ac_func ();
16923  ;
16924  return 0;
16925}
16926_ACEOF
16927rm -f conftest.$ac_objext conftest$ac_exeext
16928if { (ac_try="$ac_link"
16929case "(($ac_try" in
16930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931  *) ac_try_echo=$ac_try;;
16932esac
16933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934  (eval "$ac_link") 2>conftest.er1
16935  ac_status=$?
16936  grep -v '^ *+' conftest.er1 >conftest.err
16937  rm -f conftest.er1
16938  cat conftest.err >&5
16939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940  (exit $ac_status); } && {
16941	 test -z "$ac_c_werror_flag" ||
16942	 test ! -s conftest.err
16943       } && test -s conftest$ac_exeext &&
16944       $as_test_x conftest$ac_exeext; then
16945  eval "$as_ac_var=yes"
16946else
16947  echo "$as_me: failed program was:" >&5
16948sed 's/^/| /' conftest.$ac_ext >&5
16949
16950	eval "$as_ac_var=no"
16951fi
16952
16953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16954      conftest$ac_exeext conftest.$ac_ext
16955fi
16956ac_res=`eval echo '${'$as_ac_var'}'`
16957	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16958echo "${ECHO_T}$ac_res" >&6; }
16959if test `eval echo '${'$as_ac_var'}'` = yes; then
16960  cat >>confdefs.h <<_ACEOF
16961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16962_ACEOF
16963
16964	cat >>confdefs.h <<\_ACEOF
16965#define HAVE_GAI_STRERROR 1
16966_ACEOF
16967
16968	cat >conftest.$ac_ext <<_ACEOF
16969/* confdefs.h.  */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
16973/* end confdefs.h.  */
16974
16975#include <sys/types.h>
16976#include <sys/socket.h>
16977#include <netdb.h>
16978
16979const char *gai_strerror(int);
16980
16981int
16982main ()
16983{
16984
16985	char *str;
16986	str = gai_strerror(0);
16987
16988  ;
16989  return 0;
16990}
16991_ACEOF
16992rm -f conftest.$ac_objext
16993if { (ac_try="$ac_compile"
16994case "(($ac_try" in
16995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996  *) ac_try_echo=$ac_try;;
16997esac
16998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999  (eval "$ac_compile") 2>conftest.er1
17000  ac_status=$?
17001  grep -v '^ *+' conftest.er1 >conftest.err
17002  rm -f conftest.er1
17003  cat conftest.err >&5
17004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005  (exit $ac_status); } && {
17006	 test -z "$ac_c_werror_flag" ||
17007	 test ! -s conftest.err
17008       } && test -s conftest.$ac_objext; then
17009
17010
17011cat >>confdefs.h <<\_ACEOF
17012#define HAVE_CONST_GAI_STRERROR_PROTO 1
17013_ACEOF
17014
17015else
17016  echo "$as_me: failed program was:" >&5
17017sed 's/^/| /' conftest.$ac_ext >&5
17018
17019
17020fi
17021
17022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023fi
17024done
17025
17026
17027{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17028echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17029if test "${ac_cv_search_nanosleep+set}" = set; then
17030  echo $ECHO_N "(cached) $ECHO_C" >&6
17031else
17032  ac_func_search_save_LIBS=$LIBS
17033cat >conftest.$ac_ext <<_ACEOF
17034/* confdefs.h.  */
17035_ACEOF
17036cat confdefs.h >>conftest.$ac_ext
17037cat >>conftest.$ac_ext <<_ACEOF
17038/* end confdefs.h.  */
17039
17040/* Override any GCC internal prototype to avoid an error.
17041   Use char because int might match the return type of a GCC
17042   builtin and then its argument prototype would still apply.  */
17043#ifdef __cplusplus
17044extern "C"
17045#endif
17046char nanosleep ();
17047int
17048main ()
17049{
17050return nanosleep ();
17051  ;
17052  return 0;
17053}
17054_ACEOF
17055for ac_lib in '' rt posix4; do
17056  if test -z "$ac_lib"; then
17057    ac_res="none required"
17058  else
17059    ac_res=-l$ac_lib
17060    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17061  fi
17062  rm -f conftest.$ac_objext conftest$ac_exeext
17063if { (ac_try="$ac_link"
17064case "(($ac_try" in
17065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066  *) ac_try_echo=$ac_try;;
17067esac
17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069  (eval "$ac_link") 2>conftest.er1
17070  ac_status=$?
17071  grep -v '^ *+' conftest.er1 >conftest.err
17072  rm -f conftest.er1
17073  cat conftest.err >&5
17074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075  (exit $ac_status); } && {
17076	 test -z "$ac_c_werror_flag" ||
17077	 test ! -s conftest.err
17078       } && test -s conftest$ac_exeext &&
17079       $as_test_x conftest$ac_exeext; then
17080  ac_cv_search_nanosleep=$ac_res
17081else
17082  echo "$as_me: failed program was:" >&5
17083sed 's/^/| /' conftest.$ac_ext >&5
17084
17085
17086fi
17087
17088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17089      conftest$ac_exeext
17090  if test "${ac_cv_search_nanosleep+set}" = set; then
17091  break
17092fi
17093done
17094if test "${ac_cv_search_nanosleep+set}" = set; then
17095  :
17096else
17097  ac_cv_search_nanosleep=no
17098fi
17099rm conftest.$ac_ext
17100LIBS=$ac_func_search_save_LIBS
17101fi
17102{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17103echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17104ac_res=$ac_cv_search_nanosleep
17105if test "$ac_res" != no; then
17106  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17107
17108cat >>confdefs.h <<\_ACEOF
17109#define HAVE_NANOSLEEP 1
17110_ACEOF
17111
17112fi
17113
17114
17115{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
17116echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
17117if test "${ac_cv_search_clock_gettime+set}" = set; then
17118  echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120  ac_func_search_save_LIBS=$LIBS
17121cat >conftest.$ac_ext <<_ACEOF
17122/* confdefs.h.  */
17123_ACEOF
17124cat confdefs.h >>conftest.$ac_ext
17125cat >>conftest.$ac_ext <<_ACEOF
17126/* end confdefs.h.  */
17127
17128/* Override any GCC internal prototype to avoid an error.
17129   Use char because int might match the return type of a GCC
17130   builtin and then its argument prototype would still apply.  */
17131#ifdef __cplusplus
17132extern "C"
17133#endif
17134char clock_gettime ();
17135int
17136main ()
17137{
17138return clock_gettime ();
17139  ;
17140  return 0;
17141}
17142_ACEOF
17143for ac_lib in '' rt; do
17144  if test -z "$ac_lib"; then
17145    ac_res="none required"
17146  else
17147    ac_res=-l$ac_lib
17148    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17149  fi
17150  rm -f conftest.$ac_objext conftest$ac_exeext
17151if { (ac_try="$ac_link"
17152case "(($ac_try" in
17153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154  *) ac_try_echo=$ac_try;;
17155esac
17156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157  (eval "$ac_link") 2>conftest.er1
17158  ac_status=$?
17159  grep -v '^ *+' conftest.er1 >conftest.err
17160  rm -f conftest.er1
17161  cat conftest.err >&5
17162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163  (exit $ac_status); } && {
17164	 test -z "$ac_c_werror_flag" ||
17165	 test ! -s conftest.err
17166       } && test -s conftest$ac_exeext &&
17167       $as_test_x conftest$ac_exeext; then
17168  ac_cv_search_clock_gettime=$ac_res
17169else
17170  echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173
17174fi
17175
17176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17177      conftest$ac_exeext
17178  if test "${ac_cv_search_clock_gettime+set}" = set; then
17179  break
17180fi
17181done
17182if test "${ac_cv_search_clock_gettime+set}" = set; then
17183  :
17184else
17185  ac_cv_search_clock_gettime=no
17186fi
17187rm conftest.$ac_ext
17188LIBS=$ac_func_search_save_LIBS
17189fi
17190{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
17191echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
17192ac_res=$ac_cv_search_clock_gettime
17193if test "$ac_res" != no; then
17194  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17195
17196cat >>confdefs.h <<\_ACEOF
17197#define HAVE_CLOCK_GETTIME 1
17198_ACEOF
17199
17200fi
17201
17202
17203{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
17204echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
17205if test "${ac_cv_have_decl_getrusage+set}" = set; then
17206  echo $ECHO_N "(cached) $ECHO_C" >&6
17207else
17208  cat >conftest.$ac_ext <<_ACEOF
17209/* confdefs.h.  */
17210_ACEOF
17211cat confdefs.h >>conftest.$ac_ext
17212cat >>conftest.$ac_ext <<_ACEOF
17213/* end confdefs.h.  */
17214$ac_includes_default
17215int
17216main ()
17217{
17218#ifndef getrusage
17219  (void) getrusage;
17220#endif
17221
17222  ;
17223  return 0;
17224}
17225_ACEOF
17226rm -f conftest.$ac_objext
17227if { (ac_try="$ac_compile"
17228case "(($ac_try" in
17229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230  *) ac_try_echo=$ac_try;;
17231esac
17232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233  (eval "$ac_compile") 2>conftest.er1
17234  ac_status=$?
17235  grep -v '^ *+' conftest.er1 >conftest.err
17236  rm -f conftest.er1
17237  cat conftest.err >&5
17238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239  (exit $ac_status); } && {
17240	 test -z "$ac_c_werror_flag" ||
17241	 test ! -s conftest.err
17242       } && test -s conftest.$ac_objext; then
17243  ac_cv_have_decl_getrusage=yes
17244else
17245  echo "$as_me: failed program was:" >&5
17246sed 's/^/| /' conftest.$ac_ext >&5
17247
17248	ac_cv_have_decl_getrusage=no
17249fi
17250
17251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17252fi
17253{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
17254echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
17255if test $ac_cv_have_decl_getrusage = yes; then
17256
17257for ac_func in getrusage
17258do
17259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17260{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17262if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17263  echo $ECHO_N "(cached) $ECHO_C" >&6
17264else
17265  cat >conftest.$ac_ext <<_ACEOF
17266/* confdefs.h.  */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h.  */
17271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17272   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17273#define $ac_func innocuous_$ac_func
17274
17275/* System header to define __stub macros and hopefully few prototypes,
17276    which can conflict with char $ac_func (); below.
17277    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17278    <limits.h> exists even on freestanding compilers.  */
17279
17280#ifdef __STDC__
17281# include <limits.h>
17282#else
17283# include <assert.h>
17284#endif
17285
17286#undef $ac_func
17287
17288/* Override any GCC internal prototype to avoid an error.
17289   Use char because int might match the return type of a GCC
17290   builtin and then its argument prototype would still apply.  */
17291#ifdef __cplusplus
17292extern "C"
17293#endif
17294char $ac_func ();
17295/* The GNU C library defines this for functions which it implements
17296    to always fail with ENOSYS.  Some functions are actually named
17297    something starting with __ and the normal name is an alias.  */
17298#if defined __stub_$ac_func || defined __stub___$ac_func
17299choke me
17300#endif
17301
17302int
17303main ()
17304{
17305return $ac_func ();
17306  ;
17307  return 0;
17308}
17309_ACEOF
17310rm -f conftest.$ac_objext conftest$ac_exeext
17311if { (ac_try="$ac_link"
17312case "(($ac_try" in
17313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314  *) ac_try_echo=$ac_try;;
17315esac
17316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317  (eval "$ac_link") 2>conftest.er1
17318  ac_status=$?
17319  grep -v '^ *+' conftest.er1 >conftest.err
17320  rm -f conftest.er1
17321  cat conftest.err >&5
17322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323  (exit $ac_status); } && {
17324	 test -z "$ac_c_werror_flag" ||
17325	 test ! -s conftest.err
17326       } && test -s conftest$ac_exeext &&
17327       $as_test_x conftest$ac_exeext; then
17328  eval "$as_ac_var=yes"
17329else
17330  echo "$as_me: failed program was:" >&5
17331sed 's/^/| /' conftest.$ac_ext >&5
17332
17333	eval "$as_ac_var=no"
17334fi
17335
17336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17337      conftest$ac_exeext conftest.$ac_ext
17338fi
17339ac_res=`eval echo '${'$as_ac_var'}'`
17340	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17341echo "${ECHO_T}$ac_res" >&6; }
17342if test `eval echo '${'$as_ac_var'}'` = yes; then
17343  cat >>confdefs.h <<_ACEOF
17344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17345_ACEOF
17346
17347fi
17348done
17349
17350fi
17351
17352{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
17353echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
17354if test "${ac_cv_have_decl_strsep+set}" = set; then
17355  echo $ECHO_N "(cached) $ECHO_C" >&6
17356else
17357  cat >conftest.$ac_ext <<_ACEOF
17358/* confdefs.h.  */
17359_ACEOF
17360cat confdefs.h >>conftest.$ac_ext
17361cat >>conftest.$ac_ext <<_ACEOF
17362/* end confdefs.h.  */
17363
17364#ifdef HAVE_STRING_H
17365# include <string.h>
17366#endif
17367
17368
17369int
17370main ()
17371{
17372#ifndef strsep
17373  (void) strsep;
17374#endif
17375
17376  ;
17377  return 0;
17378}
17379_ACEOF
17380rm -f conftest.$ac_objext
17381if { (ac_try="$ac_compile"
17382case "(($ac_try" in
17383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384  *) ac_try_echo=$ac_try;;
17385esac
17386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387  (eval "$ac_compile") 2>conftest.er1
17388  ac_status=$?
17389  grep -v '^ *+' conftest.er1 >conftest.err
17390  rm -f conftest.er1
17391  cat conftest.err >&5
17392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393  (exit $ac_status); } && {
17394	 test -z "$ac_c_werror_flag" ||
17395	 test ! -s conftest.err
17396       } && test -s conftest.$ac_objext; then
17397  ac_cv_have_decl_strsep=yes
17398else
17399  echo "$as_me: failed program was:" >&5
17400sed 's/^/| /' conftest.$ac_ext >&5
17401
17402	ac_cv_have_decl_strsep=no
17403fi
17404
17405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17406fi
17407{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
17408echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
17409if test $ac_cv_have_decl_strsep = yes; then
17410
17411for ac_func in strsep
17412do
17413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17414{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17416if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17417  echo $ECHO_N "(cached) $ECHO_C" >&6
17418else
17419  cat >conftest.$ac_ext <<_ACEOF
17420/* confdefs.h.  */
17421_ACEOF
17422cat confdefs.h >>conftest.$ac_ext
17423cat >>conftest.$ac_ext <<_ACEOF
17424/* end confdefs.h.  */
17425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17426   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17427#define $ac_func innocuous_$ac_func
17428
17429/* System header to define __stub macros and hopefully few prototypes,
17430    which can conflict with char $ac_func (); below.
17431    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17432    <limits.h> exists even on freestanding compilers.  */
17433
17434#ifdef __STDC__
17435# include <limits.h>
17436#else
17437# include <assert.h>
17438#endif
17439
17440#undef $ac_func
17441
17442/* Override any GCC internal prototype to avoid an error.
17443   Use char because int might match the return type of a GCC
17444   builtin and then its argument prototype would still apply.  */
17445#ifdef __cplusplus
17446extern "C"
17447#endif
17448char $ac_func ();
17449/* The GNU C library defines this for functions which it implements
17450    to always fail with ENOSYS.  Some functions are actually named
17451    something starting with __ and the normal name is an alias.  */
17452#if defined __stub_$ac_func || defined __stub___$ac_func
17453choke me
17454#endif
17455
17456int
17457main ()
17458{
17459return $ac_func ();
17460  ;
17461  return 0;
17462}
17463_ACEOF
17464rm -f conftest.$ac_objext conftest$ac_exeext
17465if { (ac_try="$ac_link"
17466case "(($ac_try" in
17467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468  *) ac_try_echo=$ac_try;;
17469esac
17470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471  (eval "$ac_link") 2>conftest.er1
17472  ac_status=$?
17473  grep -v '^ *+' conftest.er1 >conftest.err
17474  rm -f conftest.er1
17475  cat conftest.err >&5
17476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477  (exit $ac_status); } && {
17478	 test -z "$ac_c_werror_flag" ||
17479	 test ! -s conftest.err
17480       } && test -s conftest$ac_exeext &&
17481       $as_test_x conftest$ac_exeext; then
17482  eval "$as_ac_var=yes"
17483else
17484  echo "$as_me: failed program was:" >&5
17485sed 's/^/| /' conftest.$ac_ext >&5
17486
17487	eval "$as_ac_var=no"
17488fi
17489
17490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17491      conftest$ac_exeext conftest.$ac_ext
17492fi
17493ac_res=`eval echo '${'$as_ac_var'}'`
17494	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17495echo "${ECHO_T}$ac_res" >&6; }
17496if test `eval echo '${'$as_ac_var'}'` = yes; then
17497  cat >>confdefs.h <<_ACEOF
17498#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17499_ACEOF
17500
17501fi
17502done
17503
17504fi
17505
17506
17507{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
17508echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
17509if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
17510  echo $ECHO_N "(cached) $ECHO_C" >&6
17511else
17512  cat >conftest.$ac_ext <<_ACEOF
17513/* confdefs.h.  */
17514_ACEOF
17515cat confdefs.h >>conftest.$ac_ext
17516cat >>conftest.$ac_ext <<_ACEOF
17517/* end confdefs.h.  */
17518#include <termios.h>
17519
17520
17521int
17522main ()
17523{
17524#ifndef tcsendbreak
17525  (void) tcsendbreak;
17526#endif
17527
17528  ;
17529  return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext
17533if { (ac_try="$ac_compile"
17534case "(($ac_try" in
17535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536  *) ac_try_echo=$ac_try;;
17537esac
17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539  (eval "$ac_compile") 2>conftest.er1
17540  ac_status=$?
17541  grep -v '^ *+' conftest.er1 >conftest.err
17542  rm -f conftest.er1
17543  cat conftest.err >&5
17544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545  (exit $ac_status); } && {
17546	 test -z "$ac_c_werror_flag" ||
17547	 test ! -s conftest.err
17548       } && test -s conftest.$ac_objext; then
17549  ac_cv_have_decl_tcsendbreak=yes
17550else
17551  echo "$as_me: failed program was:" >&5
17552sed 's/^/| /' conftest.$ac_ext >&5
17553
17554	ac_cv_have_decl_tcsendbreak=no
17555fi
17556
17557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17558fi
17559{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
17560echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
17561if test $ac_cv_have_decl_tcsendbreak = yes; then
17562  cat >>confdefs.h <<\_ACEOF
17563#define HAVE_TCSENDBREAK 1
17564_ACEOF
17565
17566else
17567
17568for ac_func in tcsendbreak
17569do
17570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17571{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17573if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17574  echo $ECHO_N "(cached) $ECHO_C" >&6
17575else
17576  cat >conftest.$ac_ext <<_ACEOF
17577/* confdefs.h.  */
17578_ACEOF
17579cat confdefs.h >>conftest.$ac_ext
17580cat >>conftest.$ac_ext <<_ACEOF
17581/* end confdefs.h.  */
17582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17583   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17584#define $ac_func innocuous_$ac_func
17585
17586/* System header to define __stub macros and hopefully few prototypes,
17587    which can conflict with char $ac_func (); below.
17588    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17589    <limits.h> exists even on freestanding compilers.  */
17590
17591#ifdef __STDC__
17592# include <limits.h>
17593#else
17594# include <assert.h>
17595#endif
17596
17597#undef $ac_func
17598
17599/* Override any GCC internal prototype to avoid an error.
17600   Use char because int might match the return type of a GCC
17601   builtin and then its argument prototype would still apply.  */
17602#ifdef __cplusplus
17603extern "C"
17604#endif
17605char $ac_func ();
17606/* The GNU C library defines this for functions which it implements
17607    to always fail with ENOSYS.  Some functions are actually named
17608    something starting with __ and the normal name is an alias.  */
17609#if defined __stub_$ac_func || defined __stub___$ac_func
17610choke me
17611#endif
17612
17613int
17614main ()
17615{
17616return $ac_func ();
17617  ;
17618  return 0;
17619}
17620_ACEOF
17621rm -f conftest.$ac_objext conftest$ac_exeext
17622if { (ac_try="$ac_link"
17623case "(($ac_try" in
17624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625  *) ac_try_echo=$ac_try;;
17626esac
17627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628  (eval "$ac_link") 2>conftest.er1
17629  ac_status=$?
17630  grep -v '^ *+' conftest.er1 >conftest.err
17631  rm -f conftest.er1
17632  cat conftest.err >&5
17633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634  (exit $ac_status); } && {
17635	 test -z "$ac_c_werror_flag" ||
17636	 test ! -s conftest.err
17637       } && test -s conftest$ac_exeext &&
17638       $as_test_x conftest$ac_exeext; then
17639  eval "$as_ac_var=yes"
17640else
17641  echo "$as_me: failed program was:" >&5
17642sed 's/^/| /' conftest.$ac_ext >&5
17643
17644	eval "$as_ac_var=no"
17645fi
17646
17647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17648      conftest$ac_exeext conftest.$ac_ext
17649fi
17650ac_res=`eval echo '${'$as_ac_var'}'`
17651	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17652echo "${ECHO_T}$ac_res" >&6; }
17653if test `eval echo '${'$as_ac_var'}'` = yes; then
17654  cat >>confdefs.h <<_ACEOF
17655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17656_ACEOF
17657
17658fi
17659done
17660
17661fi
17662
17663
17664{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
17665echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
17666if test "${ac_cv_have_decl_h_errno+set}" = set; then
17667  echo $ECHO_N "(cached) $ECHO_C" >&6
17668else
17669  cat >conftest.$ac_ext <<_ACEOF
17670/* confdefs.h.  */
17671_ACEOF
17672cat confdefs.h >>conftest.$ac_ext
17673cat >>conftest.$ac_ext <<_ACEOF
17674/* end confdefs.h.  */
17675#include <netdb.h>
17676
17677int
17678main ()
17679{
17680#ifndef h_errno
17681  (void) h_errno;
17682#endif
17683
17684  ;
17685  return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext
17689if { (ac_try="$ac_compile"
17690case "(($ac_try" in
17691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692  *) ac_try_echo=$ac_try;;
17693esac
17694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695  (eval "$ac_compile") 2>conftest.er1
17696  ac_status=$?
17697  grep -v '^ *+' conftest.er1 >conftest.err
17698  rm -f conftest.er1
17699  cat conftest.err >&5
17700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701  (exit $ac_status); } && {
17702	 test -z "$ac_c_werror_flag" ||
17703	 test ! -s conftest.err
17704       } && test -s conftest.$ac_objext; then
17705  ac_cv_have_decl_h_errno=yes
17706else
17707  echo "$as_me: failed program was:" >&5
17708sed 's/^/| /' conftest.$ac_ext >&5
17709
17710	ac_cv_have_decl_h_errno=no
17711fi
17712
17713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714fi
17715{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
17716echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
17717if test $ac_cv_have_decl_h_errno = yes; then
17718
17719cat >>confdefs.h <<_ACEOF
17720#define HAVE_DECL_H_ERRNO 1
17721_ACEOF
17722
17723
17724else
17725  cat >>confdefs.h <<_ACEOF
17726#define HAVE_DECL_H_ERRNO 0
17727_ACEOF
17728
17729
17730fi
17731
17732
17733
17734{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
17735echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
17736if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
17737  echo $ECHO_N "(cached) $ECHO_C" >&6
17738else
17739  cat >conftest.$ac_ext <<_ACEOF
17740/* confdefs.h.  */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h.  */
17745
17746#include <sys/types.h>
17747#include <sys/socket.h>
17748
17749
17750int
17751main ()
17752{
17753#ifndef SHUT_RD
17754  (void) SHUT_RD;
17755#endif
17756
17757  ;
17758  return 0;
17759}
17760_ACEOF
17761rm -f conftest.$ac_objext
17762if { (ac_try="$ac_compile"
17763case "(($ac_try" in
17764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765  *) ac_try_echo=$ac_try;;
17766esac
17767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768  (eval "$ac_compile") 2>conftest.er1
17769  ac_status=$?
17770  grep -v '^ *+' conftest.er1 >conftest.err
17771  rm -f conftest.er1
17772  cat conftest.err >&5
17773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774  (exit $ac_status); } && {
17775	 test -z "$ac_c_werror_flag" ||
17776	 test ! -s conftest.err
17777       } && test -s conftest.$ac_objext; then
17778  ac_cv_have_decl_SHUT_RD=yes
17779else
17780  echo "$as_me: failed program was:" >&5
17781sed 's/^/| /' conftest.$ac_ext >&5
17782
17783	ac_cv_have_decl_SHUT_RD=no
17784fi
17785
17786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17787fi
17788{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
17789echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
17790if test $ac_cv_have_decl_SHUT_RD = yes; then
17791
17792cat >>confdefs.h <<_ACEOF
17793#define HAVE_DECL_SHUT_RD 1
17794_ACEOF
17795
17796
17797else
17798  cat >>confdefs.h <<_ACEOF
17799#define HAVE_DECL_SHUT_RD 0
17800_ACEOF
17801
17802
17803fi
17804
17805
17806
17807{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
17808echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
17809if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
17810  echo $ECHO_N "(cached) $ECHO_C" >&6
17811else
17812  cat >conftest.$ac_ext <<_ACEOF
17813/* confdefs.h.  */
17814_ACEOF
17815cat confdefs.h >>conftest.$ac_ext
17816cat >>conftest.$ac_ext <<_ACEOF
17817/* end confdefs.h.  */
17818
17819#include <sys/types.h>
17820#ifdef HAVE_SYS_STAT_H
17821# include <sys/stat.h>
17822#endif
17823#ifdef HAVE_FCNTL_H
17824# include <fcntl.h>
17825#endif
17826
17827
17828int
17829main ()
17830{
17831#ifndef O_NONBLOCK
17832  (void) O_NONBLOCK;
17833#endif
17834
17835  ;
17836  return 0;
17837}
17838_ACEOF
17839rm -f conftest.$ac_objext
17840if { (ac_try="$ac_compile"
17841case "(($ac_try" in
17842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843  *) ac_try_echo=$ac_try;;
17844esac
17845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846  (eval "$ac_compile") 2>conftest.er1
17847  ac_status=$?
17848  grep -v '^ *+' conftest.er1 >conftest.err
17849  rm -f conftest.er1
17850  cat conftest.err >&5
17851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852  (exit $ac_status); } && {
17853	 test -z "$ac_c_werror_flag" ||
17854	 test ! -s conftest.err
17855       } && test -s conftest.$ac_objext; then
17856  ac_cv_have_decl_O_NONBLOCK=yes
17857else
17858  echo "$as_me: failed program was:" >&5
17859sed 's/^/| /' conftest.$ac_ext >&5
17860
17861	ac_cv_have_decl_O_NONBLOCK=no
17862fi
17863
17864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17865fi
17866{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
17867echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
17868if test $ac_cv_have_decl_O_NONBLOCK = yes; then
17869
17870cat >>confdefs.h <<_ACEOF
17871#define HAVE_DECL_O_NONBLOCK 1
17872_ACEOF
17873
17874
17875else
17876  cat >>confdefs.h <<_ACEOF
17877#define HAVE_DECL_O_NONBLOCK 0
17878_ACEOF
17879
17880
17881fi
17882
17883
17884
17885{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
17886echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
17887if test "${ac_cv_have_decl_writev+set}" = set; then
17888  echo $ECHO_N "(cached) $ECHO_C" >&6
17889else
17890  cat >conftest.$ac_ext <<_ACEOF
17891/* confdefs.h.  */
17892_ACEOF
17893cat confdefs.h >>conftest.$ac_ext
17894cat >>conftest.$ac_ext <<_ACEOF
17895/* end confdefs.h.  */
17896
17897#include <sys/types.h>
17898#include <sys/uio.h>
17899#include <unistd.h>
17900
17901
17902int
17903main ()
17904{
17905#ifndef writev
17906  (void) writev;
17907#endif
17908
17909  ;
17910  return 0;
17911}
17912_ACEOF
17913rm -f conftest.$ac_objext
17914if { (ac_try="$ac_compile"
17915case "(($ac_try" in
17916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917  *) ac_try_echo=$ac_try;;
17918esac
17919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920  (eval "$ac_compile") 2>conftest.er1
17921  ac_status=$?
17922  grep -v '^ *+' conftest.er1 >conftest.err
17923  rm -f conftest.er1
17924  cat conftest.err >&5
17925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926  (exit $ac_status); } && {
17927	 test -z "$ac_c_werror_flag" ||
17928	 test ! -s conftest.err
17929       } && test -s conftest.$ac_objext; then
17930  ac_cv_have_decl_writev=yes
17931else
17932  echo "$as_me: failed program was:" >&5
17933sed 's/^/| /' conftest.$ac_ext >&5
17934
17935	ac_cv_have_decl_writev=no
17936fi
17937
17938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17939fi
17940{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
17941echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
17942if test $ac_cv_have_decl_writev = yes; then
17943
17944cat >>confdefs.h <<_ACEOF
17945#define HAVE_DECL_WRITEV 1
17946_ACEOF
17947
17948
17949else
17950  cat >>confdefs.h <<_ACEOF
17951#define HAVE_DECL_WRITEV 0
17952_ACEOF
17953
17954
17955fi
17956
17957
17958
17959{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
17960echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
17961if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
17962  echo $ECHO_N "(cached) $ECHO_C" >&6
17963else
17964  cat >conftest.$ac_ext <<_ACEOF
17965/* confdefs.h.  */
17966_ACEOF
17967cat confdefs.h >>conftest.$ac_ext
17968cat >>conftest.$ac_ext <<_ACEOF
17969/* end confdefs.h.  */
17970
17971#include <sys/param.h>
17972
17973
17974int
17975main ()
17976{
17977#ifndef MAXSYMLINKS
17978  (void) MAXSYMLINKS;
17979#endif
17980
17981  ;
17982  return 0;
17983}
17984_ACEOF
17985rm -f conftest.$ac_objext
17986if { (ac_try="$ac_compile"
17987case "(($ac_try" in
17988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989  *) ac_try_echo=$ac_try;;
17990esac
17991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992  (eval "$ac_compile") 2>conftest.er1
17993  ac_status=$?
17994  grep -v '^ *+' conftest.er1 >conftest.err
17995  rm -f conftest.er1
17996  cat conftest.err >&5
17997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998  (exit $ac_status); } && {
17999	 test -z "$ac_c_werror_flag" ||
18000	 test ! -s conftest.err
18001       } && test -s conftest.$ac_objext; then
18002  ac_cv_have_decl_MAXSYMLINKS=yes
18003else
18004  echo "$as_me: failed program was:" >&5
18005sed 's/^/| /' conftest.$ac_ext >&5
18006
18007	ac_cv_have_decl_MAXSYMLINKS=no
18008fi
18009
18010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18011fi
18012{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
18013echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
18014if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
18015
18016cat >>confdefs.h <<_ACEOF
18017#define HAVE_DECL_MAXSYMLINKS 1
18018_ACEOF
18019
18020
18021else
18022  cat >>confdefs.h <<_ACEOF
18023#define HAVE_DECL_MAXSYMLINKS 0
18024_ACEOF
18025
18026
18027fi
18028
18029
18030
18031{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
18032echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
18033if test "${ac_cv_have_decl_offsetof+set}" = set; then
18034  echo $ECHO_N "(cached) $ECHO_C" >&6
18035else
18036  cat >conftest.$ac_ext <<_ACEOF
18037/* confdefs.h.  */
18038_ACEOF
18039cat confdefs.h >>conftest.$ac_ext
18040cat >>conftest.$ac_ext <<_ACEOF
18041/* end confdefs.h.  */
18042
18043#include <stddef.h>
18044
18045
18046int
18047main ()
18048{
18049#ifndef offsetof
18050  (void) offsetof;
18051#endif
18052
18053  ;
18054  return 0;
18055}
18056_ACEOF
18057rm -f conftest.$ac_objext
18058if { (ac_try="$ac_compile"
18059case "(($ac_try" in
18060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061  *) ac_try_echo=$ac_try;;
18062esac
18063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064  (eval "$ac_compile") 2>conftest.er1
18065  ac_status=$?
18066  grep -v '^ *+' conftest.er1 >conftest.err
18067  rm -f conftest.er1
18068  cat conftest.err >&5
18069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070  (exit $ac_status); } && {
18071	 test -z "$ac_c_werror_flag" ||
18072	 test ! -s conftest.err
18073       } && test -s conftest.$ac_objext; then
18074  ac_cv_have_decl_offsetof=yes
18075else
18076  echo "$as_me: failed program was:" >&5
18077sed 's/^/| /' conftest.$ac_ext >&5
18078
18079	ac_cv_have_decl_offsetof=no
18080fi
18081
18082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18083fi
18084{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
18085echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
18086if test $ac_cv_have_decl_offsetof = yes; then
18087
18088cat >>confdefs.h <<_ACEOF
18089#define HAVE_DECL_OFFSETOF 1
18090_ACEOF
18091
18092
18093else
18094  cat >>confdefs.h <<_ACEOF
18095#define HAVE_DECL_OFFSETOF 0
18096_ACEOF
18097
18098
18099fi
18100
18101
18102
18103# extra bits for select(2)
18104{ echo "$as_me:$LINENO: checking whether howmany is declared" >&5
18105echo $ECHO_N "checking whether howmany is declared... $ECHO_C" >&6; }
18106if test "${ac_cv_have_decl_howmany+set}" = set; then
18107  echo $ECHO_N "(cached) $ECHO_C" >&6
18108else
18109  cat >conftest.$ac_ext <<_ACEOF
18110/* confdefs.h.  */
18111_ACEOF
18112cat confdefs.h >>conftest.$ac_ext
18113cat >>conftest.$ac_ext <<_ACEOF
18114/* end confdefs.h.  */
18115
18116#include <sys/param.h>
18117#include <sys/types.h>
18118#ifdef HAVE_SYS_SYSMACROS_H
18119#include <sys/sysmacros.h>
18120#endif
18121#ifdef HAVE_SYS_SELECT_H
18122#include <sys/select.h>
18123#endif
18124#ifdef HAVE_SYS_TIME_H
18125#include <sys/time.h>
18126#endif
18127#ifdef HAVE_UNISTD_H
18128#include <unistd.h>
18129#endif
18130
18131
18132int
18133main ()
18134{
18135#ifndef howmany
18136  (void) howmany;
18137#endif
18138
18139  ;
18140  return 0;
18141}
18142_ACEOF
18143rm -f conftest.$ac_objext
18144if { (ac_try="$ac_compile"
18145case "(($ac_try" in
18146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147  *) ac_try_echo=$ac_try;;
18148esac
18149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150  (eval "$ac_compile") 2>conftest.er1
18151  ac_status=$?
18152  grep -v '^ *+' conftest.er1 >conftest.err
18153  rm -f conftest.er1
18154  cat conftest.err >&5
18155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156  (exit $ac_status); } && {
18157	 test -z "$ac_c_werror_flag" ||
18158	 test ! -s conftest.err
18159       } && test -s conftest.$ac_objext; then
18160  ac_cv_have_decl_howmany=yes
18161else
18162  echo "$as_me: failed program was:" >&5
18163sed 's/^/| /' conftest.$ac_ext >&5
18164
18165	ac_cv_have_decl_howmany=no
18166fi
18167
18168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18169fi
18170{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_howmany" >&5
18171echo "${ECHO_T}$ac_cv_have_decl_howmany" >&6; }
18172if test $ac_cv_have_decl_howmany = yes; then
18173
18174cat >>confdefs.h <<_ACEOF
18175#define HAVE_DECL_HOWMANY 1
18176_ACEOF
18177
18178
18179else
18180  cat >>confdefs.h <<_ACEOF
18181#define HAVE_DECL_HOWMANY 0
18182_ACEOF
18183
18184
18185fi
18186{ echo "$as_me:$LINENO: checking whether NFDBITS is declared" >&5
18187echo $ECHO_N "checking whether NFDBITS is declared... $ECHO_C" >&6; }
18188if test "${ac_cv_have_decl_NFDBITS+set}" = set; then
18189  echo $ECHO_N "(cached) $ECHO_C" >&6
18190else
18191  cat >conftest.$ac_ext <<_ACEOF
18192/* confdefs.h.  */
18193_ACEOF
18194cat confdefs.h >>conftest.$ac_ext
18195cat >>conftest.$ac_ext <<_ACEOF
18196/* end confdefs.h.  */
18197
18198#include <sys/param.h>
18199#include <sys/types.h>
18200#ifdef HAVE_SYS_SYSMACROS_H
18201#include <sys/sysmacros.h>
18202#endif
18203#ifdef HAVE_SYS_SELECT_H
18204#include <sys/select.h>
18205#endif
18206#ifdef HAVE_SYS_TIME_H
18207#include <sys/time.h>
18208#endif
18209#ifdef HAVE_UNISTD_H
18210#include <unistd.h>
18211#endif
18212
18213
18214int
18215main ()
18216{
18217#ifndef NFDBITS
18218  (void) NFDBITS;
18219#endif
18220
18221  ;
18222  return 0;
18223}
18224_ACEOF
18225rm -f conftest.$ac_objext
18226if { (ac_try="$ac_compile"
18227case "(($ac_try" in
18228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229  *) ac_try_echo=$ac_try;;
18230esac
18231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18232  (eval "$ac_compile") 2>conftest.er1
18233  ac_status=$?
18234  grep -v '^ *+' conftest.er1 >conftest.err
18235  rm -f conftest.er1
18236  cat conftest.err >&5
18237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238  (exit $ac_status); } && {
18239	 test -z "$ac_c_werror_flag" ||
18240	 test ! -s conftest.err
18241       } && test -s conftest.$ac_objext; then
18242  ac_cv_have_decl_NFDBITS=yes
18243else
18244  echo "$as_me: failed program was:" >&5
18245sed 's/^/| /' conftest.$ac_ext >&5
18246
18247	ac_cv_have_decl_NFDBITS=no
18248fi
18249
18250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18251fi
18252{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_NFDBITS" >&5
18253echo "${ECHO_T}$ac_cv_have_decl_NFDBITS" >&6; }
18254if test $ac_cv_have_decl_NFDBITS = yes; then
18255
18256cat >>confdefs.h <<_ACEOF
18257#define HAVE_DECL_NFDBITS 1
18258_ACEOF
18259
18260
18261else
18262  cat >>confdefs.h <<_ACEOF
18263#define HAVE_DECL_NFDBITS 0
18264_ACEOF
18265
18266
18267fi
18268
18269
18270{ echo "$as_me:$LINENO: checking for fd_mask" >&5
18271echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; }
18272if test "${ac_cv_type_fd_mask+set}" = set; then
18273  echo $ECHO_N "(cached) $ECHO_C" >&6
18274else
18275  cat >conftest.$ac_ext <<_ACEOF
18276/* confdefs.h.  */
18277_ACEOF
18278cat confdefs.h >>conftest.$ac_ext
18279cat >>conftest.$ac_ext <<_ACEOF
18280/* end confdefs.h.  */
18281
18282#include <sys/param.h>
18283#include <sys/types.h>
18284#ifdef HAVE_SYS_SELECT_H
18285#include <sys/select.h>
18286#endif
18287#ifdef HAVE_SYS_TIME_H
18288#include <sys/time.h>
18289#endif
18290#ifdef HAVE_UNISTD_H
18291#include <unistd.h>
18292#endif
18293
18294
18295typedef fd_mask ac__type_new_;
18296int
18297main ()
18298{
18299if ((ac__type_new_ *) 0)
18300  return 0;
18301if (sizeof (ac__type_new_))
18302  return 0;
18303  ;
18304  return 0;
18305}
18306_ACEOF
18307rm -f conftest.$ac_objext
18308if { (ac_try="$ac_compile"
18309case "(($ac_try" in
18310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311  *) ac_try_echo=$ac_try;;
18312esac
18313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314  (eval "$ac_compile") 2>conftest.er1
18315  ac_status=$?
18316  grep -v '^ *+' conftest.er1 >conftest.err
18317  rm -f conftest.er1
18318  cat conftest.err >&5
18319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320  (exit $ac_status); } && {
18321	 test -z "$ac_c_werror_flag" ||
18322	 test ! -s conftest.err
18323       } && test -s conftest.$ac_objext; then
18324  ac_cv_type_fd_mask=yes
18325else
18326  echo "$as_me: failed program was:" >&5
18327sed 's/^/| /' conftest.$ac_ext >&5
18328
18329	ac_cv_type_fd_mask=no
18330fi
18331
18332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18333fi
18334{ echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
18335echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; }
18336if test $ac_cv_type_fd_mask = yes; then
18337
18338cat >>confdefs.h <<_ACEOF
18339#define HAVE_FD_MASK 1
18340_ACEOF
18341
18342
18343fi
18344
18345
18346
18347for ac_func in setresuid
18348do
18349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18350{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18352if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18353  echo $ECHO_N "(cached) $ECHO_C" >&6
18354else
18355  cat >conftest.$ac_ext <<_ACEOF
18356/* confdefs.h.  */
18357_ACEOF
18358cat confdefs.h >>conftest.$ac_ext
18359cat >>conftest.$ac_ext <<_ACEOF
18360/* end confdefs.h.  */
18361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18362   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18363#define $ac_func innocuous_$ac_func
18364
18365/* System header to define __stub macros and hopefully few prototypes,
18366    which can conflict with char $ac_func (); below.
18367    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18368    <limits.h> exists even on freestanding compilers.  */
18369
18370#ifdef __STDC__
18371# include <limits.h>
18372#else
18373# include <assert.h>
18374#endif
18375
18376#undef $ac_func
18377
18378/* Override any GCC internal prototype to avoid an error.
18379   Use char because int might match the return type of a GCC
18380   builtin and then its argument prototype would still apply.  */
18381#ifdef __cplusplus
18382extern "C"
18383#endif
18384char $ac_func ();
18385/* The GNU C library defines this for functions which it implements
18386    to always fail with ENOSYS.  Some functions are actually named
18387    something starting with __ and the normal name is an alias.  */
18388#if defined __stub_$ac_func || defined __stub___$ac_func
18389choke me
18390#endif
18391
18392int
18393main ()
18394{
18395return $ac_func ();
18396  ;
18397  return 0;
18398}
18399_ACEOF
18400rm -f conftest.$ac_objext conftest$ac_exeext
18401if { (ac_try="$ac_link"
18402case "(($ac_try" in
18403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404  *) ac_try_echo=$ac_try;;
18405esac
18406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407  (eval "$ac_link") 2>conftest.er1
18408  ac_status=$?
18409  grep -v '^ *+' conftest.er1 >conftest.err
18410  rm -f conftest.er1
18411  cat conftest.err >&5
18412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413  (exit $ac_status); } && {
18414	 test -z "$ac_c_werror_flag" ||
18415	 test ! -s conftest.err
18416       } && test -s conftest$ac_exeext &&
18417       $as_test_x conftest$ac_exeext; then
18418  eval "$as_ac_var=yes"
18419else
18420  echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
18423	eval "$as_ac_var=no"
18424fi
18425
18426rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18427      conftest$ac_exeext conftest.$ac_ext
18428fi
18429ac_res=`eval echo '${'$as_ac_var'}'`
18430	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18431echo "${ECHO_T}$ac_res" >&6; }
18432if test `eval echo '${'$as_ac_var'}'` = yes; then
18433  cat >>confdefs.h <<_ACEOF
18434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18435_ACEOF
18436
18437		{ echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
18438echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
18439	if test "$cross_compiling" = yes; then
18440  { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
18441echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
18442
18443else
18444  cat >conftest.$ac_ext <<_ACEOF
18445/* confdefs.h.  */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h.  */
18450
18451#include <stdlib.h>
18452#include <errno.h>
18453
18454int
18455main ()
18456{
18457
18458	errno=0;
18459	setresuid(0,0,0);
18460	if (errno==ENOSYS)
18461		exit(1);
18462	else
18463		exit(0);
18464
18465  ;
18466  return 0;
18467}
18468_ACEOF
18469rm -f conftest$ac_exeext
18470if { (ac_try="$ac_link"
18471case "(($ac_try" in
18472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473  *) ac_try_echo=$ac_try;;
18474esac
18475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476  (eval "$ac_link") 2>&5
18477  ac_status=$?
18478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18480  { (case "(($ac_try" in
18481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482  *) ac_try_echo=$ac_try;;
18483esac
18484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485  (eval "$ac_try") 2>&5
18486  ac_status=$?
18487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488  (exit $ac_status); }; }; then
18489  { echo "$as_me:$LINENO: result: yes" >&5
18490echo "${ECHO_T}yes" >&6; }
18491else
18492  echo "$as_me: program exited with status $ac_status" >&5
18493echo "$as_me: failed program was:" >&5
18494sed 's/^/| /' conftest.$ac_ext >&5
18495
18496( exit $ac_status )
18497
18498cat >>confdefs.h <<\_ACEOF
18499#define BROKEN_SETRESUID 1
18500_ACEOF
18501
18502		 { echo "$as_me:$LINENO: result: not implemented" >&5
18503echo "${ECHO_T}not implemented" >&6; }
18504fi
18505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18506fi
18507
18508
18509
18510fi
18511done
18512
18513
18514
18515for ac_func in setresgid
18516do
18517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18521  echo $ECHO_N "(cached) $ECHO_C" >&6
18522else
18523  cat >conftest.$ac_ext <<_ACEOF
18524/* confdefs.h.  */
18525_ACEOF
18526cat confdefs.h >>conftest.$ac_ext
18527cat >>conftest.$ac_ext <<_ACEOF
18528/* end confdefs.h.  */
18529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18530   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18531#define $ac_func innocuous_$ac_func
18532
18533/* System header to define __stub macros and hopefully few prototypes,
18534    which can conflict with char $ac_func (); below.
18535    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18536    <limits.h> exists even on freestanding compilers.  */
18537
18538#ifdef __STDC__
18539# include <limits.h>
18540#else
18541# include <assert.h>
18542#endif
18543
18544#undef $ac_func
18545
18546/* Override any GCC internal prototype to avoid an error.
18547   Use char because int might match the return type of a GCC
18548   builtin and then its argument prototype would still apply.  */
18549#ifdef __cplusplus
18550extern "C"
18551#endif
18552char $ac_func ();
18553/* The GNU C library defines this for functions which it implements
18554    to always fail with ENOSYS.  Some functions are actually named
18555    something starting with __ and the normal name is an alias.  */
18556#if defined __stub_$ac_func || defined __stub___$ac_func
18557choke me
18558#endif
18559
18560int
18561main ()
18562{
18563return $ac_func ();
18564  ;
18565  return 0;
18566}
18567_ACEOF
18568rm -f conftest.$ac_objext conftest$ac_exeext
18569if { (ac_try="$ac_link"
18570case "(($ac_try" in
18571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572  *) ac_try_echo=$ac_try;;
18573esac
18574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575  (eval "$ac_link") 2>conftest.er1
18576  ac_status=$?
18577  grep -v '^ *+' conftest.er1 >conftest.err
18578  rm -f conftest.er1
18579  cat conftest.err >&5
18580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581  (exit $ac_status); } && {
18582	 test -z "$ac_c_werror_flag" ||
18583	 test ! -s conftest.err
18584       } && test -s conftest$ac_exeext &&
18585       $as_test_x conftest$ac_exeext; then
18586  eval "$as_ac_var=yes"
18587else
18588  echo "$as_me: failed program was:" >&5
18589sed 's/^/| /' conftest.$ac_ext >&5
18590
18591	eval "$as_ac_var=no"
18592fi
18593
18594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18595      conftest$ac_exeext conftest.$ac_ext
18596fi
18597ac_res=`eval echo '${'$as_ac_var'}'`
18598	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18599echo "${ECHO_T}$ac_res" >&6; }
18600if test `eval echo '${'$as_ac_var'}'` = yes; then
18601  cat >>confdefs.h <<_ACEOF
18602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18603_ACEOF
18604
18605		{ echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
18606echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
18607	if test "$cross_compiling" = yes; then
18608  { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
18609echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
18610
18611else
18612  cat >conftest.$ac_ext <<_ACEOF
18613/* confdefs.h.  */
18614_ACEOF
18615cat confdefs.h >>conftest.$ac_ext
18616cat >>conftest.$ac_ext <<_ACEOF
18617/* end confdefs.h.  */
18618
18619#include <stdlib.h>
18620#include <errno.h>
18621
18622int
18623main ()
18624{
18625
18626	errno=0;
18627	setresgid(0,0,0);
18628	if (errno==ENOSYS)
18629		exit(1);
18630	else
18631		exit(0);
18632
18633  ;
18634  return 0;
18635}
18636_ACEOF
18637rm -f conftest$ac_exeext
18638if { (ac_try="$ac_link"
18639case "(($ac_try" in
18640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641  *) ac_try_echo=$ac_try;;
18642esac
18643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644  (eval "$ac_link") 2>&5
18645  ac_status=$?
18646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18648  { (case "(($ac_try" in
18649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650  *) ac_try_echo=$ac_try;;
18651esac
18652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653  (eval "$ac_try") 2>&5
18654  ac_status=$?
18655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656  (exit $ac_status); }; }; then
18657  { echo "$as_me:$LINENO: result: yes" >&5
18658echo "${ECHO_T}yes" >&6; }
18659else
18660  echo "$as_me: program exited with status $ac_status" >&5
18661echo "$as_me: failed program was:" >&5
18662sed 's/^/| /' conftest.$ac_ext >&5
18663
18664( exit $ac_status )
18665
18666cat >>confdefs.h <<\_ACEOF
18667#define BROKEN_SETRESGID 1
18668_ACEOF
18669
18670		 { echo "$as_me:$LINENO: result: not implemented" >&5
18671echo "${ECHO_T}not implemented" >&6; }
18672fi
18673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18674fi
18675
18676
18677
18678fi
18679done
18680
18681
18682
18683for ac_func in realpath
18684do
18685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18686{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18688if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18689  echo $ECHO_N "(cached) $ECHO_C" >&6
18690else
18691  cat >conftest.$ac_ext <<_ACEOF
18692/* confdefs.h.  */
18693_ACEOF
18694cat confdefs.h >>conftest.$ac_ext
18695cat >>conftest.$ac_ext <<_ACEOF
18696/* end confdefs.h.  */
18697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18698   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18699#define $ac_func innocuous_$ac_func
18700
18701/* System header to define __stub macros and hopefully few prototypes,
18702    which can conflict with char $ac_func (); below.
18703    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18704    <limits.h> exists even on freestanding compilers.  */
18705
18706#ifdef __STDC__
18707# include <limits.h>
18708#else
18709# include <assert.h>
18710#endif
18711
18712#undef $ac_func
18713
18714/* Override any GCC internal prototype to avoid an error.
18715   Use char because int might match the return type of a GCC
18716   builtin and then its argument prototype would still apply.  */
18717#ifdef __cplusplus
18718extern "C"
18719#endif
18720char $ac_func ();
18721/* The GNU C library defines this for functions which it implements
18722    to always fail with ENOSYS.  Some functions are actually named
18723    something starting with __ and the normal name is an alias.  */
18724#if defined __stub_$ac_func || defined __stub___$ac_func
18725choke me
18726#endif
18727
18728int
18729main ()
18730{
18731return $ac_func ();
18732  ;
18733  return 0;
18734}
18735_ACEOF
18736rm -f conftest.$ac_objext conftest$ac_exeext
18737if { (ac_try="$ac_link"
18738case "(($ac_try" in
18739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740  *) ac_try_echo=$ac_try;;
18741esac
18742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743  (eval "$ac_link") 2>conftest.er1
18744  ac_status=$?
18745  grep -v '^ *+' conftest.er1 >conftest.err
18746  rm -f conftest.er1
18747  cat conftest.err >&5
18748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749  (exit $ac_status); } && {
18750	 test -z "$ac_c_werror_flag" ||
18751	 test ! -s conftest.err
18752       } && test -s conftest$ac_exeext &&
18753       $as_test_x conftest$ac_exeext; then
18754  eval "$as_ac_var=yes"
18755else
18756  echo "$as_me: failed program was:" >&5
18757sed 's/^/| /' conftest.$ac_ext >&5
18758
18759	eval "$as_ac_var=no"
18760fi
18761
18762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18763      conftest$ac_exeext conftest.$ac_ext
18764fi
18765ac_res=`eval echo '${'$as_ac_var'}'`
18766	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18767echo "${ECHO_T}$ac_res" >&6; }
18768if test `eval echo '${'$as_ac_var'}'` = yes; then
18769  cat >>confdefs.h <<_ACEOF
18770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18771_ACEOF
18772
18773					{ echo "$as_me:$LINENO: checking if realpath works with non-existent files" >&5
18774echo $ECHO_N "checking if realpath works with non-existent files... $ECHO_C" >&6; }
18775	if test "$cross_compiling" = yes; then
18776  { echo "$as_me:$LINENO: WARNING: cross compiling: assuming working" >&5
18777echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
18778
18779else
18780  cat >conftest.$ac_ext <<_ACEOF
18781/* confdefs.h.  */
18782_ACEOF
18783cat confdefs.h >>conftest.$ac_ext
18784cat >>conftest.$ac_ext <<_ACEOF
18785/* end confdefs.h.  */
18786
18787#include <limits.h>
18788#include <stdlib.h>
18789#include <errno.h>
18790
18791int
18792main ()
18793{
18794
18795		char buf[PATH_MAX];
18796		if (realpath("/opensshnonexistentfilename1234", buf) == NULL)
18797			if (errno == ENOENT)
18798				exit(1);
18799		exit(0);
18800
18801  ;
18802  return 0;
18803}
18804_ACEOF
18805rm -f conftest$ac_exeext
18806if { (ac_try="$ac_link"
18807case "(($ac_try" in
18808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809  *) ac_try_echo=$ac_try;;
18810esac
18811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812  (eval "$ac_link") 2>&5
18813  ac_status=$?
18814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18816  { (case "(($ac_try" in
18817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818  *) ac_try_echo=$ac_try;;
18819esac
18820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821  (eval "$ac_try") 2>&5
18822  ac_status=$?
18823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824  (exit $ac_status); }; }; then
18825  { echo "$as_me:$LINENO: result: yes" >&5
18826echo "${ECHO_T}yes" >&6; }
18827else
18828  echo "$as_me: program exited with status $ac_status" >&5
18829echo "$as_me: failed program was:" >&5
18830sed 's/^/| /' conftest.$ac_ext >&5
18831
18832( exit $ac_status )
18833
18834cat >>confdefs.h <<\_ACEOF
18835#define BROKEN_REALPATH 1
18836_ACEOF
18837
18838		 { echo "$as_me:$LINENO: result: no" >&5
18839echo "${ECHO_T}no" >&6; }
18840fi
18841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18842fi
18843
18844
18845
18846fi
18847done
18848
18849
18850
18851
18852for ac_func in gettimeofday time
18853do
18854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18855{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18857if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18858  echo $ECHO_N "(cached) $ECHO_C" >&6
18859else
18860  cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h.  */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h.  */
18866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18867   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18868#define $ac_func innocuous_$ac_func
18869
18870/* System header to define __stub macros and hopefully few prototypes,
18871    which can conflict with char $ac_func (); below.
18872    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18873    <limits.h> exists even on freestanding compilers.  */
18874
18875#ifdef __STDC__
18876# include <limits.h>
18877#else
18878# include <assert.h>
18879#endif
18880
18881#undef $ac_func
18882
18883/* Override any GCC internal prototype to avoid an error.
18884   Use char because int might match the return type of a GCC
18885   builtin and then its argument prototype would still apply.  */
18886#ifdef __cplusplus
18887extern "C"
18888#endif
18889char $ac_func ();
18890/* The GNU C library defines this for functions which it implements
18891    to always fail with ENOSYS.  Some functions are actually named
18892    something starting with __ and the normal name is an alias.  */
18893#if defined __stub_$ac_func || defined __stub___$ac_func
18894choke me
18895#endif
18896
18897int
18898main ()
18899{
18900return $ac_func ();
18901  ;
18902  return 0;
18903}
18904_ACEOF
18905rm -f conftest.$ac_objext conftest$ac_exeext
18906if { (ac_try="$ac_link"
18907case "(($ac_try" in
18908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909  *) ac_try_echo=$ac_try;;
18910esac
18911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912  (eval "$ac_link") 2>conftest.er1
18913  ac_status=$?
18914  grep -v '^ *+' conftest.er1 >conftest.err
18915  rm -f conftest.er1
18916  cat conftest.err >&5
18917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918  (exit $ac_status); } && {
18919	 test -z "$ac_c_werror_flag" ||
18920	 test ! -s conftest.err
18921       } && test -s conftest$ac_exeext &&
18922       $as_test_x conftest$ac_exeext; then
18923  eval "$as_ac_var=yes"
18924else
18925  echo "$as_me: failed program was:" >&5
18926sed 's/^/| /' conftest.$ac_ext >&5
18927
18928	eval "$as_ac_var=no"
18929fi
18930
18931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18932      conftest$ac_exeext conftest.$ac_ext
18933fi
18934ac_res=`eval echo '${'$as_ac_var'}'`
18935	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18936echo "${ECHO_T}$ac_res" >&6; }
18937if test `eval echo '${'$as_ac_var'}'` = yes; then
18938  cat >>confdefs.h <<_ACEOF
18939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18940_ACEOF
18941
18942fi
18943done
18944
18945
18946
18947
18948
18949
18950
18951for ac_func in endutent getutent getutid getutline pututline setutent
18952do
18953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18954{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18956if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18957  echo $ECHO_N "(cached) $ECHO_C" >&6
18958else
18959  cat >conftest.$ac_ext <<_ACEOF
18960/* confdefs.h.  */
18961_ACEOF
18962cat confdefs.h >>conftest.$ac_ext
18963cat >>conftest.$ac_ext <<_ACEOF
18964/* end confdefs.h.  */
18965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18966   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18967#define $ac_func innocuous_$ac_func
18968
18969/* System header to define __stub macros and hopefully few prototypes,
18970    which can conflict with char $ac_func (); below.
18971    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18972    <limits.h> exists even on freestanding compilers.  */
18973
18974#ifdef __STDC__
18975# include <limits.h>
18976#else
18977# include <assert.h>
18978#endif
18979
18980#undef $ac_func
18981
18982/* Override any GCC internal prototype to avoid an error.
18983   Use char because int might match the return type of a GCC
18984   builtin and then its argument prototype would still apply.  */
18985#ifdef __cplusplus
18986extern "C"
18987#endif
18988char $ac_func ();
18989/* The GNU C library defines this for functions which it implements
18990    to always fail with ENOSYS.  Some functions are actually named
18991    something starting with __ and the normal name is an alias.  */
18992#if defined __stub_$ac_func || defined __stub___$ac_func
18993choke me
18994#endif
18995
18996int
18997main ()
18998{
18999return $ac_func ();
19000  ;
19001  return 0;
19002}
19003_ACEOF
19004rm -f conftest.$ac_objext conftest$ac_exeext
19005if { (ac_try="$ac_link"
19006case "(($ac_try" in
19007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008  *) ac_try_echo=$ac_try;;
19009esac
19010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011  (eval "$ac_link") 2>conftest.er1
19012  ac_status=$?
19013  grep -v '^ *+' conftest.er1 >conftest.err
19014  rm -f conftest.er1
19015  cat conftest.err >&5
19016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017  (exit $ac_status); } && {
19018	 test -z "$ac_c_werror_flag" ||
19019	 test ! -s conftest.err
19020       } && test -s conftest$ac_exeext &&
19021       $as_test_x conftest$ac_exeext; then
19022  eval "$as_ac_var=yes"
19023else
19024  echo "$as_me: failed program was:" >&5
19025sed 's/^/| /' conftest.$ac_ext >&5
19026
19027	eval "$as_ac_var=no"
19028fi
19029
19030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19031      conftest$ac_exeext conftest.$ac_ext
19032fi
19033ac_res=`eval echo '${'$as_ac_var'}'`
19034	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19035echo "${ECHO_T}$ac_res" >&6; }
19036if test `eval echo '${'$as_ac_var'}'` = yes; then
19037  cat >>confdefs.h <<_ACEOF
19038#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19039_ACEOF
19040
19041fi
19042done
19043
19044
19045for ac_func in utmpname
19046do
19047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19048{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19051  echo $ECHO_N "(cached) $ECHO_C" >&6
19052else
19053  cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h.  */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h.  */
19059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19060   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19061#define $ac_func innocuous_$ac_func
19062
19063/* System header to define __stub macros and hopefully few prototypes,
19064    which can conflict with char $ac_func (); below.
19065    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19066    <limits.h> exists even on freestanding compilers.  */
19067
19068#ifdef __STDC__
19069# include <limits.h>
19070#else
19071# include <assert.h>
19072#endif
19073
19074#undef $ac_func
19075
19076/* Override any GCC internal prototype to avoid an error.
19077   Use char because int might match the return type of a GCC
19078   builtin and then its argument prototype would still apply.  */
19079#ifdef __cplusplus
19080extern "C"
19081#endif
19082char $ac_func ();
19083/* The GNU C library defines this for functions which it implements
19084    to always fail with ENOSYS.  Some functions are actually named
19085    something starting with __ and the normal name is an alias.  */
19086#if defined __stub_$ac_func || defined __stub___$ac_func
19087choke me
19088#endif
19089
19090int
19091main ()
19092{
19093return $ac_func ();
19094  ;
19095  return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext conftest$ac_exeext
19099if { (ac_try="$ac_link"
19100case "(($ac_try" in
19101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102  *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105  (eval "$ac_link") 2>conftest.er1
19106  ac_status=$?
19107  grep -v '^ *+' conftest.er1 >conftest.err
19108  rm -f conftest.er1
19109  cat conftest.err >&5
19110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111  (exit $ac_status); } && {
19112	 test -z "$ac_c_werror_flag" ||
19113	 test ! -s conftest.err
19114       } && test -s conftest$ac_exeext &&
19115       $as_test_x conftest$ac_exeext; then
19116  eval "$as_ac_var=yes"
19117else
19118  echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121	eval "$as_ac_var=no"
19122fi
19123
19124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19125      conftest$ac_exeext conftest.$ac_ext
19126fi
19127ac_res=`eval echo '${'$as_ac_var'}'`
19128	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19129echo "${ECHO_T}$ac_res" >&6; }
19130if test `eval echo '${'$as_ac_var'}'` = yes; then
19131  cat >>confdefs.h <<_ACEOF
19132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19133_ACEOF
19134
19135fi
19136done
19137
19138
19139
19140
19141
19142
19143
19144for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
19145do
19146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19147{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19150  echo $ECHO_N "(cached) $ECHO_C" >&6
19151else
19152  cat >conftest.$ac_ext <<_ACEOF
19153/* confdefs.h.  */
19154_ACEOF
19155cat confdefs.h >>conftest.$ac_ext
19156cat >>conftest.$ac_ext <<_ACEOF
19157/* end confdefs.h.  */
19158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19159   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19160#define $ac_func innocuous_$ac_func
19161
19162/* System header to define __stub macros and hopefully few prototypes,
19163    which can conflict with char $ac_func (); below.
19164    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19165    <limits.h> exists even on freestanding compilers.  */
19166
19167#ifdef __STDC__
19168# include <limits.h>
19169#else
19170# include <assert.h>
19171#endif
19172
19173#undef $ac_func
19174
19175/* Override any GCC internal prototype to avoid an error.
19176   Use char because int might match the return type of a GCC
19177   builtin and then its argument prototype would still apply.  */
19178#ifdef __cplusplus
19179extern "C"
19180#endif
19181char $ac_func ();
19182/* The GNU C library defines this for functions which it implements
19183    to always fail with ENOSYS.  Some functions are actually named
19184    something starting with __ and the normal name is an alias.  */
19185#if defined __stub_$ac_func || defined __stub___$ac_func
19186choke me
19187#endif
19188
19189int
19190main ()
19191{
19192return $ac_func ();
19193  ;
19194  return 0;
19195}
19196_ACEOF
19197rm -f conftest.$ac_objext conftest$ac_exeext
19198if { (ac_try="$ac_link"
19199case "(($ac_try" in
19200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201  *) ac_try_echo=$ac_try;;
19202esac
19203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204  (eval "$ac_link") 2>conftest.er1
19205  ac_status=$?
19206  grep -v '^ *+' conftest.er1 >conftest.err
19207  rm -f conftest.er1
19208  cat conftest.err >&5
19209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210  (exit $ac_status); } && {
19211	 test -z "$ac_c_werror_flag" ||
19212	 test ! -s conftest.err
19213       } && test -s conftest$ac_exeext &&
19214       $as_test_x conftest$ac_exeext; then
19215  eval "$as_ac_var=yes"
19216else
19217  echo "$as_me: failed program was:" >&5
19218sed 's/^/| /' conftest.$ac_ext >&5
19219
19220	eval "$as_ac_var=no"
19221fi
19222
19223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19224      conftest$ac_exeext conftest.$ac_ext
19225fi
19226ac_res=`eval echo '${'$as_ac_var'}'`
19227	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19228echo "${ECHO_T}$ac_res" >&6; }
19229if test `eval echo '${'$as_ac_var'}'` = yes; then
19230  cat >>confdefs.h <<_ACEOF
19231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19232_ACEOF
19233
19234fi
19235done
19236
19237
19238
19239
19240for ac_func in setutxdb setutxent utmpxname
19241do
19242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19243{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19245if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19246  echo $ECHO_N "(cached) $ECHO_C" >&6
19247else
19248  cat >conftest.$ac_ext <<_ACEOF
19249/* confdefs.h.  */
19250_ACEOF
19251cat confdefs.h >>conftest.$ac_ext
19252cat >>conftest.$ac_ext <<_ACEOF
19253/* end confdefs.h.  */
19254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19255   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19256#define $ac_func innocuous_$ac_func
19257
19258/* System header to define __stub macros and hopefully few prototypes,
19259    which can conflict with char $ac_func (); below.
19260    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19261    <limits.h> exists even on freestanding compilers.  */
19262
19263#ifdef __STDC__
19264# include <limits.h>
19265#else
19266# include <assert.h>
19267#endif
19268
19269#undef $ac_func
19270
19271/* Override any GCC internal prototype to avoid an error.
19272   Use char because int might match the return type of a GCC
19273   builtin and then its argument prototype would still apply.  */
19274#ifdef __cplusplus
19275extern "C"
19276#endif
19277char $ac_func ();
19278/* The GNU C library defines this for functions which it implements
19279    to always fail with ENOSYS.  Some functions are actually named
19280    something starting with __ and the normal name is an alias.  */
19281#if defined __stub_$ac_func || defined __stub___$ac_func
19282choke me
19283#endif
19284
19285int
19286main ()
19287{
19288return $ac_func ();
19289  ;
19290  return 0;
19291}
19292_ACEOF
19293rm -f conftest.$ac_objext conftest$ac_exeext
19294if { (ac_try="$ac_link"
19295case "(($ac_try" in
19296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297  *) ac_try_echo=$ac_try;;
19298esac
19299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300  (eval "$ac_link") 2>conftest.er1
19301  ac_status=$?
19302  grep -v '^ *+' conftest.er1 >conftest.err
19303  rm -f conftest.er1
19304  cat conftest.err >&5
19305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306  (exit $ac_status); } && {
19307	 test -z "$ac_c_werror_flag" ||
19308	 test ! -s conftest.err
19309       } && test -s conftest$ac_exeext &&
19310       $as_test_x conftest$ac_exeext; then
19311  eval "$as_ac_var=yes"
19312else
19313  echo "$as_me: failed program was:" >&5
19314sed 's/^/| /' conftest.$ac_ext >&5
19315
19316	eval "$as_ac_var=no"
19317fi
19318
19319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19320      conftest$ac_exeext conftest.$ac_ext
19321fi
19322ac_res=`eval echo '${'$as_ac_var'}'`
19323	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19324echo "${ECHO_T}$ac_res" >&6; }
19325if test `eval echo '${'$as_ac_var'}'` = yes; then
19326  cat >>confdefs.h <<_ACEOF
19327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19328_ACEOF
19329
19330fi
19331done
19332
19333
19334for ac_func in getlastlogxbyname
19335do
19336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19337{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19339if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19340  echo $ECHO_N "(cached) $ECHO_C" >&6
19341else
19342  cat >conftest.$ac_ext <<_ACEOF
19343/* confdefs.h.  */
19344_ACEOF
19345cat confdefs.h >>conftest.$ac_ext
19346cat >>conftest.$ac_ext <<_ACEOF
19347/* end confdefs.h.  */
19348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19349   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19350#define $ac_func innocuous_$ac_func
19351
19352/* System header to define __stub macros and hopefully few prototypes,
19353    which can conflict with char $ac_func (); below.
19354    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19355    <limits.h> exists even on freestanding compilers.  */
19356
19357#ifdef __STDC__
19358# include <limits.h>
19359#else
19360# include <assert.h>
19361#endif
19362
19363#undef $ac_func
19364
19365/* Override any GCC internal prototype to avoid an error.
19366   Use char because int might match the return type of a GCC
19367   builtin and then its argument prototype would still apply.  */
19368#ifdef __cplusplus
19369extern "C"
19370#endif
19371char $ac_func ();
19372/* The GNU C library defines this for functions which it implements
19373    to always fail with ENOSYS.  Some functions are actually named
19374    something starting with __ and the normal name is an alias.  */
19375#if defined __stub_$ac_func || defined __stub___$ac_func
19376choke me
19377#endif
19378
19379int
19380main ()
19381{
19382return $ac_func ();
19383  ;
19384  return 0;
19385}
19386_ACEOF
19387rm -f conftest.$ac_objext conftest$ac_exeext
19388if { (ac_try="$ac_link"
19389case "(($ac_try" in
19390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391  *) ac_try_echo=$ac_try;;
19392esac
19393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394  (eval "$ac_link") 2>conftest.er1
19395  ac_status=$?
19396  grep -v '^ *+' conftest.er1 >conftest.err
19397  rm -f conftest.er1
19398  cat conftest.err >&5
19399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400  (exit $ac_status); } && {
19401	 test -z "$ac_c_werror_flag" ||
19402	 test ! -s conftest.err
19403       } && test -s conftest$ac_exeext &&
19404       $as_test_x conftest$ac_exeext; then
19405  eval "$as_ac_var=yes"
19406else
19407  echo "$as_me: failed program was:" >&5
19408sed 's/^/| /' conftest.$ac_ext >&5
19409
19410	eval "$as_ac_var=no"
19411fi
19412
19413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19414      conftest$ac_exeext conftest.$ac_ext
19415fi
19416ac_res=`eval echo '${'$as_ac_var'}'`
19417	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19418echo "${ECHO_T}$ac_res" >&6; }
19419if test `eval echo '${'$as_ac_var'}'` = yes; then
19420  cat >>confdefs.h <<_ACEOF
19421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19422_ACEOF
19423
19424fi
19425done
19426
19427
19428{ echo "$as_me:$LINENO: checking for daemon" >&5
19429echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
19430if test "${ac_cv_func_daemon+set}" = set; then
19431  echo $ECHO_N "(cached) $ECHO_C" >&6
19432else
19433  cat >conftest.$ac_ext <<_ACEOF
19434/* confdefs.h.  */
19435_ACEOF
19436cat confdefs.h >>conftest.$ac_ext
19437cat >>conftest.$ac_ext <<_ACEOF
19438/* end confdefs.h.  */
19439/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
19440   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19441#define daemon innocuous_daemon
19442
19443/* System header to define __stub macros and hopefully few prototypes,
19444    which can conflict with char daemon (); below.
19445    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19446    <limits.h> exists even on freestanding compilers.  */
19447
19448#ifdef __STDC__
19449# include <limits.h>
19450#else
19451# include <assert.h>
19452#endif
19453
19454#undef daemon
19455
19456/* Override any GCC internal prototype to avoid an error.
19457   Use char because int might match the return type of a GCC
19458   builtin and then its argument prototype would still apply.  */
19459#ifdef __cplusplus
19460extern "C"
19461#endif
19462char daemon ();
19463/* The GNU C library defines this for functions which it implements
19464    to always fail with ENOSYS.  Some functions are actually named
19465    something starting with __ and the normal name is an alias.  */
19466#if defined __stub_daemon || defined __stub___daemon
19467choke me
19468#endif
19469
19470int
19471main ()
19472{
19473return daemon ();
19474  ;
19475  return 0;
19476}
19477_ACEOF
19478rm -f conftest.$ac_objext conftest$ac_exeext
19479if { (ac_try="$ac_link"
19480case "(($ac_try" in
19481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482  *) ac_try_echo=$ac_try;;
19483esac
19484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485  (eval "$ac_link") 2>conftest.er1
19486  ac_status=$?
19487  grep -v '^ *+' conftest.er1 >conftest.err
19488  rm -f conftest.er1
19489  cat conftest.err >&5
19490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491  (exit $ac_status); } && {
19492	 test -z "$ac_c_werror_flag" ||
19493	 test ! -s conftest.err
19494       } && test -s conftest$ac_exeext &&
19495       $as_test_x conftest$ac_exeext; then
19496  ac_cv_func_daemon=yes
19497else
19498  echo "$as_me: failed program was:" >&5
19499sed 's/^/| /' conftest.$ac_ext >&5
19500
19501	ac_cv_func_daemon=no
19502fi
19503
19504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19505      conftest$ac_exeext conftest.$ac_ext
19506fi
19507{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
19508echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
19509if test $ac_cv_func_daemon = yes; then
19510
19511cat >>confdefs.h <<\_ACEOF
19512#define HAVE_DAEMON 1
19513_ACEOF
19514
19515else
19516  { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
19517echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
19518if test "${ac_cv_lib_bsd_daemon+set}" = set; then
19519  echo $ECHO_N "(cached) $ECHO_C" >&6
19520else
19521  ac_check_lib_save_LIBS=$LIBS
19522LIBS="-lbsd  $LIBS"
19523cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h.  */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h.  */
19529
19530/* Override any GCC internal prototype to avoid an error.
19531   Use char because int might match the return type of a GCC
19532   builtin and then its argument prototype would still apply.  */
19533#ifdef __cplusplus
19534extern "C"
19535#endif
19536char daemon ();
19537int
19538main ()
19539{
19540return daemon ();
19541  ;
19542  return 0;
19543}
19544_ACEOF
19545rm -f conftest.$ac_objext conftest$ac_exeext
19546if { (ac_try="$ac_link"
19547case "(($ac_try" in
19548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549  *) ac_try_echo=$ac_try;;
19550esac
19551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552  (eval "$ac_link") 2>conftest.er1
19553  ac_status=$?
19554  grep -v '^ *+' conftest.er1 >conftest.err
19555  rm -f conftest.er1
19556  cat conftest.err >&5
19557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558  (exit $ac_status); } && {
19559	 test -z "$ac_c_werror_flag" ||
19560	 test ! -s conftest.err
19561       } && test -s conftest$ac_exeext &&
19562       $as_test_x conftest$ac_exeext; then
19563  ac_cv_lib_bsd_daemon=yes
19564else
19565  echo "$as_me: failed program was:" >&5
19566sed 's/^/| /' conftest.$ac_ext >&5
19567
19568	ac_cv_lib_bsd_daemon=no
19569fi
19570
19571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19572      conftest$ac_exeext conftest.$ac_ext
19573LIBS=$ac_check_lib_save_LIBS
19574fi
19575{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
19576echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
19577if test $ac_cv_lib_bsd_daemon = yes; then
19578  LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
19579#define HAVE_DAEMON 1
19580_ACEOF
19581
19582fi
19583
19584
19585fi
19586
19587
19588{ echo "$as_me:$LINENO: checking for getpagesize" >&5
19589echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
19590if test "${ac_cv_func_getpagesize+set}" = set; then
19591  echo $ECHO_N "(cached) $ECHO_C" >&6
19592else
19593  cat >conftest.$ac_ext <<_ACEOF
19594/* confdefs.h.  */
19595_ACEOF
19596cat confdefs.h >>conftest.$ac_ext
19597cat >>conftest.$ac_ext <<_ACEOF
19598/* end confdefs.h.  */
19599/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
19600   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19601#define getpagesize innocuous_getpagesize
19602
19603/* System header to define __stub macros and hopefully few prototypes,
19604    which can conflict with char getpagesize (); below.
19605    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19606    <limits.h> exists even on freestanding compilers.  */
19607
19608#ifdef __STDC__
19609# include <limits.h>
19610#else
19611# include <assert.h>
19612#endif
19613
19614#undef getpagesize
19615
19616/* Override any GCC internal prototype to avoid an error.
19617   Use char because int might match the return type of a GCC
19618   builtin and then its argument prototype would still apply.  */
19619#ifdef __cplusplus
19620extern "C"
19621#endif
19622char getpagesize ();
19623/* The GNU C library defines this for functions which it implements
19624    to always fail with ENOSYS.  Some functions are actually named
19625    something starting with __ and the normal name is an alias.  */
19626#if defined __stub_getpagesize || defined __stub___getpagesize
19627choke me
19628#endif
19629
19630int
19631main ()
19632{
19633return getpagesize ();
19634  ;
19635  return 0;
19636}
19637_ACEOF
19638rm -f conftest.$ac_objext conftest$ac_exeext
19639if { (ac_try="$ac_link"
19640case "(($ac_try" in
19641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642  *) ac_try_echo=$ac_try;;
19643esac
19644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645  (eval "$ac_link") 2>conftest.er1
19646  ac_status=$?
19647  grep -v '^ *+' conftest.er1 >conftest.err
19648  rm -f conftest.er1
19649  cat conftest.err >&5
19650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651  (exit $ac_status); } && {
19652	 test -z "$ac_c_werror_flag" ||
19653	 test ! -s conftest.err
19654       } && test -s conftest$ac_exeext &&
19655       $as_test_x conftest$ac_exeext; then
19656  ac_cv_func_getpagesize=yes
19657else
19658  echo "$as_me: failed program was:" >&5
19659sed 's/^/| /' conftest.$ac_ext >&5
19660
19661	ac_cv_func_getpagesize=no
19662fi
19663
19664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19665      conftest$ac_exeext conftest.$ac_ext
19666fi
19667{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
19668echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
19669if test $ac_cv_func_getpagesize = yes; then
19670
19671cat >>confdefs.h <<\_ACEOF
19672#define HAVE_GETPAGESIZE 1
19673_ACEOF
19674
19675else
19676  { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
19677echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
19678if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
19679  echo $ECHO_N "(cached) $ECHO_C" >&6
19680else
19681  ac_check_lib_save_LIBS=$LIBS
19682LIBS="-lucb  $LIBS"
19683cat >conftest.$ac_ext <<_ACEOF
19684/* confdefs.h.  */
19685_ACEOF
19686cat confdefs.h >>conftest.$ac_ext
19687cat >>conftest.$ac_ext <<_ACEOF
19688/* end confdefs.h.  */
19689
19690/* Override any GCC internal prototype to avoid an error.
19691   Use char because int might match the return type of a GCC
19692   builtin and then its argument prototype would still apply.  */
19693#ifdef __cplusplus
19694extern "C"
19695#endif
19696char getpagesize ();
19697int
19698main ()
19699{
19700return getpagesize ();
19701  ;
19702  return 0;
19703}
19704_ACEOF
19705rm -f conftest.$ac_objext conftest$ac_exeext
19706if { (ac_try="$ac_link"
19707case "(($ac_try" in
19708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709  *) ac_try_echo=$ac_try;;
19710esac
19711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712  (eval "$ac_link") 2>conftest.er1
19713  ac_status=$?
19714  grep -v '^ *+' conftest.er1 >conftest.err
19715  rm -f conftest.er1
19716  cat conftest.err >&5
19717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718  (exit $ac_status); } && {
19719	 test -z "$ac_c_werror_flag" ||
19720	 test ! -s conftest.err
19721       } && test -s conftest$ac_exeext &&
19722       $as_test_x conftest$ac_exeext; then
19723  ac_cv_lib_ucb_getpagesize=yes
19724else
19725  echo "$as_me: failed program was:" >&5
19726sed 's/^/| /' conftest.$ac_ext >&5
19727
19728	ac_cv_lib_ucb_getpagesize=no
19729fi
19730
19731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19732      conftest$ac_exeext conftest.$ac_ext
19733LIBS=$ac_check_lib_save_LIBS
19734fi
19735{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
19736echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
19737if test $ac_cv_lib_ucb_getpagesize = yes; then
19738  LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
19739#define HAVE_GETPAGESIZE 1
19740_ACEOF
19741
19742fi
19743
19744
19745fi
19746
19747
19748# Check for broken snprintf
19749if test "x$ac_cv_func_snprintf" = "xyes" ; then
19750	{ echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
19751echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
19752	if test "$cross_compiling" = yes; then
19753   { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
19754echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
19755
19756else
19757  cat >conftest.$ac_ext <<_ACEOF
19758/* confdefs.h.  */
19759_ACEOF
19760cat confdefs.h >>conftest.$ac_ext
19761cat >>conftest.$ac_ext <<_ACEOF
19762/* end confdefs.h.  */
19763 #include <stdio.h>
19764int
19765main ()
19766{
19767
19768	char b[5];
19769	snprintf(b,5,"123456789");
19770	exit(b[4]!='\0');
19771
19772  ;
19773  return 0;
19774}
19775_ACEOF
19776rm -f conftest$ac_exeext
19777if { (ac_try="$ac_link"
19778case "(($ac_try" in
19779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780  *) ac_try_echo=$ac_try;;
19781esac
19782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783  (eval "$ac_link") 2>&5
19784  ac_status=$?
19785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19787  { (case "(($ac_try" in
19788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789  *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792  (eval "$ac_try") 2>&5
19793  ac_status=$?
19794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795  (exit $ac_status); }; }; then
19796  { echo "$as_me:$LINENO: result: yes" >&5
19797echo "${ECHO_T}yes" >&6; }
19798else
19799  echo "$as_me: program exited with status $ac_status" >&5
19800echo "$as_me: failed program was:" >&5
19801sed 's/^/| /' conftest.$ac_ext >&5
19802
19803( exit $ac_status )
19804
19805			{ echo "$as_me:$LINENO: result: no" >&5
19806echo "${ECHO_T}no" >&6; }
19807
19808cat >>confdefs.h <<\_ACEOF
19809#define BROKEN_SNPRINTF 1
19810_ACEOF
19811
19812			{ echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
19813echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
19814
19815fi
19816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19817fi
19818
19819
19820fi
19821
19822# We depend on vsnprintf returning the right thing on overflow: the
19823# number of characters it tried to create (as per SUSv3)
19824if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
19825	{ echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
19826echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
19827	if test "$cross_compiling" = yes; then
19828   { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
19829echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
19830
19831else
19832  cat >conftest.$ac_ext <<_ACEOF
19833/* confdefs.h.  */
19834_ACEOF
19835cat confdefs.h >>conftest.$ac_ext
19836cat >>conftest.$ac_ext <<_ACEOF
19837/* end confdefs.h.  */
19838
19839#include <sys/types.h>
19840#include <stdio.h>
19841#include <stdarg.h>
19842
19843int x_snprintf(char *str, size_t count, const char *fmt, ...)
19844{
19845	size_t ret;
19846	va_list ap;
19847
19848	va_start(ap, fmt);
19849	ret = vsnprintf(str, count, fmt, ap);
19850	va_end(ap);
19851	return ret;
19852}
19853
19854int
19855main ()
19856{
19857
19858char x[1];
19859if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
19860	return 1;
19861if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
19862	return 1;
19863return 0;
19864
19865  ;
19866  return 0;
19867}
19868_ACEOF
19869rm -f conftest$ac_exeext
19870if { (ac_try="$ac_link"
19871case "(($ac_try" in
19872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873  *) ac_try_echo=$ac_try;;
19874esac
19875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876  (eval "$ac_link") 2>&5
19877  ac_status=$?
19878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19880  { (case "(($ac_try" in
19881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882  *) ac_try_echo=$ac_try;;
19883esac
19884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885  (eval "$ac_try") 2>&5
19886  ac_status=$?
19887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888  (exit $ac_status); }; }; then
19889  { echo "$as_me:$LINENO: result: yes" >&5
19890echo "${ECHO_T}yes" >&6; }
19891else
19892  echo "$as_me: program exited with status $ac_status" >&5
19893echo "$as_me: failed program was:" >&5
19894sed 's/^/| /' conftest.$ac_ext >&5
19895
19896( exit $ac_status )
19897
19898			{ echo "$as_me:$LINENO: result: no" >&5
19899echo "${ECHO_T}no" >&6; }
19900
19901cat >>confdefs.h <<\_ACEOF
19902#define BROKEN_SNPRINTF 1
19903_ACEOF
19904
19905			{ echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
19906echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
19907
19908fi
19909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19910fi
19911
19912
19913fi
19914
19915# On systems where [v]snprintf is broken, but is declared in stdio,
19916# check that the fmt argument is const char * or just char *.
19917# This is only useful for when BROKEN_SNPRINTF
19918{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
19919echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
19920cat >conftest.$ac_ext <<_ACEOF
19921/* confdefs.h.  */
19922_ACEOF
19923cat confdefs.h >>conftest.$ac_ext
19924cat >>conftest.$ac_ext <<_ACEOF
19925/* end confdefs.h.  */
19926
19927#include <stdio.h>
19928int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
19929
19930int
19931main ()
19932{
19933
19934	snprintf(0, 0, 0);
19935
19936  ;
19937  return 0;
19938}
19939_ACEOF
19940rm -f conftest.$ac_objext
19941if { (ac_try="$ac_compile"
19942case "(($ac_try" in
19943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944  *) ac_try_echo=$ac_try;;
19945esac
19946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947  (eval "$ac_compile") 2>conftest.er1
19948  ac_status=$?
19949  grep -v '^ *+' conftest.er1 >conftest.err
19950  rm -f conftest.er1
19951  cat conftest.err >&5
19952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953  (exit $ac_status); } && {
19954	 test -z "$ac_c_werror_flag" ||
19955	 test ! -s conftest.err
19956       } && test -s conftest.$ac_objext; then
19957  { echo "$as_me:$LINENO: result: yes" >&5
19958echo "${ECHO_T}yes" >&6; }
19959
19960cat >>confdefs.h <<\_ACEOF
19961#define SNPRINTF_CONST const
19962_ACEOF
19963
19964else
19965  echo "$as_me: failed program was:" >&5
19966sed 's/^/| /' conftest.$ac_ext >&5
19967
19968	{ echo "$as_me:$LINENO: result: no" >&5
19969echo "${ECHO_T}no" >&6; }
19970    cat >>confdefs.h <<\_ACEOF
19971#define SNPRINTF_CONST /* not const */
19972_ACEOF
19973
19974fi
19975
19976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977
19978# Check for missing getpeereid (or equiv) support
19979NO_PEERCHECK=""
19980if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
19981	{ echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
19982echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
19983	cat >conftest.$ac_ext <<_ACEOF
19984/* confdefs.h.  */
19985_ACEOF
19986cat confdefs.h >>conftest.$ac_ext
19987cat >>conftest.$ac_ext <<_ACEOF
19988/* end confdefs.h.  */
19989
19990#include <sys/types.h>
19991#include <sys/socket.h>
19992int
19993main ()
19994{
19995int i = SO_PEERCRED;
19996  ;
19997  return 0;
19998}
19999_ACEOF
20000rm -f conftest.$ac_objext
20001if { (ac_try="$ac_compile"
20002case "(($ac_try" in
20003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004  *) ac_try_echo=$ac_try;;
20005esac
20006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007  (eval "$ac_compile") 2>conftest.er1
20008  ac_status=$?
20009  grep -v '^ *+' conftest.er1 >conftest.err
20010  rm -f conftest.er1
20011  cat conftest.err >&5
20012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013  (exit $ac_status); } && {
20014	 test -z "$ac_c_werror_flag" ||
20015	 test ! -s conftest.err
20016       } && test -s conftest.$ac_objext; then
20017   { echo "$as_me:$LINENO: result: yes" >&5
20018echo "${ECHO_T}yes" >&6; }
20019
20020cat >>confdefs.h <<\_ACEOF
20021#define HAVE_SO_PEERCRED 1
20022_ACEOF
20023
20024
20025else
20026  echo "$as_me: failed program was:" >&5
20027sed 's/^/| /' conftest.$ac_ext >&5
20028
20029	{ echo "$as_me:$LINENO: result: no" >&5
20030echo "${ECHO_T}no" >&6; }
20031		NO_PEERCHECK=1
20032
20033fi
20034
20035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20036fi
20037
20038if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
20039{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
20040echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
20041if test "$cross_compiling" = yes; then
20042
20043		{ echo "$as_me:$LINENO: result: yes" >&5
20044echo "${ECHO_T}yes" >&6; }
20045		cat >>confdefs.h <<\_ACEOF
20046#define HAVE_STRICT_MKSTEMP 1
20047_ACEOF
20048
20049
20050
20051else
20052  cat >conftest.$ac_ext <<_ACEOF
20053/* confdefs.h.  */
20054_ACEOF
20055cat confdefs.h >>conftest.$ac_ext
20056cat >>conftest.$ac_ext <<_ACEOF
20057/* end confdefs.h.  */
20058
20059#include <stdlib.h>
20060
20061int
20062main ()
20063{
20064
20065	char template[]="conftest.mkstemp-test";
20066	if (mkstemp(template) == -1)
20067		exit(1);
20068	unlink(template);
20069	exit(0);
20070
20071  ;
20072  return 0;
20073}
20074_ACEOF
20075rm -f conftest$ac_exeext
20076if { (ac_try="$ac_link"
20077case "(($ac_try" in
20078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079  *) ac_try_echo=$ac_try;;
20080esac
20081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082  (eval "$ac_link") 2>&5
20083  ac_status=$?
20084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20086  { (case "(($ac_try" in
20087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088  *) ac_try_echo=$ac_try;;
20089esac
20090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091  (eval "$ac_try") 2>&5
20092  ac_status=$?
20093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094  (exit $ac_status); }; }; then
20095
20096		{ echo "$as_me:$LINENO: result: no" >&5
20097echo "${ECHO_T}no" >&6; }
20098
20099else
20100  echo "$as_me: program exited with status $ac_status" >&5
20101echo "$as_me: failed program was:" >&5
20102sed 's/^/| /' conftest.$ac_ext >&5
20103
20104( exit $ac_status )
20105
20106		{ echo "$as_me:$LINENO: result: yes" >&5
20107echo "${ECHO_T}yes" >&6; }
20108
20109cat >>confdefs.h <<\_ACEOF
20110#define HAVE_STRICT_MKSTEMP 1
20111_ACEOF
20112
20113
20114fi
20115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20116fi
20117
20118
20119fi
20120
20121if test ! -z "$check_for_openpty_ctty_bug"; then
20122	{ echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
20123echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
20124	if test "$cross_compiling" = yes; then
20125
20126			{ echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
20127echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
20128
20129
20130else
20131  cat >conftest.$ac_ext <<_ACEOF
20132/* confdefs.h.  */
20133_ACEOF
20134cat confdefs.h >>conftest.$ac_ext
20135cat >>conftest.$ac_ext <<_ACEOF
20136/* end confdefs.h.  */
20137
20138#include <stdio.h>
20139#include <sys/fcntl.h>
20140#include <sys/types.h>
20141#include <sys/wait.h>
20142
20143int
20144main ()
20145{
20146
20147	pid_t pid;
20148	int fd, ptyfd, ttyfd, status;
20149
20150	pid = fork();
20151	if (pid < 0) {		/* failed */
20152		exit(1);
20153	} else if (pid > 0) {	/* parent */
20154		waitpid(pid, &status, 0);
20155		if (WIFEXITED(status))
20156			exit(WEXITSTATUS(status));
20157		else
20158			exit(2);
20159	} else {		/* child */
20160		close(0); close(1); close(2);
20161		setsid();
20162		openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
20163		fd = open("/dev/tty", O_RDWR | O_NOCTTY);
20164		if (fd >= 0)
20165			exit(3);	/* Acquired ctty: broken */
20166		else
20167			exit(0);	/* Did not acquire ctty: OK */
20168	}
20169
20170  ;
20171  return 0;
20172}
20173_ACEOF
20174rm -f conftest$ac_exeext
20175if { (ac_try="$ac_link"
20176case "(($ac_try" in
20177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178  *) ac_try_echo=$ac_try;;
20179esac
20180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181  (eval "$ac_link") 2>&5
20182  ac_status=$?
20183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20185  { (case "(($ac_try" in
20186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187  *) ac_try_echo=$ac_try;;
20188esac
20189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190  (eval "$ac_try") 2>&5
20191  ac_status=$?
20192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193  (exit $ac_status); }; }; then
20194
20195			{ echo "$as_me:$LINENO: result: yes" >&5
20196echo "${ECHO_T}yes" >&6; }
20197
20198else
20199  echo "$as_me: program exited with status $ac_status" >&5
20200echo "$as_me: failed program was:" >&5
20201sed 's/^/| /' conftest.$ac_ext >&5
20202
20203( exit $ac_status )
20204
20205			{ echo "$as_me:$LINENO: result: no" >&5
20206echo "${ECHO_T}no" >&6; }
20207			cat >>confdefs.h <<\_ACEOF
20208#define SSHD_ACQUIRES_CTTY 1
20209_ACEOF
20210
20211
20212fi
20213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20214fi
20215
20216
20217fi
20218
20219if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
20220    test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
20221	{ echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
20222echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
20223	if test "$cross_compiling" = yes; then
20224
20225			{ echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
20226echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
20227
20228
20229else
20230  cat >conftest.$ac_ext <<_ACEOF
20231/* confdefs.h.  */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h.  */
20236
20237#include <stdio.h>
20238#include <sys/socket.h>
20239#include <netdb.h>
20240#include <errno.h>
20241#include <netinet/in.h>
20242
20243#define TEST_PORT "2222"
20244
20245int
20246main ()
20247{
20248
20249	int err, sock;
20250	struct addrinfo *gai_ai, *ai, hints;
20251	char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
20252
20253	memset(&hints, 0, sizeof(hints));
20254	hints.ai_family = PF_UNSPEC;
20255	hints.ai_socktype = SOCK_STREAM;
20256	hints.ai_flags = AI_PASSIVE;
20257
20258	err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
20259	if (err != 0) {
20260		fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
20261		exit(1);
20262	}
20263
20264	for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
20265		if (ai->ai_family != AF_INET6)
20266			continue;
20267
20268		err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
20269		    sizeof(ntop), strport, sizeof(strport),
20270		    NI_NUMERICHOST|NI_NUMERICSERV);
20271
20272		if (err != 0) {
20273			if (err == EAI_SYSTEM)
20274				perror("getnameinfo EAI_SYSTEM");
20275			else
20276				fprintf(stderr, "getnameinfo failed: %s\n",
20277				    gai_strerror(err));
20278			exit(2);
20279		}
20280
20281		sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
20282		if (sock < 0)
20283			perror("socket");
20284		if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
20285			if (errno == EBADF)
20286				exit(3);
20287		}
20288	}
20289	exit(0);
20290
20291  ;
20292  return 0;
20293}
20294_ACEOF
20295rm -f conftest$ac_exeext
20296if { (ac_try="$ac_link"
20297case "(($ac_try" in
20298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299  *) ac_try_echo=$ac_try;;
20300esac
20301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302  (eval "$ac_link") 2>&5
20303  ac_status=$?
20304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20306  { (case "(($ac_try" in
20307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308  *) ac_try_echo=$ac_try;;
20309esac
20310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311  (eval "$ac_try") 2>&5
20312  ac_status=$?
20313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314  (exit $ac_status); }; }; then
20315
20316			{ echo "$as_me:$LINENO: result: yes" >&5
20317echo "${ECHO_T}yes" >&6; }
20318
20319else
20320  echo "$as_me: program exited with status $ac_status" >&5
20321echo "$as_me: failed program was:" >&5
20322sed 's/^/| /' conftest.$ac_ext >&5
20323
20324( exit $ac_status )
20325
20326			{ echo "$as_me:$LINENO: result: no" >&5
20327echo "${ECHO_T}no" >&6; }
20328			cat >>confdefs.h <<\_ACEOF
20329#define BROKEN_GETADDRINFO 1
20330_ACEOF
20331
20332
20333fi
20334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20335fi
20336
20337
20338fi
20339
20340if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
20341    test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
20342	{ echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
20343echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
20344	if test "$cross_compiling" = yes; then
20345
20346			{ echo "$as_me:$LINENO: result: cross-compiling, assuming no" >&5
20347echo "${ECHO_T}cross-compiling, assuming no" >&6; }
20348
20349
20350else
20351  cat >conftest.$ac_ext <<_ACEOF
20352/* confdefs.h.  */
20353_ACEOF
20354cat confdefs.h >>conftest.$ac_ext
20355cat >>conftest.$ac_ext <<_ACEOF
20356/* end confdefs.h.  */
20357
20358#include <stdio.h>
20359#include <sys/socket.h>
20360#include <netdb.h>
20361#include <errno.h>
20362#include <netinet/in.h>
20363
20364#define TEST_PORT "2222"
20365
20366int
20367main ()
20368{
20369
20370	int err, sock;
20371	struct addrinfo *gai_ai, *ai, hints;
20372	char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
20373
20374	memset(&hints, 0, sizeof(hints));
20375	hints.ai_family = PF_UNSPEC;
20376	hints.ai_socktype = SOCK_STREAM;
20377	hints.ai_flags = AI_PASSIVE;
20378
20379	err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
20380	if (err != 0) {
20381		fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
20382		exit(1);
20383	}
20384
20385	for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
20386		if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
20387			continue;
20388
20389		err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
20390		    sizeof(ntop), strport, sizeof(strport),
20391		    NI_NUMERICHOST|NI_NUMERICSERV);
20392
20393		if (ai->ai_family == AF_INET && err != 0) {
20394			perror("getnameinfo");
20395			exit(2);
20396		}
20397	}
20398	exit(0);
20399
20400  ;
20401  return 0;
20402}
20403_ACEOF
20404rm -f conftest$ac_exeext
20405if { (ac_try="$ac_link"
20406case "(($ac_try" in
20407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408  *) ac_try_echo=$ac_try;;
20409esac
20410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411  (eval "$ac_link") 2>&5
20412  ac_status=$?
20413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20415  { (case "(($ac_try" in
20416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417  *) ac_try_echo=$ac_try;;
20418esac
20419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420  (eval "$ac_try") 2>&5
20421  ac_status=$?
20422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423  (exit $ac_status); }; }; then
20424
20425			{ echo "$as_me:$LINENO: result: yes" >&5
20426echo "${ECHO_T}yes" >&6; }
20427
20428cat >>confdefs.h <<\_ACEOF
20429#define AIX_GETNAMEINFO_HACK 1
20430_ACEOF
20431
20432
20433else
20434  echo "$as_me: program exited with status $ac_status" >&5
20435echo "$as_me: failed program was:" >&5
20436sed 's/^/| /' conftest.$ac_ext >&5
20437
20438( exit $ac_status )
20439
20440			{ echo "$as_me:$LINENO: result: no" >&5
20441echo "${ECHO_T}no" >&6; }
20442			cat >>confdefs.h <<\_ACEOF
20443#define BROKEN_GETADDRINFO 1
20444_ACEOF
20445
20446
20447fi
20448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20449fi
20450
20451
20452fi
20453
20454if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
20455	{ echo "$as_me:$LINENO: checking whether AI_NUMERICSERV is declared" >&5
20456echo $ECHO_N "checking whether AI_NUMERICSERV is declared... $ECHO_C" >&6; }
20457if test "${ac_cv_have_decl_AI_NUMERICSERV+set}" = set; then
20458  echo $ECHO_N "(cached) $ECHO_C" >&6
20459else
20460  cat >conftest.$ac_ext <<_ACEOF
20461/* confdefs.h.  */
20462_ACEOF
20463cat confdefs.h >>conftest.$ac_ext
20464cat >>conftest.$ac_ext <<_ACEOF
20465/* end confdefs.h.  */
20466#include <sys/types.h>
20467	     #include <sys/socket.h>
20468	     #include <netdb.h>
20469
20470int
20471main ()
20472{
20473#ifndef AI_NUMERICSERV
20474  (void) AI_NUMERICSERV;
20475#endif
20476
20477  ;
20478  return 0;
20479}
20480_ACEOF
20481rm -f conftest.$ac_objext
20482if { (ac_try="$ac_compile"
20483case "(($ac_try" in
20484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485  *) ac_try_echo=$ac_try;;
20486esac
20487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488  (eval "$ac_compile") 2>conftest.er1
20489  ac_status=$?
20490  grep -v '^ *+' conftest.er1 >conftest.err
20491  rm -f conftest.er1
20492  cat conftest.err >&5
20493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494  (exit $ac_status); } && {
20495	 test -z "$ac_c_werror_flag" ||
20496	 test ! -s conftest.err
20497       } && test -s conftest.$ac_objext; then
20498  ac_cv_have_decl_AI_NUMERICSERV=yes
20499else
20500  echo "$as_me: failed program was:" >&5
20501sed 's/^/| /' conftest.$ac_ext >&5
20502
20503	ac_cv_have_decl_AI_NUMERICSERV=no
20504fi
20505
20506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507fi
20508{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_NUMERICSERV" >&5
20509echo "${ECHO_T}$ac_cv_have_decl_AI_NUMERICSERV" >&6; }
20510if test $ac_cv_have_decl_AI_NUMERICSERV = yes; then
20511
20512cat >>confdefs.h <<_ACEOF
20513#define HAVE_DECL_AI_NUMERICSERV 1
20514_ACEOF
20515
20516
20517else
20518  cat >>confdefs.h <<_ACEOF
20519#define HAVE_DECL_AI_NUMERICSERV 0
20520_ACEOF
20521
20522
20523fi
20524
20525
20526fi
20527
20528if test "x$check_for_conflicting_getspnam" = "x1"; then
20529	{ echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
20530echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
20531	cat >conftest.$ac_ext <<_ACEOF
20532/* confdefs.h.  */
20533_ACEOF
20534cat confdefs.h >>conftest.$ac_ext
20535cat >>conftest.$ac_ext <<_ACEOF
20536/* end confdefs.h.  */
20537 #include <shadow.h>
20538int
20539main ()
20540{
20541 exit(0);
20542  ;
20543  return 0;
20544}
20545_ACEOF
20546rm -f conftest.$ac_objext
20547if { (ac_try="$ac_compile"
20548case "(($ac_try" in
20549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550  *) ac_try_echo=$ac_try;;
20551esac
20552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553  (eval "$ac_compile") 2>conftest.er1
20554  ac_status=$?
20555  grep -v '^ *+' conftest.er1 >conftest.err
20556  rm -f conftest.er1
20557  cat conftest.err >&5
20558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559  (exit $ac_status); } && {
20560	 test -z "$ac_c_werror_flag" ||
20561	 test ! -s conftest.err
20562       } && test -s conftest.$ac_objext; then
20563
20564			{ echo "$as_me:$LINENO: result: no" >&5
20565echo "${ECHO_T}no" >&6; }
20566
20567else
20568  echo "$as_me: failed program was:" >&5
20569sed 's/^/| /' conftest.$ac_ext >&5
20570
20571
20572			{ echo "$as_me:$LINENO: result: yes" >&5
20573echo "${ECHO_T}yes" >&6; }
20574
20575cat >>confdefs.h <<\_ACEOF
20576#define GETSPNAM_CONFLICTING_DEFS 1
20577_ACEOF
20578
20579
20580
20581fi
20582
20583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584fi
20585
20586{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20587echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
20588if test "${ac_cv_func_getpgrp_void+set}" = set; then
20589  echo $ECHO_N "(cached) $ECHO_C" >&6
20590else
20591  # Use it with a single arg.
20592cat >conftest.$ac_ext <<_ACEOF
20593/* confdefs.h.  */
20594_ACEOF
20595cat confdefs.h >>conftest.$ac_ext
20596cat >>conftest.$ac_ext <<_ACEOF
20597/* end confdefs.h.  */
20598$ac_includes_default
20599int
20600main ()
20601{
20602getpgrp (0);
20603  ;
20604  return 0;
20605}
20606_ACEOF
20607rm -f conftest.$ac_objext
20608if { (ac_try="$ac_compile"
20609case "(($ac_try" in
20610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611  *) ac_try_echo=$ac_try;;
20612esac
20613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614  (eval "$ac_compile") 2>conftest.er1
20615  ac_status=$?
20616  grep -v '^ *+' conftest.er1 >conftest.err
20617  rm -f conftest.er1
20618  cat conftest.err >&5
20619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620  (exit $ac_status); } && {
20621	 test -z "$ac_c_werror_flag" ||
20622	 test ! -s conftest.err
20623       } && test -s conftest.$ac_objext; then
20624  ac_cv_func_getpgrp_void=no
20625else
20626  echo "$as_me: failed program was:" >&5
20627sed 's/^/| /' conftest.$ac_ext >&5
20628
20629	ac_cv_func_getpgrp_void=yes
20630fi
20631
20632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20633
20634fi
20635{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20636echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
20637if test $ac_cv_func_getpgrp_void = yes; then
20638
20639cat >>confdefs.h <<\_ACEOF
20640#define GETPGRP_VOID 1
20641_ACEOF
20642
20643fi
20644
20645
20646# Search for OpenSSL
20647saved_CPPFLAGS="$CPPFLAGS"
20648saved_LDFLAGS="$LDFLAGS"
20649
20650# Check whether --with-ssl-dir was given.
20651if test "${with_ssl_dir+set}" = set; then
20652  withval=$with_ssl_dir;
20653		if test "x$openssl" = "xno" ; then
20654			{ { echo "$as_me:$LINENO: error: cannot use --with-ssl-dir when OpenSSL disabled" >&5
20655echo "$as_me: error: cannot use --with-ssl-dir when OpenSSL disabled" >&2;}
20656   { (exit 1); exit 1; }; }
20657		fi
20658		if test "x$withval" != "xno" ; then
20659			case "$withval" in
20660				# Relative paths
20661				./*|../*)	withval="`pwd`/$withval"
20662			esac
20663			if test -d "$withval/lib"; then
20664				if test -n "${need_dash_r}"; then
20665					LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
20666				else
20667					LDFLAGS="-L${withval}/lib ${LDFLAGS}"
20668				fi
20669			elif test -d "$withval/lib64"; then
20670				if test -n "${need_dash_r}"; then
20671					LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
20672				else
20673					LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
20674				fi
20675			else
20676				if test -n "${need_dash_r}"; then
20677					LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
20678				else
20679					LDFLAGS="-L${withval} ${LDFLAGS}"
20680				fi
20681			fi
20682			if test -d "$withval/include"; then
20683				CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
20684			else
20685				CPPFLAGS="-I${withval} ${CPPFLAGS}"
20686			fi
20687		fi
20688
20689
20690fi
20691
20692
20693
20694# Check whether --with-openssl-header-check was given.
20695if test "${with_openssl_header_check+set}" = set; then
20696  withval=$with_openssl_header_check;
20697		if test "x$withval" = "xno" ; then
20698			openssl_check_nonfatal=1
20699		fi
20700
20701
20702fi
20703
20704
20705openssl_engine=no
20706
20707# Check whether --with-ssl-engine was given.
20708if test "${with_ssl_engine+set}" = set; then
20709  withval=$with_ssl_engine;
20710		if test "x$openssl" = "xno" ; then
20711			{ { echo "$as_me:$LINENO: error: cannot use --with-ssl-engine when OpenSSL disabled" >&5
20712echo "$as_me: error: cannot use --with-ssl-engine when OpenSSL disabled" >&2;}
20713   { (exit 1); exit 1; }; }
20714		fi
20715		if test "x$withval" != "xno" ; then
20716			openssl_engine=yes
20717		fi
20718
20719
20720fi
20721
20722
20723if test "x$openssl" = "xyes" ; then
20724	LIBS="-lcrypto $LIBS"
20725	cat >conftest.$ac_ext <<_ACEOF
20726/* confdefs.h.  */
20727_ACEOF
20728cat confdefs.h >>conftest.$ac_ext
20729cat >>conftest.$ac_ext <<_ACEOF
20730/* end confdefs.h.  */
20731
20732/* Override any GCC internal prototype to avoid an error.
20733   Use char because int might match the return type of a GCC
20734   builtin and then its argument prototype would still apply.  */
20735#ifdef __cplusplus
20736extern "C"
20737#endif
20738char RAND_add ();
20739int
20740main ()
20741{
20742return RAND_add ();
20743  ;
20744  return 0;
20745}
20746_ACEOF
20747rm -f conftest.$ac_objext conftest$ac_exeext
20748if { (ac_try="$ac_link"
20749case "(($ac_try" in
20750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751  *) ac_try_echo=$ac_try;;
20752esac
20753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754  (eval "$ac_link") 2>conftest.er1
20755  ac_status=$?
20756  grep -v '^ *+' conftest.er1 >conftest.err
20757  rm -f conftest.er1
20758  cat conftest.err >&5
20759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760  (exit $ac_status); } && {
20761	 test -z "$ac_c_werror_flag" ||
20762	 test ! -s conftest.err
20763       } && test -s conftest$ac_exeext &&
20764       $as_test_x conftest$ac_exeext; then
20765
20766cat >>confdefs.h <<\_ACEOF
20767#define HAVE_OPENSSL 1
20768_ACEOF
20769
20770else
20771  echo "$as_me: failed program was:" >&5
20772sed 's/^/| /' conftest.$ac_ext >&5
20773
20774
20775						if test -n "${need_dash_r}"; then
20776				LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
20777			else
20778				LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
20779			fi
20780			CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
20781			if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20782  { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20783echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20784if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20785  echo $ECHO_N "(cached) $ECHO_C" >&6
20786fi
20787{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20788echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20789else
20790  # Is the header compilable?
20791{ echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
20792echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
20793cat >conftest.$ac_ext <<_ACEOF
20794/* confdefs.h.  */
20795_ACEOF
20796cat confdefs.h >>conftest.$ac_ext
20797cat >>conftest.$ac_ext <<_ACEOF
20798/* end confdefs.h.  */
20799$ac_includes_default
20800#include <openssl/opensslv.h>
20801_ACEOF
20802rm -f conftest.$ac_objext
20803if { (ac_try="$ac_compile"
20804case "(($ac_try" in
20805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806  *) ac_try_echo=$ac_try;;
20807esac
20808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809  (eval "$ac_compile") 2>conftest.er1
20810  ac_status=$?
20811  grep -v '^ *+' conftest.er1 >conftest.err
20812  rm -f conftest.er1
20813  cat conftest.err >&5
20814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815  (exit $ac_status); } && {
20816	 test -z "$ac_c_werror_flag" ||
20817	 test ! -s conftest.err
20818       } && test -s conftest.$ac_objext; then
20819  ac_header_compiler=yes
20820else
20821  echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
20824	ac_header_compiler=no
20825fi
20826
20827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20829echo "${ECHO_T}$ac_header_compiler" >&6; }
20830
20831# Is the header present?
20832{ echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
20833echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
20834cat >conftest.$ac_ext <<_ACEOF
20835/* confdefs.h.  */
20836_ACEOF
20837cat confdefs.h >>conftest.$ac_ext
20838cat >>conftest.$ac_ext <<_ACEOF
20839/* end confdefs.h.  */
20840#include <openssl/opensslv.h>
20841_ACEOF
20842if { (ac_try="$ac_cpp conftest.$ac_ext"
20843case "(($ac_try" in
20844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845  *) ac_try_echo=$ac_try;;
20846esac
20847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20849  ac_status=$?
20850  grep -v '^ *+' conftest.er1 >conftest.err
20851  rm -f conftest.er1
20852  cat conftest.err >&5
20853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854  (exit $ac_status); } >/dev/null && {
20855	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20856	 test ! -s conftest.err
20857       }; then
20858  ac_header_preproc=yes
20859else
20860  echo "$as_me: failed program was:" >&5
20861sed 's/^/| /' conftest.$ac_ext >&5
20862
20863  ac_header_preproc=no
20864fi
20865
20866rm -f conftest.err conftest.$ac_ext
20867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20868echo "${ECHO_T}$ac_header_preproc" >&6; }
20869
20870# So?  What about this header?
20871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20872  yes:no: )
20873    { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20874echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20875    { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
20876echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
20877    ac_header_preproc=yes
20878    ;;
20879  no:yes:* )
20880    { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
20881echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
20882    { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h:     check for missing prerequisite headers?" >&5
20883echo "$as_me: WARNING: openssl/opensslv.h:     check for missing prerequisite headers?" >&2;}
20884    { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
20885echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
20886    { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h:     section \"Present But Cannot Be Compiled\"" >&5
20887echo "$as_me: WARNING: openssl/opensslv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20888    { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
20889echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
20890    { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
20891echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
20892    ( cat <<\_ASBOX
20893## ------------------------------------------- ##
20894## Report this to openssh-unix-dev@mindrot.org ##
20895## ------------------------------------------- ##
20896_ASBOX
20897     ) | sed "s/^/$as_me: WARNING:     /" >&2
20898    ;;
20899esac
20900{ echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20901echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20902if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20903  echo $ECHO_N "(cached) $ECHO_C" >&6
20904else
20905  ac_cv_header_openssl_opensslv_h=$ac_header_preproc
20906fi
20907{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20908echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20909
20910fi
20911if test $ac_cv_header_openssl_opensslv_h = yes; then
20912  :
20913else
20914  { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
20915echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
20916   { (exit 1); exit 1; }; }
20917fi
20918
20919
20920			cat >conftest.$ac_ext <<_ACEOF
20921/* confdefs.h.  */
20922_ACEOF
20923cat confdefs.h >>conftest.$ac_ext
20924cat >>conftest.$ac_ext <<_ACEOF
20925/* end confdefs.h.  */
20926
20927/* Override any GCC internal prototype to avoid an error.
20928   Use char because int might match the return type of a GCC
20929   builtin and then its argument prototype would still apply.  */
20930#ifdef __cplusplus
20931extern "C"
20932#endif
20933char RAND_add ();
20934int
20935main ()
20936{
20937return RAND_add ();
20938  ;
20939  return 0;
20940}
20941_ACEOF
20942rm -f conftest.$ac_objext conftest$ac_exeext
20943if { (ac_try="$ac_link"
20944case "(($ac_try" in
20945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946  *) ac_try_echo=$ac_try;;
20947esac
20948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949  (eval "$ac_link") 2>conftest.er1
20950  ac_status=$?
20951  grep -v '^ *+' conftest.er1 >conftest.err
20952  rm -f conftest.er1
20953  cat conftest.err >&5
20954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955  (exit $ac_status); } && {
20956	 test -z "$ac_c_werror_flag" ||
20957	 test ! -s conftest.err
20958       } && test -s conftest$ac_exeext &&
20959       $as_test_x conftest$ac_exeext; then
20960  cat >>confdefs.h <<\_ACEOF
20961#define HAVE_OPENSSL 1
20962_ACEOF
20963
20964else
20965  echo "$as_me: failed program was:" >&5
20966sed 's/^/| /' conftest.$ac_ext >&5
20967
20968
20969					{ { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
20970echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
20971   { (exit 1); exit 1; }; }
20972
20973
20974fi
20975
20976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20977      conftest$ac_exeext conftest.$ac_ext
20978
20979
20980fi
20981
20982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20983      conftest$ac_exeext conftest.$ac_ext
20984
20985	# Determine OpenSSL header version
20986	{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
20987echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
20988	if test "$cross_compiling" = yes; then
20989
20990			{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20991echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20992
20993
20994else
20995  cat >conftest.$ac_ext <<_ACEOF
20996/* confdefs.h.  */
20997_ACEOF
20998cat confdefs.h >>conftest.$ac_ext
20999cat >>conftest.$ac_ext <<_ACEOF
21000/* end confdefs.h.  */
21001
21002	#include <stdio.h>
21003	#include <string.h>
21004	#include <openssl/opensslv.h>
21005	#define DATA "conftest.sslincver"
21006
21007int
21008main ()
21009{
21010
21011		FILE *fd;
21012		int rc;
21013
21014		fd = fopen(DATA,"w");
21015		if(fd == NULL)
21016			exit(1);
21017
21018		if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
21019			exit(1);
21020
21021		exit(0);
21022
21023  ;
21024  return 0;
21025}
21026_ACEOF
21027rm -f conftest$ac_exeext
21028if { (ac_try="$ac_link"
21029case "(($ac_try" in
21030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031  *) ac_try_echo=$ac_try;;
21032esac
21033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034  (eval "$ac_link") 2>&5
21035  ac_status=$?
21036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21038  { (case "(($ac_try" in
21039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040  *) ac_try_echo=$ac_try;;
21041esac
21042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043  (eval "$ac_try") 2>&5
21044  ac_status=$?
21045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046  (exit $ac_status); }; }; then
21047
21048			ssl_header_ver=`cat conftest.sslincver`
21049			{ echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
21050echo "${ECHO_T}$ssl_header_ver" >&6; }
21051
21052else
21053  echo "$as_me: program exited with status $ac_status" >&5
21054echo "$as_me: failed program was:" >&5
21055sed 's/^/| /' conftest.$ac_ext >&5
21056
21057( exit $ac_status )
21058
21059			{ echo "$as_me:$LINENO: result: not found" >&5
21060echo "${ECHO_T}not found" >&6; }
21061			{ { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
21062echo "$as_me: error: OpenSSL version header not found." >&2;}
21063   { (exit 1); exit 1; }; }
21064
21065fi
21066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21067fi
21068
21069
21070
21071	# Determine OpenSSL library version
21072	{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
21073echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
21074	if test "$cross_compiling" = yes; then
21075
21076			{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21077echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21078
21079
21080else
21081  cat >conftest.$ac_ext <<_ACEOF
21082/* confdefs.h.  */
21083_ACEOF
21084cat confdefs.h >>conftest.$ac_ext
21085cat >>conftest.$ac_ext <<_ACEOF
21086/* end confdefs.h.  */
21087
21088	#include <stdio.h>
21089	#include <string.h>
21090	#include <openssl/opensslv.h>
21091	#include <openssl/crypto.h>
21092	#define DATA "conftest.ssllibver"
21093
21094int
21095main ()
21096{
21097
21098		FILE *fd;
21099		int rc;
21100
21101		fd = fopen(DATA,"w");
21102		if(fd == NULL)
21103			exit(1);
21104
21105		if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(),
21106		    SSLeay_version(SSLEAY_VERSION))) <0)
21107			exit(1);
21108
21109		exit(0);
21110
21111  ;
21112  return 0;
21113}
21114_ACEOF
21115rm -f conftest$ac_exeext
21116if { (ac_try="$ac_link"
21117case "(($ac_try" in
21118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119  *) ac_try_echo=$ac_try;;
21120esac
21121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122  (eval "$ac_link") 2>&5
21123  ac_status=$?
21124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21126  { (case "(($ac_try" in
21127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128  *) ac_try_echo=$ac_try;;
21129esac
21130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131  (eval "$ac_try") 2>&5
21132  ac_status=$?
21133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134  (exit $ac_status); }; }; then
21135
21136			ssl_library_ver=`cat conftest.ssllibver`
21137			# Check version is supported.
21138			case "$ssl_library_ver" in
21139				0090[0-7]*|009080[0-5]*)
21140					{ { echo "$as_me:$LINENO: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&5
21141echo "$as_me: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&2;}
21142   { (exit 1); exit 1; }; }
21143			                ;;
21144			        *) ;;
21145			esac
21146			{ echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
21147echo "${ECHO_T}$ssl_library_ver" >&6; }
21148
21149else
21150  echo "$as_me: program exited with status $ac_status" >&5
21151echo "$as_me: failed program was:" >&5
21152sed 's/^/| /' conftest.$ac_ext >&5
21153
21154( exit $ac_status )
21155
21156			{ echo "$as_me:$LINENO: result: not found" >&5
21157echo "${ECHO_T}not found" >&6; }
21158			{ { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
21159echo "$as_me: error: OpenSSL library not found." >&2;}
21160   { (exit 1); exit 1; }; }
21161
21162fi
21163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21164fi
21165
21166
21167
21168	# Sanity check OpenSSL headers
21169	{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
21170echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
21171	if test "$cross_compiling" = yes; then
21172
21173			{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21174echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21175
21176
21177else
21178  cat >conftest.$ac_ext <<_ACEOF
21179/* confdefs.h.  */
21180_ACEOF
21181cat confdefs.h >>conftest.$ac_ext
21182cat >>conftest.$ac_ext <<_ACEOF
21183/* end confdefs.h.  */
21184
21185	#include <string.h>
21186	#include <openssl/opensslv.h>
21187
21188int
21189main ()
21190{
21191
21192		exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
21193
21194  ;
21195  return 0;
21196}
21197_ACEOF
21198rm -f conftest$ac_exeext
21199if { (ac_try="$ac_link"
21200case "(($ac_try" in
21201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202  *) ac_try_echo=$ac_try;;
21203esac
21204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205  (eval "$ac_link") 2>&5
21206  ac_status=$?
21207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21209  { (case "(($ac_try" in
21210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211  *) ac_try_echo=$ac_try;;
21212esac
21213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214  (eval "$ac_try") 2>&5
21215  ac_status=$?
21216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217  (exit $ac_status); }; }; then
21218
21219			{ echo "$as_me:$LINENO: result: yes" >&5
21220echo "${ECHO_T}yes" >&6; }
21221
21222else
21223  echo "$as_me: program exited with status $ac_status" >&5
21224echo "$as_me: failed program was:" >&5
21225sed 's/^/| /' conftest.$ac_ext >&5
21226
21227( exit $ac_status )
21228
21229			{ echo "$as_me:$LINENO: result: no" >&5
21230echo "${ECHO_T}no" >&6; }
21231			if test "x$openssl_check_nonfatal" = "x"; then
21232				{ { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
21233	library. Check config.log for details.
21234	If you are sure your installation is consistent, you can disable the check
21235	by running \"./configure --without-openssl-header-check\".
21236	Also see contrib/findssl.sh for help identifying header/library mismatches.
21237	" >&5
21238echo "$as_me: error: Your OpenSSL headers do not match your
21239	library. Check config.log for details.
21240	If you are sure your installation is consistent, you can disable the check
21241	by running \"./configure --without-openssl-header-check\".
21242	Also see contrib/findssl.sh for help identifying header/library mismatches.
21243	" >&2;}
21244   { (exit 1); exit 1; }; }
21245			else
21246				{ echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
21247	library. Check config.log for details.
21248	Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
21249echo "$as_me: WARNING: Your OpenSSL headers do not match your
21250	library. Check config.log for details.
21251	Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
21252			fi
21253
21254fi
21255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21256fi
21257
21258
21259
21260	{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
21261echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
21262	cat >conftest.$ac_ext <<_ACEOF
21263/* confdefs.h.  */
21264_ACEOF
21265cat confdefs.h >>conftest.$ac_ext
21266cat >>conftest.$ac_ext <<_ACEOF
21267/* end confdefs.h.  */
21268 #include <openssl/evp.h>
21269int
21270main ()
21271{
21272 SSLeay_add_all_algorithms();
21273  ;
21274  return 0;
21275}
21276_ACEOF
21277rm -f conftest.$ac_objext conftest$ac_exeext
21278if { (ac_try="$ac_link"
21279case "(($ac_try" in
21280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281  *) ac_try_echo=$ac_try;;
21282esac
21283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284  (eval "$ac_link") 2>conftest.er1
21285  ac_status=$?
21286  grep -v '^ *+' conftest.er1 >conftest.err
21287  rm -f conftest.er1
21288  cat conftest.err >&5
21289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290  (exit $ac_status); } && {
21291	 test -z "$ac_c_werror_flag" ||
21292	 test ! -s conftest.err
21293       } && test -s conftest$ac_exeext &&
21294       $as_test_x conftest$ac_exeext; then
21295
21296			{ echo "$as_me:$LINENO: result: yes" >&5
21297echo "${ECHO_T}yes" >&6; }
21298
21299else
21300  echo "$as_me: failed program was:" >&5
21301sed 's/^/| /' conftest.$ac_ext >&5
21302
21303
21304			{ echo "$as_me:$LINENO: result: no" >&5
21305echo "${ECHO_T}no" >&6; }
21306			saved_LIBS="$LIBS"
21307			LIBS="$LIBS -ldl"
21308			{ echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
21309echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
21310			cat >conftest.$ac_ext <<_ACEOF
21311/* confdefs.h.  */
21312_ACEOF
21313cat confdefs.h >>conftest.$ac_ext
21314cat >>conftest.$ac_ext <<_ACEOF
21315/* end confdefs.h.  */
21316 #include <openssl/evp.h>
21317int
21318main ()
21319{
21320 SSLeay_add_all_algorithms();
21321  ;
21322  return 0;
21323}
21324_ACEOF
21325rm -f conftest.$ac_objext conftest$ac_exeext
21326if { (ac_try="$ac_link"
21327case "(($ac_try" in
21328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329  *) ac_try_echo=$ac_try;;
21330esac
21331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332  (eval "$ac_link") 2>conftest.er1
21333  ac_status=$?
21334  grep -v '^ *+' conftest.er1 >conftest.err
21335  rm -f conftest.er1
21336  cat conftest.err >&5
21337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338  (exit $ac_status); } && {
21339	 test -z "$ac_c_werror_flag" ||
21340	 test ! -s conftest.err
21341       } && test -s conftest$ac_exeext &&
21342       $as_test_x conftest$ac_exeext; then
21343
21344					{ echo "$as_me:$LINENO: result: yes" >&5
21345echo "${ECHO_T}yes" >&6; }
21346
21347else
21348  echo "$as_me: failed program was:" >&5
21349sed 's/^/| /' conftest.$ac_ext >&5
21350
21351
21352					{ echo "$as_me:$LINENO: result: no" >&5
21353echo "${ECHO_T}no" >&6; }
21354					LIBS="$saved_LIBS"
21355
21356
21357fi
21358
21359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21360      conftest$ac_exeext conftest.$ac_ext
21361
21362
21363fi
21364
21365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21366      conftest$ac_exeext conftest.$ac_ext
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378for ac_func in  \
21379		BN_is_prime_ex \
21380		DSA_generate_parameters_ex \
21381		EVP_DigestInit_ex \
21382		EVP_DigestFinal_ex \
21383		EVP_MD_CTX_init \
21384		EVP_MD_CTX_cleanup \
21385		EVP_MD_CTX_copy_ex \
21386		HMAC_CTX_init \
21387		RSA_generate_key_ex \
21388		RSA_get_default_method \
21389
21390do
21391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21392{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21394if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21395  echo $ECHO_N "(cached) $ECHO_C" >&6
21396else
21397  cat >conftest.$ac_ext <<_ACEOF
21398/* confdefs.h.  */
21399_ACEOF
21400cat confdefs.h >>conftest.$ac_ext
21401cat >>conftest.$ac_ext <<_ACEOF
21402/* end confdefs.h.  */
21403/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21404   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21405#define $ac_func innocuous_$ac_func
21406
21407/* System header to define __stub macros and hopefully few prototypes,
21408    which can conflict with char $ac_func (); below.
21409    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21410    <limits.h> exists even on freestanding compilers.  */
21411
21412#ifdef __STDC__
21413# include <limits.h>
21414#else
21415# include <assert.h>
21416#endif
21417
21418#undef $ac_func
21419
21420/* Override any GCC internal prototype to avoid an error.
21421   Use char because int might match the return type of a GCC
21422   builtin and then its argument prototype would still apply.  */
21423#ifdef __cplusplus
21424extern "C"
21425#endif
21426char $ac_func ();
21427/* The GNU C library defines this for functions which it implements
21428    to always fail with ENOSYS.  Some functions are actually named
21429    something starting with __ and the normal name is an alias.  */
21430#if defined __stub_$ac_func || defined __stub___$ac_func
21431choke me
21432#endif
21433
21434int
21435main ()
21436{
21437return $ac_func ();
21438  ;
21439  return 0;
21440}
21441_ACEOF
21442rm -f conftest.$ac_objext conftest$ac_exeext
21443if { (ac_try="$ac_link"
21444case "(($ac_try" in
21445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446  *) ac_try_echo=$ac_try;;
21447esac
21448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449  (eval "$ac_link") 2>conftest.er1
21450  ac_status=$?
21451  grep -v '^ *+' conftest.er1 >conftest.err
21452  rm -f conftest.er1
21453  cat conftest.err >&5
21454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455  (exit $ac_status); } && {
21456	 test -z "$ac_c_werror_flag" ||
21457	 test ! -s conftest.err
21458       } && test -s conftest$ac_exeext &&
21459       $as_test_x conftest$ac_exeext; then
21460  eval "$as_ac_var=yes"
21461else
21462  echo "$as_me: failed program was:" >&5
21463sed 's/^/| /' conftest.$ac_ext >&5
21464
21465	eval "$as_ac_var=no"
21466fi
21467
21468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21469      conftest$ac_exeext conftest.$ac_ext
21470fi
21471ac_res=`eval echo '${'$as_ac_var'}'`
21472	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21473echo "${ECHO_T}$ac_res" >&6; }
21474if test `eval echo '${'$as_ac_var'}'` = yes; then
21475  cat >>confdefs.h <<_ACEOF
21476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21477_ACEOF
21478
21479fi
21480done
21481
21482
21483	if test "x$openssl_engine" = "xyes" ; then
21484		{ echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
21485echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
21486		cat >conftest.$ac_ext <<_ACEOF
21487/* confdefs.h.  */
21488_ACEOF
21489cat confdefs.h >>conftest.$ac_ext
21490cat >>conftest.$ac_ext <<_ACEOF
21491/* end confdefs.h.  */
21492
21493	#include <openssl/engine.h>
21494
21495int
21496main ()
21497{
21498
21499				ENGINE_load_builtin_engines();
21500				ENGINE_register_all_complete();
21501
21502  ;
21503  return 0;
21504}
21505_ACEOF
21506rm -f conftest.$ac_objext
21507if { (ac_try="$ac_compile"
21508case "(($ac_try" in
21509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510  *) ac_try_echo=$ac_try;;
21511esac
21512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513  (eval "$ac_compile") 2>conftest.er1
21514  ac_status=$?
21515  grep -v '^ *+' conftest.er1 >conftest.err
21516  rm -f conftest.er1
21517  cat conftest.err >&5
21518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519  (exit $ac_status); } && {
21520	 test -z "$ac_c_werror_flag" ||
21521	 test ! -s conftest.err
21522       } && test -s conftest.$ac_objext; then
21523   { echo "$as_me:$LINENO: result: yes" >&5
21524echo "${ECHO_T}yes" >&6; }
21525
21526cat >>confdefs.h <<\_ACEOF
21527#define USE_OPENSSL_ENGINE 1
21528_ACEOF
21529
21530
21531else
21532  echo "$as_me: failed program was:" >&5
21533sed 's/^/| /' conftest.$ac_ext >&5
21534
21535	 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
21536echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
21537   { (exit 1); exit 1; }; }
21538
21539fi
21540
21541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542	fi
21543
21544	# Check for OpenSSL without EVP_aes_{192,256}_cbc
21545	{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
21546echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
21547	cat >conftest.$ac_ext <<_ACEOF
21548/* confdefs.h.  */
21549_ACEOF
21550cat confdefs.h >>conftest.$ac_ext
21551cat >>conftest.$ac_ext <<_ACEOF
21552/* end confdefs.h.  */
21553
21554	#include <string.h>
21555	#include <openssl/evp.h>
21556
21557int
21558main ()
21559{
21560
21561		exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
21562
21563  ;
21564  return 0;
21565}
21566_ACEOF
21567rm -f conftest.$ac_objext conftest$ac_exeext
21568if { (ac_try="$ac_link"
21569case "(($ac_try" in
21570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571  *) ac_try_echo=$ac_try;;
21572esac
21573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574  (eval "$ac_link") 2>conftest.er1
21575  ac_status=$?
21576  grep -v '^ *+' conftest.er1 >conftest.err
21577  rm -f conftest.er1
21578  cat conftest.err >&5
21579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580  (exit $ac_status); } && {
21581	 test -z "$ac_c_werror_flag" ||
21582	 test ! -s conftest.err
21583       } && test -s conftest$ac_exeext &&
21584       $as_test_x conftest$ac_exeext; then
21585
21586			{ echo "$as_me:$LINENO: result: no" >&5
21587echo "${ECHO_T}no" >&6; }
21588
21589else
21590  echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
21592
21593
21594			{ echo "$as_me:$LINENO: result: yes" >&5
21595echo "${ECHO_T}yes" >&6; }
21596
21597cat >>confdefs.h <<\_ACEOF
21598#define OPENSSL_LOBOTOMISED_AES 1
21599_ACEOF
21600
21601
21602
21603fi
21604
21605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21606      conftest$ac_exeext conftest.$ac_ext
21607
21608	# Check for OpenSSL with EVP_aes_*ctr
21609	{ echo "$as_me:$LINENO: checking whether OpenSSL has AES CTR via EVP" >&5
21610echo $ECHO_N "checking whether OpenSSL has AES CTR via EVP... $ECHO_C" >&6; }
21611	cat >conftest.$ac_ext <<_ACEOF
21612/* confdefs.h.  */
21613_ACEOF
21614cat confdefs.h >>conftest.$ac_ext
21615cat >>conftest.$ac_ext <<_ACEOF
21616/* end confdefs.h.  */
21617
21618	#include <string.h>
21619	#include <openssl/evp.h>
21620
21621int
21622main ()
21623{
21624
21625		exit(EVP_aes_128_ctr() == NULL ||
21626		    EVP_aes_192_cbc() == NULL ||
21627		    EVP_aes_256_cbc() == NULL);
21628
21629  ;
21630  return 0;
21631}
21632_ACEOF
21633rm -f conftest.$ac_objext conftest$ac_exeext
21634if { (ac_try="$ac_link"
21635case "(($ac_try" in
21636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637  *) ac_try_echo=$ac_try;;
21638esac
21639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640  (eval "$ac_link") 2>conftest.er1
21641  ac_status=$?
21642  grep -v '^ *+' conftest.er1 >conftest.err
21643  rm -f conftest.er1
21644  cat conftest.err >&5
21645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646  (exit $ac_status); } && {
21647	 test -z "$ac_c_werror_flag" ||
21648	 test ! -s conftest.err
21649       } && test -s conftest$ac_exeext &&
21650       $as_test_x conftest$ac_exeext; then
21651
21652			{ echo "$as_me:$LINENO: result: yes" >&5
21653echo "${ECHO_T}yes" >&6; }
21654
21655cat >>confdefs.h <<\_ACEOF
21656#define OPENSSL_HAVE_EVPCTR 1
21657_ACEOF
21658
21659
21660else
21661  echo "$as_me: failed program was:" >&5
21662sed 's/^/| /' conftest.$ac_ext >&5
21663
21664
21665			{ echo "$as_me:$LINENO: result: no" >&5
21666echo "${ECHO_T}no" >&6; }
21667
21668
21669fi
21670
21671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21672      conftest$ac_exeext conftest.$ac_ext
21673
21674	# Check for OpenSSL with EVP_aes_*gcm
21675	{ echo "$as_me:$LINENO: checking whether OpenSSL has AES GCM via EVP" >&5
21676echo $ECHO_N "checking whether OpenSSL has AES GCM via EVP... $ECHO_C" >&6; }
21677	cat >conftest.$ac_ext <<_ACEOF
21678/* confdefs.h.  */
21679_ACEOF
21680cat confdefs.h >>conftest.$ac_ext
21681cat >>conftest.$ac_ext <<_ACEOF
21682/* end confdefs.h.  */
21683
21684	#include <string.h>
21685	#include <openssl/evp.h>
21686
21687int
21688main ()
21689{
21690
21691		exit(EVP_aes_128_gcm() == NULL ||
21692		    EVP_aes_256_gcm() == NULL ||
21693		    EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
21694		    EVP_CTRL_GCM_IV_GEN == 0 ||
21695		    EVP_CTRL_GCM_SET_TAG == 0 ||
21696		    EVP_CTRL_GCM_GET_TAG == 0 ||
21697		    EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
21698
21699  ;
21700  return 0;
21701}
21702_ACEOF
21703rm -f conftest.$ac_objext conftest$ac_exeext
21704if { (ac_try="$ac_link"
21705case "(($ac_try" in
21706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707  *) ac_try_echo=$ac_try;;
21708esac
21709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710  (eval "$ac_link") 2>conftest.er1
21711  ac_status=$?
21712  grep -v '^ *+' conftest.er1 >conftest.err
21713  rm -f conftest.er1
21714  cat conftest.err >&5
21715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716  (exit $ac_status); } && {
21717	 test -z "$ac_c_werror_flag" ||
21718	 test ! -s conftest.err
21719       } && test -s conftest$ac_exeext &&
21720       $as_test_x conftest$ac_exeext; then
21721
21722			{ echo "$as_me:$LINENO: result: yes" >&5
21723echo "${ECHO_T}yes" >&6; }
21724
21725cat >>confdefs.h <<\_ACEOF
21726#define OPENSSL_HAVE_EVPGCM 1
21727_ACEOF
21728
21729
21730else
21731  echo "$as_me: failed program was:" >&5
21732sed 's/^/| /' conftest.$ac_ext >&5
21733
21734
21735			{ echo "$as_me:$LINENO: result: no" >&5
21736echo "${ECHO_T}no" >&6; }
21737			unsupported_algorithms="$unsupported_cipers \
21738			   aes128-gcm@openssh.com aes256-gcm@openssh.com"
21739
21740
21741fi
21742
21743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21744      conftest$ac_exeext conftest.$ac_ext
21745
21746	{ echo "$as_me:$LINENO: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
21747echo $ECHO_N "checking for library containing EVP_CIPHER_CTX_ctrl... $ECHO_C" >&6; }
21748if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21749  echo $ECHO_N "(cached) $ECHO_C" >&6
21750else
21751  ac_func_search_save_LIBS=$LIBS
21752cat >conftest.$ac_ext <<_ACEOF
21753/* confdefs.h.  */
21754_ACEOF
21755cat confdefs.h >>conftest.$ac_ext
21756cat >>conftest.$ac_ext <<_ACEOF
21757/* end confdefs.h.  */
21758
21759/* Override any GCC internal prototype to avoid an error.
21760   Use char because int might match the return type of a GCC
21761   builtin and then its argument prototype would still apply.  */
21762#ifdef __cplusplus
21763extern "C"
21764#endif
21765char EVP_CIPHER_CTX_ctrl ();
21766int
21767main ()
21768{
21769return EVP_CIPHER_CTX_ctrl ();
21770  ;
21771  return 0;
21772}
21773_ACEOF
21774for ac_lib in '' crypto; do
21775  if test -z "$ac_lib"; then
21776    ac_res="none required"
21777  else
21778    ac_res=-l$ac_lib
21779    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21780  fi
21781  rm -f conftest.$ac_objext conftest$ac_exeext
21782if { (ac_try="$ac_link"
21783case "(($ac_try" in
21784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785  *) ac_try_echo=$ac_try;;
21786esac
21787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788  (eval "$ac_link") 2>conftest.er1
21789  ac_status=$?
21790  grep -v '^ *+' conftest.er1 >conftest.err
21791  rm -f conftest.er1
21792  cat conftest.err >&5
21793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794  (exit $ac_status); } && {
21795	 test -z "$ac_c_werror_flag" ||
21796	 test ! -s conftest.err
21797       } && test -s conftest$ac_exeext &&
21798       $as_test_x conftest$ac_exeext; then
21799  ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
21800else
21801  echo "$as_me: failed program was:" >&5
21802sed 's/^/| /' conftest.$ac_ext >&5
21803
21804
21805fi
21806
21807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21808      conftest$ac_exeext
21809  if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21810  break
21811fi
21812done
21813if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21814  :
21815else
21816  ac_cv_search_EVP_CIPHER_CTX_ctrl=no
21817fi
21818rm conftest.$ac_ext
21819LIBS=$ac_func_search_save_LIBS
21820fi
21821{ echo "$as_me:$LINENO: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
21822echo "${ECHO_T}$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
21823ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
21824if test "$ac_res" != no; then
21825  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21826
21827cat >>confdefs.h <<\_ACEOF
21828#define HAVE_EVP_CIPHER_CTX_CTRL 1
21829_ACEOF
21830
21831fi
21832
21833
21834	{ echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
21835echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
21836	cat >conftest.$ac_ext <<_ACEOF
21837/* confdefs.h.  */
21838_ACEOF
21839cat confdefs.h >>conftest.$ac_ext
21840cat >>conftest.$ac_ext <<_ACEOF
21841/* end confdefs.h.  */
21842
21843	#include <string.h>
21844	#include <openssl/evp.h>
21845
21846int
21847main ()
21848{
21849
21850		if(EVP_DigestUpdate(NULL, NULL,0))
21851			exit(0);
21852
21853  ;
21854  return 0;
21855}
21856_ACEOF
21857rm -f conftest.$ac_objext conftest$ac_exeext
21858if { (ac_try="$ac_link"
21859case "(($ac_try" in
21860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861  *) ac_try_echo=$ac_try;;
21862esac
21863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864  (eval "$ac_link") 2>conftest.er1
21865  ac_status=$?
21866  grep -v '^ *+' conftest.er1 >conftest.err
21867  rm -f conftest.er1
21868  cat conftest.err >&5
21869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870  (exit $ac_status); } && {
21871	 test -z "$ac_c_werror_flag" ||
21872	 test ! -s conftest.err
21873       } && test -s conftest$ac_exeext &&
21874       $as_test_x conftest$ac_exeext; then
21875
21876			{ echo "$as_me:$LINENO: result: yes" >&5
21877echo "${ECHO_T}yes" >&6; }
21878
21879else
21880  echo "$as_me: failed program was:" >&5
21881sed 's/^/| /' conftest.$ac_ext >&5
21882
21883
21884			{ echo "$as_me:$LINENO: result: no" >&5
21885echo "${ECHO_T}no" >&6; }
21886
21887cat >>confdefs.h <<\_ACEOF
21888#define OPENSSL_EVP_DIGESTUPDATE_VOID 1
21889_ACEOF
21890
21891
21892
21893fi
21894
21895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21896      conftest$ac_exeext conftest.$ac_ext
21897
21898	# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
21899	# because the system crypt() is more featureful.
21900	if test "x$check_for_libcrypt_before" = "x1"; then
21901
21902{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21903echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21904if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21905  echo $ECHO_N "(cached) $ECHO_C" >&6
21906else
21907  ac_check_lib_save_LIBS=$LIBS
21908LIBS="-lcrypt  $LIBS"
21909cat >conftest.$ac_ext <<_ACEOF
21910/* confdefs.h.  */
21911_ACEOF
21912cat confdefs.h >>conftest.$ac_ext
21913cat >>conftest.$ac_ext <<_ACEOF
21914/* end confdefs.h.  */
21915
21916/* Override any GCC internal prototype to avoid an error.
21917   Use char because int might match the return type of a GCC
21918   builtin and then its argument prototype would still apply.  */
21919#ifdef __cplusplus
21920extern "C"
21921#endif
21922char crypt ();
21923int
21924main ()
21925{
21926return crypt ();
21927  ;
21928  return 0;
21929}
21930_ACEOF
21931rm -f conftest.$ac_objext conftest$ac_exeext
21932if { (ac_try="$ac_link"
21933case "(($ac_try" in
21934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935  *) ac_try_echo=$ac_try;;
21936esac
21937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938  (eval "$ac_link") 2>conftest.er1
21939  ac_status=$?
21940  grep -v '^ *+' conftest.er1 >conftest.err
21941  rm -f conftest.er1
21942  cat conftest.err >&5
21943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944  (exit $ac_status); } && {
21945	 test -z "$ac_c_werror_flag" ||
21946	 test ! -s conftest.err
21947       } && test -s conftest$ac_exeext &&
21948       $as_test_x conftest$ac_exeext; then
21949  ac_cv_lib_crypt_crypt=yes
21950else
21951  echo "$as_me: failed program was:" >&5
21952sed 's/^/| /' conftest.$ac_ext >&5
21953
21954	ac_cv_lib_crypt_crypt=no
21955fi
21956
21957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21958      conftest$ac_exeext conftest.$ac_ext
21959LIBS=$ac_check_lib_save_LIBS
21960fi
21961{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21962echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21963if test $ac_cv_lib_crypt_crypt = yes; then
21964  cat >>confdefs.h <<_ACEOF
21965#define HAVE_LIBCRYPT 1
21966_ACEOF
21967
21968  LIBS="-lcrypt $LIBS"
21969
21970fi
21971
21972	fi
21973
21974	# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
21975	# version in OpenSSL.
21976	if test "x$check_for_libcrypt_later" = "x1"; then
21977		{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21978echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21979if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21980  echo $ECHO_N "(cached) $ECHO_C" >&6
21981else
21982  ac_check_lib_save_LIBS=$LIBS
21983LIBS="-lcrypt  $LIBS"
21984cat >conftest.$ac_ext <<_ACEOF
21985/* confdefs.h.  */
21986_ACEOF
21987cat confdefs.h >>conftest.$ac_ext
21988cat >>conftest.$ac_ext <<_ACEOF
21989/* end confdefs.h.  */
21990
21991/* Override any GCC internal prototype to avoid an error.
21992   Use char because int might match the return type of a GCC
21993   builtin and then its argument prototype would still apply.  */
21994#ifdef __cplusplus
21995extern "C"
21996#endif
21997char crypt ();
21998int
21999main ()
22000{
22001return crypt ();
22002  ;
22003  return 0;
22004}
22005_ACEOF
22006rm -f conftest.$ac_objext conftest$ac_exeext
22007if { (ac_try="$ac_link"
22008case "(($ac_try" in
22009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010  *) ac_try_echo=$ac_try;;
22011esac
22012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013  (eval "$ac_link") 2>conftest.er1
22014  ac_status=$?
22015  grep -v '^ *+' conftest.er1 >conftest.err
22016  rm -f conftest.er1
22017  cat conftest.err >&5
22018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019  (exit $ac_status); } && {
22020	 test -z "$ac_c_werror_flag" ||
22021	 test ! -s conftest.err
22022       } && test -s conftest$ac_exeext &&
22023       $as_test_x conftest$ac_exeext; then
22024  ac_cv_lib_crypt_crypt=yes
22025else
22026  echo "$as_me: failed program was:" >&5
22027sed 's/^/| /' conftest.$ac_ext >&5
22028
22029	ac_cv_lib_crypt_crypt=no
22030fi
22031
22032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22033      conftest$ac_exeext conftest.$ac_ext
22034LIBS=$ac_check_lib_save_LIBS
22035fi
22036{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22037echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22038if test $ac_cv_lib_crypt_crypt = yes; then
22039  LIBS="$LIBS -lcrypt"
22040fi
22041
22042	fi
22043
22044
22045for ac_func in crypt DES_crypt
22046do
22047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22048{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22051  echo $ECHO_N "(cached) $ECHO_C" >&6
22052else
22053  cat >conftest.$ac_ext <<_ACEOF
22054/* confdefs.h.  */
22055_ACEOF
22056cat confdefs.h >>conftest.$ac_ext
22057cat >>conftest.$ac_ext <<_ACEOF
22058/* end confdefs.h.  */
22059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22060   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22061#define $ac_func innocuous_$ac_func
22062
22063/* System header to define __stub macros and hopefully few prototypes,
22064    which can conflict with char $ac_func (); below.
22065    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22066    <limits.h> exists even on freestanding compilers.  */
22067
22068#ifdef __STDC__
22069# include <limits.h>
22070#else
22071# include <assert.h>
22072#endif
22073
22074#undef $ac_func
22075
22076/* Override any GCC internal prototype to avoid an error.
22077   Use char because int might match the return type of a GCC
22078   builtin and then its argument prototype would still apply.  */
22079#ifdef __cplusplus
22080extern "C"
22081#endif
22082char $ac_func ();
22083/* The GNU C library defines this for functions which it implements
22084    to always fail with ENOSYS.  Some functions are actually named
22085    something starting with __ and the normal name is an alias.  */
22086#if defined __stub_$ac_func || defined __stub___$ac_func
22087choke me
22088#endif
22089
22090int
22091main ()
22092{
22093return $ac_func ();
22094  ;
22095  return 0;
22096}
22097_ACEOF
22098rm -f conftest.$ac_objext conftest$ac_exeext
22099if { (ac_try="$ac_link"
22100case "(($ac_try" in
22101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102  *) ac_try_echo=$ac_try;;
22103esac
22104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105  (eval "$ac_link") 2>conftest.er1
22106  ac_status=$?
22107  grep -v '^ *+' conftest.er1 >conftest.err
22108  rm -f conftest.er1
22109  cat conftest.err >&5
22110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111  (exit $ac_status); } && {
22112	 test -z "$ac_c_werror_flag" ||
22113	 test ! -s conftest.err
22114       } && test -s conftest$ac_exeext &&
22115       $as_test_x conftest$ac_exeext; then
22116  eval "$as_ac_var=yes"
22117else
22118  echo "$as_me: failed program was:" >&5
22119sed 's/^/| /' conftest.$ac_ext >&5
22120
22121	eval "$as_ac_var=no"
22122fi
22123
22124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22125      conftest$ac_exeext conftest.$ac_ext
22126fi
22127ac_res=`eval echo '${'$as_ac_var'}'`
22128	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22129echo "${ECHO_T}$ac_res" >&6; }
22130if test `eval echo '${'$as_ac_var'}'` = yes; then
22131  cat >>confdefs.h <<_ACEOF
22132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22133_ACEOF
22134
22135fi
22136done
22137
22138
22139	# Search for SHA256 support in libc and/or OpenSSL
22140
22141
22142for ac_func in SHA256_Update EVP_sha256
22143do
22144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22148  echo $ECHO_N "(cached) $ECHO_C" >&6
22149else
22150  cat >conftest.$ac_ext <<_ACEOF
22151/* confdefs.h.  */
22152_ACEOF
22153cat confdefs.h >>conftest.$ac_ext
22154cat >>conftest.$ac_ext <<_ACEOF
22155/* end confdefs.h.  */
22156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22157   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22158#define $ac_func innocuous_$ac_func
22159
22160/* System header to define __stub macros and hopefully few prototypes,
22161    which can conflict with char $ac_func (); below.
22162    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22163    <limits.h> exists even on freestanding compilers.  */
22164
22165#ifdef __STDC__
22166# include <limits.h>
22167#else
22168# include <assert.h>
22169#endif
22170
22171#undef $ac_func
22172
22173/* Override any GCC internal prototype to avoid an error.
22174   Use char because int might match the return type of a GCC
22175   builtin and then its argument prototype would still apply.  */
22176#ifdef __cplusplus
22177extern "C"
22178#endif
22179char $ac_func ();
22180/* The GNU C library defines this for functions which it implements
22181    to always fail with ENOSYS.  Some functions are actually named
22182    something starting with __ and the normal name is an alias.  */
22183#if defined __stub_$ac_func || defined __stub___$ac_func
22184choke me
22185#endif
22186
22187int
22188main ()
22189{
22190return $ac_func ();
22191  ;
22192  return 0;
22193}
22194_ACEOF
22195rm -f conftest.$ac_objext conftest$ac_exeext
22196if { (ac_try="$ac_link"
22197case "(($ac_try" in
22198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199  *) ac_try_echo=$ac_try;;
22200esac
22201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202  (eval "$ac_link") 2>conftest.er1
22203  ac_status=$?
22204  grep -v '^ *+' conftest.er1 >conftest.err
22205  rm -f conftest.er1
22206  cat conftest.err >&5
22207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208  (exit $ac_status); } && {
22209	 test -z "$ac_c_werror_flag" ||
22210	 test ! -s conftest.err
22211       } && test -s conftest$ac_exeext &&
22212       $as_test_x conftest$ac_exeext; then
22213  eval "$as_ac_var=yes"
22214else
22215  echo "$as_me: failed program was:" >&5
22216sed 's/^/| /' conftest.$ac_ext >&5
22217
22218	eval "$as_ac_var=no"
22219fi
22220
22221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22222      conftest$ac_exeext conftest.$ac_ext
22223fi
22224ac_res=`eval echo '${'$as_ac_var'}'`
22225	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22226echo "${ECHO_T}$ac_res" >&6; }
22227if test `eval echo '${'$as_ac_var'}'` = yes; then
22228  cat >>confdefs.h <<_ACEOF
22229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22230_ACEOF
22231
22232else
22233  unsupported_algorithms="$unsupported_algorithms \
22234		hmac-sha2-256 hmac-sha2-512 \
22235		diffie-hellman-group-exchange-sha256 \
22236		hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
22237
22238
22239fi
22240done
22241
22242	# Search for RIPE-MD support in OpenSSL
22243
22244for ac_func in EVP_ripemd160
22245do
22246as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22247{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22248echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22249if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22250  echo $ECHO_N "(cached) $ECHO_C" >&6
22251else
22252  cat >conftest.$ac_ext <<_ACEOF
22253/* confdefs.h.  */
22254_ACEOF
22255cat confdefs.h >>conftest.$ac_ext
22256cat >>conftest.$ac_ext <<_ACEOF
22257/* end confdefs.h.  */
22258/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22259   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22260#define $ac_func innocuous_$ac_func
22261
22262/* System header to define __stub macros and hopefully few prototypes,
22263    which can conflict with char $ac_func (); below.
22264    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22265    <limits.h> exists even on freestanding compilers.  */
22266
22267#ifdef __STDC__
22268# include <limits.h>
22269#else
22270# include <assert.h>
22271#endif
22272
22273#undef $ac_func
22274
22275/* Override any GCC internal prototype to avoid an error.
22276   Use char because int might match the return type of a GCC
22277   builtin and then its argument prototype would still apply.  */
22278#ifdef __cplusplus
22279extern "C"
22280#endif
22281char $ac_func ();
22282/* The GNU C library defines this for functions which it implements
22283    to always fail with ENOSYS.  Some functions are actually named
22284    something starting with __ and the normal name is an alias.  */
22285#if defined __stub_$ac_func || defined __stub___$ac_func
22286choke me
22287#endif
22288
22289int
22290main ()
22291{
22292return $ac_func ();
22293  ;
22294  return 0;
22295}
22296_ACEOF
22297rm -f conftest.$ac_objext conftest$ac_exeext
22298if { (ac_try="$ac_link"
22299case "(($ac_try" in
22300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301  *) ac_try_echo=$ac_try;;
22302esac
22303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304  (eval "$ac_link") 2>conftest.er1
22305  ac_status=$?
22306  grep -v '^ *+' conftest.er1 >conftest.err
22307  rm -f conftest.er1
22308  cat conftest.err >&5
22309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310  (exit $ac_status); } && {
22311	 test -z "$ac_c_werror_flag" ||
22312	 test ! -s conftest.err
22313       } && test -s conftest$ac_exeext &&
22314       $as_test_x conftest$ac_exeext; then
22315  eval "$as_ac_var=yes"
22316else
22317  echo "$as_me: failed program was:" >&5
22318sed 's/^/| /' conftest.$ac_ext >&5
22319
22320	eval "$as_ac_var=no"
22321fi
22322
22323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22324      conftest$ac_exeext conftest.$ac_ext
22325fi
22326ac_res=`eval echo '${'$as_ac_var'}'`
22327	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22328echo "${ECHO_T}$ac_res" >&6; }
22329if test `eval echo '${'$as_ac_var'}'` = yes; then
22330  cat >>confdefs.h <<_ACEOF
22331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22332_ACEOF
22333
22334else
22335  unsupported_algorithms="$unsupported_algorithms \
22336		hmac-ripemd160
22337		hmac-ripemd160@openssh.com
22338		hmac-ripemd160-etm@openssh.com"
22339
22340
22341fi
22342done
22343
22344
22345	# Check complete ECC support in OpenSSL
22346	{ echo "$as_me:$LINENO: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
22347echo $ECHO_N "checking whether OpenSSL has NID_X9_62_prime256v1... $ECHO_C" >&6; }
22348	cat >conftest.$ac_ext <<_ACEOF
22349/* confdefs.h.  */
22350_ACEOF
22351cat confdefs.h >>conftest.$ac_ext
22352cat >>conftest.$ac_ext <<_ACEOF
22353/* end confdefs.h.  */
22354
22355	#include <openssl/ec.h>
22356	#include <openssl/ecdh.h>
22357	#include <openssl/ecdsa.h>
22358	#include <openssl/evp.h>
22359	#include <openssl/objects.h>
22360	#include <openssl/opensslv.h>
22361	#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22362	# error "OpenSSL < 0.9.8g has unreliable ECC code"
22363	#endif
22364
22365int
22366main ()
22367{
22368
22369		EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
22370		const EVP_MD *m = EVP_sha256(); /* We need this too */
22371
22372  ;
22373  return 0;
22374}
22375_ACEOF
22376rm -f conftest.$ac_objext conftest$ac_exeext
22377if { (ac_try="$ac_link"
22378case "(($ac_try" in
22379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380  *) ac_try_echo=$ac_try;;
22381esac
22382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383  (eval "$ac_link") 2>conftest.er1
22384  ac_status=$?
22385  grep -v '^ *+' conftest.er1 >conftest.err
22386  rm -f conftest.er1
22387  cat conftest.err >&5
22388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389  (exit $ac_status); } && {
22390	 test -z "$ac_c_werror_flag" ||
22391	 test ! -s conftest.err
22392       } && test -s conftest$ac_exeext &&
22393       $as_test_x conftest$ac_exeext; then
22394   { echo "$as_me:$LINENO: result: yes" >&5
22395echo "${ECHO_T}yes" >&6; }
22396		  enable_nistp256=1
22397else
22398  echo "$as_me: failed program was:" >&5
22399sed 's/^/| /' conftest.$ac_ext >&5
22400
22401	 { echo "$as_me:$LINENO: result: no" >&5
22402echo "${ECHO_T}no" >&6; }
22403
22404fi
22405
22406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22407      conftest$ac_exeext conftest.$ac_ext
22408
22409	{ echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp384r1" >&5
22410echo $ECHO_N "checking whether OpenSSL has NID_secp384r1... $ECHO_C" >&6; }
22411	cat >conftest.$ac_ext <<_ACEOF
22412/* confdefs.h.  */
22413_ACEOF
22414cat confdefs.h >>conftest.$ac_ext
22415cat >>conftest.$ac_ext <<_ACEOF
22416/* end confdefs.h.  */
22417
22418	#include <openssl/ec.h>
22419	#include <openssl/ecdh.h>
22420	#include <openssl/ecdsa.h>
22421	#include <openssl/evp.h>
22422	#include <openssl/objects.h>
22423	#include <openssl/opensslv.h>
22424	#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22425	# error "OpenSSL < 0.9.8g has unreliable ECC code"
22426	#endif
22427
22428int
22429main ()
22430{
22431
22432		EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
22433		const EVP_MD *m = EVP_sha384(); /* We need this too */
22434
22435  ;
22436  return 0;
22437}
22438_ACEOF
22439rm -f conftest.$ac_objext conftest$ac_exeext
22440if { (ac_try="$ac_link"
22441case "(($ac_try" in
22442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443  *) ac_try_echo=$ac_try;;
22444esac
22445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446  (eval "$ac_link") 2>conftest.er1
22447  ac_status=$?
22448  grep -v '^ *+' conftest.er1 >conftest.err
22449  rm -f conftest.er1
22450  cat conftest.err >&5
22451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452  (exit $ac_status); } && {
22453	 test -z "$ac_c_werror_flag" ||
22454	 test ! -s conftest.err
22455       } && test -s conftest$ac_exeext &&
22456       $as_test_x conftest$ac_exeext; then
22457   { echo "$as_me:$LINENO: result: yes" >&5
22458echo "${ECHO_T}yes" >&6; }
22459		  enable_nistp384=1
22460else
22461  echo "$as_me: failed program was:" >&5
22462sed 's/^/| /' conftest.$ac_ext >&5
22463
22464	 { echo "$as_me:$LINENO: result: no" >&5
22465echo "${ECHO_T}no" >&6; }
22466
22467fi
22468
22469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22470      conftest$ac_exeext conftest.$ac_ext
22471
22472	{ echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp521r1" >&5
22473echo $ECHO_N "checking whether OpenSSL has NID_secp521r1... $ECHO_C" >&6; }
22474	cat >conftest.$ac_ext <<_ACEOF
22475/* confdefs.h.  */
22476_ACEOF
22477cat confdefs.h >>conftest.$ac_ext
22478cat >>conftest.$ac_ext <<_ACEOF
22479/* end confdefs.h.  */
22480
22481	#include <openssl/ec.h>
22482	#include <openssl/ecdh.h>
22483	#include <openssl/ecdsa.h>
22484	#include <openssl/evp.h>
22485	#include <openssl/objects.h>
22486	#include <openssl/opensslv.h>
22487	#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22488	# error "OpenSSL < 0.9.8g has unreliable ECC code"
22489	#endif
22490
22491int
22492main ()
22493{
22494
22495		EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
22496		const EVP_MD *m = EVP_sha512(); /* We need this too */
22497
22498  ;
22499  return 0;
22500}
22501_ACEOF
22502rm -f conftest.$ac_objext conftest$ac_exeext
22503if { (ac_try="$ac_link"
22504case "(($ac_try" in
22505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506  *) ac_try_echo=$ac_try;;
22507esac
22508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22509  (eval "$ac_link") 2>conftest.er1
22510  ac_status=$?
22511  grep -v '^ *+' conftest.er1 >conftest.err
22512  rm -f conftest.er1
22513  cat conftest.err >&5
22514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515  (exit $ac_status); } && {
22516	 test -z "$ac_c_werror_flag" ||
22517	 test ! -s conftest.err
22518       } && test -s conftest$ac_exeext &&
22519       $as_test_x conftest$ac_exeext; then
22520   { echo "$as_me:$LINENO: result: yes" >&5
22521echo "${ECHO_T}yes" >&6; }
22522		  { echo "$as_me:$LINENO: checking if OpenSSL's NID_secp521r1 is functional" >&5
22523echo $ECHO_N "checking if OpenSSL's NID_secp521r1 is functional... $ECHO_C" >&6; }
22524		  if test "$cross_compiling" = yes; then
22525   { echo "$as_me:$LINENO: WARNING: cross-compiling: assuming yes" >&5
22526echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
22527			  enable_nistp521=1
22528
22529else
22530  cat >conftest.$ac_ext <<_ACEOF
22531/* confdefs.h.  */
22532_ACEOF
22533cat confdefs.h >>conftest.$ac_ext
22534cat >>conftest.$ac_ext <<_ACEOF
22535/* end confdefs.h.  */
22536
22537	#include <openssl/ec.h>
22538	#include <openssl/ecdh.h>
22539	#include <openssl/ecdsa.h>
22540	#include <openssl/evp.h>
22541	#include <openssl/objects.h>
22542	#include <openssl/opensslv.h>
22543
22544int
22545main ()
22546{
22547
22548			EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
22549			const EVP_MD *m = EVP_sha512(); /* We need this too */
22550			exit(e == NULL || m == NULL);
22551
22552  ;
22553  return 0;
22554}
22555_ACEOF
22556rm -f conftest$ac_exeext
22557if { (ac_try="$ac_link"
22558case "(($ac_try" in
22559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560  *) ac_try_echo=$ac_try;;
22561esac
22562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563  (eval "$ac_link") 2>&5
22564  ac_status=$?
22565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22567  { (case "(($ac_try" in
22568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569  *) ac_try_echo=$ac_try;;
22570esac
22571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22572  (eval "$ac_try") 2>&5
22573  ac_status=$?
22574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575  (exit $ac_status); }; }; then
22576   { echo "$as_me:$LINENO: result: yes" >&5
22577echo "${ECHO_T}yes" >&6; }
22578			  enable_nistp521=1
22579else
22580  echo "$as_me: program exited with status $ac_status" >&5
22581echo "$as_me: failed program was:" >&5
22582sed 's/^/| /' conftest.$ac_ext >&5
22583
22584( exit $ac_status )
22585 { echo "$as_me:$LINENO: result: no" >&5
22586echo "${ECHO_T}no" >&6; }
22587fi
22588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22589fi
22590
22591
22592else
22593  echo "$as_me: failed program was:" >&5
22594sed 's/^/| /' conftest.$ac_ext >&5
22595
22596	{ echo "$as_me:$LINENO: result: no" >&5
22597echo "${ECHO_T}no" >&6; }
22598
22599fi
22600
22601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22602      conftest$ac_exeext conftest.$ac_ext
22603
22604	COMMENT_OUT_ECC="#no ecc#"
22605	TEST_SSH_ECC=no
22606
22607	if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
22608	    test x$enable_nistp521 = x1; then
22609
22610cat >>confdefs.h <<\_ACEOF
22611#define OPENSSL_HAS_ECC 1
22612_ACEOF
22613
22614	fi
22615	if test x$enable_nistp256 = x1; then
22616
22617cat >>confdefs.h <<\_ACEOF
22618#define OPENSSL_HAS_NISTP256 1
22619_ACEOF
22620
22621		TEST_SSH_ECC=yes
22622		COMMENT_OUT_ECC=""
22623	else
22624		unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \
22625		    ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com"
22626	fi
22627	if test x$enable_nistp384 = x1; then
22628
22629cat >>confdefs.h <<\_ACEOF
22630#define OPENSSL_HAS_NISTP384 1
22631_ACEOF
22632
22633		TEST_SSH_ECC=yes
22634		COMMENT_OUT_ECC=""
22635	else
22636		unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \
22637		    ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com"
22638	fi
22639	if test x$enable_nistp521 = x1; then
22640
22641cat >>confdefs.h <<\_ACEOF
22642#define OPENSSL_HAS_NISTP521 1
22643_ACEOF
22644
22645		TEST_SSH_ECC=yes
22646		COMMENT_OUT_ECC=""
22647	else
22648		unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \
22649		    ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com"
22650	fi
22651
22652
22653
22654else
22655	{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22656echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22657if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22658  echo $ECHO_N "(cached) $ECHO_C" >&6
22659else
22660  ac_check_lib_save_LIBS=$LIBS
22661LIBS="-lcrypt  $LIBS"
22662cat >conftest.$ac_ext <<_ACEOF
22663/* confdefs.h.  */
22664_ACEOF
22665cat confdefs.h >>conftest.$ac_ext
22666cat >>conftest.$ac_ext <<_ACEOF
22667/* end confdefs.h.  */
22668
22669/* Override any GCC internal prototype to avoid an error.
22670   Use char because int might match the return type of a GCC
22671   builtin and then its argument prototype would still apply.  */
22672#ifdef __cplusplus
22673extern "C"
22674#endif
22675char crypt ();
22676int
22677main ()
22678{
22679return crypt ();
22680  ;
22681  return 0;
22682}
22683_ACEOF
22684rm -f conftest.$ac_objext conftest$ac_exeext
22685if { (ac_try="$ac_link"
22686case "(($ac_try" in
22687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688  *) ac_try_echo=$ac_try;;
22689esac
22690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691  (eval "$ac_link") 2>conftest.er1
22692  ac_status=$?
22693  grep -v '^ *+' conftest.er1 >conftest.err
22694  rm -f conftest.er1
22695  cat conftest.err >&5
22696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697  (exit $ac_status); } && {
22698	 test -z "$ac_c_werror_flag" ||
22699	 test ! -s conftest.err
22700       } && test -s conftest$ac_exeext &&
22701       $as_test_x conftest$ac_exeext; then
22702  ac_cv_lib_crypt_crypt=yes
22703else
22704  echo "$as_me: failed program was:" >&5
22705sed 's/^/| /' conftest.$ac_ext >&5
22706
22707	ac_cv_lib_crypt_crypt=no
22708fi
22709
22710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22711      conftest$ac_exeext conftest.$ac_ext
22712LIBS=$ac_check_lib_save_LIBS
22713fi
22714{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22715echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22716if test $ac_cv_lib_crypt_crypt = yes; then
22717  LIBS="$LIBS -lcrypt"
22718fi
22719
22720
22721for ac_func in crypt
22722do
22723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22724{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22727  echo $ECHO_N "(cached) $ECHO_C" >&6
22728else
22729  cat >conftest.$ac_ext <<_ACEOF
22730/* confdefs.h.  */
22731_ACEOF
22732cat confdefs.h >>conftest.$ac_ext
22733cat >>conftest.$ac_ext <<_ACEOF
22734/* end confdefs.h.  */
22735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22736   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22737#define $ac_func innocuous_$ac_func
22738
22739/* System header to define __stub macros and hopefully few prototypes,
22740    which can conflict with char $ac_func (); below.
22741    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22742    <limits.h> exists even on freestanding compilers.  */
22743
22744#ifdef __STDC__
22745# include <limits.h>
22746#else
22747# include <assert.h>
22748#endif
22749
22750#undef $ac_func
22751
22752/* Override any GCC internal prototype to avoid an error.
22753   Use char because int might match the return type of a GCC
22754   builtin and then its argument prototype would still apply.  */
22755#ifdef __cplusplus
22756extern "C"
22757#endif
22758char $ac_func ();
22759/* The GNU C library defines this for functions which it implements
22760    to always fail with ENOSYS.  Some functions are actually named
22761    something starting with __ and the normal name is an alias.  */
22762#if defined __stub_$ac_func || defined __stub___$ac_func
22763choke me
22764#endif
22765
22766int
22767main ()
22768{
22769return $ac_func ();
22770  ;
22771  return 0;
22772}
22773_ACEOF
22774rm -f conftest.$ac_objext conftest$ac_exeext
22775if { (ac_try="$ac_link"
22776case "(($ac_try" in
22777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778  *) ac_try_echo=$ac_try;;
22779esac
22780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781  (eval "$ac_link") 2>conftest.er1
22782  ac_status=$?
22783  grep -v '^ *+' conftest.er1 >conftest.err
22784  rm -f conftest.er1
22785  cat conftest.err >&5
22786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787  (exit $ac_status); } && {
22788	 test -z "$ac_c_werror_flag" ||
22789	 test ! -s conftest.err
22790       } && test -s conftest$ac_exeext &&
22791       $as_test_x conftest$ac_exeext; then
22792  eval "$as_ac_var=yes"
22793else
22794  echo "$as_me: failed program was:" >&5
22795sed 's/^/| /' conftest.$ac_ext >&5
22796
22797	eval "$as_ac_var=no"
22798fi
22799
22800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22801      conftest$ac_exeext conftest.$ac_ext
22802fi
22803ac_res=`eval echo '${'$as_ac_var'}'`
22804	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22805echo "${ECHO_T}$ac_res" >&6; }
22806if test `eval echo '${'$as_ac_var'}'` = yes; then
22807  cat >>confdefs.h <<_ACEOF
22808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22809_ACEOF
22810
22811fi
22812done
22813
22814fi
22815
22816
22817
22818
22819
22820for ac_func in  \
22821	arc4random \
22822	arc4random_buf \
22823	arc4random_stir \
22824	arc4random_uniform \
22825
22826do
22827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22828{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22830if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22831  echo $ECHO_N "(cached) $ECHO_C" >&6
22832else
22833  cat >conftest.$ac_ext <<_ACEOF
22834/* confdefs.h.  */
22835_ACEOF
22836cat confdefs.h >>conftest.$ac_ext
22837cat >>conftest.$ac_ext <<_ACEOF
22838/* end confdefs.h.  */
22839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22841#define $ac_func innocuous_$ac_func
22842
22843/* System header to define __stub macros and hopefully few prototypes,
22844    which can conflict with char $ac_func (); below.
22845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22846    <limits.h> exists even on freestanding compilers.  */
22847
22848#ifdef __STDC__
22849# include <limits.h>
22850#else
22851# include <assert.h>
22852#endif
22853
22854#undef $ac_func
22855
22856/* Override any GCC internal prototype to avoid an error.
22857   Use char because int might match the return type of a GCC
22858   builtin and then its argument prototype would still apply.  */
22859#ifdef __cplusplus
22860extern "C"
22861#endif
22862char $ac_func ();
22863/* The GNU C library defines this for functions which it implements
22864    to always fail with ENOSYS.  Some functions are actually named
22865    something starting with __ and the normal name is an alias.  */
22866#if defined __stub_$ac_func || defined __stub___$ac_func
22867choke me
22868#endif
22869
22870int
22871main ()
22872{
22873return $ac_func ();
22874  ;
22875  return 0;
22876}
22877_ACEOF
22878rm -f conftest.$ac_objext conftest$ac_exeext
22879if { (ac_try="$ac_link"
22880case "(($ac_try" in
22881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882  *) ac_try_echo=$ac_try;;
22883esac
22884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885  (eval "$ac_link") 2>conftest.er1
22886  ac_status=$?
22887  grep -v '^ *+' conftest.er1 >conftest.err
22888  rm -f conftest.er1
22889  cat conftest.err >&5
22890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891  (exit $ac_status); } && {
22892	 test -z "$ac_c_werror_flag" ||
22893	 test ! -s conftest.err
22894       } && test -s conftest$ac_exeext &&
22895       $as_test_x conftest$ac_exeext; then
22896  eval "$as_ac_var=yes"
22897else
22898  echo "$as_me: failed program was:" >&5
22899sed 's/^/| /' conftest.$ac_ext >&5
22900
22901	eval "$as_ac_var=no"
22902fi
22903
22904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22905      conftest$ac_exeext conftest.$ac_ext
22906fi
22907ac_res=`eval echo '${'$as_ac_var'}'`
22908	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22909echo "${ECHO_T}$ac_res" >&6; }
22910if test `eval echo '${'$as_ac_var'}'` = yes; then
22911  cat >>confdefs.h <<_ACEOF
22912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22913_ACEOF
22914
22915fi
22916done
22917
22918
22919saved_LIBS="$LIBS"
22920{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
22921echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
22922if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
22923  echo $ECHO_N "(cached) $ECHO_C" >&6
22924else
22925  ac_check_lib_save_LIBS=$LIBS
22926LIBS="-liaf  $LIBS"
22927cat >conftest.$ac_ext <<_ACEOF
22928/* confdefs.h.  */
22929_ACEOF
22930cat confdefs.h >>conftest.$ac_ext
22931cat >>conftest.$ac_ext <<_ACEOF
22932/* end confdefs.h.  */
22933
22934/* Override any GCC internal prototype to avoid an error.
22935   Use char because int might match the return type of a GCC
22936   builtin and then its argument prototype would still apply.  */
22937#ifdef __cplusplus
22938extern "C"
22939#endif
22940char ia_openinfo ();
22941int
22942main ()
22943{
22944return ia_openinfo ();
22945  ;
22946  return 0;
22947}
22948_ACEOF
22949rm -f conftest.$ac_objext conftest$ac_exeext
22950if { (ac_try="$ac_link"
22951case "(($ac_try" in
22952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953  *) ac_try_echo=$ac_try;;
22954esac
22955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956  (eval "$ac_link") 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	 test -z "$ac_c_werror_flag" ||
22964	 test ! -s conftest.err
22965       } && test -s conftest$ac_exeext &&
22966       $as_test_x conftest$ac_exeext; then
22967  ac_cv_lib_iaf_ia_openinfo=yes
22968else
22969  echo "$as_me: failed program was:" >&5
22970sed 's/^/| /' conftest.$ac_ext >&5
22971
22972	ac_cv_lib_iaf_ia_openinfo=no
22973fi
22974
22975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22976      conftest$ac_exeext conftest.$ac_ext
22977LIBS=$ac_check_lib_save_LIBS
22978fi
22979{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
22980echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
22981if test $ac_cv_lib_iaf_ia_openinfo = yes; then
22982
22983	LIBS="$LIBS -liaf"
22984
22985for ac_func in set_id
22986do
22987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22988{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22990if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22991  echo $ECHO_N "(cached) $ECHO_C" >&6
22992else
22993  cat >conftest.$ac_ext <<_ACEOF
22994/* confdefs.h.  */
22995_ACEOF
22996cat confdefs.h >>conftest.$ac_ext
22997cat >>conftest.$ac_ext <<_ACEOF
22998/* end confdefs.h.  */
22999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23000   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23001#define $ac_func innocuous_$ac_func
23002
23003/* System header to define __stub macros and hopefully few prototypes,
23004    which can conflict with char $ac_func (); below.
23005    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23006    <limits.h> exists even on freestanding compilers.  */
23007
23008#ifdef __STDC__
23009# include <limits.h>
23010#else
23011# include <assert.h>
23012#endif
23013
23014#undef $ac_func
23015
23016/* Override any GCC internal prototype to avoid an error.
23017   Use char because int might match the return type of a GCC
23018   builtin and then its argument prototype would still apply.  */
23019#ifdef __cplusplus
23020extern "C"
23021#endif
23022char $ac_func ();
23023/* The GNU C library defines this for functions which it implements
23024    to always fail with ENOSYS.  Some functions are actually named
23025    something starting with __ and the normal name is an alias.  */
23026#if defined __stub_$ac_func || defined __stub___$ac_func
23027choke me
23028#endif
23029
23030int
23031main ()
23032{
23033return $ac_func ();
23034  ;
23035  return 0;
23036}
23037_ACEOF
23038rm -f conftest.$ac_objext conftest$ac_exeext
23039if { (ac_try="$ac_link"
23040case "(($ac_try" in
23041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042  *) ac_try_echo=$ac_try;;
23043esac
23044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045  (eval "$ac_link") 2>conftest.er1
23046  ac_status=$?
23047  grep -v '^ *+' conftest.er1 >conftest.err
23048  rm -f conftest.er1
23049  cat conftest.err >&5
23050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051  (exit $ac_status); } && {
23052	 test -z "$ac_c_werror_flag" ||
23053	 test ! -s conftest.err
23054       } && test -s conftest$ac_exeext &&
23055       $as_test_x conftest$ac_exeext; then
23056  eval "$as_ac_var=yes"
23057else
23058  echo "$as_me: failed program was:" >&5
23059sed 's/^/| /' conftest.$ac_ext >&5
23060
23061	eval "$as_ac_var=no"
23062fi
23063
23064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23065      conftest$ac_exeext conftest.$ac_ext
23066fi
23067ac_res=`eval echo '${'$as_ac_var'}'`
23068	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23069echo "${ECHO_T}$ac_res" >&6; }
23070if test `eval echo '${'$as_ac_var'}'` = yes; then
23071  cat >>confdefs.h <<_ACEOF
23072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23073_ACEOF
23074 SSHDLIBS="$SSHDLIBS -liaf"
23075
23076cat >>confdefs.h <<\_ACEOF
23077#define HAVE_LIBIAF 1
23078_ACEOF
23079
23080
23081fi
23082done
23083
23084
23085fi
23086
23087LIBS="$saved_LIBS"
23088
23089### Configure cryptographic random number support
23090
23091# Check wheter OpenSSL seeds itself
23092if test "x$openssl" = "xyes" ; then
23093	{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
23094echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
23095	if test "$cross_compiling" = yes; then
23096
23097			{ echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23098echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
23099			# This is safe, since we will fatal() at runtime if
23100			# OpenSSL is not seeded correctly.
23101			OPENSSL_SEEDS_ITSELF=yes
23102
23103
23104else
23105  cat >conftest.$ac_ext <<_ACEOF
23106/* confdefs.h.  */
23107_ACEOF
23108cat confdefs.h >>conftest.$ac_ext
23109cat >>conftest.$ac_ext <<_ACEOF
23110/* end confdefs.h.  */
23111
23112	#include <string.h>
23113	#include <openssl/rand.h>
23114
23115int
23116main ()
23117{
23118
23119		exit(RAND_status() == 1 ? 0 : 1);
23120
23121  ;
23122  return 0;
23123}
23124_ACEOF
23125rm -f conftest$ac_exeext
23126if { (ac_try="$ac_link"
23127case "(($ac_try" in
23128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129  *) ac_try_echo=$ac_try;;
23130esac
23131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132  (eval "$ac_link") 2>&5
23133  ac_status=$?
23134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23136  { (case "(($ac_try" in
23137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138  *) ac_try_echo=$ac_try;;
23139esac
23140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141  (eval "$ac_try") 2>&5
23142  ac_status=$?
23143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144  (exit $ac_status); }; }; then
23145
23146			OPENSSL_SEEDS_ITSELF=yes
23147			{ echo "$as_me:$LINENO: result: yes" >&5
23148echo "${ECHO_T}yes" >&6; }
23149
23150else
23151  echo "$as_me: program exited with status $ac_status" >&5
23152echo "$as_me: failed program was:" >&5
23153sed 's/^/| /' conftest.$ac_ext >&5
23154
23155( exit $ac_status )
23156
23157			{ echo "$as_me:$LINENO: result: no" >&5
23158echo "${ECHO_T}no" >&6; }
23159
23160fi
23161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23162fi
23163
23164
23165fi
23166
23167# PRNGD TCP socket
23168
23169# Check whether --with-prngd-port was given.
23170if test "${with_prngd_port+set}" = set; then
23171  withval=$with_prngd_port;
23172		case "$withval" in
23173		no)
23174			withval=""
23175			;;
23176		[0-9]*)
23177			;;
23178		*)
23179			{ { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
23180echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
23181   { (exit 1); exit 1; }; }
23182			;;
23183		esac
23184		if test ! -z "$withval" ; then
23185			PRNGD_PORT="$withval"
23186
23187cat >>confdefs.h <<_ACEOF
23188#define PRNGD_PORT $PRNGD_PORT
23189_ACEOF
23190
23191		fi
23192
23193
23194fi
23195
23196
23197# PRNGD Unix domain socket
23198
23199# Check whether --with-prngd-socket was given.
23200if test "${with_prngd_socket+set}" = set; then
23201  withval=$with_prngd_socket;
23202		case "$withval" in
23203		yes)
23204			withval="/var/run/egd-pool"
23205			;;
23206		no)
23207			withval=""
23208			;;
23209		/*)
23210			;;
23211		*)
23212			{ { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
23213echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
23214   { (exit 1); exit 1; }; }
23215			;;
23216		esac
23217
23218		if test ! -z "$withval" ; then
23219			if test ! -z "$PRNGD_PORT" ; then
23220				{ { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
23221echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
23222   { (exit 1); exit 1; }; }
23223			fi
23224			if test ! -r "$withval" ; then
23225				{ echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
23226echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
23227			fi
23228			PRNGD_SOCKET="$withval"
23229
23230cat >>confdefs.h <<_ACEOF
23231#define PRNGD_SOCKET "$PRNGD_SOCKET"
23232_ACEOF
23233
23234		fi
23235
23236else
23237
23238		# Check for existing socket only if we don't have a random device already
23239		if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
23240			{ echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
23241echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
23242			# Insert other locations here
23243			for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
23244				if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
23245					PRNGD_SOCKET="$sock"
23246					cat >>confdefs.h <<_ACEOF
23247#define PRNGD_SOCKET "$PRNGD_SOCKET"
23248_ACEOF
23249
23250					break;
23251				fi
23252			done
23253			if test ! -z "$PRNGD_SOCKET" ; then
23254				{ echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
23255echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
23256			else
23257				{ echo "$as_me:$LINENO: result: not found" >&5
23258echo "${ECHO_T}not found" >&6; }
23259			fi
23260		fi
23261
23262
23263fi
23264
23265
23266# Which randomness source do we use?
23267if test ! -z "$PRNGD_PORT" ; then
23268	RAND_MSG="PRNGd port $PRNGD_PORT"
23269elif test ! -z "$PRNGD_SOCKET" ; then
23270	RAND_MSG="PRNGd socket $PRNGD_SOCKET"
23271elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
23272
23273cat >>confdefs.h <<\_ACEOF
23274#define OPENSSL_PRNG_ONLY 1
23275_ACEOF
23276
23277	RAND_MSG="OpenSSL internal ONLY"
23278elif test "x$openssl" = "xno" ; then
23279	{ echo "$as_me:$LINENO: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5
23280echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;}
23281else
23282	{ { echo "$as_me:$LINENO: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&5
23283echo "$as_me: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&2;}
23284   { (exit 1); exit 1; }; }
23285fi
23286
23287# Check for PAM libs
23288PAM_MSG="no"
23289
23290# Check whether --with-pam was given.
23291if test "${with_pam+set}" = set; then
23292  withval=$with_pam;
23293		if test "x$withval" != "xno" ; then
23294			if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
23295			   test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
23296				{ { echo "$as_me:$LINENO: error: PAM headers not found" >&5
23297echo "$as_me: error: PAM headers not found" >&2;}
23298   { (exit 1); exit 1; }; }
23299			fi
23300
23301			saved_LIBS="$LIBS"
23302
23303{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23304echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
23305if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23306  echo $ECHO_N "(cached) $ECHO_C" >&6
23307else
23308  ac_check_lib_save_LIBS=$LIBS
23309LIBS="-ldl  $LIBS"
23310cat >conftest.$ac_ext <<_ACEOF
23311/* confdefs.h.  */
23312_ACEOF
23313cat confdefs.h >>conftest.$ac_ext
23314cat >>conftest.$ac_ext <<_ACEOF
23315/* end confdefs.h.  */
23316
23317/* Override any GCC internal prototype to avoid an error.
23318   Use char because int might match the return type of a GCC
23319   builtin and then its argument prototype would still apply.  */
23320#ifdef __cplusplus
23321extern "C"
23322#endif
23323char dlopen ();
23324int
23325main ()
23326{
23327return dlopen ();
23328  ;
23329  return 0;
23330}
23331_ACEOF
23332rm -f conftest.$ac_objext conftest$ac_exeext
23333if { (ac_try="$ac_link"
23334case "(($ac_try" in
23335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336  *) ac_try_echo=$ac_try;;
23337esac
23338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339  (eval "$ac_link") 2>conftest.er1
23340  ac_status=$?
23341  grep -v '^ *+' conftest.er1 >conftest.err
23342  rm -f conftest.er1
23343  cat conftest.err >&5
23344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345  (exit $ac_status); } && {
23346	 test -z "$ac_c_werror_flag" ||
23347	 test ! -s conftest.err
23348       } && test -s conftest$ac_exeext &&
23349       $as_test_x conftest$ac_exeext; then
23350  ac_cv_lib_dl_dlopen=yes
23351else
23352  echo "$as_me: failed program was:" >&5
23353sed 's/^/| /' conftest.$ac_ext >&5
23354
23355	ac_cv_lib_dl_dlopen=no
23356fi
23357
23358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23359      conftest$ac_exeext conftest.$ac_ext
23360LIBS=$ac_check_lib_save_LIBS
23361fi
23362{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23363echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
23364if test $ac_cv_lib_dl_dlopen = yes; then
23365  cat >>confdefs.h <<_ACEOF
23366#define HAVE_LIBDL 1
23367_ACEOF
23368
23369  LIBS="-ldl $LIBS"
23370
23371fi
23372
23373
23374{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
23375echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
23376if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
23377  echo $ECHO_N "(cached) $ECHO_C" >&6
23378else
23379  ac_check_lib_save_LIBS=$LIBS
23380LIBS="-lpam  $LIBS"
23381cat >conftest.$ac_ext <<_ACEOF
23382/* confdefs.h.  */
23383_ACEOF
23384cat confdefs.h >>conftest.$ac_ext
23385cat >>conftest.$ac_ext <<_ACEOF
23386/* end confdefs.h.  */
23387
23388/* Override any GCC internal prototype to avoid an error.
23389   Use char because int might match the return type of a GCC
23390   builtin and then its argument prototype would still apply.  */
23391#ifdef __cplusplus
23392extern "C"
23393#endif
23394char pam_set_item ();
23395int
23396main ()
23397{
23398return pam_set_item ();
23399  ;
23400  return 0;
23401}
23402_ACEOF
23403rm -f conftest.$ac_objext conftest$ac_exeext
23404if { (ac_try="$ac_link"
23405case "(($ac_try" in
23406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407  *) ac_try_echo=$ac_try;;
23408esac
23409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410  (eval "$ac_link") 2>conftest.er1
23411  ac_status=$?
23412  grep -v '^ *+' conftest.er1 >conftest.err
23413  rm -f conftest.er1
23414  cat conftest.err >&5
23415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416  (exit $ac_status); } && {
23417	 test -z "$ac_c_werror_flag" ||
23418	 test ! -s conftest.err
23419       } && test -s conftest$ac_exeext &&
23420       $as_test_x conftest$ac_exeext; then
23421  ac_cv_lib_pam_pam_set_item=yes
23422else
23423  echo "$as_me: failed program was:" >&5
23424sed 's/^/| /' conftest.$ac_ext >&5
23425
23426	ac_cv_lib_pam_pam_set_item=no
23427fi
23428
23429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23430      conftest$ac_exeext conftest.$ac_ext
23431LIBS=$ac_check_lib_save_LIBS
23432fi
23433{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
23434echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
23435if test $ac_cv_lib_pam_pam_set_item = yes; then
23436  cat >>confdefs.h <<_ACEOF
23437#define HAVE_LIBPAM 1
23438_ACEOF
23439
23440  LIBS="-lpam $LIBS"
23441
23442else
23443  { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
23444echo "$as_me: error: *** libpam missing" >&2;}
23445   { (exit 1); exit 1; }; }
23446fi
23447
23448
23449for ac_func in pam_getenvlist
23450do
23451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23452{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23455  echo $ECHO_N "(cached) $ECHO_C" >&6
23456else
23457  cat >conftest.$ac_ext <<_ACEOF
23458/* confdefs.h.  */
23459_ACEOF
23460cat confdefs.h >>conftest.$ac_ext
23461cat >>conftest.$ac_ext <<_ACEOF
23462/* end confdefs.h.  */
23463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23464   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23465#define $ac_func innocuous_$ac_func
23466
23467/* System header to define __stub macros and hopefully few prototypes,
23468    which can conflict with char $ac_func (); below.
23469    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23470    <limits.h> exists even on freestanding compilers.  */
23471
23472#ifdef __STDC__
23473# include <limits.h>
23474#else
23475# include <assert.h>
23476#endif
23477
23478#undef $ac_func
23479
23480/* Override any GCC internal prototype to avoid an error.
23481   Use char because int might match the return type of a GCC
23482   builtin and then its argument prototype would still apply.  */
23483#ifdef __cplusplus
23484extern "C"
23485#endif
23486char $ac_func ();
23487/* The GNU C library defines this for functions which it implements
23488    to always fail with ENOSYS.  Some functions are actually named
23489    something starting with __ and the normal name is an alias.  */
23490#if defined __stub_$ac_func || defined __stub___$ac_func
23491choke me
23492#endif
23493
23494int
23495main ()
23496{
23497return $ac_func ();
23498  ;
23499  return 0;
23500}
23501_ACEOF
23502rm -f conftest.$ac_objext conftest$ac_exeext
23503if { (ac_try="$ac_link"
23504case "(($ac_try" in
23505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506  *) ac_try_echo=$ac_try;;
23507esac
23508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509  (eval "$ac_link") 2>conftest.er1
23510  ac_status=$?
23511  grep -v '^ *+' conftest.er1 >conftest.err
23512  rm -f conftest.er1
23513  cat conftest.err >&5
23514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515  (exit $ac_status); } && {
23516	 test -z "$ac_c_werror_flag" ||
23517	 test ! -s conftest.err
23518       } && test -s conftest$ac_exeext &&
23519       $as_test_x conftest$ac_exeext; then
23520  eval "$as_ac_var=yes"
23521else
23522  echo "$as_me: failed program was:" >&5
23523sed 's/^/| /' conftest.$ac_ext >&5
23524
23525	eval "$as_ac_var=no"
23526fi
23527
23528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23529      conftest$ac_exeext conftest.$ac_ext
23530fi
23531ac_res=`eval echo '${'$as_ac_var'}'`
23532	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23533echo "${ECHO_T}$ac_res" >&6; }
23534if test `eval echo '${'$as_ac_var'}'` = yes; then
23535  cat >>confdefs.h <<_ACEOF
23536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23537_ACEOF
23538
23539fi
23540done
23541
23542
23543for ac_func in pam_putenv
23544do
23545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23546{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23548if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23549  echo $ECHO_N "(cached) $ECHO_C" >&6
23550else
23551  cat >conftest.$ac_ext <<_ACEOF
23552/* confdefs.h.  */
23553_ACEOF
23554cat confdefs.h >>conftest.$ac_ext
23555cat >>conftest.$ac_ext <<_ACEOF
23556/* end confdefs.h.  */
23557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23558   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23559#define $ac_func innocuous_$ac_func
23560
23561/* System header to define __stub macros and hopefully few prototypes,
23562    which can conflict with char $ac_func (); below.
23563    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23564    <limits.h> exists even on freestanding compilers.  */
23565
23566#ifdef __STDC__
23567# include <limits.h>
23568#else
23569# include <assert.h>
23570#endif
23571
23572#undef $ac_func
23573
23574/* Override any GCC internal prototype to avoid an error.
23575   Use char because int might match the return type of a GCC
23576   builtin and then its argument prototype would still apply.  */
23577#ifdef __cplusplus
23578extern "C"
23579#endif
23580char $ac_func ();
23581/* The GNU C library defines this for functions which it implements
23582    to always fail with ENOSYS.  Some functions are actually named
23583    something starting with __ and the normal name is an alias.  */
23584#if defined __stub_$ac_func || defined __stub___$ac_func
23585choke me
23586#endif
23587
23588int
23589main ()
23590{
23591return $ac_func ();
23592  ;
23593  return 0;
23594}
23595_ACEOF
23596rm -f conftest.$ac_objext conftest$ac_exeext
23597if { (ac_try="$ac_link"
23598case "(($ac_try" in
23599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600  *) ac_try_echo=$ac_try;;
23601esac
23602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603  (eval "$ac_link") 2>conftest.er1
23604  ac_status=$?
23605  grep -v '^ *+' conftest.er1 >conftest.err
23606  rm -f conftest.er1
23607  cat conftest.err >&5
23608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609  (exit $ac_status); } && {
23610	 test -z "$ac_c_werror_flag" ||
23611	 test ! -s conftest.err
23612       } && test -s conftest$ac_exeext &&
23613       $as_test_x conftest$ac_exeext; then
23614  eval "$as_ac_var=yes"
23615else
23616  echo "$as_me: failed program was:" >&5
23617sed 's/^/| /' conftest.$ac_ext >&5
23618
23619	eval "$as_ac_var=no"
23620fi
23621
23622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23623      conftest$ac_exeext conftest.$ac_ext
23624fi
23625ac_res=`eval echo '${'$as_ac_var'}'`
23626	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23627echo "${ECHO_T}$ac_res" >&6; }
23628if test `eval echo '${'$as_ac_var'}'` = yes; then
23629  cat >>confdefs.h <<_ACEOF
23630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23631_ACEOF
23632
23633fi
23634done
23635
23636			LIBS="$saved_LIBS"
23637
23638			PAM_MSG="yes"
23639
23640			SSHDLIBS="$SSHDLIBS -lpam"
23641
23642cat >>confdefs.h <<\_ACEOF
23643#define USE_PAM 1
23644_ACEOF
23645
23646
23647			if test $ac_cv_lib_dl_dlopen = yes; then
23648				case "$LIBS" in
23649				*-ldl*)
23650					# libdl already in LIBS
23651					;;
23652				*)
23653					SSHDLIBS="$SSHDLIBS -ldl"
23654					;;
23655				esac
23656			fi
23657		fi
23658
23659
23660fi
23661
23662
23663# Check for older PAM
23664if test "x$PAM_MSG" = "xyes" ; then
23665	# Check PAM strerror arguments (old PAM)
23666	{ echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
23667echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
23668	cat >conftest.$ac_ext <<_ACEOF
23669/* confdefs.h.  */
23670_ACEOF
23671cat confdefs.h >>conftest.$ac_ext
23672cat >>conftest.$ac_ext <<_ACEOF
23673/* end confdefs.h.  */
23674
23675#include <stdlib.h>
23676#if defined(HAVE_SECURITY_PAM_APPL_H)
23677#include <security/pam_appl.h>
23678#elif defined (HAVE_PAM_PAM_APPL_H)
23679#include <pam/pam_appl.h>
23680#endif
23681
23682int
23683main ()
23684{
23685
23686(void)pam_strerror((pam_handle_t *)NULL, -1);
23687
23688  ;
23689  return 0;
23690}
23691_ACEOF
23692rm -f conftest.$ac_objext
23693if { (ac_try="$ac_compile"
23694case "(($ac_try" in
23695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696  *) ac_try_echo=$ac_try;;
23697esac
23698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23699  (eval "$ac_compile") 2>conftest.er1
23700  ac_status=$?
23701  grep -v '^ *+' conftest.er1 >conftest.err
23702  rm -f conftest.er1
23703  cat conftest.err >&5
23704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705  (exit $ac_status); } && {
23706	 test -z "$ac_c_werror_flag" ||
23707	 test ! -s conftest.err
23708       } && test -s conftest.$ac_objext; then
23709  { echo "$as_me:$LINENO: result: no" >&5
23710echo "${ECHO_T}no" >&6; }
23711else
23712  echo "$as_me: failed program was:" >&5
23713sed 's/^/| /' conftest.$ac_ext >&5
23714
23715
23716
23717cat >>confdefs.h <<\_ACEOF
23718#define HAVE_OLD_PAM 1
23719_ACEOF
23720
23721			{ echo "$as_me:$LINENO: result: yes" >&5
23722echo "${ECHO_T}yes" >&6; }
23723			PAM_MSG="yes (old library)"
23724
23725
23726fi
23727
23728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23729fi
23730
23731case "$host" in
23732*-*-cygwin*)
23733	SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
23734	;;
23735*)
23736	SSH_PRIVSEP_USER=sshd
23737	;;
23738esac
23739
23740# Check whether --with-privsep-user was given.
23741if test "${with_privsep_user+set}" = set; then
23742  withval=$with_privsep_user;
23743		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
23744		    test "x${withval}" != "xyes"; then
23745			SSH_PRIVSEP_USER=$withval
23746		fi
23747
23748
23749fi
23750
23751if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
23752
23753cat >>confdefs.h <<_ACEOF
23754#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
23755_ACEOF
23756
23757else
23758
23759cat >>confdefs.h <<_ACEOF
23760#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
23761_ACEOF
23762
23763fi
23764
23765
23766if test "x$have_linux_no_new_privs" = "x1" ; then
23767{ echo "$as_me:$LINENO: checking whether SECCOMP_MODE_FILTER is declared" >&5
23768echo $ECHO_N "checking whether SECCOMP_MODE_FILTER is declared... $ECHO_C" >&6; }
23769if test "${ac_cv_have_decl_SECCOMP_MODE_FILTER+set}" = set; then
23770  echo $ECHO_N "(cached) $ECHO_C" >&6
23771else
23772  cat >conftest.$ac_ext <<_ACEOF
23773/* confdefs.h.  */
23774_ACEOF
23775cat confdefs.h >>conftest.$ac_ext
23776cat >>conftest.$ac_ext <<_ACEOF
23777/* end confdefs.h.  */
23778
23779	#include <sys/types.h>
23780	#include <linux/seccomp.h>
23781
23782
23783int
23784main ()
23785{
23786#ifndef SECCOMP_MODE_FILTER
23787  (void) SECCOMP_MODE_FILTER;
23788#endif
23789
23790  ;
23791  return 0;
23792}
23793_ACEOF
23794rm -f conftest.$ac_objext
23795if { (ac_try="$ac_compile"
23796case "(($ac_try" in
23797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23798  *) ac_try_echo=$ac_try;;
23799esac
23800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23801  (eval "$ac_compile") 2>conftest.er1
23802  ac_status=$?
23803  grep -v '^ *+' conftest.er1 >conftest.err
23804  rm -f conftest.er1
23805  cat conftest.err >&5
23806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807  (exit $ac_status); } && {
23808	 test -z "$ac_c_werror_flag" ||
23809	 test ! -s conftest.err
23810       } && test -s conftest.$ac_objext; then
23811  ac_cv_have_decl_SECCOMP_MODE_FILTER=yes
23812else
23813  echo "$as_me: failed program was:" >&5
23814sed 's/^/| /' conftest.$ac_ext >&5
23815
23816	ac_cv_have_decl_SECCOMP_MODE_FILTER=no
23817fi
23818
23819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820fi
23821{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SECCOMP_MODE_FILTER" >&5
23822echo "${ECHO_T}$ac_cv_have_decl_SECCOMP_MODE_FILTER" >&6; }
23823if test $ac_cv_have_decl_SECCOMP_MODE_FILTER = yes; then
23824  have_seccomp_filter=1
23825fi
23826
23827fi
23828if test "x$have_seccomp_filter" = "x1" ; then
23829{ echo "$as_me:$LINENO: checking kernel for seccomp_filter support" >&5
23830echo $ECHO_N "checking kernel for seccomp_filter support... $ECHO_C" >&6; }
23831cat >conftest.$ac_ext <<_ACEOF
23832/* confdefs.h.  */
23833_ACEOF
23834cat confdefs.h >>conftest.$ac_ext
23835cat >>conftest.$ac_ext <<_ACEOF
23836/* end confdefs.h.  */
23837
23838		#include <errno.h>
23839		#include <elf.h>
23840		#include <linux/audit.h>
23841		#include <linux/seccomp.h>
23842		#include <stdlib.h>
23843		#include <sys/prctl.h>
23844
23845int
23846main ()
23847{
23848 int i = $seccomp_audit_arch;
23849	   errno = 0;
23850	   prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
23851	   exit(errno == EFAULT ? 0 : 1);
23852  ;
23853  return 0;
23854}
23855_ACEOF
23856rm -f conftest.$ac_objext conftest$ac_exeext
23857if { (ac_try="$ac_link"
23858case "(($ac_try" in
23859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860  *) ac_try_echo=$ac_try;;
23861esac
23862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23863  (eval "$ac_link") 2>conftest.er1
23864  ac_status=$?
23865  grep -v '^ *+' conftest.er1 >conftest.err
23866  rm -f conftest.er1
23867  cat conftest.err >&5
23868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869  (exit $ac_status); } && {
23870	 test -z "$ac_c_werror_flag" ||
23871	 test ! -s conftest.err
23872       } && test -s conftest$ac_exeext &&
23873       $as_test_x conftest$ac_exeext; then
23874   { echo "$as_me:$LINENO: result: yes" >&5
23875echo "${ECHO_T}yes" >&6; }
23876else
23877  echo "$as_me: failed program was:" >&5
23878sed 's/^/| /' conftest.$ac_ext >&5
23879
23880
23881		{ echo "$as_me:$LINENO: result: no" >&5
23882echo "${ECHO_T}no" >&6; }
23883		# Disable seccomp filter as a target
23884		have_seccomp_filter=0
23885
23886
23887fi
23888
23889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23890      conftest$ac_exeext conftest.$ac_ext
23891fi
23892
23893# Decide which sandbox style to use
23894sandbox_arg=""
23895
23896# Check whether --with-sandbox was given.
23897if test "${with_sandbox+set}" = set; then
23898  withval=$with_sandbox;
23899		if test "x$withval" = "xyes" ; then
23900			sandbox_arg=""
23901		else
23902			sandbox_arg="$withval"
23903		fi
23904
23905
23906fi
23907
23908
23909# Some platforms (seems to be the ones that have a kernel poll(2)-type
23910# function with which they implement select(2)) use an extra file descriptor
23911# when calling select(2), which means we can't use the rlimit sandbox.
23912{ echo "$as_me:$LINENO: checking if select works with descriptor rlimit" >&5
23913echo $ECHO_N "checking if select works with descriptor rlimit... $ECHO_C" >&6; }
23914if test "$cross_compiling" = yes; then
23915  { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23916echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
23917
23918else
23919  cat >conftest.$ac_ext <<_ACEOF
23920/* confdefs.h.  */
23921_ACEOF
23922cat confdefs.h >>conftest.$ac_ext
23923cat >>conftest.$ac_ext <<_ACEOF
23924/* end confdefs.h.  */
23925
23926#include <sys/types.h>
23927#ifdef HAVE_SYS_TIME_H
23928# include <sys/time.h>
23929#endif
23930#include <sys/resource.h>
23931#ifdef HAVE_SYS_SELECT_H
23932# include <sys/select.h>
23933#endif
23934#include <errno.h>
23935#include <fcntl.h>
23936#include <stdlib.h>
23937
23938int
23939main ()
23940{
23941
23942	struct rlimit rl_zero;
23943	int fd, r;
23944	fd_set fds;
23945	struct timeval tv;
23946
23947	fd = open("/dev/null", O_RDONLY);
23948	FD_ZERO(&fds);
23949	FD_SET(fd, &fds);
23950	rl_zero.rlim_cur = rl_zero.rlim_max = 0;
23951	setrlimit(RLIMIT_FSIZE, &rl_zero);
23952	setrlimit(RLIMIT_NOFILE, &rl_zero);
23953	tv.tv_sec = 1;
23954	tv.tv_usec = 0;
23955	r = select(fd+1, &fds, NULL, NULL, &tv);
23956	exit (r == -1 ? 1 : 0);
23957
23958  ;
23959  return 0;
23960}
23961_ACEOF
23962rm -f conftest$ac_exeext
23963if { (ac_try="$ac_link"
23964case "(($ac_try" in
23965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966  *) ac_try_echo=$ac_try;;
23967esac
23968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969  (eval "$ac_link") 2>&5
23970  ac_status=$?
23971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23973  { (case "(($ac_try" in
23974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975  *) ac_try_echo=$ac_try;;
23976esac
23977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978  (eval "$ac_try") 2>&5
23979  ac_status=$?
23980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981  (exit $ac_status); }; }; then
23982  { echo "$as_me:$LINENO: result: yes" >&5
23983echo "${ECHO_T}yes" >&6; }
23984	 select_works_with_rlimit=yes
23985else
23986  echo "$as_me: program exited with status $ac_status" >&5
23987echo "$as_me: failed program was:" >&5
23988sed 's/^/| /' conftest.$ac_ext >&5
23989
23990( exit $ac_status )
23991{ echo "$as_me:$LINENO: result: no" >&5
23992echo "${ECHO_T}no" >&6; }
23993	 select_works_with_rlimit=no
23994fi
23995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23996fi
23997
23998
23999
24000{ echo "$as_me:$LINENO: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
24001echo $ECHO_N "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... $ECHO_C" >&6; }
24002if test "$cross_compiling" = yes; then
24003  { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
24004echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
24005
24006else
24007  cat >conftest.$ac_ext <<_ACEOF
24008/* confdefs.h.  */
24009_ACEOF
24010cat confdefs.h >>conftest.$ac_ext
24011cat >>conftest.$ac_ext <<_ACEOF
24012/* end confdefs.h.  */
24013
24014#include <sys/types.h>
24015#ifdef HAVE_SYS_TIME_H
24016# include <sys/time.h>
24017#endif
24018#include <sys/resource.h>
24019#include <errno.h>
24020#include <stdlib.h>
24021
24022int
24023main ()
24024{
24025
24026	struct rlimit rl_zero;
24027	int fd, r;
24028	fd_set fds;
24029
24030	rl_zero.rlim_cur = rl_zero.rlim_max = 0;
24031	r = setrlimit(RLIMIT_NOFILE, &rl_zero);
24032	exit (r == -1 ? 1 : 0);
24033
24034  ;
24035  return 0;
24036}
24037_ACEOF
24038rm -f conftest$ac_exeext
24039if { (ac_try="$ac_link"
24040case "(($ac_try" in
24041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042  *) ac_try_echo=$ac_try;;
24043esac
24044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24045  (eval "$ac_link") 2>&5
24046  ac_status=$?
24047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24049  { (case "(($ac_try" in
24050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051  *) ac_try_echo=$ac_try;;
24052esac
24053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24054  (eval "$ac_try") 2>&5
24055  ac_status=$?
24056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057  (exit $ac_status); }; }; then
24058  { echo "$as_me:$LINENO: result: yes" >&5
24059echo "${ECHO_T}yes" >&6; }
24060	 rlimit_nofile_zero_works=yes
24061else
24062  echo "$as_me: program exited with status $ac_status" >&5
24063echo "$as_me: failed program was:" >&5
24064sed 's/^/| /' conftest.$ac_ext >&5
24065
24066( exit $ac_status )
24067{ echo "$as_me:$LINENO: result: no" >&5
24068echo "${ECHO_T}no" >&6; }
24069	 rlimit_nofile_zero_works=no
24070fi
24071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24072fi
24073
24074
24075
24076{ echo "$as_me:$LINENO: checking if setrlimit RLIMIT_FSIZE works" >&5
24077echo $ECHO_N "checking if setrlimit RLIMIT_FSIZE works... $ECHO_C" >&6; }
24078if test "$cross_compiling" = yes; then
24079  { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
24080echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
24081
24082else
24083  cat >conftest.$ac_ext <<_ACEOF
24084/* confdefs.h.  */
24085_ACEOF
24086cat confdefs.h >>conftest.$ac_ext
24087cat >>conftest.$ac_ext <<_ACEOF
24088/* end confdefs.h.  */
24089
24090#include <sys/types.h>
24091#include <sys/resource.h>
24092#include <stdlib.h>
24093
24094int
24095main ()
24096{
24097
24098		struct rlimit rl_zero;
24099
24100		rl_zero.rlim_cur = rl_zero.rlim_max = 0;
24101		exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
24102
24103  ;
24104  return 0;
24105}
24106_ACEOF
24107rm -f conftest$ac_exeext
24108if { (ac_try="$ac_link"
24109case "(($ac_try" in
24110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111  *) ac_try_echo=$ac_try;;
24112esac
24113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24114  (eval "$ac_link") 2>&5
24115  ac_status=$?
24116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24118  { (case "(($ac_try" in
24119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24120  *) ac_try_echo=$ac_try;;
24121esac
24122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24123  (eval "$ac_try") 2>&5
24124  ac_status=$?
24125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126  (exit $ac_status); }; }; then
24127  { echo "$as_me:$LINENO: result: yes" >&5
24128echo "${ECHO_T}yes" >&6; }
24129else
24130  echo "$as_me: program exited with status $ac_status" >&5
24131echo "$as_me: failed program was:" >&5
24132sed 's/^/| /' conftest.$ac_ext >&5
24133
24134( exit $ac_status )
24135{ echo "$as_me:$LINENO: result: no" >&5
24136echo "${ECHO_T}no" >&6; }
24137
24138cat >>confdefs.h <<\_ACEOF
24139#define SANDBOX_SKIP_RLIMIT_FSIZE 1
24140_ACEOF
24141
24142fi
24143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24144fi
24145
24146
24147
24148if test "x$sandbox_arg" = "xsystrace" || \
24149   ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
24150	test "x$have_systr_policy_kill" != "x1" && \
24151		{ { echo "$as_me:$LINENO: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&5
24152echo "$as_me: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&2;}
24153   { (exit 1); exit 1; }; }
24154	SANDBOX_STYLE="systrace"
24155
24156cat >>confdefs.h <<\_ACEOF
24157#define SANDBOX_SYSTRACE 1
24158_ACEOF
24159
24160elif test "x$sandbox_arg" = "xdarwin" || \
24161     ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
24162       test "x$ac_cv_header_sandbox_h" = "xyes") ; then
24163	test "x$ac_cv_func_sandbox_init" != "xyes" -o \
24164	     "x$ac_cv_header_sandbox_h" != "xyes" && \
24165		{ { echo "$as_me:$LINENO: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&5
24166echo "$as_me: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&2;}
24167   { (exit 1); exit 1; }; }
24168	SANDBOX_STYLE="darwin"
24169
24170cat >>confdefs.h <<\_ACEOF
24171#define SANDBOX_DARWIN 1
24172_ACEOF
24173
24174elif test "x$sandbox_arg" = "xseccomp_filter" || \
24175     ( test -z "$sandbox_arg" && \
24176       test "x$have_seccomp_filter" = "x1" && \
24177       test "x$ac_cv_header_elf_h" = "xyes" && \
24178       test "x$ac_cv_header_linux_audit_h" = "xyes" && \
24179       test "x$ac_cv_header_linux_filter_h" = "xyes" && \
24180       test "x$seccomp_audit_arch" != "x" && \
24181       test "x$have_linux_no_new_privs" = "x1" && \
24182       test "x$ac_cv_func_prctl" = "xyes" ) ; then
24183	test "x$seccomp_audit_arch" = "x" && \
24184		{ { echo "$as_me:$LINENO: error: seccomp_filter sandbox not supported on $host" >&5
24185echo "$as_me: error: seccomp_filter sandbox not supported on $host" >&2;}
24186   { (exit 1); exit 1; }; }
24187	test "x$have_linux_no_new_privs" != "x1" && \
24188		{ { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&5
24189echo "$as_me: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&2;}
24190   { (exit 1); exit 1; }; }
24191	test "x$have_seccomp_filter" != "x1" && \
24192		{ { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires seccomp headers" >&5
24193echo "$as_me: error: seccomp_filter sandbox requires seccomp headers" >&2;}
24194   { (exit 1); exit 1; }; }
24195	test "x$ac_cv_func_prctl" != "xyes" && \
24196		{ { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires prctl function" >&5
24197echo "$as_me: error: seccomp_filter sandbox requires prctl function" >&2;}
24198   { (exit 1); exit 1; }; }
24199	SANDBOX_STYLE="seccomp_filter"
24200
24201cat >>confdefs.h <<\_ACEOF
24202#define SANDBOX_SECCOMP_FILTER 1
24203_ACEOF
24204
24205elif test "x$sandbox_arg" = "xcapsicum" || \
24206     ( test -z "$sandbox_arg" && \
24207       test "x$ac_cv_header_sys_capability_h" = "xyes" && \
24208       test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
24209       test "x$ac_cv_header_sys_capability_h" != "xyes" && \
24210		{ { echo "$as_me:$LINENO: error: capsicum sandbox requires sys/capability.h header" >&5
24211echo "$as_me: error: capsicum sandbox requires sys/capability.h header" >&2;}
24212   { (exit 1); exit 1; }; }
24213       test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
24214		{ { echo "$as_me:$LINENO: error: capsicum sandbox requires cap_rights_limit function" >&5
24215echo "$as_me: error: capsicum sandbox requires cap_rights_limit function" >&2;}
24216   { (exit 1); exit 1; }; }
24217       SANDBOX_STYLE="capsicum"
24218
24219cat >>confdefs.h <<\_ACEOF
24220#define SANDBOX_CAPSICUM 1
24221_ACEOF
24222
24223elif test "x$sandbox_arg" = "xrlimit" || \
24224     ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
24225       test "x$select_works_with_rlimit" = "xyes" && \
24226       test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
24227	test "x$ac_cv_func_setrlimit" != "xyes" && \
24228		{ { echo "$as_me:$LINENO: error: rlimit sandbox requires setrlimit function" >&5
24229echo "$as_me: error: rlimit sandbox requires setrlimit function" >&2;}
24230   { (exit 1); exit 1; }; }
24231	test "x$select_works_with_rlimit" != "xyes" && \
24232		{ { echo "$as_me:$LINENO: error: rlimit sandbox requires select to work with rlimit" >&5
24233echo "$as_me: error: rlimit sandbox requires select to work with rlimit" >&2;}
24234   { (exit 1); exit 1; }; }
24235	SANDBOX_STYLE="rlimit"
24236
24237cat >>confdefs.h <<\_ACEOF
24238#define SANDBOX_RLIMIT 1
24239_ACEOF
24240
24241elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
24242     test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
24243	SANDBOX_STYLE="none"
24244
24245cat >>confdefs.h <<\_ACEOF
24246#define SANDBOX_NULL 1
24247_ACEOF
24248
24249else
24250	{ { echo "$as_me:$LINENO: error: unsupported --with-sandbox" >&5
24251echo "$as_me: error: unsupported --with-sandbox" >&2;}
24252   { (exit 1); exit 1; }; }
24253fi
24254
24255# Cheap hack to ensure NEWS-OS libraries are arranged right.
24256if test ! -z "$SONY" ; then
24257  LIBS="$LIBS -liberty";
24258fi
24259
24260# Check for  long long datatypes
24261{ echo "$as_me:$LINENO: checking for long long" >&5
24262echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24263if test "${ac_cv_type_long_long+set}" = set; then
24264  echo $ECHO_N "(cached) $ECHO_C" >&6
24265else
24266  cat >conftest.$ac_ext <<_ACEOF
24267/* confdefs.h.  */
24268_ACEOF
24269cat confdefs.h >>conftest.$ac_ext
24270cat >>conftest.$ac_ext <<_ACEOF
24271/* end confdefs.h.  */
24272$ac_includes_default
24273typedef long long ac__type_new_;
24274int
24275main ()
24276{
24277if ((ac__type_new_ *) 0)
24278  return 0;
24279if (sizeof (ac__type_new_))
24280  return 0;
24281  ;
24282  return 0;
24283}
24284_ACEOF
24285rm -f conftest.$ac_objext
24286if { (ac_try="$ac_compile"
24287case "(($ac_try" in
24288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289  *) ac_try_echo=$ac_try;;
24290esac
24291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292  (eval "$ac_compile") 2>conftest.er1
24293  ac_status=$?
24294  grep -v '^ *+' conftest.er1 >conftest.err
24295  rm -f conftest.er1
24296  cat conftest.err >&5
24297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298  (exit $ac_status); } && {
24299	 test -z "$ac_c_werror_flag" ||
24300	 test ! -s conftest.err
24301       } && test -s conftest.$ac_objext; then
24302  ac_cv_type_long_long=yes
24303else
24304  echo "$as_me: failed program was:" >&5
24305sed 's/^/| /' conftest.$ac_ext >&5
24306
24307	ac_cv_type_long_long=no
24308fi
24309
24310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24311fi
24312{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24313echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24314if test $ac_cv_type_long_long = yes; then
24315
24316cat >>confdefs.h <<_ACEOF
24317#define HAVE_LONG_LONG 1
24318_ACEOF
24319
24320
24321fi
24322{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
24323echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
24324if test "${ac_cv_type_unsigned_long_long+set}" = set; then
24325  echo $ECHO_N "(cached) $ECHO_C" >&6
24326else
24327  cat >conftest.$ac_ext <<_ACEOF
24328/* confdefs.h.  */
24329_ACEOF
24330cat confdefs.h >>conftest.$ac_ext
24331cat >>conftest.$ac_ext <<_ACEOF
24332/* end confdefs.h.  */
24333$ac_includes_default
24334typedef unsigned long long ac__type_new_;
24335int
24336main ()
24337{
24338if ((ac__type_new_ *) 0)
24339  return 0;
24340if (sizeof (ac__type_new_))
24341  return 0;
24342  ;
24343  return 0;
24344}
24345_ACEOF
24346rm -f conftest.$ac_objext
24347if { (ac_try="$ac_compile"
24348case "(($ac_try" in
24349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350  *) ac_try_echo=$ac_try;;
24351esac
24352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353  (eval "$ac_compile") 2>conftest.er1
24354  ac_status=$?
24355  grep -v '^ *+' conftest.er1 >conftest.err
24356  rm -f conftest.er1
24357  cat conftest.err >&5
24358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359  (exit $ac_status); } && {
24360	 test -z "$ac_c_werror_flag" ||
24361	 test ! -s conftest.err
24362       } && test -s conftest.$ac_objext; then
24363  ac_cv_type_unsigned_long_long=yes
24364else
24365  echo "$as_me: failed program was:" >&5
24366sed 's/^/| /' conftest.$ac_ext >&5
24367
24368	ac_cv_type_unsigned_long_long=no
24369fi
24370
24371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372fi
24373{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
24374echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
24375if test $ac_cv_type_unsigned_long_long = yes; then
24376
24377cat >>confdefs.h <<_ACEOF
24378#define HAVE_UNSIGNED_LONG_LONG 1
24379_ACEOF
24380
24381
24382fi
24383{ echo "$as_me:$LINENO: checking for long double" >&5
24384echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
24385if test "${ac_cv_type_long_double+set}" = set; then
24386  echo $ECHO_N "(cached) $ECHO_C" >&6
24387else
24388  cat >conftest.$ac_ext <<_ACEOF
24389/* confdefs.h.  */
24390_ACEOF
24391cat confdefs.h >>conftest.$ac_ext
24392cat >>conftest.$ac_ext <<_ACEOF
24393/* end confdefs.h.  */
24394$ac_includes_default
24395typedef long double ac__type_new_;
24396int
24397main ()
24398{
24399if ((ac__type_new_ *) 0)
24400  return 0;
24401if (sizeof (ac__type_new_))
24402  return 0;
24403  ;
24404  return 0;
24405}
24406_ACEOF
24407rm -f conftest.$ac_objext
24408if { (ac_try="$ac_compile"
24409case "(($ac_try" in
24410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411  *) ac_try_echo=$ac_try;;
24412esac
24413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24414  (eval "$ac_compile") 2>conftest.er1
24415  ac_status=$?
24416  grep -v '^ *+' conftest.er1 >conftest.err
24417  rm -f conftest.er1
24418  cat conftest.err >&5
24419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420  (exit $ac_status); } && {
24421	 test -z "$ac_c_werror_flag" ||
24422	 test ! -s conftest.err
24423       } && test -s conftest.$ac_objext; then
24424  ac_cv_type_long_double=yes
24425else
24426  echo "$as_me: failed program was:" >&5
24427sed 's/^/| /' conftest.$ac_ext >&5
24428
24429	ac_cv_type_long_double=no
24430fi
24431
24432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24433fi
24434{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
24435echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
24436if test $ac_cv_type_long_double = yes; then
24437
24438cat >>confdefs.h <<_ACEOF
24439#define HAVE_LONG_DOUBLE 1
24440_ACEOF
24441
24442
24443fi
24444
24445
24446# Check datatype sizes
24447{ echo "$as_me:$LINENO: checking for short int" >&5
24448echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
24449if test "${ac_cv_type_short_int+set}" = set; then
24450  echo $ECHO_N "(cached) $ECHO_C" >&6
24451else
24452  cat >conftest.$ac_ext <<_ACEOF
24453/* confdefs.h.  */
24454_ACEOF
24455cat confdefs.h >>conftest.$ac_ext
24456cat >>conftest.$ac_ext <<_ACEOF
24457/* end confdefs.h.  */
24458$ac_includes_default
24459typedef short int ac__type_new_;
24460int
24461main ()
24462{
24463if ((ac__type_new_ *) 0)
24464  return 0;
24465if (sizeof (ac__type_new_))
24466  return 0;
24467  ;
24468  return 0;
24469}
24470_ACEOF
24471rm -f conftest.$ac_objext
24472if { (ac_try="$ac_compile"
24473case "(($ac_try" in
24474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475  *) ac_try_echo=$ac_try;;
24476esac
24477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478  (eval "$ac_compile") 2>conftest.er1
24479  ac_status=$?
24480  grep -v '^ *+' conftest.er1 >conftest.err
24481  rm -f conftest.er1
24482  cat conftest.err >&5
24483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484  (exit $ac_status); } && {
24485	 test -z "$ac_c_werror_flag" ||
24486	 test ! -s conftest.err
24487       } && test -s conftest.$ac_objext; then
24488  ac_cv_type_short_int=yes
24489else
24490  echo "$as_me: failed program was:" >&5
24491sed 's/^/| /' conftest.$ac_ext >&5
24492
24493	ac_cv_type_short_int=no
24494fi
24495
24496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24497fi
24498{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24499echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24500
24501# The cast to long int works around a bug in the HP C Compiler
24502# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24503# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24504# This bug is HP SR number 8606223364.
24505{ echo "$as_me:$LINENO: checking size of short int" >&5
24506echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24507if test "${ac_cv_sizeof_short_int+set}" = set; then
24508  echo $ECHO_N "(cached) $ECHO_C" >&6
24509else
24510  if test "$cross_compiling" = yes; then
24511  # Depending upon the size, compute the lo and hi bounds.
24512cat >conftest.$ac_ext <<_ACEOF
24513/* confdefs.h.  */
24514_ACEOF
24515cat confdefs.h >>conftest.$ac_ext
24516cat >>conftest.$ac_ext <<_ACEOF
24517/* end confdefs.h.  */
24518$ac_includes_default
24519   typedef short int ac__type_sizeof_;
24520int
24521main ()
24522{
24523static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24524test_array [0] = 0
24525
24526  ;
24527  return 0;
24528}
24529_ACEOF
24530rm -f conftest.$ac_objext
24531if { (ac_try="$ac_compile"
24532case "(($ac_try" in
24533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534  *) ac_try_echo=$ac_try;;
24535esac
24536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537  (eval "$ac_compile") 2>conftest.er1
24538  ac_status=$?
24539  grep -v '^ *+' conftest.er1 >conftest.err
24540  rm -f conftest.er1
24541  cat conftest.err >&5
24542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543  (exit $ac_status); } && {
24544	 test -z "$ac_c_werror_flag" ||
24545	 test ! -s conftest.err
24546       } && test -s conftest.$ac_objext; then
24547  ac_lo=0 ac_mid=0
24548  while :; do
24549    cat >conftest.$ac_ext <<_ACEOF
24550/* confdefs.h.  */
24551_ACEOF
24552cat confdefs.h >>conftest.$ac_ext
24553cat >>conftest.$ac_ext <<_ACEOF
24554/* end confdefs.h.  */
24555$ac_includes_default
24556   typedef short int ac__type_sizeof_;
24557int
24558main ()
24559{
24560static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24561test_array [0] = 0
24562
24563  ;
24564  return 0;
24565}
24566_ACEOF
24567rm -f conftest.$ac_objext
24568if { (ac_try="$ac_compile"
24569case "(($ac_try" in
24570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571  *) ac_try_echo=$ac_try;;
24572esac
24573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574  (eval "$ac_compile") 2>conftest.er1
24575  ac_status=$?
24576  grep -v '^ *+' conftest.er1 >conftest.err
24577  rm -f conftest.er1
24578  cat conftest.err >&5
24579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580  (exit $ac_status); } && {
24581	 test -z "$ac_c_werror_flag" ||
24582	 test ! -s conftest.err
24583       } && test -s conftest.$ac_objext; then
24584  ac_hi=$ac_mid; break
24585else
24586  echo "$as_me: failed program was:" >&5
24587sed 's/^/| /' conftest.$ac_ext >&5
24588
24589	ac_lo=`expr $ac_mid + 1`
24590			if test $ac_lo -le $ac_mid; then
24591			  ac_lo= ac_hi=
24592			  break
24593			fi
24594			ac_mid=`expr 2 '*' $ac_mid + 1`
24595fi
24596
24597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24598  done
24599else
24600  echo "$as_me: failed program was:" >&5
24601sed 's/^/| /' conftest.$ac_ext >&5
24602
24603	cat >conftest.$ac_ext <<_ACEOF
24604/* confdefs.h.  */
24605_ACEOF
24606cat confdefs.h >>conftest.$ac_ext
24607cat >>conftest.$ac_ext <<_ACEOF
24608/* end confdefs.h.  */
24609$ac_includes_default
24610   typedef short int ac__type_sizeof_;
24611int
24612main ()
24613{
24614static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24615test_array [0] = 0
24616
24617  ;
24618  return 0;
24619}
24620_ACEOF
24621rm -f conftest.$ac_objext
24622if { (ac_try="$ac_compile"
24623case "(($ac_try" in
24624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625  *) ac_try_echo=$ac_try;;
24626esac
24627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628  (eval "$ac_compile") 2>conftest.er1
24629  ac_status=$?
24630  grep -v '^ *+' conftest.er1 >conftest.err
24631  rm -f conftest.er1
24632  cat conftest.err >&5
24633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634  (exit $ac_status); } && {
24635	 test -z "$ac_c_werror_flag" ||
24636	 test ! -s conftest.err
24637       } && test -s conftest.$ac_objext; then
24638  ac_hi=-1 ac_mid=-1
24639  while :; do
24640    cat >conftest.$ac_ext <<_ACEOF
24641/* confdefs.h.  */
24642_ACEOF
24643cat confdefs.h >>conftest.$ac_ext
24644cat >>conftest.$ac_ext <<_ACEOF
24645/* end confdefs.h.  */
24646$ac_includes_default
24647   typedef short int ac__type_sizeof_;
24648int
24649main ()
24650{
24651static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24652test_array [0] = 0
24653
24654  ;
24655  return 0;
24656}
24657_ACEOF
24658rm -f conftest.$ac_objext
24659if { (ac_try="$ac_compile"
24660case "(($ac_try" in
24661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662  *) ac_try_echo=$ac_try;;
24663esac
24664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665  (eval "$ac_compile") 2>conftest.er1
24666  ac_status=$?
24667  grep -v '^ *+' conftest.er1 >conftest.err
24668  rm -f conftest.er1
24669  cat conftest.err >&5
24670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671  (exit $ac_status); } && {
24672	 test -z "$ac_c_werror_flag" ||
24673	 test ! -s conftest.err
24674       } && test -s conftest.$ac_objext; then
24675  ac_lo=$ac_mid; break
24676else
24677  echo "$as_me: failed program was:" >&5
24678sed 's/^/| /' conftest.$ac_ext >&5
24679
24680	ac_hi=`expr '(' $ac_mid ')' - 1`
24681			if test $ac_mid -le $ac_hi; then
24682			  ac_lo= ac_hi=
24683			  break
24684			fi
24685			ac_mid=`expr 2 '*' $ac_mid`
24686fi
24687
24688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689  done
24690else
24691  echo "$as_me: failed program was:" >&5
24692sed 's/^/| /' conftest.$ac_ext >&5
24693
24694	ac_lo= ac_hi=
24695fi
24696
24697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24698fi
24699
24700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24701# Binary search between lo and hi bounds.
24702while test "x$ac_lo" != "x$ac_hi"; do
24703  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24704  cat >conftest.$ac_ext <<_ACEOF
24705/* confdefs.h.  */
24706_ACEOF
24707cat confdefs.h >>conftest.$ac_ext
24708cat >>conftest.$ac_ext <<_ACEOF
24709/* end confdefs.h.  */
24710$ac_includes_default
24711   typedef short int ac__type_sizeof_;
24712int
24713main ()
24714{
24715static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24716test_array [0] = 0
24717
24718  ;
24719  return 0;
24720}
24721_ACEOF
24722rm -f conftest.$ac_objext
24723if { (ac_try="$ac_compile"
24724case "(($ac_try" in
24725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726  *) ac_try_echo=$ac_try;;
24727esac
24728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729  (eval "$ac_compile") 2>conftest.er1
24730  ac_status=$?
24731  grep -v '^ *+' conftest.er1 >conftest.err
24732  rm -f conftest.er1
24733  cat conftest.err >&5
24734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735  (exit $ac_status); } && {
24736	 test -z "$ac_c_werror_flag" ||
24737	 test ! -s conftest.err
24738       } && test -s conftest.$ac_objext; then
24739  ac_hi=$ac_mid
24740else
24741  echo "$as_me: failed program was:" >&5
24742sed 's/^/| /' conftest.$ac_ext >&5
24743
24744	ac_lo=`expr '(' $ac_mid ')' + 1`
24745fi
24746
24747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24748done
24749case $ac_lo in
24750?*) ac_cv_sizeof_short_int=$ac_lo;;
24751'') if test "$ac_cv_type_short_int" = yes; then
24752     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24753See \`config.log' for more details." >&5
24754echo "$as_me: error: cannot compute sizeof (short int)
24755See \`config.log' for more details." >&2;}
24756   { (exit 77); exit 77; }; }
24757   else
24758     ac_cv_sizeof_short_int=0
24759   fi ;;
24760esac
24761else
24762  cat >conftest.$ac_ext <<_ACEOF
24763/* confdefs.h.  */
24764_ACEOF
24765cat confdefs.h >>conftest.$ac_ext
24766cat >>conftest.$ac_ext <<_ACEOF
24767/* end confdefs.h.  */
24768$ac_includes_default
24769   typedef short int ac__type_sizeof_;
24770static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24771static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24772#include <stdio.h>
24773#include <stdlib.h>
24774int
24775main ()
24776{
24777
24778  FILE *f = fopen ("conftest.val", "w");
24779  if (! f)
24780    return 1;
24781  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24782    {
24783      long int i = longval ();
24784      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24785	return 1;
24786      fprintf (f, "%ld\n", i);
24787    }
24788  else
24789    {
24790      unsigned long int i = ulongval ();
24791      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24792	return 1;
24793      fprintf (f, "%lu\n", i);
24794    }
24795  return ferror (f) || fclose (f) != 0;
24796
24797  ;
24798  return 0;
24799}
24800_ACEOF
24801rm -f conftest$ac_exeext
24802if { (ac_try="$ac_link"
24803case "(($ac_try" in
24804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805  *) ac_try_echo=$ac_try;;
24806esac
24807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808  (eval "$ac_link") 2>&5
24809  ac_status=$?
24810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24812  { (case "(($ac_try" in
24813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814  *) ac_try_echo=$ac_try;;
24815esac
24816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24817  (eval "$ac_try") 2>&5
24818  ac_status=$?
24819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820  (exit $ac_status); }; }; then
24821  ac_cv_sizeof_short_int=`cat conftest.val`
24822else
24823  echo "$as_me: program exited with status $ac_status" >&5
24824echo "$as_me: failed program was:" >&5
24825sed 's/^/| /' conftest.$ac_ext >&5
24826
24827( exit $ac_status )
24828if test "$ac_cv_type_short_int" = yes; then
24829     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24830See \`config.log' for more details." >&5
24831echo "$as_me: error: cannot compute sizeof (short int)
24832See \`config.log' for more details." >&2;}
24833   { (exit 77); exit 77; }; }
24834   else
24835     ac_cv_sizeof_short_int=0
24836   fi
24837fi
24838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24839fi
24840rm -f conftest.val
24841fi
24842{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24843echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24844
24845
24846
24847cat >>confdefs.h <<_ACEOF
24848#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24849_ACEOF
24850
24851
24852{ echo "$as_me:$LINENO: checking for int" >&5
24853echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24854if test "${ac_cv_type_int+set}" = set; then
24855  echo $ECHO_N "(cached) $ECHO_C" >&6
24856else
24857  cat >conftest.$ac_ext <<_ACEOF
24858/* confdefs.h.  */
24859_ACEOF
24860cat confdefs.h >>conftest.$ac_ext
24861cat >>conftest.$ac_ext <<_ACEOF
24862/* end confdefs.h.  */
24863$ac_includes_default
24864typedef int ac__type_new_;
24865int
24866main ()
24867{
24868if ((ac__type_new_ *) 0)
24869  return 0;
24870if (sizeof (ac__type_new_))
24871  return 0;
24872  ;
24873  return 0;
24874}
24875_ACEOF
24876rm -f conftest.$ac_objext
24877if { (ac_try="$ac_compile"
24878case "(($ac_try" in
24879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880  *) ac_try_echo=$ac_try;;
24881esac
24882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24883  (eval "$ac_compile") 2>conftest.er1
24884  ac_status=$?
24885  grep -v '^ *+' conftest.er1 >conftest.err
24886  rm -f conftest.er1
24887  cat conftest.err >&5
24888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889  (exit $ac_status); } && {
24890	 test -z "$ac_c_werror_flag" ||
24891	 test ! -s conftest.err
24892       } && test -s conftest.$ac_objext; then
24893  ac_cv_type_int=yes
24894else
24895  echo "$as_me: failed program was:" >&5
24896sed 's/^/| /' conftest.$ac_ext >&5
24897
24898	ac_cv_type_int=no
24899fi
24900
24901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24902fi
24903{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24904echo "${ECHO_T}$ac_cv_type_int" >&6; }
24905
24906# The cast to long int works around a bug in the HP C Compiler
24907# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24908# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24909# This bug is HP SR number 8606223364.
24910{ echo "$as_me:$LINENO: checking size of int" >&5
24911echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24912if test "${ac_cv_sizeof_int+set}" = set; then
24913  echo $ECHO_N "(cached) $ECHO_C" >&6
24914else
24915  if test "$cross_compiling" = yes; then
24916  # Depending upon the size, compute the lo and hi bounds.
24917cat >conftest.$ac_ext <<_ACEOF
24918/* confdefs.h.  */
24919_ACEOF
24920cat confdefs.h >>conftest.$ac_ext
24921cat >>conftest.$ac_ext <<_ACEOF
24922/* end confdefs.h.  */
24923$ac_includes_default
24924   typedef int ac__type_sizeof_;
24925int
24926main ()
24927{
24928static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24929test_array [0] = 0
24930
24931  ;
24932  return 0;
24933}
24934_ACEOF
24935rm -f conftest.$ac_objext
24936if { (ac_try="$ac_compile"
24937case "(($ac_try" in
24938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939  *) ac_try_echo=$ac_try;;
24940esac
24941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24942  (eval "$ac_compile") 2>conftest.er1
24943  ac_status=$?
24944  grep -v '^ *+' conftest.er1 >conftest.err
24945  rm -f conftest.er1
24946  cat conftest.err >&5
24947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948  (exit $ac_status); } && {
24949	 test -z "$ac_c_werror_flag" ||
24950	 test ! -s conftest.err
24951       } && test -s conftest.$ac_objext; then
24952  ac_lo=0 ac_mid=0
24953  while :; do
24954    cat >conftest.$ac_ext <<_ACEOF
24955/* confdefs.h.  */
24956_ACEOF
24957cat confdefs.h >>conftest.$ac_ext
24958cat >>conftest.$ac_ext <<_ACEOF
24959/* end confdefs.h.  */
24960$ac_includes_default
24961   typedef int ac__type_sizeof_;
24962int
24963main ()
24964{
24965static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24966test_array [0] = 0
24967
24968  ;
24969  return 0;
24970}
24971_ACEOF
24972rm -f conftest.$ac_objext
24973if { (ac_try="$ac_compile"
24974case "(($ac_try" in
24975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976  *) ac_try_echo=$ac_try;;
24977esac
24978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24979  (eval "$ac_compile") 2>conftest.er1
24980  ac_status=$?
24981  grep -v '^ *+' conftest.er1 >conftest.err
24982  rm -f conftest.er1
24983  cat conftest.err >&5
24984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985  (exit $ac_status); } && {
24986	 test -z "$ac_c_werror_flag" ||
24987	 test ! -s conftest.err
24988       } && test -s conftest.$ac_objext; then
24989  ac_hi=$ac_mid; break
24990else
24991  echo "$as_me: failed program was:" >&5
24992sed 's/^/| /' conftest.$ac_ext >&5
24993
24994	ac_lo=`expr $ac_mid + 1`
24995			if test $ac_lo -le $ac_mid; then
24996			  ac_lo= ac_hi=
24997			  break
24998			fi
24999			ac_mid=`expr 2 '*' $ac_mid + 1`
25000fi
25001
25002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25003  done
25004else
25005  echo "$as_me: failed program was:" >&5
25006sed 's/^/| /' conftest.$ac_ext >&5
25007
25008	cat >conftest.$ac_ext <<_ACEOF
25009/* confdefs.h.  */
25010_ACEOF
25011cat confdefs.h >>conftest.$ac_ext
25012cat >>conftest.$ac_ext <<_ACEOF
25013/* end confdefs.h.  */
25014$ac_includes_default
25015   typedef int ac__type_sizeof_;
25016int
25017main ()
25018{
25019static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25020test_array [0] = 0
25021
25022  ;
25023  return 0;
25024}
25025_ACEOF
25026rm -f conftest.$ac_objext
25027if { (ac_try="$ac_compile"
25028case "(($ac_try" in
25029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030  *) ac_try_echo=$ac_try;;
25031esac
25032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033  (eval "$ac_compile") 2>conftest.er1
25034  ac_status=$?
25035  grep -v '^ *+' conftest.er1 >conftest.err
25036  rm -f conftest.er1
25037  cat conftest.err >&5
25038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039  (exit $ac_status); } && {
25040	 test -z "$ac_c_werror_flag" ||
25041	 test ! -s conftest.err
25042       } && test -s conftest.$ac_objext; then
25043  ac_hi=-1 ac_mid=-1
25044  while :; do
25045    cat >conftest.$ac_ext <<_ACEOF
25046/* confdefs.h.  */
25047_ACEOF
25048cat confdefs.h >>conftest.$ac_ext
25049cat >>conftest.$ac_ext <<_ACEOF
25050/* end confdefs.h.  */
25051$ac_includes_default
25052   typedef int ac__type_sizeof_;
25053int
25054main ()
25055{
25056static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25057test_array [0] = 0
25058
25059  ;
25060  return 0;
25061}
25062_ACEOF
25063rm -f conftest.$ac_objext
25064if { (ac_try="$ac_compile"
25065case "(($ac_try" in
25066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067  *) ac_try_echo=$ac_try;;
25068esac
25069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070  (eval "$ac_compile") 2>conftest.er1
25071  ac_status=$?
25072  grep -v '^ *+' conftest.er1 >conftest.err
25073  rm -f conftest.er1
25074  cat conftest.err >&5
25075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076  (exit $ac_status); } && {
25077	 test -z "$ac_c_werror_flag" ||
25078	 test ! -s conftest.err
25079       } && test -s conftest.$ac_objext; then
25080  ac_lo=$ac_mid; break
25081else
25082  echo "$as_me: failed program was:" >&5
25083sed 's/^/| /' conftest.$ac_ext >&5
25084
25085	ac_hi=`expr '(' $ac_mid ')' - 1`
25086			if test $ac_mid -le $ac_hi; then
25087			  ac_lo= ac_hi=
25088			  break
25089			fi
25090			ac_mid=`expr 2 '*' $ac_mid`
25091fi
25092
25093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25094  done
25095else
25096  echo "$as_me: failed program was:" >&5
25097sed 's/^/| /' conftest.$ac_ext >&5
25098
25099	ac_lo= ac_hi=
25100fi
25101
25102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25103fi
25104
25105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25106# Binary search between lo and hi bounds.
25107while test "x$ac_lo" != "x$ac_hi"; do
25108  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25109  cat >conftest.$ac_ext <<_ACEOF
25110/* confdefs.h.  */
25111_ACEOF
25112cat confdefs.h >>conftest.$ac_ext
25113cat >>conftest.$ac_ext <<_ACEOF
25114/* end confdefs.h.  */
25115$ac_includes_default
25116   typedef int ac__type_sizeof_;
25117int
25118main ()
25119{
25120static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25121test_array [0] = 0
25122
25123  ;
25124  return 0;
25125}
25126_ACEOF
25127rm -f conftest.$ac_objext
25128if { (ac_try="$ac_compile"
25129case "(($ac_try" in
25130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131  *) ac_try_echo=$ac_try;;
25132esac
25133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25134  (eval "$ac_compile") 2>conftest.er1
25135  ac_status=$?
25136  grep -v '^ *+' conftest.er1 >conftest.err
25137  rm -f conftest.er1
25138  cat conftest.err >&5
25139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140  (exit $ac_status); } && {
25141	 test -z "$ac_c_werror_flag" ||
25142	 test ! -s conftest.err
25143       } && test -s conftest.$ac_objext; then
25144  ac_hi=$ac_mid
25145else
25146  echo "$as_me: failed program was:" >&5
25147sed 's/^/| /' conftest.$ac_ext >&5
25148
25149	ac_lo=`expr '(' $ac_mid ')' + 1`
25150fi
25151
25152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25153done
25154case $ac_lo in
25155?*) ac_cv_sizeof_int=$ac_lo;;
25156'') if test "$ac_cv_type_int" = yes; then
25157     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25158See \`config.log' for more details." >&5
25159echo "$as_me: error: cannot compute sizeof (int)
25160See \`config.log' for more details." >&2;}
25161   { (exit 77); exit 77; }; }
25162   else
25163     ac_cv_sizeof_int=0
25164   fi ;;
25165esac
25166else
25167  cat >conftest.$ac_ext <<_ACEOF
25168/* confdefs.h.  */
25169_ACEOF
25170cat confdefs.h >>conftest.$ac_ext
25171cat >>conftest.$ac_ext <<_ACEOF
25172/* end confdefs.h.  */
25173$ac_includes_default
25174   typedef int ac__type_sizeof_;
25175static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25176static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25177#include <stdio.h>
25178#include <stdlib.h>
25179int
25180main ()
25181{
25182
25183  FILE *f = fopen ("conftest.val", "w");
25184  if (! f)
25185    return 1;
25186  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25187    {
25188      long int i = longval ();
25189      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25190	return 1;
25191      fprintf (f, "%ld\n", i);
25192    }
25193  else
25194    {
25195      unsigned long int i = ulongval ();
25196      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25197	return 1;
25198      fprintf (f, "%lu\n", i);
25199    }
25200  return ferror (f) || fclose (f) != 0;
25201
25202  ;
25203  return 0;
25204}
25205_ACEOF
25206rm -f conftest$ac_exeext
25207if { (ac_try="$ac_link"
25208case "(($ac_try" in
25209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210  *) ac_try_echo=$ac_try;;
25211esac
25212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25213  (eval "$ac_link") 2>&5
25214  ac_status=$?
25215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25217  { (case "(($ac_try" in
25218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219  *) ac_try_echo=$ac_try;;
25220esac
25221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25222  (eval "$ac_try") 2>&5
25223  ac_status=$?
25224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225  (exit $ac_status); }; }; then
25226  ac_cv_sizeof_int=`cat conftest.val`
25227else
25228  echo "$as_me: program exited with status $ac_status" >&5
25229echo "$as_me: failed program was:" >&5
25230sed 's/^/| /' conftest.$ac_ext >&5
25231
25232( exit $ac_status )
25233if test "$ac_cv_type_int" = yes; then
25234     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25235See \`config.log' for more details." >&5
25236echo "$as_me: error: cannot compute sizeof (int)
25237See \`config.log' for more details." >&2;}
25238   { (exit 77); exit 77; }; }
25239   else
25240     ac_cv_sizeof_int=0
25241   fi
25242fi
25243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25244fi
25245rm -f conftest.val
25246fi
25247{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25248echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
25249
25250
25251
25252cat >>confdefs.h <<_ACEOF
25253#define SIZEOF_INT $ac_cv_sizeof_int
25254_ACEOF
25255
25256
25257{ echo "$as_me:$LINENO: checking for long int" >&5
25258echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
25259if test "${ac_cv_type_long_int+set}" = set; then
25260  echo $ECHO_N "(cached) $ECHO_C" >&6
25261else
25262  cat >conftest.$ac_ext <<_ACEOF
25263/* confdefs.h.  */
25264_ACEOF
25265cat confdefs.h >>conftest.$ac_ext
25266cat >>conftest.$ac_ext <<_ACEOF
25267/* end confdefs.h.  */
25268$ac_includes_default
25269typedef long int ac__type_new_;
25270int
25271main ()
25272{
25273if ((ac__type_new_ *) 0)
25274  return 0;
25275if (sizeof (ac__type_new_))
25276  return 0;
25277  ;
25278  return 0;
25279}
25280_ACEOF
25281rm -f conftest.$ac_objext
25282if { (ac_try="$ac_compile"
25283case "(($ac_try" in
25284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25285  *) ac_try_echo=$ac_try;;
25286esac
25287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25288  (eval "$ac_compile") 2>conftest.er1
25289  ac_status=$?
25290  grep -v '^ *+' conftest.er1 >conftest.err
25291  rm -f conftest.er1
25292  cat conftest.err >&5
25293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294  (exit $ac_status); } && {
25295	 test -z "$ac_c_werror_flag" ||
25296	 test ! -s conftest.err
25297       } && test -s conftest.$ac_objext; then
25298  ac_cv_type_long_int=yes
25299else
25300  echo "$as_me: failed program was:" >&5
25301sed 's/^/| /' conftest.$ac_ext >&5
25302
25303	ac_cv_type_long_int=no
25304fi
25305
25306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25307fi
25308{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
25309echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
25310
25311# The cast to long int works around a bug in the HP C Compiler
25312# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25313# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25314# This bug is HP SR number 8606223364.
25315{ echo "$as_me:$LINENO: checking size of long int" >&5
25316echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
25317if test "${ac_cv_sizeof_long_int+set}" = set; then
25318  echo $ECHO_N "(cached) $ECHO_C" >&6
25319else
25320  if test "$cross_compiling" = yes; then
25321  # Depending upon the size, compute the lo and hi bounds.
25322cat >conftest.$ac_ext <<_ACEOF
25323/* confdefs.h.  */
25324_ACEOF
25325cat confdefs.h >>conftest.$ac_ext
25326cat >>conftest.$ac_ext <<_ACEOF
25327/* end confdefs.h.  */
25328$ac_includes_default
25329   typedef long int ac__type_sizeof_;
25330int
25331main ()
25332{
25333static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25334test_array [0] = 0
25335
25336  ;
25337  return 0;
25338}
25339_ACEOF
25340rm -f conftest.$ac_objext
25341if { (ac_try="$ac_compile"
25342case "(($ac_try" in
25343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344  *) ac_try_echo=$ac_try;;
25345esac
25346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347  (eval "$ac_compile") 2>conftest.er1
25348  ac_status=$?
25349  grep -v '^ *+' conftest.er1 >conftest.err
25350  rm -f conftest.er1
25351  cat conftest.err >&5
25352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353  (exit $ac_status); } && {
25354	 test -z "$ac_c_werror_flag" ||
25355	 test ! -s conftest.err
25356       } && test -s conftest.$ac_objext; then
25357  ac_lo=0 ac_mid=0
25358  while :; do
25359    cat >conftest.$ac_ext <<_ACEOF
25360/* confdefs.h.  */
25361_ACEOF
25362cat confdefs.h >>conftest.$ac_ext
25363cat >>conftest.$ac_ext <<_ACEOF
25364/* end confdefs.h.  */
25365$ac_includes_default
25366   typedef long int ac__type_sizeof_;
25367int
25368main ()
25369{
25370static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25371test_array [0] = 0
25372
25373  ;
25374  return 0;
25375}
25376_ACEOF
25377rm -f conftest.$ac_objext
25378if { (ac_try="$ac_compile"
25379case "(($ac_try" in
25380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381  *) ac_try_echo=$ac_try;;
25382esac
25383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25384  (eval "$ac_compile") 2>conftest.er1
25385  ac_status=$?
25386  grep -v '^ *+' conftest.er1 >conftest.err
25387  rm -f conftest.er1
25388  cat conftest.err >&5
25389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390  (exit $ac_status); } && {
25391	 test -z "$ac_c_werror_flag" ||
25392	 test ! -s conftest.err
25393       } && test -s conftest.$ac_objext; then
25394  ac_hi=$ac_mid; break
25395else
25396  echo "$as_me: failed program was:" >&5
25397sed 's/^/| /' conftest.$ac_ext >&5
25398
25399	ac_lo=`expr $ac_mid + 1`
25400			if test $ac_lo -le $ac_mid; then
25401			  ac_lo= ac_hi=
25402			  break
25403			fi
25404			ac_mid=`expr 2 '*' $ac_mid + 1`
25405fi
25406
25407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25408  done
25409else
25410  echo "$as_me: failed program was:" >&5
25411sed 's/^/| /' conftest.$ac_ext >&5
25412
25413	cat >conftest.$ac_ext <<_ACEOF
25414/* confdefs.h.  */
25415_ACEOF
25416cat confdefs.h >>conftest.$ac_ext
25417cat >>conftest.$ac_ext <<_ACEOF
25418/* end confdefs.h.  */
25419$ac_includes_default
25420   typedef long int ac__type_sizeof_;
25421int
25422main ()
25423{
25424static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25425test_array [0] = 0
25426
25427  ;
25428  return 0;
25429}
25430_ACEOF
25431rm -f conftest.$ac_objext
25432if { (ac_try="$ac_compile"
25433case "(($ac_try" in
25434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435  *) ac_try_echo=$ac_try;;
25436esac
25437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438  (eval "$ac_compile") 2>conftest.er1
25439  ac_status=$?
25440  grep -v '^ *+' conftest.er1 >conftest.err
25441  rm -f conftest.er1
25442  cat conftest.err >&5
25443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444  (exit $ac_status); } && {
25445	 test -z "$ac_c_werror_flag" ||
25446	 test ! -s conftest.err
25447       } && test -s conftest.$ac_objext; then
25448  ac_hi=-1 ac_mid=-1
25449  while :; do
25450    cat >conftest.$ac_ext <<_ACEOF
25451/* confdefs.h.  */
25452_ACEOF
25453cat confdefs.h >>conftest.$ac_ext
25454cat >>conftest.$ac_ext <<_ACEOF
25455/* end confdefs.h.  */
25456$ac_includes_default
25457   typedef long int ac__type_sizeof_;
25458int
25459main ()
25460{
25461static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25462test_array [0] = 0
25463
25464  ;
25465  return 0;
25466}
25467_ACEOF
25468rm -f conftest.$ac_objext
25469if { (ac_try="$ac_compile"
25470case "(($ac_try" in
25471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472  *) ac_try_echo=$ac_try;;
25473esac
25474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475  (eval "$ac_compile") 2>conftest.er1
25476  ac_status=$?
25477  grep -v '^ *+' conftest.er1 >conftest.err
25478  rm -f conftest.er1
25479  cat conftest.err >&5
25480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481  (exit $ac_status); } && {
25482	 test -z "$ac_c_werror_flag" ||
25483	 test ! -s conftest.err
25484       } && test -s conftest.$ac_objext; then
25485  ac_lo=$ac_mid; break
25486else
25487  echo "$as_me: failed program was:" >&5
25488sed 's/^/| /' conftest.$ac_ext >&5
25489
25490	ac_hi=`expr '(' $ac_mid ')' - 1`
25491			if test $ac_mid -le $ac_hi; then
25492			  ac_lo= ac_hi=
25493			  break
25494			fi
25495			ac_mid=`expr 2 '*' $ac_mid`
25496fi
25497
25498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25499  done
25500else
25501  echo "$as_me: failed program was:" >&5
25502sed 's/^/| /' conftest.$ac_ext >&5
25503
25504	ac_lo= ac_hi=
25505fi
25506
25507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25508fi
25509
25510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25511# Binary search between lo and hi bounds.
25512while test "x$ac_lo" != "x$ac_hi"; do
25513  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25514  cat >conftest.$ac_ext <<_ACEOF
25515/* confdefs.h.  */
25516_ACEOF
25517cat confdefs.h >>conftest.$ac_ext
25518cat >>conftest.$ac_ext <<_ACEOF
25519/* end confdefs.h.  */
25520$ac_includes_default
25521   typedef long int ac__type_sizeof_;
25522int
25523main ()
25524{
25525static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25526test_array [0] = 0
25527
25528  ;
25529  return 0;
25530}
25531_ACEOF
25532rm -f conftest.$ac_objext
25533if { (ac_try="$ac_compile"
25534case "(($ac_try" in
25535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25536  *) ac_try_echo=$ac_try;;
25537esac
25538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25539  (eval "$ac_compile") 2>conftest.er1
25540  ac_status=$?
25541  grep -v '^ *+' conftest.er1 >conftest.err
25542  rm -f conftest.er1
25543  cat conftest.err >&5
25544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545  (exit $ac_status); } && {
25546	 test -z "$ac_c_werror_flag" ||
25547	 test ! -s conftest.err
25548       } && test -s conftest.$ac_objext; then
25549  ac_hi=$ac_mid
25550else
25551  echo "$as_me: failed program was:" >&5
25552sed 's/^/| /' conftest.$ac_ext >&5
25553
25554	ac_lo=`expr '(' $ac_mid ')' + 1`
25555fi
25556
25557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25558done
25559case $ac_lo in
25560?*) ac_cv_sizeof_long_int=$ac_lo;;
25561'') if test "$ac_cv_type_long_int" = yes; then
25562     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25563See \`config.log' for more details." >&5
25564echo "$as_me: error: cannot compute sizeof (long int)
25565See \`config.log' for more details." >&2;}
25566   { (exit 77); exit 77; }; }
25567   else
25568     ac_cv_sizeof_long_int=0
25569   fi ;;
25570esac
25571else
25572  cat >conftest.$ac_ext <<_ACEOF
25573/* confdefs.h.  */
25574_ACEOF
25575cat confdefs.h >>conftest.$ac_ext
25576cat >>conftest.$ac_ext <<_ACEOF
25577/* end confdefs.h.  */
25578$ac_includes_default
25579   typedef long int ac__type_sizeof_;
25580static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25581static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25582#include <stdio.h>
25583#include <stdlib.h>
25584int
25585main ()
25586{
25587
25588  FILE *f = fopen ("conftest.val", "w");
25589  if (! f)
25590    return 1;
25591  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25592    {
25593      long int i = longval ();
25594      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25595	return 1;
25596      fprintf (f, "%ld\n", i);
25597    }
25598  else
25599    {
25600      unsigned long int i = ulongval ();
25601      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25602	return 1;
25603      fprintf (f, "%lu\n", i);
25604    }
25605  return ferror (f) || fclose (f) != 0;
25606
25607  ;
25608  return 0;
25609}
25610_ACEOF
25611rm -f conftest$ac_exeext
25612if { (ac_try="$ac_link"
25613case "(($ac_try" in
25614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615  *) ac_try_echo=$ac_try;;
25616esac
25617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618  (eval "$ac_link") 2>&5
25619  ac_status=$?
25620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25622  { (case "(($ac_try" in
25623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25624  *) ac_try_echo=$ac_try;;
25625esac
25626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25627  (eval "$ac_try") 2>&5
25628  ac_status=$?
25629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630  (exit $ac_status); }; }; then
25631  ac_cv_sizeof_long_int=`cat conftest.val`
25632else
25633  echo "$as_me: program exited with status $ac_status" >&5
25634echo "$as_me: failed program was:" >&5
25635sed 's/^/| /' conftest.$ac_ext >&5
25636
25637( exit $ac_status )
25638if test "$ac_cv_type_long_int" = yes; then
25639     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25640See \`config.log' for more details." >&5
25641echo "$as_me: error: cannot compute sizeof (long int)
25642See \`config.log' for more details." >&2;}
25643   { (exit 77); exit 77; }; }
25644   else
25645     ac_cv_sizeof_long_int=0
25646   fi
25647fi
25648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25649fi
25650rm -f conftest.val
25651fi
25652{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25653echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25654
25655
25656
25657cat >>confdefs.h <<_ACEOF
25658#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25659_ACEOF
25660
25661
25662{ echo "$as_me:$LINENO: checking for long long int" >&5
25663echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25664if test "${ac_cv_type_long_long_int+set}" = set; then
25665  echo $ECHO_N "(cached) $ECHO_C" >&6
25666else
25667  cat >conftest.$ac_ext <<_ACEOF
25668/* confdefs.h.  */
25669_ACEOF
25670cat confdefs.h >>conftest.$ac_ext
25671cat >>conftest.$ac_ext <<_ACEOF
25672/* end confdefs.h.  */
25673$ac_includes_default
25674typedef long long int ac__type_new_;
25675int
25676main ()
25677{
25678if ((ac__type_new_ *) 0)
25679  return 0;
25680if (sizeof (ac__type_new_))
25681  return 0;
25682  ;
25683  return 0;
25684}
25685_ACEOF
25686rm -f conftest.$ac_objext
25687if { (ac_try="$ac_compile"
25688case "(($ac_try" in
25689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25690  *) ac_try_echo=$ac_try;;
25691esac
25692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25693  (eval "$ac_compile") 2>conftest.er1
25694  ac_status=$?
25695  grep -v '^ *+' conftest.er1 >conftest.err
25696  rm -f conftest.er1
25697  cat conftest.err >&5
25698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699  (exit $ac_status); } && {
25700	 test -z "$ac_c_werror_flag" ||
25701	 test ! -s conftest.err
25702       } && test -s conftest.$ac_objext; then
25703  ac_cv_type_long_long_int=yes
25704else
25705  echo "$as_me: failed program was:" >&5
25706sed 's/^/| /' conftest.$ac_ext >&5
25707
25708	ac_cv_type_long_long_int=no
25709fi
25710
25711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25712fi
25713{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25714echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25715
25716# The cast to long int works around a bug in the HP C Compiler
25717# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25718# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25719# This bug is HP SR number 8606223364.
25720{ echo "$as_me:$LINENO: checking size of long long int" >&5
25721echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25722if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25723  echo $ECHO_N "(cached) $ECHO_C" >&6
25724else
25725  if test "$cross_compiling" = yes; then
25726  # Depending upon the size, compute the lo and hi bounds.
25727cat >conftest.$ac_ext <<_ACEOF
25728/* confdefs.h.  */
25729_ACEOF
25730cat confdefs.h >>conftest.$ac_ext
25731cat >>conftest.$ac_ext <<_ACEOF
25732/* end confdefs.h.  */
25733$ac_includes_default
25734   typedef long long int ac__type_sizeof_;
25735int
25736main ()
25737{
25738static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25739test_array [0] = 0
25740
25741  ;
25742  return 0;
25743}
25744_ACEOF
25745rm -f conftest.$ac_objext
25746if { (ac_try="$ac_compile"
25747case "(($ac_try" in
25748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749  *) ac_try_echo=$ac_try;;
25750esac
25751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25752  (eval "$ac_compile") 2>conftest.er1
25753  ac_status=$?
25754  grep -v '^ *+' conftest.er1 >conftest.err
25755  rm -f conftest.er1
25756  cat conftest.err >&5
25757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758  (exit $ac_status); } && {
25759	 test -z "$ac_c_werror_flag" ||
25760	 test ! -s conftest.err
25761       } && test -s conftest.$ac_objext; then
25762  ac_lo=0 ac_mid=0
25763  while :; do
25764    cat >conftest.$ac_ext <<_ACEOF
25765/* confdefs.h.  */
25766_ACEOF
25767cat confdefs.h >>conftest.$ac_ext
25768cat >>conftest.$ac_ext <<_ACEOF
25769/* end confdefs.h.  */
25770$ac_includes_default
25771   typedef long long int ac__type_sizeof_;
25772int
25773main ()
25774{
25775static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25776test_array [0] = 0
25777
25778  ;
25779  return 0;
25780}
25781_ACEOF
25782rm -f conftest.$ac_objext
25783if { (ac_try="$ac_compile"
25784case "(($ac_try" in
25785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25786  *) ac_try_echo=$ac_try;;
25787esac
25788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25789  (eval "$ac_compile") 2>conftest.er1
25790  ac_status=$?
25791  grep -v '^ *+' conftest.er1 >conftest.err
25792  rm -f conftest.er1
25793  cat conftest.err >&5
25794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795  (exit $ac_status); } && {
25796	 test -z "$ac_c_werror_flag" ||
25797	 test ! -s conftest.err
25798       } && test -s conftest.$ac_objext; then
25799  ac_hi=$ac_mid; break
25800else
25801  echo "$as_me: failed program was:" >&5
25802sed 's/^/| /' conftest.$ac_ext >&5
25803
25804	ac_lo=`expr $ac_mid + 1`
25805			if test $ac_lo -le $ac_mid; then
25806			  ac_lo= ac_hi=
25807			  break
25808			fi
25809			ac_mid=`expr 2 '*' $ac_mid + 1`
25810fi
25811
25812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25813  done
25814else
25815  echo "$as_me: failed program was:" >&5
25816sed 's/^/| /' conftest.$ac_ext >&5
25817
25818	cat >conftest.$ac_ext <<_ACEOF
25819/* confdefs.h.  */
25820_ACEOF
25821cat confdefs.h >>conftest.$ac_ext
25822cat >>conftest.$ac_ext <<_ACEOF
25823/* end confdefs.h.  */
25824$ac_includes_default
25825   typedef long long int ac__type_sizeof_;
25826int
25827main ()
25828{
25829static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25830test_array [0] = 0
25831
25832  ;
25833  return 0;
25834}
25835_ACEOF
25836rm -f conftest.$ac_objext
25837if { (ac_try="$ac_compile"
25838case "(($ac_try" in
25839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840  *) ac_try_echo=$ac_try;;
25841esac
25842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25843  (eval "$ac_compile") 2>conftest.er1
25844  ac_status=$?
25845  grep -v '^ *+' conftest.er1 >conftest.err
25846  rm -f conftest.er1
25847  cat conftest.err >&5
25848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849  (exit $ac_status); } && {
25850	 test -z "$ac_c_werror_flag" ||
25851	 test ! -s conftest.err
25852       } && test -s conftest.$ac_objext; then
25853  ac_hi=-1 ac_mid=-1
25854  while :; do
25855    cat >conftest.$ac_ext <<_ACEOF
25856/* confdefs.h.  */
25857_ACEOF
25858cat confdefs.h >>conftest.$ac_ext
25859cat >>conftest.$ac_ext <<_ACEOF
25860/* end confdefs.h.  */
25861$ac_includes_default
25862   typedef long long int ac__type_sizeof_;
25863int
25864main ()
25865{
25866static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25867test_array [0] = 0
25868
25869  ;
25870  return 0;
25871}
25872_ACEOF
25873rm -f conftest.$ac_objext
25874if { (ac_try="$ac_compile"
25875case "(($ac_try" in
25876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25877  *) ac_try_echo=$ac_try;;
25878esac
25879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25880  (eval "$ac_compile") 2>conftest.er1
25881  ac_status=$?
25882  grep -v '^ *+' conftest.er1 >conftest.err
25883  rm -f conftest.er1
25884  cat conftest.err >&5
25885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886  (exit $ac_status); } && {
25887	 test -z "$ac_c_werror_flag" ||
25888	 test ! -s conftest.err
25889       } && test -s conftest.$ac_objext; then
25890  ac_lo=$ac_mid; break
25891else
25892  echo "$as_me: failed program was:" >&5
25893sed 's/^/| /' conftest.$ac_ext >&5
25894
25895	ac_hi=`expr '(' $ac_mid ')' - 1`
25896			if test $ac_mid -le $ac_hi; then
25897			  ac_lo= ac_hi=
25898			  break
25899			fi
25900			ac_mid=`expr 2 '*' $ac_mid`
25901fi
25902
25903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25904  done
25905else
25906  echo "$as_me: failed program was:" >&5
25907sed 's/^/| /' conftest.$ac_ext >&5
25908
25909	ac_lo= ac_hi=
25910fi
25911
25912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25913fi
25914
25915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25916# Binary search between lo and hi bounds.
25917while test "x$ac_lo" != "x$ac_hi"; do
25918  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25919  cat >conftest.$ac_ext <<_ACEOF
25920/* confdefs.h.  */
25921_ACEOF
25922cat confdefs.h >>conftest.$ac_ext
25923cat >>conftest.$ac_ext <<_ACEOF
25924/* end confdefs.h.  */
25925$ac_includes_default
25926   typedef long long int ac__type_sizeof_;
25927int
25928main ()
25929{
25930static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25931test_array [0] = 0
25932
25933  ;
25934  return 0;
25935}
25936_ACEOF
25937rm -f conftest.$ac_objext
25938if { (ac_try="$ac_compile"
25939case "(($ac_try" in
25940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25941  *) ac_try_echo=$ac_try;;
25942esac
25943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25944  (eval "$ac_compile") 2>conftest.er1
25945  ac_status=$?
25946  grep -v '^ *+' conftest.er1 >conftest.err
25947  rm -f conftest.er1
25948  cat conftest.err >&5
25949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950  (exit $ac_status); } && {
25951	 test -z "$ac_c_werror_flag" ||
25952	 test ! -s conftest.err
25953       } && test -s conftest.$ac_objext; then
25954  ac_hi=$ac_mid
25955else
25956  echo "$as_me: failed program was:" >&5
25957sed 's/^/| /' conftest.$ac_ext >&5
25958
25959	ac_lo=`expr '(' $ac_mid ')' + 1`
25960fi
25961
25962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25963done
25964case $ac_lo in
25965?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25966'') if test "$ac_cv_type_long_long_int" = yes; then
25967     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25968See \`config.log' for more details." >&5
25969echo "$as_me: error: cannot compute sizeof (long long int)
25970See \`config.log' for more details." >&2;}
25971   { (exit 77); exit 77; }; }
25972   else
25973     ac_cv_sizeof_long_long_int=0
25974   fi ;;
25975esac
25976else
25977  cat >conftest.$ac_ext <<_ACEOF
25978/* confdefs.h.  */
25979_ACEOF
25980cat confdefs.h >>conftest.$ac_ext
25981cat >>conftest.$ac_ext <<_ACEOF
25982/* end confdefs.h.  */
25983$ac_includes_default
25984   typedef long long int ac__type_sizeof_;
25985static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25986static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25987#include <stdio.h>
25988#include <stdlib.h>
25989int
25990main ()
25991{
25992
25993  FILE *f = fopen ("conftest.val", "w");
25994  if (! f)
25995    return 1;
25996  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25997    {
25998      long int i = longval ();
25999      if (i != ((long int) (sizeof (ac__type_sizeof_))))
26000	return 1;
26001      fprintf (f, "%ld\n", i);
26002    }
26003  else
26004    {
26005      unsigned long int i = ulongval ();
26006      if (i != ((long int) (sizeof (ac__type_sizeof_))))
26007	return 1;
26008      fprintf (f, "%lu\n", i);
26009    }
26010  return ferror (f) || fclose (f) != 0;
26011
26012  ;
26013  return 0;
26014}
26015_ACEOF
26016rm -f conftest$ac_exeext
26017if { (ac_try="$ac_link"
26018case "(($ac_try" in
26019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26020  *) ac_try_echo=$ac_try;;
26021esac
26022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26023  (eval "$ac_link") 2>&5
26024  ac_status=$?
26025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26027  { (case "(($ac_try" in
26028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26029  *) ac_try_echo=$ac_try;;
26030esac
26031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26032  (eval "$ac_try") 2>&5
26033  ac_status=$?
26034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035  (exit $ac_status); }; }; then
26036  ac_cv_sizeof_long_long_int=`cat conftest.val`
26037else
26038  echo "$as_me: program exited with status $ac_status" >&5
26039echo "$as_me: failed program was:" >&5
26040sed 's/^/| /' conftest.$ac_ext >&5
26041
26042( exit $ac_status )
26043if test "$ac_cv_type_long_long_int" = yes; then
26044     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
26045See \`config.log' for more details." >&5
26046echo "$as_me: error: cannot compute sizeof (long long int)
26047See \`config.log' for more details." >&2;}
26048   { (exit 77); exit 77; }; }
26049   else
26050     ac_cv_sizeof_long_long_int=0
26051   fi
26052fi
26053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26054fi
26055rm -f conftest.val
26056fi
26057{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
26058echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
26059
26060
26061
26062cat >>confdefs.h <<_ACEOF
26063#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26064_ACEOF
26065
26066
26067
26068# Sanity check long long for some platforms (AIX)
26069if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
26070	ac_cv_sizeof_long_long_int=0
26071fi
26072
26073# compute LLONG_MIN and LLONG_MAX if we don't know them.
26074if test -z "$have_llong_max"; then
26075	{ echo "$as_me:$LINENO: checking for max value of long long" >&5
26076echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
26077	if test "$cross_compiling" = yes; then
26078
26079			{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
26080echo "$as_me: WARNING: cross compiling: not checking" >&2;}
26081
26082
26083else
26084  cat >conftest.$ac_ext <<_ACEOF
26085/* confdefs.h.  */
26086_ACEOF
26087cat confdefs.h >>conftest.$ac_ext
26088cat >>conftest.$ac_ext <<_ACEOF
26089/* end confdefs.h.  */
26090
26091#include <stdio.h>
26092/* Why is this so damn hard? */
26093#ifdef __GNUC__
26094# undef __GNUC__
26095#endif
26096#define __USE_ISOC99
26097#include <limits.h>
26098#define DATA "conftest.llminmax"
26099#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
26100
26101/*
26102 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
26103 * we do this the hard way.
26104 */
26105static int
26106fprint_ll(FILE *f, long long n)
26107{
26108	unsigned int i;
26109	int l[sizeof(long long) * 8];
26110
26111	if (n < 0)
26112		if (fprintf(f, "-") < 0)
26113			return -1;
26114	for (i = 0; n != 0; i++) {
26115		l[i] = my_abs(n % 10);
26116		n /= 10;
26117	}
26118	do {
26119		if (fprintf(f, "%d", l[--i]) < 0)
26120			return -1;
26121	} while (i != 0);
26122	if (fprintf(f, " ") < 0)
26123		return -1;
26124	return 0;
26125}
26126
26127int
26128main ()
26129{
26130
26131	FILE *f;
26132	long long i, llmin, llmax = 0;
26133
26134	if((f = fopen(DATA,"w")) == NULL)
26135		exit(1);
26136
26137#if defined(LLONG_MIN) && defined(LLONG_MAX)
26138	fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
26139	llmin = LLONG_MIN;
26140	llmax = LLONG_MAX;
26141#else
26142	fprintf(stderr, "Calculating  LLONG_MIN and LLONG_MAX\n");
26143	/* This will work on one's complement and two's complement */
26144	for (i = 1; i > llmax; i <<= 1, i++)
26145		llmax = i;
26146	llmin = llmax + 1LL;	/* wrap */
26147#endif
26148
26149	/* Sanity check */
26150	if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
26151	    || llmax - 1 > llmax || llmin == llmax || llmin == 0
26152	    || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
26153		fprintf(f, "unknown unknown\n");
26154		exit(2);
26155	}
26156
26157	if (fprint_ll(f, llmin) < 0)
26158		exit(3);
26159	if (fprint_ll(f, llmax) < 0)
26160		exit(4);
26161	if (fclose(f) < 0)
26162		exit(5);
26163	exit(0);
26164
26165  ;
26166  return 0;
26167}
26168_ACEOF
26169rm -f conftest$ac_exeext
26170if { (ac_try="$ac_link"
26171case "(($ac_try" in
26172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26173  *) ac_try_echo=$ac_try;;
26174esac
26175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26176  (eval "$ac_link") 2>&5
26177  ac_status=$?
26178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26180  { (case "(($ac_try" in
26181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182  *) ac_try_echo=$ac_try;;
26183esac
26184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26185  (eval "$ac_try") 2>&5
26186  ac_status=$?
26187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188  (exit $ac_status); }; }; then
26189
26190			llong_min=`$AWK '{print $1}' conftest.llminmax`
26191			llong_max=`$AWK '{print $2}' conftest.llminmax`
26192
26193			{ echo "$as_me:$LINENO: result: $llong_max" >&5
26194echo "${ECHO_T}$llong_max" >&6; }
26195
26196cat >>confdefs.h <<_ACEOF
26197#define LLONG_MAX ${llong_max}LL
26198_ACEOF
26199
26200			{ echo "$as_me:$LINENO: checking for min value of long long" >&5
26201echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
26202			{ echo "$as_me:$LINENO: result: $llong_min" >&5
26203echo "${ECHO_T}$llong_min" >&6; }
26204
26205cat >>confdefs.h <<_ACEOF
26206#define LLONG_MIN ${llong_min}LL
26207_ACEOF
26208
26209
26210else
26211  echo "$as_me: program exited with status $ac_status" >&5
26212echo "$as_me: failed program was:" >&5
26213sed 's/^/| /' conftest.$ac_ext >&5
26214
26215( exit $ac_status )
26216
26217			{ echo "$as_me:$LINENO: result: not found" >&5
26218echo "${ECHO_T}not found" >&6; }
26219
26220fi
26221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26222fi
26223
26224
26225fi
26226
26227
26228# More checks for data types
26229{ echo "$as_me:$LINENO: checking for u_int type" >&5
26230echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
26231if test "${ac_cv_have_u_int+set}" = set; then
26232  echo $ECHO_N "(cached) $ECHO_C" >&6
26233else
26234
26235	cat >conftest.$ac_ext <<_ACEOF
26236/* confdefs.h.  */
26237_ACEOF
26238cat confdefs.h >>conftest.$ac_ext
26239cat >>conftest.$ac_ext <<_ACEOF
26240/* end confdefs.h.  */
26241 #include <sys/types.h>
26242int
26243main ()
26244{
26245 u_int a; a = 1;
26246  ;
26247  return 0;
26248}
26249_ACEOF
26250rm -f conftest.$ac_objext
26251if { (ac_try="$ac_compile"
26252case "(($ac_try" in
26253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26254  *) ac_try_echo=$ac_try;;
26255esac
26256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26257  (eval "$ac_compile") 2>conftest.er1
26258  ac_status=$?
26259  grep -v '^ *+' conftest.er1 >conftest.err
26260  rm -f conftest.er1
26261  cat conftest.err >&5
26262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263  (exit $ac_status); } && {
26264	 test -z "$ac_c_werror_flag" ||
26265	 test ! -s conftest.err
26266       } && test -s conftest.$ac_objext; then
26267   ac_cv_have_u_int="yes"
26268else
26269  echo "$as_me: failed program was:" >&5
26270sed 's/^/| /' conftest.$ac_ext >&5
26271
26272	 ac_cv_have_u_int="no"
26273
26274fi
26275
26276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26277
26278fi
26279{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26280echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26281if test "x$ac_cv_have_u_int" = "xyes" ; then
26282
26283cat >>confdefs.h <<\_ACEOF
26284#define HAVE_U_INT 1
26285_ACEOF
26286
26287	have_u_int=1
26288fi
26289
26290{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
26291echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26292if test "${ac_cv_have_intxx_t+set}" = set; then
26293  echo $ECHO_N "(cached) $ECHO_C" >&6
26294else
26295
26296	cat >conftest.$ac_ext <<_ACEOF
26297/* confdefs.h.  */
26298_ACEOF
26299cat confdefs.h >>conftest.$ac_ext
26300cat >>conftest.$ac_ext <<_ACEOF
26301/* end confdefs.h.  */
26302 #include <sys/types.h>
26303int
26304main ()
26305{
26306 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26307  ;
26308  return 0;
26309}
26310_ACEOF
26311rm -f conftest.$ac_objext
26312if { (ac_try="$ac_compile"
26313case "(($ac_try" in
26314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26315  *) ac_try_echo=$ac_try;;
26316esac
26317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26318  (eval "$ac_compile") 2>conftest.er1
26319  ac_status=$?
26320  grep -v '^ *+' conftest.er1 >conftest.err
26321  rm -f conftest.er1
26322  cat conftest.err >&5
26323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324  (exit $ac_status); } && {
26325	 test -z "$ac_c_werror_flag" ||
26326	 test ! -s conftest.err
26327       } && test -s conftest.$ac_objext; then
26328   ac_cv_have_intxx_t="yes"
26329else
26330  echo "$as_me: failed program was:" >&5
26331sed 's/^/| /' conftest.$ac_ext >&5
26332
26333	 ac_cv_have_intxx_t="no"
26334
26335fi
26336
26337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26338
26339fi
26340{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26341echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26342if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26343
26344cat >>confdefs.h <<\_ACEOF
26345#define HAVE_INTXX_T 1
26346_ACEOF
26347
26348	have_intxx_t=1
26349fi
26350
26351if (test -z "$have_intxx_t" && \
26352	   test "x$ac_cv_header_stdint_h" = "xyes")
26353then
26354    { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
26355echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
26356	cat >conftest.$ac_ext <<_ACEOF
26357/* confdefs.h.  */
26358_ACEOF
26359cat confdefs.h >>conftest.$ac_ext
26360cat >>conftest.$ac_ext <<_ACEOF
26361/* end confdefs.h.  */
26362 #include <stdint.h>
26363int
26364main ()
26365{
26366 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26367  ;
26368  return 0;
26369}
26370_ACEOF
26371rm -f conftest.$ac_objext
26372if { (ac_try="$ac_compile"
26373case "(($ac_try" in
26374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26375  *) ac_try_echo=$ac_try;;
26376esac
26377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26378  (eval "$ac_compile") 2>conftest.er1
26379  ac_status=$?
26380  grep -v '^ *+' conftest.er1 >conftest.err
26381  rm -f conftest.er1
26382  cat conftest.err >&5
26383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384  (exit $ac_status); } && {
26385	 test -z "$ac_c_werror_flag" ||
26386	 test ! -s conftest.err
26387       } && test -s conftest.$ac_objext; then
26388
26389			cat >>confdefs.h <<\_ACEOF
26390#define HAVE_INTXX_T 1
26391_ACEOF
26392
26393			{ echo "$as_me:$LINENO: result: yes" >&5
26394echo "${ECHO_T}yes" >&6; }
26395
26396else
26397  echo "$as_me: failed program was:" >&5
26398sed 's/^/| /' conftest.$ac_ext >&5
26399
26400	 { echo "$as_me:$LINENO: result: no" >&5
26401echo "${ECHO_T}no" >&6; }
26402
26403fi
26404
26405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26406fi
26407
26408{ echo "$as_me:$LINENO: checking for int64_t type" >&5
26409echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26410if test "${ac_cv_have_int64_t+set}" = set; then
26411  echo $ECHO_N "(cached) $ECHO_C" >&6
26412else
26413
26414	cat >conftest.$ac_ext <<_ACEOF
26415/* confdefs.h.  */
26416_ACEOF
26417cat confdefs.h >>conftest.$ac_ext
26418cat >>conftest.$ac_ext <<_ACEOF
26419/* end confdefs.h.  */
26420
26421#include <sys/types.h>
26422#ifdef HAVE_STDINT_H
26423# include <stdint.h>
26424#endif
26425#include <sys/socket.h>
26426#ifdef HAVE_SYS_BITYPES_H
26427# include <sys/bitypes.h>
26428#endif
26429
26430int
26431main ()
26432{
26433
26434int64_t a; a = 1;
26435
26436  ;
26437  return 0;
26438}
26439_ACEOF
26440rm -f conftest.$ac_objext
26441if { (ac_try="$ac_compile"
26442case "(($ac_try" in
26443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26444  *) ac_try_echo=$ac_try;;
26445esac
26446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26447  (eval "$ac_compile") 2>conftest.er1
26448  ac_status=$?
26449  grep -v '^ *+' conftest.er1 >conftest.err
26450  rm -f conftest.er1
26451  cat conftest.err >&5
26452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453  (exit $ac_status); } && {
26454	 test -z "$ac_c_werror_flag" ||
26455	 test ! -s conftest.err
26456       } && test -s conftest.$ac_objext; then
26457   ac_cv_have_int64_t="yes"
26458else
26459  echo "$as_me: failed program was:" >&5
26460sed 's/^/| /' conftest.$ac_ext >&5
26461
26462	 ac_cv_have_int64_t="no"
26463
26464fi
26465
26466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26467
26468fi
26469{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26470echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26471if test "x$ac_cv_have_int64_t" = "xyes" ; then
26472
26473cat >>confdefs.h <<\_ACEOF
26474#define HAVE_INT64_T 1
26475_ACEOF
26476
26477fi
26478
26479{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26480echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26481if test "${ac_cv_have_u_intxx_t+set}" = set; then
26482  echo $ECHO_N "(cached) $ECHO_C" >&6
26483else
26484
26485	cat >conftest.$ac_ext <<_ACEOF
26486/* confdefs.h.  */
26487_ACEOF
26488cat confdefs.h >>conftest.$ac_ext
26489cat >>conftest.$ac_ext <<_ACEOF
26490/* end confdefs.h.  */
26491 #include <sys/types.h>
26492int
26493main ()
26494{
26495 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26496  ;
26497  return 0;
26498}
26499_ACEOF
26500rm -f conftest.$ac_objext
26501if { (ac_try="$ac_compile"
26502case "(($ac_try" in
26503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504  *) ac_try_echo=$ac_try;;
26505esac
26506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507  (eval "$ac_compile") 2>conftest.er1
26508  ac_status=$?
26509  grep -v '^ *+' conftest.er1 >conftest.err
26510  rm -f conftest.er1
26511  cat conftest.err >&5
26512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513  (exit $ac_status); } && {
26514	 test -z "$ac_c_werror_flag" ||
26515	 test ! -s conftest.err
26516       } && test -s conftest.$ac_objext; then
26517   ac_cv_have_u_intxx_t="yes"
26518else
26519  echo "$as_me: failed program was:" >&5
26520sed 's/^/| /' conftest.$ac_ext >&5
26521
26522	 ac_cv_have_u_intxx_t="no"
26523
26524fi
26525
26526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26527
26528fi
26529{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26530echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26531if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26532
26533cat >>confdefs.h <<\_ACEOF
26534#define HAVE_U_INTXX_T 1
26535_ACEOF
26536
26537	have_u_intxx_t=1
26538fi
26539
26540if test -z "$have_u_intxx_t" ; then
26541    { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
26542echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
26543	cat >conftest.$ac_ext <<_ACEOF
26544/* confdefs.h.  */
26545_ACEOF
26546cat confdefs.h >>conftest.$ac_ext
26547cat >>conftest.$ac_ext <<_ACEOF
26548/* end confdefs.h.  */
26549 #include <sys/socket.h>
26550int
26551main ()
26552{
26553 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26554  ;
26555  return 0;
26556}
26557_ACEOF
26558rm -f conftest.$ac_objext
26559if { (ac_try="$ac_compile"
26560case "(($ac_try" in
26561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26562  *) ac_try_echo=$ac_try;;
26563esac
26564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26565  (eval "$ac_compile") 2>conftest.er1
26566  ac_status=$?
26567  grep -v '^ *+' conftest.er1 >conftest.err
26568  rm -f conftest.er1
26569  cat conftest.err >&5
26570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571  (exit $ac_status); } && {
26572	 test -z "$ac_c_werror_flag" ||
26573	 test ! -s conftest.err
26574       } && test -s conftest.$ac_objext; then
26575
26576			cat >>confdefs.h <<\_ACEOF
26577#define HAVE_U_INTXX_T 1
26578_ACEOF
26579
26580			{ echo "$as_me:$LINENO: result: yes" >&5
26581echo "${ECHO_T}yes" >&6; }
26582
26583else
26584  echo "$as_me: failed program was:" >&5
26585sed 's/^/| /' conftest.$ac_ext >&5
26586
26587	 { echo "$as_me:$LINENO: result: no" >&5
26588echo "${ECHO_T}no" >&6; }
26589
26590fi
26591
26592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26593fi
26594
26595{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26596echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26597if test "${ac_cv_have_u_int64_t+set}" = set; then
26598  echo $ECHO_N "(cached) $ECHO_C" >&6
26599else
26600
26601	cat >conftest.$ac_ext <<_ACEOF
26602/* confdefs.h.  */
26603_ACEOF
26604cat confdefs.h >>conftest.$ac_ext
26605cat >>conftest.$ac_ext <<_ACEOF
26606/* end confdefs.h.  */
26607 #include <sys/types.h>
26608int
26609main ()
26610{
26611 u_int64_t a; a = 1;
26612  ;
26613  return 0;
26614}
26615_ACEOF
26616rm -f conftest.$ac_objext
26617if { (ac_try="$ac_compile"
26618case "(($ac_try" in
26619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26620  *) ac_try_echo=$ac_try;;
26621esac
26622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26623  (eval "$ac_compile") 2>conftest.er1
26624  ac_status=$?
26625  grep -v '^ *+' conftest.er1 >conftest.err
26626  rm -f conftest.er1
26627  cat conftest.err >&5
26628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629  (exit $ac_status); } && {
26630	 test -z "$ac_c_werror_flag" ||
26631	 test ! -s conftest.err
26632       } && test -s conftest.$ac_objext; then
26633   ac_cv_have_u_int64_t="yes"
26634else
26635  echo "$as_me: failed program was:" >&5
26636sed 's/^/| /' conftest.$ac_ext >&5
26637
26638	 ac_cv_have_u_int64_t="no"
26639
26640fi
26641
26642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26643
26644fi
26645{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26646echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26647if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26648
26649cat >>confdefs.h <<\_ACEOF
26650#define HAVE_U_INT64_T 1
26651_ACEOF
26652
26653	have_u_int64_t=1
26654fi
26655
26656if (test -z "$have_u_int64_t" && \
26657	   test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26658then
26659    { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
26660echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
26661	cat >conftest.$ac_ext <<_ACEOF
26662/* confdefs.h.  */
26663_ACEOF
26664cat confdefs.h >>conftest.$ac_ext
26665cat >>conftest.$ac_ext <<_ACEOF
26666/* end confdefs.h.  */
26667 #include <sys/bitypes.h>
26668int
26669main ()
26670{
26671 u_int64_t a; a = 1
26672  ;
26673  return 0;
26674}
26675_ACEOF
26676rm -f conftest.$ac_objext
26677if { (ac_try="$ac_compile"
26678case "(($ac_try" in
26679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680  *) ac_try_echo=$ac_try;;
26681esac
26682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26683  (eval "$ac_compile") 2>conftest.er1
26684  ac_status=$?
26685  grep -v '^ *+' conftest.er1 >conftest.err
26686  rm -f conftest.er1
26687  cat conftest.err >&5
26688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689  (exit $ac_status); } && {
26690	 test -z "$ac_c_werror_flag" ||
26691	 test ! -s conftest.err
26692       } && test -s conftest.$ac_objext; then
26693
26694			cat >>confdefs.h <<\_ACEOF
26695#define HAVE_U_INT64_T 1
26696_ACEOF
26697
26698			{ echo "$as_me:$LINENO: result: yes" >&5
26699echo "${ECHO_T}yes" >&6; }
26700
26701else
26702  echo "$as_me: failed program was:" >&5
26703sed 's/^/| /' conftest.$ac_ext >&5
26704
26705	 { echo "$as_me:$LINENO: result: no" >&5
26706echo "${ECHO_T}no" >&6; }
26707
26708fi
26709
26710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26711fi
26712
26713if test -z "$have_u_intxx_t" ; then
26714	{ echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26715echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26716if test "${ac_cv_have_uintxx_t+set}" = set; then
26717  echo $ECHO_N "(cached) $ECHO_C" >&6
26718else
26719
26720		cat >conftest.$ac_ext <<_ACEOF
26721/* confdefs.h.  */
26722_ACEOF
26723cat confdefs.h >>conftest.$ac_ext
26724cat >>conftest.$ac_ext <<_ACEOF
26725/* end confdefs.h.  */
26726
26727#include <sys/types.h>
26728
26729int
26730main ()
26731{
26732
26733	uint8_t a;
26734	uint16_t b;
26735	uint32_t c;
26736	a = b = c = 1;
26737
26738  ;
26739  return 0;
26740}
26741_ACEOF
26742rm -f conftest.$ac_objext
26743if { (ac_try="$ac_compile"
26744case "(($ac_try" in
26745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746  *) ac_try_echo=$ac_try;;
26747esac
26748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26749  (eval "$ac_compile") 2>conftest.er1
26750  ac_status=$?
26751  grep -v '^ *+' conftest.er1 >conftest.err
26752  rm -f conftest.er1
26753  cat conftest.err >&5
26754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755  (exit $ac_status); } && {
26756	 test -z "$ac_c_werror_flag" ||
26757	 test ! -s conftest.err
26758       } && test -s conftest.$ac_objext; then
26759   ac_cv_have_uintxx_t="yes"
26760else
26761  echo "$as_me: failed program was:" >&5
26762sed 's/^/| /' conftest.$ac_ext >&5
26763
26764	 ac_cv_have_uintxx_t="no"
26765
26766fi
26767
26768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26769
26770fi
26771{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26772echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26773	if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26774
26775cat >>confdefs.h <<\_ACEOF
26776#define HAVE_UINTXX_T 1
26777_ACEOF
26778
26779	fi
26780fi
26781
26782if (test -z "$have_uintxx_t" && \
26783	   test "x$ac_cv_header_stdint_h" = "xyes")
26784then
26785    { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
26786echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
26787	cat >conftest.$ac_ext <<_ACEOF
26788/* confdefs.h.  */
26789_ACEOF
26790cat confdefs.h >>conftest.$ac_ext
26791cat >>conftest.$ac_ext <<_ACEOF
26792/* end confdefs.h.  */
26793 #include <stdint.h>
26794int
26795main ()
26796{
26797 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
26798  ;
26799  return 0;
26800}
26801_ACEOF
26802rm -f conftest.$ac_objext
26803if { (ac_try="$ac_compile"
26804case "(($ac_try" in
26805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26806  *) ac_try_echo=$ac_try;;
26807esac
26808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26809  (eval "$ac_compile") 2>conftest.er1
26810  ac_status=$?
26811  grep -v '^ *+' conftest.er1 >conftest.err
26812  rm -f conftest.er1
26813  cat conftest.err >&5
26814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815  (exit $ac_status); } && {
26816	 test -z "$ac_c_werror_flag" ||
26817	 test ! -s conftest.err
26818       } && test -s conftest.$ac_objext; then
26819
26820			cat >>confdefs.h <<\_ACEOF
26821#define HAVE_UINTXX_T 1
26822_ACEOF
26823
26824			{ echo "$as_me:$LINENO: result: yes" >&5
26825echo "${ECHO_T}yes" >&6; }
26826
26827else
26828  echo "$as_me: failed program was:" >&5
26829sed 's/^/| /' conftest.$ac_ext >&5
26830
26831	 { echo "$as_me:$LINENO: result: no" >&5
26832echo "${ECHO_T}no" >&6; }
26833
26834fi
26835
26836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26837fi
26838
26839if (test -z "$have_uintxx_t" && \
26840	   test "x$ac_cv_header_inttypes_h" = "xyes")
26841then
26842    { echo "$as_me:$LINENO: checking for uintXX_t types in inttypes.h" >&5
26843echo $ECHO_N "checking for uintXX_t types in inttypes.h... $ECHO_C" >&6; }
26844	cat >conftest.$ac_ext <<_ACEOF
26845/* confdefs.h.  */
26846_ACEOF
26847cat confdefs.h >>conftest.$ac_ext
26848cat >>conftest.$ac_ext <<_ACEOF
26849/* end confdefs.h.  */
26850 #include <inttypes.h>
26851int
26852main ()
26853{
26854 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
26855  ;
26856  return 0;
26857}
26858_ACEOF
26859rm -f conftest.$ac_objext
26860if { (ac_try="$ac_compile"
26861case "(($ac_try" in
26862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26863  *) ac_try_echo=$ac_try;;
26864esac
26865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26866  (eval "$ac_compile") 2>conftest.er1
26867  ac_status=$?
26868  grep -v '^ *+' conftest.er1 >conftest.err
26869  rm -f conftest.er1
26870  cat conftest.err >&5
26871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872  (exit $ac_status); } && {
26873	 test -z "$ac_c_werror_flag" ||
26874	 test ! -s conftest.err
26875       } && test -s conftest.$ac_objext; then
26876
26877			cat >>confdefs.h <<\_ACEOF
26878#define HAVE_UINTXX_T 1
26879_ACEOF
26880
26881			{ echo "$as_me:$LINENO: result: yes" >&5
26882echo "${ECHO_T}yes" >&6; }
26883
26884else
26885  echo "$as_me: failed program was:" >&5
26886sed 's/^/| /' conftest.$ac_ext >&5
26887
26888	 { echo "$as_me:$LINENO: result: no" >&5
26889echo "${ECHO_T}no" >&6; }
26890
26891fi
26892
26893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26894fi
26895
26896if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26897	   test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26898then
26899	{ echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26900echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26901	cat >conftest.$ac_ext <<_ACEOF
26902/* confdefs.h.  */
26903_ACEOF
26904cat confdefs.h >>conftest.$ac_ext
26905cat >>conftest.$ac_ext <<_ACEOF
26906/* end confdefs.h.  */
26907
26908#include <sys/bitypes.h>
26909
26910int
26911main ()
26912{
26913
26914			int8_t a; int16_t b; int32_t c;
26915			u_int8_t e; u_int16_t f; u_int32_t g;
26916			a = b = c = e = f = g = 1;
26917
26918  ;
26919  return 0;
26920}
26921_ACEOF
26922rm -f conftest.$ac_objext
26923if { (ac_try="$ac_compile"
26924case "(($ac_try" in
26925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926  *) ac_try_echo=$ac_try;;
26927esac
26928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26929  (eval "$ac_compile") 2>conftest.er1
26930  ac_status=$?
26931  grep -v '^ *+' conftest.er1 >conftest.err
26932  rm -f conftest.er1
26933  cat conftest.err >&5
26934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935  (exit $ac_status); } && {
26936	 test -z "$ac_c_werror_flag" ||
26937	 test ! -s conftest.err
26938       } && test -s conftest.$ac_objext; then
26939
26940			cat >>confdefs.h <<\_ACEOF
26941#define HAVE_U_INTXX_T 1
26942_ACEOF
26943
26944			cat >>confdefs.h <<\_ACEOF
26945#define HAVE_INTXX_T 1
26946_ACEOF
26947
26948			{ echo "$as_me:$LINENO: result: yes" >&5
26949echo "${ECHO_T}yes" >&6; }
26950
26951else
26952  echo "$as_me: failed program was:" >&5
26953sed 's/^/| /' conftest.$ac_ext >&5
26954
26955	{ echo "$as_me:$LINENO: result: no" >&5
26956echo "${ECHO_T}no" >&6; }
26957
26958fi
26959
26960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26961fi
26962
26963
26964{ echo "$as_me:$LINENO: checking for u_char" >&5
26965echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
26966if test "${ac_cv_have_u_char+set}" = set; then
26967  echo $ECHO_N "(cached) $ECHO_C" >&6
26968else
26969
26970	cat >conftest.$ac_ext <<_ACEOF
26971/* confdefs.h.  */
26972_ACEOF
26973cat confdefs.h >>conftest.$ac_ext
26974cat >>conftest.$ac_ext <<_ACEOF
26975/* end confdefs.h.  */
26976 #include <sys/types.h>
26977int
26978main ()
26979{
26980 u_char foo; foo = 125;
26981  ;
26982  return 0;
26983}
26984_ACEOF
26985rm -f conftest.$ac_objext
26986if { (ac_try="$ac_compile"
26987case "(($ac_try" in
26988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26989  *) ac_try_echo=$ac_try;;
26990esac
26991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26992  (eval "$ac_compile") 2>conftest.er1
26993  ac_status=$?
26994  grep -v '^ *+' conftest.er1 >conftest.err
26995  rm -f conftest.er1
26996  cat conftest.err >&5
26997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998  (exit $ac_status); } && {
26999	 test -z "$ac_c_werror_flag" ||
27000	 test ! -s conftest.err
27001       } && test -s conftest.$ac_objext; then
27002   ac_cv_have_u_char="yes"
27003else
27004  echo "$as_me: failed program was:" >&5
27005sed 's/^/| /' conftest.$ac_ext >&5
27006
27007	 ac_cv_have_u_char="no"
27008
27009fi
27010
27011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27012
27013fi
27014{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
27015echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
27016if test "x$ac_cv_have_u_char" = "xyes" ; then
27017
27018cat >>confdefs.h <<\_ACEOF
27019#define HAVE_U_CHAR 1
27020_ACEOF
27021
27022fi
27023
27024{ echo "$as_me:$LINENO: checking for intmax_t" >&5
27025echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
27026if test "${ac_cv_type_intmax_t+set}" = set; then
27027  echo $ECHO_N "(cached) $ECHO_C" >&6
27028else
27029  cat >conftest.$ac_ext <<_ACEOF
27030/* confdefs.h.  */
27031_ACEOF
27032cat confdefs.h >>conftest.$ac_ext
27033cat >>conftest.$ac_ext <<_ACEOF
27034/* end confdefs.h.  */
27035
27036#include <sys/types.h>
27037#include <stdint.h>
27038
27039
27040typedef intmax_t ac__type_new_;
27041int
27042main ()
27043{
27044if ((ac__type_new_ *) 0)
27045  return 0;
27046if (sizeof (ac__type_new_))
27047  return 0;
27048  ;
27049  return 0;
27050}
27051_ACEOF
27052rm -f conftest.$ac_objext
27053if { (ac_try="$ac_compile"
27054case "(($ac_try" in
27055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056  *) ac_try_echo=$ac_try;;
27057esac
27058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059  (eval "$ac_compile") 2>conftest.er1
27060  ac_status=$?
27061  grep -v '^ *+' conftest.er1 >conftest.err
27062  rm -f conftest.er1
27063  cat conftest.err >&5
27064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065  (exit $ac_status); } && {
27066	 test -z "$ac_c_werror_flag" ||
27067	 test ! -s conftest.err
27068       } && test -s conftest.$ac_objext; then
27069  ac_cv_type_intmax_t=yes
27070else
27071  echo "$as_me: failed program was:" >&5
27072sed 's/^/| /' conftest.$ac_ext >&5
27073
27074	ac_cv_type_intmax_t=no
27075fi
27076
27077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078fi
27079{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
27080echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
27081if test $ac_cv_type_intmax_t = yes; then
27082
27083cat >>confdefs.h <<_ACEOF
27084#define HAVE_INTMAX_T 1
27085_ACEOF
27086
27087
27088fi
27089{ echo "$as_me:$LINENO: checking for uintmax_t" >&5
27090echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
27091if test "${ac_cv_type_uintmax_t+set}" = set; then
27092  echo $ECHO_N "(cached) $ECHO_C" >&6
27093else
27094  cat >conftest.$ac_ext <<_ACEOF
27095/* confdefs.h.  */
27096_ACEOF
27097cat confdefs.h >>conftest.$ac_ext
27098cat >>conftest.$ac_ext <<_ACEOF
27099/* end confdefs.h.  */
27100
27101#include <sys/types.h>
27102#include <stdint.h>
27103
27104
27105typedef uintmax_t ac__type_new_;
27106int
27107main ()
27108{
27109if ((ac__type_new_ *) 0)
27110  return 0;
27111if (sizeof (ac__type_new_))
27112  return 0;
27113  ;
27114  return 0;
27115}
27116_ACEOF
27117rm -f conftest.$ac_objext
27118if { (ac_try="$ac_compile"
27119case "(($ac_try" in
27120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121  *) ac_try_echo=$ac_try;;
27122esac
27123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124  (eval "$ac_compile") 2>conftest.er1
27125  ac_status=$?
27126  grep -v '^ *+' conftest.er1 >conftest.err
27127  rm -f conftest.er1
27128  cat conftest.err >&5
27129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130  (exit $ac_status); } && {
27131	 test -z "$ac_c_werror_flag" ||
27132	 test ! -s conftest.err
27133       } && test -s conftest.$ac_objext; then
27134  ac_cv_type_uintmax_t=yes
27135else
27136  echo "$as_me: failed program was:" >&5
27137sed 's/^/| /' conftest.$ac_ext >&5
27138
27139	ac_cv_type_uintmax_t=no
27140fi
27141
27142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27143fi
27144{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
27145echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
27146if test $ac_cv_type_uintmax_t = yes; then
27147
27148cat >>confdefs.h <<_ACEOF
27149#define HAVE_UINTMAX_T 1
27150_ACEOF
27151
27152
27153fi
27154
27155
27156
27157   { echo "$as_me:$LINENO: checking for socklen_t" >&5
27158echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27159if test "${ac_cv_type_socklen_t+set}" = set; then
27160  echo $ECHO_N "(cached) $ECHO_C" >&6
27161else
27162  cat >conftest.$ac_ext <<_ACEOF
27163/* confdefs.h.  */
27164_ACEOF
27165cat confdefs.h >>conftest.$ac_ext
27166cat >>conftest.$ac_ext <<_ACEOF
27167/* end confdefs.h.  */
27168#include <sys/types.h>
27169#include <sys/socket.h>
27170
27171typedef socklen_t ac__type_new_;
27172int
27173main ()
27174{
27175if ((ac__type_new_ *) 0)
27176  return 0;
27177if (sizeof (ac__type_new_))
27178  return 0;
27179  ;
27180  return 0;
27181}
27182_ACEOF
27183rm -f conftest.$ac_objext
27184if { (ac_try="$ac_compile"
27185case "(($ac_try" in
27186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187  *) ac_try_echo=$ac_try;;
27188esac
27189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190  (eval "$ac_compile") 2>conftest.er1
27191  ac_status=$?
27192  grep -v '^ *+' conftest.er1 >conftest.err
27193  rm -f conftest.er1
27194  cat conftest.err >&5
27195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196  (exit $ac_status); } && {
27197	 test -z "$ac_c_werror_flag" ||
27198	 test ! -s conftest.err
27199       } && test -s conftest.$ac_objext; then
27200  ac_cv_type_socklen_t=yes
27201else
27202  echo "$as_me: failed program was:" >&5
27203sed 's/^/| /' conftest.$ac_ext >&5
27204
27205	ac_cv_type_socklen_t=no
27206fi
27207
27208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27209fi
27210{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27211echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27212if test $ac_cv_type_socklen_t = yes; then
27213  :
27214else
27215
27216      { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
27217echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
27218      if test "${curl_cv_socklen_t_equiv+set}" = set; then
27219  echo $ECHO_N "(cached) $ECHO_C" >&6
27220else
27221
27222	 # Systems have either "struct sockaddr *" or
27223	 # "void *" as the second argument to getpeername
27224	 curl_cv_socklen_t_equiv=
27225	 for arg2 in "struct sockaddr" void; do
27226	    for t in int size_t unsigned long "unsigned long"; do
27227	       cat >conftest.$ac_ext <<_ACEOF
27228/* confdefs.h.  */
27229_ACEOF
27230cat confdefs.h >>conftest.$ac_ext
27231cat >>conftest.$ac_ext <<_ACEOF
27232/* end confdefs.h.  */
27233
27234		  #include <sys/types.h>
27235		  #include <sys/socket.h>
27236
27237		  int getpeername (int, $arg2 *, $t *);
27238
27239int
27240main ()
27241{
27242
27243		  $t len;
27244		  getpeername(0,0,&len);
27245
27246  ;
27247  return 0;
27248}
27249_ACEOF
27250rm -f conftest.$ac_objext
27251if { (ac_try="$ac_compile"
27252case "(($ac_try" in
27253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27254  *) ac_try_echo=$ac_try;;
27255esac
27256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27257  (eval "$ac_compile") 2>conftest.er1
27258  ac_status=$?
27259  grep -v '^ *+' conftest.er1 >conftest.err
27260  rm -f conftest.er1
27261  cat conftest.err >&5
27262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263  (exit $ac_status); } && {
27264	 test -z "$ac_c_werror_flag" ||
27265	 test ! -s conftest.err
27266       } && test -s conftest.$ac_objext; then
27267
27268		  curl_cv_socklen_t_equiv="$t"
27269		  break
27270
27271else
27272  echo "$as_me: failed program was:" >&5
27273sed 's/^/| /' conftest.$ac_ext >&5
27274
27275
27276fi
27277
27278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27279	    done
27280	 done
27281
27282	 if test "x$curl_cv_socklen_t_equiv" = x; then
27283	    { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
27284echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
27285   { (exit 1); exit 1; }; }
27286	 fi
27287
27288fi
27289
27290      { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
27291echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
27292
27293cat >>confdefs.h <<_ACEOF
27294#define socklen_t $curl_cv_socklen_t_equiv
27295_ACEOF
27296
27297fi
27298
27299
27300
27301{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27302echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
27303if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27304  echo $ECHO_N "(cached) $ECHO_C" >&6
27305else
27306  cat >conftest.$ac_ext <<_ACEOF
27307/* confdefs.h.  */
27308_ACEOF
27309cat confdefs.h >>conftest.$ac_ext
27310cat >>conftest.$ac_ext <<_ACEOF
27311/* end confdefs.h.  */
27312#include <signal.h>
27313
27314typedef sig_atomic_t ac__type_new_;
27315int
27316main ()
27317{
27318if ((ac__type_new_ *) 0)
27319  return 0;
27320if (sizeof (ac__type_new_))
27321  return 0;
27322  ;
27323  return 0;
27324}
27325_ACEOF
27326rm -f conftest.$ac_objext
27327if { (ac_try="$ac_compile"
27328case "(($ac_try" in
27329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27330  *) ac_try_echo=$ac_try;;
27331esac
27332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27333  (eval "$ac_compile") 2>conftest.er1
27334  ac_status=$?
27335  grep -v '^ *+' conftest.er1 >conftest.err
27336  rm -f conftest.er1
27337  cat conftest.err >&5
27338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339  (exit $ac_status); } && {
27340	 test -z "$ac_c_werror_flag" ||
27341	 test ! -s conftest.err
27342       } && test -s conftest.$ac_objext; then
27343  ac_cv_type_sig_atomic_t=yes
27344else
27345  echo "$as_me: failed program was:" >&5
27346sed 's/^/| /' conftest.$ac_ext >&5
27347
27348	ac_cv_type_sig_atomic_t=no
27349fi
27350
27351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27352fi
27353{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27354echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
27355if test $ac_cv_type_sig_atomic_t = yes; then
27356
27357cat >>confdefs.h <<_ACEOF
27358#define HAVE_SIG_ATOMIC_T 1
27359_ACEOF
27360
27361
27362fi
27363
27364{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
27365echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
27366if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
27367  echo $ECHO_N "(cached) $ECHO_C" >&6
27368else
27369  cat >conftest.$ac_ext <<_ACEOF
27370/* confdefs.h.  */
27371_ACEOF
27372cat confdefs.h >>conftest.$ac_ext
27373cat >>conftest.$ac_ext <<_ACEOF
27374/* end confdefs.h.  */
27375
27376#include <sys/types.h>
27377#ifdef HAVE_SYS_BITYPES_H
27378#include <sys/bitypes.h>
27379#endif
27380#ifdef HAVE_SYS_STATFS_H
27381#include <sys/statfs.h>
27382#endif
27383#ifdef HAVE_SYS_STATVFS_H
27384#include <sys/statvfs.h>
27385#endif
27386
27387
27388typedef fsblkcnt_t ac__type_new_;
27389int
27390main ()
27391{
27392if ((ac__type_new_ *) 0)
27393  return 0;
27394if (sizeof (ac__type_new_))
27395  return 0;
27396  ;
27397  return 0;
27398}
27399_ACEOF
27400rm -f conftest.$ac_objext
27401if { (ac_try="$ac_compile"
27402case "(($ac_try" in
27403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27404  *) ac_try_echo=$ac_try;;
27405esac
27406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27407  (eval "$ac_compile") 2>conftest.er1
27408  ac_status=$?
27409  grep -v '^ *+' conftest.er1 >conftest.err
27410  rm -f conftest.er1
27411  cat conftest.err >&5
27412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413  (exit $ac_status); } && {
27414	 test -z "$ac_c_werror_flag" ||
27415	 test ! -s conftest.err
27416       } && test -s conftest.$ac_objext; then
27417  ac_cv_type_fsblkcnt_t=yes
27418else
27419  echo "$as_me: failed program was:" >&5
27420sed 's/^/| /' conftest.$ac_ext >&5
27421
27422	ac_cv_type_fsblkcnt_t=no
27423fi
27424
27425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27426fi
27427{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
27428echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
27429if test $ac_cv_type_fsblkcnt_t = yes; then
27430
27431cat >>confdefs.h <<_ACEOF
27432#define HAVE_FSBLKCNT_T 1
27433_ACEOF
27434
27435
27436fi
27437{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
27438echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
27439if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
27440  echo $ECHO_N "(cached) $ECHO_C" >&6
27441else
27442  cat >conftest.$ac_ext <<_ACEOF
27443/* confdefs.h.  */
27444_ACEOF
27445cat confdefs.h >>conftest.$ac_ext
27446cat >>conftest.$ac_ext <<_ACEOF
27447/* end confdefs.h.  */
27448
27449#include <sys/types.h>
27450#ifdef HAVE_SYS_BITYPES_H
27451#include <sys/bitypes.h>
27452#endif
27453#ifdef HAVE_SYS_STATFS_H
27454#include <sys/statfs.h>
27455#endif
27456#ifdef HAVE_SYS_STATVFS_H
27457#include <sys/statvfs.h>
27458#endif
27459
27460
27461typedef fsfilcnt_t ac__type_new_;
27462int
27463main ()
27464{
27465if ((ac__type_new_ *) 0)
27466  return 0;
27467if (sizeof (ac__type_new_))
27468  return 0;
27469  ;
27470  return 0;
27471}
27472_ACEOF
27473rm -f conftest.$ac_objext
27474if { (ac_try="$ac_compile"
27475case "(($ac_try" in
27476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27477  *) ac_try_echo=$ac_try;;
27478esac
27479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480  (eval "$ac_compile") 2>conftest.er1
27481  ac_status=$?
27482  grep -v '^ *+' conftest.er1 >conftest.err
27483  rm -f conftest.er1
27484  cat conftest.err >&5
27485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486  (exit $ac_status); } && {
27487	 test -z "$ac_c_werror_flag" ||
27488	 test ! -s conftest.err
27489       } && test -s conftest.$ac_objext; then
27490  ac_cv_type_fsfilcnt_t=yes
27491else
27492  echo "$as_me: failed program was:" >&5
27493sed 's/^/| /' conftest.$ac_ext >&5
27494
27495	ac_cv_type_fsfilcnt_t=no
27496fi
27497
27498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27499fi
27500{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
27501echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
27502if test $ac_cv_type_fsfilcnt_t = yes; then
27503
27504cat >>confdefs.h <<_ACEOF
27505#define HAVE_FSFILCNT_T 1
27506_ACEOF
27507
27508
27509fi
27510
27511
27512{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
27513echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
27514if test "${ac_cv_type_in_addr_t+set}" = set; then
27515  echo $ECHO_N "(cached) $ECHO_C" >&6
27516else
27517  cat >conftest.$ac_ext <<_ACEOF
27518/* confdefs.h.  */
27519_ACEOF
27520cat confdefs.h >>conftest.$ac_ext
27521cat >>conftest.$ac_ext <<_ACEOF
27522/* end confdefs.h.  */
27523#include <sys/types.h>
27524#include <netinet/in.h>
27525
27526typedef in_addr_t ac__type_new_;
27527int
27528main ()
27529{
27530if ((ac__type_new_ *) 0)
27531  return 0;
27532if (sizeof (ac__type_new_))
27533  return 0;
27534  ;
27535  return 0;
27536}
27537_ACEOF
27538rm -f conftest.$ac_objext
27539if { (ac_try="$ac_compile"
27540case "(($ac_try" in
27541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542  *) ac_try_echo=$ac_try;;
27543esac
27544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27545  (eval "$ac_compile") 2>conftest.er1
27546  ac_status=$?
27547  grep -v '^ *+' conftest.er1 >conftest.err
27548  rm -f conftest.er1
27549  cat conftest.err >&5
27550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551  (exit $ac_status); } && {
27552	 test -z "$ac_c_werror_flag" ||
27553	 test ! -s conftest.err
27554       } && test -s conftest.$ac_objext; then
27555  ac_cv_type_in_addr_t=yes
27556else
27557  echo "$as_me: failed program was:" >&5
27558sed 's/^/| /' conftest.$ac_ext >&5
27559
27560	ac_cv_type_in_addr_t=no
27561fi
27562
27563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27564fi
27565{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
27566echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
27567if test $ac_cv_type_in_addr_t = yes; then
27568
27569cat >>confdefs.h <<_ACEOF
27570#define HAVE_IN_ADDR_T 1
27571_ACEOF
27572
27573
27574fi
27575{ echo "$as_me:$LINENO: checking for in_port_t" >&5
27576echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
27577if test "${ac_cv_type_in_port_t+set}" = set; then
27578  echo $ECHO_N "(cached) $ECHO_C" >&6
27579else
27580  cat >conftest.$ac_ext <<_ACEOF
27581/* confdefs.h.  */
27582_ACEOF
27583cat confdefs.h >>conftest.$ac_ext
27584cat >>conftest.$ac_ext <<_ACEOF
27585/* end confdefs.h.  */
27586#include <sys/types.h>
27587#include <netinet/in.h>
27588
27589typedef in_port_t ac__type_new_;
27590int
27591main ()
27592{
27593if ((ac__type_new_ *) 0)
27594  return 0;
27595if (sizeof (ac__type_new_))
27596  return 0;
27597  ;
27598  return 0;
27599}
27600_ACEOF
27601rm -f conftest.$ac_objext
27602if { (ac_try="$ac_compile"
27603case "(($ac_try" in
27604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27605  *) ac_try_echo=$ac_try;;
27606esac
27607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27608  (eval "$ac_compile") 2>conftest.er1
27609  ac_status=$?
27610  grep -v '^ *+' conftest.er1 >conftest.err
27611  rm -f conftest.er1
27612  cat conftest.err >&5
27613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614  (exit $ac_status); } && {
27615	 test -z "$ac_c_werror_flag" ||
27616	 test ! -s conftest.err
27617       } && test -s conftest.$ac_objext; then
27618  ac_cv_type_in_port_t=yes
27619else
27620  echo "$as_me: failed program was:" >&5
27621sed 's/^/| /' conftest.$ac_ext >&5
27622
27623	ac_cv_type_in_port_t=no
27624fi
27625
27626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27627fi
27628{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
27629echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
27630if test $ac_cv_type_in_port_t = yes; then
27631
27632cat >>confdefs.h <<_ACEOF
27633#define HAVE_IN_PORT_T 1
27634_ACEOF
27635
27636
27637fi
27638
27639
27640{ echo "$as_me:$LINENO: checking for size_t" >&5
27641echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27642if test "${ac_cv_have_size_t+set}" = set; then
27643  echo $ECHO_N "(cached) $ECHO_C" >&6
27644else
27645
27646	cat >conftest.$ac_ext <<_ACEOF
27647/* confdefs.h.  */
27648_ACEOF
27649cat confdefs.h >>conftest.$ac_ext
27650cat >>conftest.$ac_ext <<_ACEOF
27651/* end confdefs.h.  */
27652 #include <sys/types.h>
27653int
27654main ()
27655{
27656 size_t foo; foo = 1235;
27657  ;
27658  return 0;
27659}
27660_ACEOF
27661rm -f conftest.$ac_objext
27662if { (ac_try="$ac_compile"
27663case "(($ac_try" in
27664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27665  *) ac_try_echo=$ac_try;;
27666esac
27667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27668  (eval "$ac_compile") 2>conftest.er1
27669  ac_status=$?
27670  grep -v '^ *+' conftest.er1 >conftest.err
27671  rm -f conftest.er1
27672  cat conftest.err >&5
27673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674  (exit $ac_status); } && {
27675	 test -z "$ac_c_werror_flag" ||
27676	 test ! -s conftest.err
27677       } && test -s conftest.$ac_objext; then
27678   ac_cv_have_size_t="yes"
27679else
27680  echo "$as_me: failed program was:" >&5
27681sed 's/^/| /' conftest.$ac_ext >&5
27682
27683	 ac_cv_have_size_t="no"
27684
27685fi
27686
27687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27688
27689fi
27690{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
27691echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
27692if test "x$ac_cv_have_size_t" = "xyes" ; then
27693
27694cat >>confdefs.h <<\_ACEOF
27695#define HAVE_SIZE_T 1
27696_ACEOF
27697
27698fi
27699
27700{ echo "$as_me:$LINENO: checking for ssize_t" >&5
27701echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27702if test "${ac_cv_have_ssize_t+set}" = set; then
27703  echo $ECHO_N "(cached) $ECHO_C" >&6
27704else
27705
27706	cat >conftest.$ac_ext <<_ACEOF
27707/* confdefs.h.  */
27708_ACEOF
27709cat confdefs.h >>conftest.$ac_ext
27710cat >>conftest.$ac_ext <<_ACEOF
27711/* end confdefs.h.  */
27712 #include <sys/types.h>
27713int
27714main ()
27715{
27716 ssize_t foo; foo = 1235;
27717  ;
27718  return 0;
27719}
27720_ACEOF
27721rm -f conftest.$ac_objext
27722if { (ac_try="$ac_compile"
27723case "(($ac_try" in
27724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27725  *) ac_try_echo=$ac_try;;
27726esac
27727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27728  (eval "$ac_compile") 2>conftest.er1
27729  ac_status=$?
27730  grep -v '^ *+' conftest.er1 >conftest.err
27731  rm -f conftest.er1
27732  cat conftest.err >&5
27733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734  (exit $ac_status); } && {
27735	 test -z "$ac_c_werror_flag" ||
27736	 test ! -s conftest.err
27737       } && test -s conftest.$ac_objext; then
27738   ac_cv_have_ssize_t="yes"
27739else
27740  echo "$as_me: failed program was:" >&5
27741sed 's/^/| /' conftest.$ac_ext >&5
27742
27743	 ac_cv_have_ssize_t="no"
27744
27745fi
27746
27747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27748
27749fi
27750{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
27751echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
27752if test "x$ac_cv_have_ssize_t" = "xyes" ; then
27753
27754cat >>confdefs.h <<\_ACEOF
27755#define HAVE_SSIZE_T 1
27756_ACEOF
27757
27758fi
27759
27760{ echo "$as_me:$LINENO: checking for clock_t" >&5
27761echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
27762if test "${ac_cv_have_clock_t+set}" = set; then
27763  echo $ECHO_N "(cached) $ECHO_C" >&6
27764else
27765
27766	cat >conftest.$ac_ext <<_ACEOF
27767/* confdefs.h.  */
27768_ACEOF
27769cat confdefs.h >>conftest.$ac_ext
27770cat >>conftest.$ac_ext <<_ACEOF
27771/* end confdefs.h.  */
27772 #include <time.h>
27773int
27774main ()
27775{
27776 clock_t foo; foo = 1235;
27777  ;
27778  return 0;
27779}
27780_ACEOF
27781rm -f conftest.$ac_objext
27782if { (ac_try="$ac_compile"
27783case "(($ac_try" in
27784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785  *) ac_try_echo=$ac_try;;
27786esac
27787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788  (eval "$ac_compile") 2>conftest.er1
27789  ac_status=$?
27790  grep -v '^ *+' conftest.er1 >conftest.err
27791  rm -f conftest.er1
27792  cat conftest.err >&5
27793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794  (exit $ac_status); } && {
27795	 test -z "$ac_c_werror_flag" ||
27796	 test ! -s conftest.err
27797       } && test -s conftest.$ac_objext; then
27798   ac_cv_have_clock_t="yes"
27799else
27800  echo "$as_me: failed program was:" >&5
27801sed 's/^/| /' conftest.$ac_ext >&5
27802
27803	 ac_cv_have_clock_t="no"
27804
27805fi
27806
27807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27808
27809fi
27810{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
27811echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
27812if test "x$ac_cv_have_clock_t" = "xyes" ; then
27813
27814cat >>confdefs.h <<\_ACEOF
27815#define HAVE_CLOCK_T 1
27816_ACEOF
27817
27818fi
27819
27820{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
27821echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
27822if test "${ac_cv_have_sa_family_t+set}" = set; then
27823  echo $ECHO_N "(cached) $ECHO_C" >&6
27824else
27825
27826	cat >conftest.$ac_ext <<_ACEOF
27827/* confdefs.h.  */
27828_ACEOF
27829cat confdefs.h >>conftest.$ac_ext
27830cat >>conftest.$ac_ext <<_ACEOF
27831/* end confdefs.h.  */
27832
27833#include <sys/types.h>
27834#include <sys/socket.h>
27835
27836int
27837main ()
27838{
27839 sa_family_t foo; foo = 1235;
27840  ;
27841  return 0;
27842}
27843_ACEOF
27844rm -f conftest.$ac_objext
27845if { (ac_try="$ac_compile"
27846case "(($ac_try" in
27847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848  *) ac_try_echo=$ac_try;;
27849esac
27850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851  (eval "$ac_compile") 2>conftest.er1
27852  ac_status=$?
27853  grep -v '^ *+' conftest.er1 >conftest.err
27854  rm -f conftest.er1
27855  cat conftest.err >&5
27856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857  (exit $ac_status); } && {
27858	 test -z "$ac_c_werror_flag" ||
27859	 test ! -s conftest.err
27860       } && test -s conftest.$ac_objext; then
27861   ac_cv_have_sa_family_t="yes"
27862else
27863  echo "$as_me: failed program was:" >&5
27864sed 's/^/| /' conftest.$ac_ext >&5
27865
27866	 cat >conftest.$ac_ext <<_ACEOF
27867/* confdefs.h.  */
27868_ACEOF
27869cat confdefs.h >>conftest.$ac_ext
27870cat >>conftest.$ac_ext <<_ACEOF
27871/* end confdefs.h.  */
27872
27873#include <sys/types.h>
27874#include <sys/socket.h>
27875#include <netinet/in.h>
27876
27877int
27878main ()
27879{
27880 sa_family_t foo; foo = 1235;
27881  ;
27882  return 0;
27883}
27884_ACEOF
27885rm -f conftest.$ac_objext
27886if { (ac_try="$ac_compile"
27887case "(($ac_try" in
27888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889  *) ac_try_echo=$ac_try;;
27890esac
27891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27892  (eval "$ac_compile") 2>conftest.er1
27893  ac_status=$?
27894  grep -v '^ *+' conftest.er1 >conftest.err
27895  rm -f conftest.er1
27896  cat conftest.err >&5
27897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898  (exit $ac_status); } && {
27899	 test -z "$ac_c_werror_flag" ||
27900	 test ! -s conftest.err
27901       } && test -s conftest.$ac_objext; then
27902   ac_cv_have_sa_family_t="yes"
27903else
27904  echo "$as_me: failed program was:" >&5
27905sed 's/^/| /' conftest.$ac_ext >&5
27906
27907	 ac_cv_have_sa_family_t="no"
27908
27909fi
27910
27911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27912
27913fi
27914
27915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27916
27917fi
27918{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
27919echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
27920if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
27921
27922cat >>confdefs.h <<\_ACEOF
27923#define HAVE_SA_FAMILY_T 1
27924_ACEOF
27925
27926fi
27927
27928{ echo "$as_me:$LINENO: checking for pid_t" >&5
27929echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
27930if test "${ac_cv_have_pid_t+set}" = set; then
27931  echo $ECHO_N "(cached) $ECHO_C" >&6
27932else
27933
27934	cat >conftest.$ac_ext <<_ACEOF
27935/* confdefs.h.  */
27936_ACEOF
27937cat confdefs.h >>conftest.$ac_ext
27938cat >>conftest.$ac_ext <<_ACEOF
27939/* end confdefs.h.  */
27940 #include <sys/types.h>
27941int
27942main ()
27943{
27944 pid_t foo; foo = 1235;
27945  ;
27946  return 0;
27947}
27948_ACEOF
27949rm -f conftest.$ac_objext
27950if { (ac_try="$ac_compile"
27951case "(($ac_try" in
27952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953  *) ac_try_echo=$ac_try;;
27954esac
27955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27956  (eval "$ac_compile") 2>conftest.er1
27957  ac_status=$?
27958  grep -v '^ *+' conftest.er1 >conftest.err
27959  rm -f conftest.er1
27960  cat conftest.err >&5
27961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962  (exit $ac_status); } && {
27963	 test -z "$ac_c_werror_flag" ||
27964	 test ! -s conftest.err
27965       } && test -s conftest.$ac_objext; then
27966   ac_cv_have_pid_t="yes"
27967else
27968  echo "$as_me: failed program was:" >&5
27969sed 's/^/| /' conftest.$ac_ext >&5
27970
27971	 ac_cv_have_pid_t="no"
27972
27973fi
27974
27975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27976
27977fi
27978{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
27979echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
27980if test "x$ac_cv_have_pid_t" = "xyes" ; then
27981
27982cat >>confdefs.h <<\_ACEOF
27983#define HAVE_PID_T 1
27984_ACEOF
27985
27986fi
27987
27988{ echo "$as_me:$LINENO: checking for mode_t" >&5
27989echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
27990if test "${ac_cv_have_mode_t+set}" = set; then
27991  echo $ECHO_N "(cached) $ECHO_C" >&6
27992else
27993
27994	cat >conftest.$ac_ext <<_ACEOF
27995/* confdefs.h.  */
27996_ACEOF
27997cat confdefs.h >>conftest.$ac_ext
27998cat >>conftest.$ac_ext <<_ACEOF
27999/* end confdefs.h.  */
28000 #include <sys/types.h>
28001int
28002main ()
28003{
28004 mode_t foo; foo = 1235;
28005  ;
28006  return 0;
28007}
28008_ACEOF
28009rm -f conftest.$ac_objext
28010if { (ac_try="$ac_compile"
28011case "(($ac_try" in
28012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013  *) ac_try_echo=$ac_try;;
28014esac
28015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016  (eval "$ac_compile") 2>conftest.er1
28017  ac_status=$?
28018  grep -v '^ *+' conftest.er1 >conftest.err
28019  rm -f conftest.er1
28020  cat conftest.err >&5
28021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022  (exit $ac_status); } && {
28023	 test -z "$ac_c_werror_flag" ||
28024	 test ! -s conftest.err
28025       } && test -s conftest.$ac_objext; then
28026   ac_cv_have_mode_t="yes"
28027else
28028  echo "$as_me: failed program was:" >&5
28029sed 's/^/| /' conftest.$ac_ext >&5
28030
28031	 ac_cv_have_mode_t="no"
28032
28033fi
28034
28035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28036
28037fi
28038{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
28039echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
28040if test "x$ac_cv_have_mode_t" = "xyes" ; then
28041
28042cat >>confdefs.h <<\_ACEOF
28043#define HAVE_MODE_T 1
28044_ACEOF
28045
28046fi
28047
28048
28049{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
28050echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
28051if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
28052  echo $ECHO_N "(cached) $ECHO_C" >&6
28053else
28054
28055	cat >conftest.$ac_ext <<_ACEOF
28056/* confdefs.h.  */
28057_ACEOF
28058cat confdefs.h >>conftest.$ac_ext
28059cat >>conftest.$ac_ext <<_ACEOF
28060/* end confdefs.h.  */
28061
28062#include <sys/types.h>
28063#include <sys/socket.h>
28064
28065int
28066main ()
28067{
28068 struct sockaddr_storage s;
28069  ;
28070  return 0;
28071}
28072_ACEOF
28073rm -f conftest.$ac_objext
28074if { (ac_try="$ac_compile"
28075case "(($ac_try" in
28076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077  *) ac_try_echo=$ac_try;;
28078esac
28079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080  (eval "$ac_compile") 2>conftest.er1
28081  ac_status=$?
28082  grep -v '^ *+' conftest.er1 >conftest.err
28083  rm -f conftest.er1
28084  cat conftest.err >&5
28085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086  (exit $ac_status); } && {
28087	 test -z "$ac_c_werror_flag" ||
28088	 test ! -s conftest.err
28089       } && test -s conftest.$ac_objext; then
28090   ac_cv_have_struct_sockaddr_storage="yes"
28091else
28092  echo "$as_me: failed program was:" >&5
28093sed 's/^/| /' conftest.$ac_ext >&5
28094
28095	 ac_cv_have_struct_sockaddr_storage="no"
28096
28097fi
28098
28099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28100
28101fi
28102{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
28103echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
28104if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
28105
28106cat >>confdefs.h <<\_ACEOF
28107#define HAVE_STRUCT_SOCKADDR_STORAGE 1
28108_ACEOF
28109
28110fi
28111
28112{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
28113echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
28114if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
28115  echo $ECHO_N "(cached) $ECHO_C" >&6
28116else
28117
28118	cat >conftest.$ac_ext <<_ACEOF
28119/* confdefs.h.  */
28120_ACEOF
28121cat confdefs.h >>conftest.$ac_ext
28122cat >>conftest.$ac_ext <<_ACEOF
28123/* end confdefs.h.  */
28124
28125#include <sys/types.h>
28126#include <netinet/in.h>
28127
28128int
28129main ()
28130{
28131 struct sockaddr_in6 s; s.sin6_family = 0;
28132  ;
28133  return 0;
28134}
28135_ACEOF
28136rm -f conftest.$ac_objext
28137if { (ac_try="$ac_compile"
28138case "(($ac_try" in
28139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140  *) ac_try_echo=$ac_try;;
28141esac
28142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28143  (eval "$ac_compile") 2>conftest.er1
28144  ac_status=$?
28145  grep -v '^ *+' conftest.er1 >conftest.err
28146  rm -f conftest.er1
28147  cat conftest.err >&5
28148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149  (exit $ac_status); } && {
28150	 test -z "$ac_c_werror_flag" ||
28151	 test ! -s conftest.err
28152       } && test -s conftest.$ac_objext; then
28153   ac_cv_have_struct_sockaddr_in6="yes"
28154else
28155  echo "$as_me: failed program was:" >&5
28156sed 's/^/| /' conftest.$ac_ext >&5
28157
28158	 ac_cv_have_struct_sockaddr_in6="no"
28159
28160fi
28161
28162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163
28164fi
28165{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
28166echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
28167if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
28168
28169cat >>confdefs.h <<\_ACEOF
28170#define HAVE_STRUCT_SOCKADDR_IN6 1
28171_ACEOF
28172
28173fi
28174
28175{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
28176echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
28177if test "${ac_cv_have_struct_in6_addr+set}" = set; then
28178  echo $ECHO_N "(cached) $ECHO_C" >&6
28179else
28180
28181	cat >conftest.$ac_ext <<_ACEOF
28182/* confdefs.h.  */
28183_ACEOF
28184cat confdefs.h >>conftest.$ac_ext
28185cat >>conftest.$ac_ext <<_ACEOF
28186/* end confdefs.h.  */
28187
28188#include <sys/types.h>
28189#include <netinet/in.h>
28190
28191int
28192main ()
28193{
28194 struct in6_addr s; s.s6_addr[0] = 0;
28195  ;
28196  return 0;
28197}
28198_ACEOF
28199rm -f conftest.$ac_objext
28200if { (ac_try="$ac_compile"
28201case "(($ac_try" in
28202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203  *) ac_try_echo=$ac_try;;
28204esac
28205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206  (eval "$ac_compile") 2>conftest.er1
28207  ac_status=$?
28208  grep -v '^ *+' conftest.er1 >conftest.err
28209  rm -f conftest.er1
28210  cat conftest.err >&5
28211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212  (exit $ac_status); } && {
28213	 test -z "$ac_c_werror_flag" ||
28214	 test ! -s conftest.err
28215       } && test -s conftest.$ac_objext; then
28216   ac_cv_have_struct_in6_addr="yes"
28217else
28218  echo "$as_me: failed program was:" >&5
28219sed 's/^/| /' conftest.$ac_ext >&5
28220
28221	 ac_cv_have_struct_in6_addr="no"
28222
28223fi
28224
28225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28226
28227fi
28228{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
28229echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
28230if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
28231
28232cat >>confdefs.h <<\_ACEOF
28233#define HAVE_STRUCT_IN6_ADDR 1
28234_ACEOF
28235
28236
28237	{ echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
28238echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
28239if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
28240  echo $ECHO_N "(cached) $ECHO_C" >&6
28241else
28242  cat >conftest.$ac_ext <<_ACEOF
28243/* confdefs.h.  */
28244_ACEOF
28245cat confdefs.h >>conftest.$ac_ext
28246cat >>conftest.$ac_ext <<_ACEOF
28247/* end confdefs.h.  */
28248
28249#ifdef HAVE_SYS_TYPES_H
28250#include <sys/types.h>
28251#endif
28252#include <netinet/in.h>
28253
28254
28255int
28256main ()
28257{
28258static struct sockaddr_in6 ac_aggr;
28259if (ac_aggr.sin6_scope_id)
28260return 0;
28261  ;
28262  return 0;
28263}
28264_ACEOF
28265rm -f conftest.$ac_objext
28266if { (ac_try="$ac_compile"
28267case "(($ac_try" in
28268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269  *) ac_try_echo=$ac_try;;
28270esac
28271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272  (eval "$ac_compile") 2>conftest.er1
28273  ac_status=$?
28274  grep -v '^ *+' conftest.er1 >conftest.err
28275  rm -f conftest.er1
28276  cat conftest.err >&5
28277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278  (exit $ac_status); } && {
28279	 test -z "$ac_c_werror_flag" ||
28280	 test ! -s conftest.err
28281       } && test -s conftest.$ac_objext; then
28282  ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28283else
28284  echo "$as_me: failed program was:" >&5
28285sed 's/^/| /' conftest.$ac_ext >&5
28286
28287	cat >conftest.$ac_ext <<_ACEOF
28288/* confdefs.h.  */
28289_ACEOF
28290cat confdefs.h >>conftest.$ac_ext
28291cat >>conftest.$ac_ext <<_ACEOF
28292/* end confdefs.h.  */
28293
28294#ifdef HAVE_SYS_TYPES_H
28295#include <sys/types.h>
28296#endif
28297#include <netinet/in.h>
28298
28299
28300int
28301main ()
28302{
28303static struct sockaddr_in6 ac_aggr;
28304if (sizeof ac_aggr.sin6_scope_id)
28305return 0;
28306  ;
28307  return 0;
28308}
28309_ACEOF
28310rm -f conftest.$ac_objext
28311if { (ac_try="$ac_compile"
28312case "(($ac_try" in
28313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314  *) ac_try_echo=$ac_try;;
28315esac
28316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28317  (eval "$ac_compile") 2>conftest.er1
28318  ac_status=$?
28319  grep -v '^ *+' conftest.er1 >conftest.err
28320  rm -f conftest.er1
28321  cat conftest.err >&5
28322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323  (exit $ac_status); } && {
28324	 test -z "$ac_c_werror_flag" ||
28325	 test ! -s conftest.err
28326       } && test -s conftest.$ac_objext; then
28327  ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28328else
28329  echo "$as_me: failed program was:" >&5
28330sed 's/^/| /' conftest.$ac_ext >&5
28331
28332	ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
28333fi
28334
28335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28336fi
28337
28338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28339fi
28340{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
28341echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
28342if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
28343
28344cat >>confdefs.h <<_ACEOF
28345#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
28346_ACEOF
28347
28348
28349fi
28350
28351fi
28352
28353{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
28354echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
28355if test "${ac_cv_have_struct_addrinfo+set}" = set; then
28356  echo $ECHO_N "(cached) $ECHO_C" >&6
28357else
28358
28359	cat >conftest.$ac_ext <<_ACEOF
28360/* confdefs.h.  */
28361_ACEOF
28362cat confdefs.h >>conftest.$ac_ext
28363cat >>conftest.$ac_ext <<_ACEOF
28364/* end confdefs.h.  */
28365
28366#include <sys/types.h>
28367#include <sys/socket.h>
28368#include <netdb.h>
28369
28370int
28371main ()
28372{
28373 struct addrinfo s; s.ai_flags = AI_PASSIVE;
28374  ;
28375  return 0;
28376}
28377_ACEOF
28378rm -f conftest.$ac_objext
28379if { (ac_try="$ac_compile"
28380case "(($ac_try" in
28381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382  *) ac_try_echo=$ac_try;;
28383esac
28384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28385  (eval "$ac_compile") 2>conftest.er1
28386  ac_status=$?
28387  grep -v '^ *+' conftest.er1 >conftest.err
28388  rm -f conftest.er1
28389  cat conftest.err >&5
28390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391  (exit $ac_status); } && {
28392	 test -z "$ac_c_werror_flag" ||
28393	 test ! -s conftest.err
28394       } && test -s conftest.$ac_objext; then
28395   ac_cv_have_struct_addrinfo="yes"
28396else
28397  echo "$as_me: failed program was:" >&5
28398sed 's/^/| /' conftest.$ac_ext >&5
28399
28400	 ac_cv_have_struct_addrinfo="no"
28401
28402fi
28403
28404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28405
28406fi
28407{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
28408echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
28409if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
28410
28411cat >>confdefs.h <<\_ACEOF
28412#define HAVE_STRUCT_ADDRINFO 1
28413_ACEOF
28414
28415fi
28416
28417{ echo "$as_me:$LINENO: checking for struct timeval" >&5
28418echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
28419if test "${ac_cv_have_struct_timeval+set}" = set; then
28420  echo $ECHO_N "(cached) $ECHO_C" >&6
28421else
28422
28423	cat >conftest.$ac_ext <<_ACEOF
28424/* confdefs.h.  */
28425_ACEOF
28426cat confdefs.h >>conftest.$ac_ext
28427cat >>conftest.$ac_ext <<_ACEOF
28428/* end confdefs.h.  */
28429 #include <sys/time.h>
28430int
28431main ()
28432{
28433 struct timeval tv; tv.tv_sec = 1;
28434  ;
28435  return 0;
28436}
28437_ACEOF
28438rm -f conftest.$ac_objext
28439if { (ac_try="$ac_compile"
28440case "(($ac_try" in
28441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442  *) ac_try_echo=$ac_try;;
28443esac
28444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445  (eval "$ac_compile") 2>conftest.er1
28446  ac_status=$?
28447  grep -v '^ *+' conftest.er1 >conftest.err
28448  rm -f conftest.er1
28449  cat conftest.err >&5
28450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451  (exit $ac_status); } && {
28452	 test -z "$ac_c_werror_flag" ||
28453	 test ! -s conftest.err
28454       } && test -s conftest.$ac_objext; then
28455   ac_cv_have_struct_timeval="yes"
28456else
28457  echo "$as_me: failed program was:" >&5
28458sed 's/^/| /' conftest.$ac_ext >&5
28459
28460	 ac_cv_have_struct_timeval="no"
28461
28462fi
28463
28464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28465
28466fi
28467{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
28468echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
28469if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
28470
28471cat >>confdefs.h <<\_ACEOF
28472#define HAVE_STRUCT_TIMEVAL 1
28473_ACEOF
28474
28475	have_struct_timeval=1
28476fi
28477
28478{ echo "$as_me:$LINENO: checking for struct timespec" >&5
28479echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
28480if test "${ac_cv_type_struct_timespec+set}" = set; then
28481  echo $ECHO_N "(cached) $ECHO_C" >&6
28482else
28483  cat >conftest.$ac_ext <<_ACEOF
28484/* confdefs.h.  */
28485_ACEOF
28486cat confdefs.h >>conftest.$ac_ext
28487cat >>conftest.$ac_ext <<_ACEOF
28488/* end confdefs.h.  */
28489$ac_includes_default
28490typedef struct timespec ac__type_new_;
28491int
28492main ()
28493{
28494if ((ac__type_new_ *) 0)
28495  return 0;
28496if (sizeof (ac__type_new_))
28497  return 0;
28498  ;
28499  return 0;
28500}
28501_ACEOF
28502rm -f conftest.$ac_objext
28503if { (ac_try="$ac_compile"
28504case "(($ac_try" in
28505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28506  *) ac_try_echo=$ac_try;;
28507esac
28508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28509  (eval "$ac_compile") 2>conftest.er1
28510  ac_status=$?
28511  grep -v '^ *+' conftest.er1 >conftest.err
28512  rm -f conftest.er1
28513  cat conftest.err >&5
28514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515  (exit $ac_status); } && {
28516	 test -z "$ac_c_werror_flag" ||
28517	 test ! -s conftest.err
28518       } && test -s conftest.$ac_objext; then
28519  ac_cv_type_struct_timespec=yes
28520else
28521  echo "$as_me: failed program was:" >&5
28522sed 's/^/| /' conftest.$ac_ext >&5
28523
28524	ac_cv_type_struct_timespec=no
28525fi
28526
28527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28528fi
28529{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
28530echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
28531if test $ac_cv_type_struct_timespec = yes; then
28532
28533cat >>confdefs.h <<_ACEOF
28534#define HAVE_STRUCT_TIMESPEC 1
28535_ACEOF
28536
28537
28538fi
28539
28540
28541# We need int64_t or else certian parts of the compile will fail.
28542if test "x$ac_cv_have_int64_t" = "xno" && \
28543	test "x$ac_cv_sizeof_long_int" != "x8" && \
28544	test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
28545	echo "OpenSSH requires int64_t support.  Contact your vendor or install"
28546	echo "an alternative compiler (I.E., GCC) before continuing."
28547	echo ""
28548	exit 1;
28549else
28550	if test "$cross_compiling" = yes; then
28551  { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
28552echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
28553
28554else
28555  cat >conftest.$ac_ext <<_ACEOF
28556/* confdefs.h.  */
28557_ACEOF
28558cat confdefs.h >>conftest.$ac_ext
28559cat >>conftest.$ac_ext <<_ACEOF
28560/* end confdefs.h.  */
28561
28562#include <stdio.h>
28563#include <string.h>
28564#ifdef HAVE_SNPRINTF
28565main()
28566{
28567	char buf[50];
28568	char expected_out[50];
28569	int mazsize = 50 ;
28570#if (SIZEOF_LONG_INT == 8)
28571	long int num = 0x7fffffffffffffff;
28572#else
28573	long long num = 0x7fffffffffffffffll;
28574#endif
28575	strcpy(expected_out, "9223372036854775807");
28576	snprintf(buf, mazsize, "%lld", num);
28577	if(strcmp(buf, expected_out) != 0)
28578		exit(1);
28579	exit(0);
28580}
28581#else
28582main() { exit(0); }
28583#endif
28584
28585_ACEOF
28586rm -f conftest$ac_exeext
28587if { (ac_try="$ac_link"
28588case "(($ac_try" in
28589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590  *) ac_try_echo=$ac_try;;
28591esac
28592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593  (eval "$ac_link") 2>&5
28594  ac_status=$?
28595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28597  { (case "(($ac_try" in
28598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599  *) ac_try_echo=$ac_try;;
28600esac
28601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602  (eval "$ac_try") 2>&5
28603  ac_status=$?
28604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605  (exit $ac_status); }; }; then
28606   true
28607else
28608  echo "$as_me: program exited with status $ac_status" >&5
28609echo "$as_me: failed program was:" >&5
28610sed 's/^/| /' conftest.$ac_ext >&5
28611
28612( exit $ac_status )
28613 cat >>confdefs.h <<\_ACEOF
28614#define BROKEN_SNPRINTF 1
28615_ACEOF
28616
28617fi
28618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28619fi
28620
28621
28622fi
28623
28624
28625# look for field 'ut_host' in header 'utmp.h'
28626		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28627		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
28628	{ echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
28629echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
28630	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28631  echo $ECHO_N "(cached) $ECHO_C" >&6
28632else
28633
28634		cat >conftest.$ac_ext <<_ACEOF
28635/* confdefs.h.  */
28636_ACEOF
28637cat confdefs.h >>conftest.$ac_ext
28638cat >>conftest.$ac_ext <<_ACEOF
28639/* end confdefs.h.  */
28640#include <utmp.h>
28641
28642_ACEOF
28643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28644  $EGREP "ut_host" >/dev/null 2>&1; then
28645   			eval "$ossh_varname=yes"
28646else
28647   			eval "$ossh_varname=no"
28648fi
28649rm -f conftest*
28650
28651fi
28652
28653	ossh_result=`eval 'echo $'"$ossh_varname"`
28654	if test -n "`echo $ossh_varname`"; then
28655		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
28656echo "${ECHO_T}$ossh_result" >&6; }
28657		if test "x$ossh_result" = "xyes"; then
28658
28659cat >>confdefs.h <<\_ACEOF
28660#define HAVE_HOST_IN_UTMP 1
28661_ACEOF
28662
28663		fi
28664	else
28665		{ echo "$as_me:$LINENO: result: no" >&5
28666echo "${ECHO_T}no" >&6; }
28667	fi
28668
28669
28670# look for field 'ut_host' in header 'utmpx.h'
28671		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28672		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
28673	{ echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
28674echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
28675	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28676  echo $ECHO_N "(cached) $ECHO_C" >&6
28677else
28678
28679		cat >conftest.$ac_ext <<_ACEOF
28680/* confdefs.h.  */
28681_ACEOF
28682cat confdefs.h >>conftest.$ac_ext
28683cat >>conftest.$ac_ext <<_ACEOF
28684/* end confdefs.h.  */
28685#include <utmpx.h>
28686
28687_ACEOF
28688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28689  $EGREP "ut_host" >/dev/null 2>&1; then
28690   			eval "$ossh_varname=yes"
28691else
28692   			eval "$ossh_varname=no"
28693fi
28694rm -f conftest*
28695
28696fi
28697
28698	ossh_result=`eval 'echo $'"$ossh_varname"`
28699	if test -n "`echo $ossh_varname`"; then
28700		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
28701echo "${ECHO_T}$ossh_result" >&6; }
28702		if test "x$ossh_result" = "xyes"; then
28703
28704cat >>confdefs.h <<\_ACEOF
28705#define HAVE_HOST_IN_UTMPX 1
28706_ACEOF
28707
28708		fi
28709	else
28710		{ echo "$as_me:$LINENO: result: no" >&5
28711echo "${ECHO_T}no" >&6; }
28712	fi
28713
28714
28715# look for field 'syslen' in header 'utmpx.h'
28716		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28717		ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
28718	{ echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
28719echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
28720	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28721  echo $ECHO_N "(cached) $ECHO_C" >&6
28722else
28723
28724		cat >conftest.$ac_ext <<_ACEOF
28725/* confdefs.h.  */
28726_ACEOF
28727cat confdefs.h >>conftest.$ac_ext
28728cat >>conftest.$ac_ext <<_ACEOF
28729/* end confdefs.h.  */
28730#include <utmpx.h>
28731
28732_ACEOF
28733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28734  $EGREP "syslen" >/dev/null 2>&1; then
28735   			eval "$ossh_varname=yes"
28736else
28737   			eval "$ossh_varname=no"
28738fi
28739rm -f conftest*
28740
28741fi
28742
28743	ossh_result=`eval 'echo $'"$ossh_varname"`
28744	if test -n "`echo $ossh_varname`"; then
28745		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
28746echo "${ECHO_T}$ossh_result" >&6; }
28747		if test "x$ossh_result" = "xyes"; then
28748
28749cat >>confdefs.h <<\_ACEOF
28750#define HAVE_SYSLEN_IN_UTMPX 1
28751_ACEOF
28752
28753		fi
28754	else
28755		{ echo "$as_me:$LINENO: result: no" >&5
28756echo "${ECHO_T}no" >&6; }
28757	fi
28758
28759
28760# look for field 'ut_pid' in header 'utmp.h'
28761		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28762		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
28763	{ echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
28764echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
28765	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28766  echo $ECHO_N "(cached) $ECHO_C" >&6
28767else
28768
28769		cat >conftest.$ac_ext <<_ACEOF
28770/* confdefs.h.  */
28771_ACEOF
28772cat confdefs.h >>conftest.$ac_ext
28773cat >>conftest.$ac_ext <<_ACEOF
28774/* end confdefs.h.  */
28775#include <utmp.h>
28776
28777_ACEOF
28778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28779  $EGREP "ut_pid" >/dev/null 2>&1; then
28780   			eval "$ossh_varname=yes"
28781else
28782   			eval "$ossh_varname=no"
28783fi
28784rm -f conftest*
28785
28786fi
28787
28788	ossh_result=`eval 'echo $'"$ossh_varname"`
28789	if test -n "`echo $ossh_varname`"; then
28790		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
28791echo "${ECHO_T}$ossh_result" >&6; }
28792		if test "x$ossh_result" = "xyes"; then
28793
28794cat >>confdefs.h <<\_ACEOF
28795#define HAVE_PID_IN_UTMP 1
28796_ACEOF
28797
28798		fi
28799	else
28800		{ echo "$as_me:$LINENO: result: no" >&5
28801echo "${ECHO_T}no" >&6; }
28802	fi
28803
28804
28805# look for field 'ut_type' in header 'utmp.h'
28806		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28807		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
28808	{ echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
28809echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
28810	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28811  echo $ECHO_N "(cached) $ECHO_C" >&6
28812else
28813
28814		cat >conftest.$ac_ext <<_ACEOF
28815/* confdefs.h.  */
28816_ACEOF
28817cat confdefs.h >>conftest.$ac_ext
28818cat >>conftest.$ac_ext <<_ACEOF
28819/* end confdefs.h.  */
28820#include <utmp.h>
28821
28822_ACEOF
28823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28824  $EGREP "ut_type" >/dev/null 2>&1; then
28825   			eval "$ossh_varname=yes"
28826else
28827   			eval "$ossh_varname=no"
28828fi
28829rm -f conftest*
28830
28831fi
28832
28833	ossh_result=`eval 'echo $'"$ossh_varname"`
28834	if test -n "`echo $ossh_varname`"; then
28835		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
28836echo "${ECHO_T}$ossh_result" >&6; }
28837		if test "x$ossh_result" = "xyes"; then
28838
28839cat >>confdefs.h <<\_ACEOF
28840#define HAVE_TYPE_IN_UTMP 1
28841_ACEOF
28842
28843		fi
28844	else
28845		{ echo "$as_me:$LINENO: result: no" >&5
28846echo "${ECHO_T}no" >&6; }
28847	fi
28848
28849
28850# look for field 'ut_type' in header 'utmpx.h'
28851		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28852		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
28853	{ echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
28854echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
28855	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28856  echo $ECHO_N "(cached) $ECHO_C" >&6
28857else
28858
28859		cat >conftest.$ac_ext <<_ACEOF
28860/* confdefs.h.  */
28861_ACEOF
28862cat confdefs.h >>conftest.$ac_ext
28863cat >>conftest.$ac_ext <<_ACEOF
28864/* end confdefs.h.  */
28865#include <utmpx.h>
28866
28867_ACEOF
28868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28869  $EGREP "ut_type" >/dev/null 2>&1; then
28870   			eval "$ossh_varname=yes"
28871else
28872   			eval "$ossh_varname=no"
28873fi
28874rm -f conftest*
28875
28876fi
28877
28878	ossh_result=`eval 'echo $'"$ossh_varname"`
28879	if test -n "`echo $ossh_varname`"; then
28880		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
28881echo "${ECHO_T}$ossh_result" >&6; }
28882		if test "x$ossh_result" = "xyes"; then
28883
28884cat >>confdefs.h <<\_ACEOF
28885#define HAVE_TYPE_IN_UTMPX 1
28886_ACEOF
28887
28888		fi
28889	else
28890		{ echo "$as_me:$LINENO: result: no" >&5
28891echo "${ECHO_T}no" >&6; }
28892	fi
28893
28894
28895# look for field 'ut_tv' in header 'utmp.h'
28896		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28897		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
28898	{ echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
28899echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
28900	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28901  echo $ECHO_N "(cached) $ECHO_C" >&6
28902else
28903
28904		cat >conftest.$ac_ext <<_ACEOF
28905/* confdefs.h.  */
28906_ACEOF
28907cat confdefs.h >>conftest.$ac_ext
28908cat >>conftest.$ac_ext <<_ACEOF
28909/* end confdefs.h.  */
28910#include <utmp.h>
28911
28912_ACEOF
28913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28914  $EGREP "ut_tv" >/dev/null 2>&1; then
28915   			eval "$ossh_varname=yes"
28916else
28917   			eval "$ossh_varname=no"
28918fi
28919rm -f conftest*
28920
28921fi
28922
28923	ossh_result=`eval 'echo $'"$ossh_varname"`
28924	if test -n "`echo $ossh_varname`"; then
28925		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
28926echo "${ECHO_T}$ossh_result" >&6; }
28927		if test "x$ossh_result" = "xyes"; then
28928
28929cat >>confdefs.h <<\_ACEOF
28930#define HAVE_TV_IN_UTMP 1
28931_ACEOF
28932
28933		fi
28934	else
28935		{ echo "$as_me:$LINENO: result: no" >&5
28936echo "${ECHO_T}no" >&6; }
28937	fi
28938
28939
28940# look for field 'ut_id' in header 'utmp.h'
28941		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28942		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
28943	{ echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
28944echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
28945	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28946  echo $ECHO_N "(cached) $ECHO_C" >&6
28947else
28948
28949		cat >conftest.$ac_ext <<_ACEOF
28950/* confdefs.h.  */
28951_ACEOF
28952cat confdefs.h >>conftest.$ac_ext
28953cat >>conftest.$ac_ext <<_ACEOF
28954/* end confdefs.h.  */
28955#include <utmp.h>
28956
28957_ACEOF
28958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28959  $EGREP "ut_id" >/dev/null 2>&1; then
28960   			eval "$ossh_varname=yes"
28961else
28962   			eval "$ossh_varname=no"
28963fi
28964rm -f conftest*
28965
28966fi
28967
28968	ossh_result=`eval 'echo $'"$ossh_varname"`
28969	if test -n "`echo $ossh_varname`"; then
28970		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
28971echo "${ECHO_T}$ossh_result" >&6; }
28972		if test "x$ossh_result" = "xyes"; then
28973
28974cat >>confdefs.h <<\_ACEOF
28975#define HAVE_ID_IN_UTMP 1
28976_ACEOF
28977
28978		fi
28979	else
28980		{ echo "$as_me:$LINENO: result: no" >&5
28981echo "${ECHO_T}no" >&6; }
28982	fi
28983
28984
28985# look for field 'ut_id' in header 'utmpx.h'
28986		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28987		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
28988	{ echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
28989echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
28990	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28991  echo $ECHO_N "(cached) $ECHO_C" >&6
28992else
28993
28994		cat >conftest.$ac_ext <<_ACEOF
28995/* confdefs.h.  */
28996_ACEOF
28997cat confdefs.h >>conftest.$ac_ext
28998cat >>conftest.$ac_ext <<_ACEOF
28999/* end confdefs.h.  */
29000#include <utmpx.h>
29001
29002_ACEOF
29003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29004  $EGREP "ut_id" >/dev/null 2>&1; then
29005   			eval "$ossh_varname=yes"
29006else
29007   			eval "$ossh_varname=no"
29008fi
29009rm -f conftest*
29010
29011fi
29012
29013	ossh_result=`eval 'echo $'"$ossh_varname"`
29014	if test -n "`echo $ossh_varname`"; then
29015		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
29016echo "${ECHO_T}$ossh_result" >&6; }
29017		if test "x$ossh_result" = "xyes"; then
29018
29019cat >>confdefs.h <<\_ACEOF
29020#define HAVE_ID_IN_UTMPX 1
29021_ACEOF
29022
29023		fi
29024	else
29025		{ echo "$as_me:$LINENO: result: no" >&5
29026echo "${ECHO_T}no" >&6; }
29027	fi
29028
29029
29030# look for field 'ut_addr' in header 'utmp.h'
29031		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29032		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
29033	{ echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
29034echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
29035	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29036  echo $ECHO_N "(cached) $ECHO_C" >&6
29037else
29038
29039		cat >conftest.$ac_ext <<_ACEOF
29040/* confdefs.h.  */
29041_ACEOF
29042cat confdefs.h >>conftest.$ac_ext
29043cat >>conftest.$ac_ext <<_ACEOF
29044/* end confdefs.h.  */
29045#include <utmp.h>
29046
29047_ACEOF
29048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29049  $EGREP "ut_addr" >/dev/null 2>&1; then
29050   			eval "$ossh_varname=yes"
29051else
29052   			eval "$ossh_varname=no"
29053fi
29054rm -f conftest*
29055
29056fi
29057
29058	ossh_result=`eval 'echo $'"$ossh_varname"`
29059	if test -n "`echo $ossh_varname`"; then
29060		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
29061echo "${ECHO_T}$ossh_result" >&6; }
29062		if test "x$ossh_result" = "xyes"; then
29063
29064cat >>confdefs.h <<\_ACEOF
29065#define HAVE_ADDR_IN_UTMP 1
29066_ACEOF
29067
29068		fi
29069	else
29070		{ echo "$as_me:$LINENO: result: no" >&5
29071echo "${ECHO_T}no" >&6; }
29072	fi
29073
29074
29075# look for field 'ut_addr' in header 'utmpx.h'
29076		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29077		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
29078	{ echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
29079echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
29080	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29081  echo $ECHO_N "(cached) $ECHO_C" >&6
29082else
29083
29084		cat >conftest.$ac_ext <<_ACEOF
29085/* confdefs.h.  */
29086_ACEOF
29087cat confdefs.h >>conftest.$ac_ext
29088cat >>conftest.$ac_ext <<_ACEOF
29089/* end confdefs.h.  */
29090#include <utmpx.h>
29091
29092_ACEOF
29093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29094  $EGREP "ut_addr" >/dev/null 2>&1; then
29095   			eval "$ossh_varname=yes"
29096else
29097   			eval "$ossh_varname=no"
29098fi
29099rm -f conftest*
29100
29101fi
29102
29103	ossh_result=`eval 'echo $'"$ossh_varname"`
29104	if test -n "`echo $ossh_varname`"; then
29105		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
29106echo "${ECHO_T}$ossh_result" >&6; }
29107		if test "x$ossh_result" = "xyes"; then
29108
29109cat >>confdefs.h <<\_ACEOF
29110#define HAVE_ADDR_IN_UTMPX 1
29111_ACEOF
29112
29113		fi
29114	else
29115		{ echo "$as_me:$LINENO: result: no" >&5
29116echo "${ECHO_T}no" >&6; }
29117	fi
29118
29119
29120# look for field 'ut_addr_v6' in header 'utmp.h'
29121		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29122		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
29123	{ echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
29124echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
29125	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29126  echo $ECHO_N "(cached) $ECHO_C" >&6
29127else
29128
29129		cat >conftest.$ac_ext <<_ACEOF
29130/* confdefs.h.  */
29131_ACEOF
29132cat confdefs.h >>conftest.$ac_ext
29133cat >>conftest.$ac_ext <<_ACEOF
29134/* end confdefs.h.  */
29135#include <utmp.h>
29136
29137_ACEOF
29138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29139  $EGREP "ut_addr_v6" >/dev/null 2>&1; then
29140   			eval "$ossh_varname=yes"
29141else
29142   			eval "$ossh_varname=no"
29143fi
29144rm -f conftest*
29145
29146fi
29147
29148	ossh_result=`eval 'echo $'"$ossh_varname"`
29149	if test -n "`echo $ossh_varname`"; then
29150		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
29151echo "${ECHO_T}$ossh_result" >&6; }
29152		if test "x$ossh_result" = "xyes"; then
29153
29154cat >>confdefs.h <<\_ACEOF
29155#define HAVE_ADDR_V6_IN_UTMP 1
29156_ACEOF
29157
29158		fi
29159	else
29160		{ echo "$as_me:$LINENO: result: no" >&5
29161echo "${ECHO_T}no" >&6; }
29162	fi
29163
29164
29165# look for field 'ut_addr_v6' in header 'utmpx.h'
29166		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29167		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
29168	{ echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
29169echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
29170	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29171  echo $ECHO_N "(cached) $ECHO_C" >&6
29172else
29173
29174		cat >conftest.$ac_ext <<_ACEOF
29175/* confdefs.h.  */
29176_ACEOF
29177cat confdefs.h >>conftest.$ac_ext
29178cat >>conftest.$ac_ext <<_ACEOF
29179/* end confdefs.h.  */
29180#include <utmpx.h>
29181
29182_ACEOF
29183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29184  $EGREP "ut_addr_v6" >/dev/null 2>&1; then
29185   			eval "$ossh_varname=yes"
29186else
29187   			eval "$ossh_varname=no"
29188fi
29189rm -f conftest*
29190
29191fi
29192
29193	ossh_result=`eval 'echo $'"$ossh_varname"`
29194	if test -n "`echo $ossh_varname`"; then
29195		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
29196echo "${ECHO_T}$ossh_result" >&6; }
29197		if test "x$ossh_result" = "xyes"; then
29198
29199cat >>confdefs.h <<\_ACEOF
29200#define HAVE_ADDR_V6_IN_UTMPX 1
29201_ACEOF
29202
29203		fi
29204	else
29205		{ echo "$as_me:$LINENO: result: no" >&5
29206echo "${ECHO_T}no" >&6; }
29207	fi
29208
29209
29210# look for field 'ut_exit' in header 'utmp.h'
29211		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29212		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
29213	{ echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
29214echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
29215	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29216  echo $ECHO_N "(cached) $ECHO_C" >&6
29217else
29218
29219		cat >conftest.$ac_ext <<_ACEOF
29220/* confdefs.h.  */
29221_ACEOF
29222cat confdefs.h >>conftest.$ac_ext
29223cat >>conftest.$ac_ext <<_ACEOF
29224/* end confdefs.h.  */
29225#include <utmp.h>
29226
29227_ACEOF
29228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29229  $EGREP "ut_exit" >/dev/null 2>&1; then
29230   			eval "$ossh_varname=yes"
29231else
29232   			eval "$ossh_varname=no"
29233fi
29234rm -f conftest*
29235
29236fi
29237
29238	ossh_result=`eval 'echo $'"$ossh_varname"`
29239	if test -n "`echo $ossh_varname`"; then
29240		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
29241echo "${ECHO_T}$ossh_result" >&6; }
29242		if test "x$ossh_result" = "xyes"; then
29243
29244cat >>confdefs.h <<\_ACEOF
29245#define HAVE_EXIT_IN_UTMP 1
29246_ACEOF
29247
29248		fi
29249	else
29250		{ echo "$as_me:$LINENO: result: no" >&5
29251echo "${ECHO_T}no" >&6; }
29252	fi
29253
29254
29255# look for field 'ut_time' in header 'utmp.h'
29256		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29257		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
29258	{ echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
29259echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
29260	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29261  echo $ECHO_N "(cached) $ECHO_C" >&6
29262else
29263
29264		cat >conftest.$ac_ext <<_ACEOF
29265/* confdefs.h.  */
29266_ACEOF
29267cat confdefs.h >>conftest.$ac_ext
29268cat >>conftest.$ac_ext <<_ACEOF
29269/* end confdefs.h.  */
29270#include <utmp.h>
29271
29272_ACEOF
29273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29274  $EGREP "ut_time" >/dev/null 2>&1; then
29275   			eval "$ossh_varname=yes"
29276else
29277   			eval "$ossh_varname=no"
29278fi
29279rm -f conftest*
29280
29281fi
29282
29283	ossh_result=`eval 'echo $'"$ossh_varname"`
29284	if test -n "`echo $ossh_varname`"; then
29285		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
29286echo "${ECHO_T}$ossh_result" >&6; }
29287		if test "x$ossh_result" = "xyes"; then
29288
29289cat >>confdefs.h <<\_ACEOF
29290#define HAVE_TIME_IN_UTMP 1
29291_ACEOF
29292
29293		fi
29294	else
29295		{ echo "$as_me:$LINENO: result: no" >&5
29296echo "${ECHO_T}no" >&6; }
29297	fi
29298
29299
29300# look for field 'ut_time' in header 'utmpx.h'
29301		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29302		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
29303	{ echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
29304echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
29305	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29306  echo $ECHO_N "(cached) $ECHO_C" >&6
29307else
29308
29309		cat >conftest.$ac_ext <<_ACEOF
29310/* confdefs.h.  */
29311_ACEOF
29312cat confdefs.h >>conftest.$ac_ext
29313cat >>conftest.$ac_ext <<_ACEOF
29314/* end confdefs.h.  */
29315#include <utmpx.h>
29316
29317_ACEOF
29318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29319  $EGREP "ut_time" >/dev/null 2>&1; then
29320   			eval "$ossh_varname=yes"
29321else
29322   			eval "$ossh_varname=no"
29323fi
29324rm -f conftest*
29325
29326fi
29327
29328	ossh_result=`eval 'echo $'"$ossh_varname"`
29329	if test -n "`echo $ossh_varname`"; then
29330		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
29331echo "${ECHO_T}$ossh_result" >&6; }
29332		if test "x$ossh_result" = "xyes"; then
29333
29334cat >>confdefs.h <<\_ACEOF
29335#define HAVE_TIME_IN_UTMPX 1
29336_ACEOF
29337
29338		fi
29339	else
29340		{ echo "$as_me:$LINENO: result: no" >&5
29341echo "${ECHO_T}no" >&6; }
29342	fi
29343
29344
29345# look for field 'ut_tv' in header 'utmpx.h'
29346		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29347		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
29348	{ echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
29349echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
29350	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29351  echo $ECHO_N "(cached) $ECHO_C" >&6
29352else
29353
29354		cat >conftest.$ac_ext <<_ACEOF
29355/* confdefs.h.  */
29356_ACEOF
29357cat confdefs.h >>conftest.$ac_ext
29358cat >>conftest.$ac_ext <<_ACEOF
29359/* end confdefs.h.  */
29360#include <utmpx.h>
29361
29362_ACEOF
29363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29364  $EGREP "ut_tv" >/dev/null 2>&1; then
29365   			eval "$ossh_varname=yes"
29366else
29367   			eval "$ossh_varname=no"
29368fi
29369rm -f conftest*
29370
29371fi
29372
29373	ossh_result=`eval 'echo $'"$ossh_varname"`
29374	if test -n "`echo $ossh_varname`"; then
29375		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
29376echo "${ECHO_T}$ossh_result" >&6; }
29377		if test "x$ossh_result" = "xyes"; then
29378
29379cat >>confdefs.h <<\_ACEOF
29380#define HAVE_TV_IN_UTMPX 1
29381_ACEOF
29382
29383		fi
29384	else
29385		{ echo "$as_me:$LINENO: result: no" >&5
29386echo "${ECHO_T}no" >&6; }
29387	fi
29388
29389
29390{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29391echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
29392if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29393  echo $ECHO_N "(cached) $ECHO_C" >&6
29394else
29395  cat >conftest.$ac_ext <<_ACEOF
29396/* confdefs.h.  */
29397_ACEOF
29398cat confdefs.h >>conftest.$ac_ext
29399cat >>conftest.$ac_ext <<_ACEOF
29400/* end confdefs.h.  */
29401$ac_includes_default
29402int
29403main ()
29404{
29405static struct stat ac_aggr;
29406if (ac_aggr.st_blksize)
29407return 0;
29408  ;
29409  return 0;
29410}
29411_ACEOF
29412rm -f conftest.$ac_objext
29413if { (ac_try="$ac_compile"
29414case "(($ac_try" in
29415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416  *) ac_try_echo=$ac_try;;
29417esac
29418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419  (eval "$ac_compile") 2>conftest.er1
29420  ac_status=$?
29421  grep -v '^ *+' conftest.er1 >conftest.err
29422  rm -f conftest.er1
29423  cat conftest.err >&5
29424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425  (exit $ac_status); } && {
29426	 test -z "$ac_c_werror_flag" ||
29427	 test ! -s conftest.err
29428       } && test -s conftest.$ac_objext; then
29429  ac_cv_member_struct_stat_st_blksize=yes
29430else
29431  echo "$as_me: failed program was:" >&5
29432sed 's/^/| /' conftest.$ac_ext >&5
29433
29434	cat >conftest.$ac_ext <<_ACEOF
29435/* confdefs.h.  */
29436_ACEOF
29437cat confdefs.h >>conftest.$ac_ext
29438cat >>conftest.$ac_ext <<_ACEOF
29439/* end confdefs.h.  */
29440$ac_includes_default
29441int
29442main ()
29443{
29444static struct stat ac_aggr;
29445if (sizeof ac_aggr.st_blksize)
29446return 0;
29447  ;
29448  return 0;
29449}
29450_ACEOF
29451rm -f conftest.$ac_objext
29452if { (ac_try="$ac_compile"
29453case "(($ac_try" in
29454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455  *) ac_try_echo=$ac_try;;
29456esac
29457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458  (eval "$ac_compile") 2>conftest.er1
29459  ac_status=$?
29460  grep -v '^ *+' conftest.er1 >conftest.err
29461  rm -f conftest.er1
29462  cat conftest.err >&5
29463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464  (exit $ac_status); } && {
29465	 test -z "$ac_c_werror_flag" ||
29466	 test ! -s conftest.err
29467       } && test -s conftest.$ac_objext; then
29468  ac_cv_member_struct_stat_st_blksize=yes
29469else
29470  echo "$as_me: failed program was:" >&5
29471sed 's/^/| /' conftest.$ac_ext >&5
29472
29473	ac_cv_member_struct_stat_st_blksize=no
29474fi
29475
29476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29477fi
29478
29479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29480fi
29481{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29482echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
29483if test $ac_cv_member_struct_stat_st_blksize = yes; then
29484
29485cat >>confdefs.h <<_ACEOF
29486#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29487_ACEOF
29488
29489
29490fi
29491
29492{ echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
29493echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
29494if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
29495  echo $ECHO_N "(cached) $ECHO_C" >&6
29496else
29497  cat >conftest.$ac_ext <<_ACEOF
29498/* confdefs.h.  */
29499_ACEOF
29500cat confdefs.h >>conftest.$ac_ext
29501cat >>conftest.$ac_ext <<_ACEOF
29502/* end confdefs.h.  */
29503
29504#include <sys/types.h>
29505#include <pwd.h>
29506
29507
29508int
29509main ()
29510{
29511static struct passwd ac_aggr;
29512if (ac_aggr.pw_gecos)
29513return 0;
29514  ;
29515  return 0;
29516}
29517_ACEOF
29518rm -f conftest.$ac_objext
29519if { (ac_try="$ac_compile"
29520case "(($ac_try" in
29521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522  *) ac_try_echo=$ac_try;;
29523esac
29524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525  (eval "$ac_compile") 2>conftest.er1
29526  ac_status=$?
29527  grep -v '^ *+' conftest.er1 >conftest.err
29528  rm -f conftest.er1
29529  cat conftest.err >&5
29530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531  (exit $ac_status); } && {
29532	 test -z "$ac_c_werror_flag" ||
29533	 test ! -s conftest.err
29534       } && test -s conftest.$ac_objext; then
29535  ac_cv_member_struct_passwd_pw_gecos=yes
29536else
29537  echo "$as_me: failed program was:" >&5
29538sed 's/^/| /' conftest.$ac_ext >&5
29539
29540	cat >conftest.$ac_ext <<_ACEOF
29541/* confdefs.h.  */
29542_ACEOF
29543cat confdefs.h >>conftest.$ac_ext
29544cat >>conftest.$ac_ext <<_ACEOF
29545/* end confdefs.h.  */
29546
29547#include <sys/types.h>
29548#include <pwd.h>
29549
29550
29551int
29552main ()
29553{
29554static struct passwd ac_aggr;
29555if (sizeof ac_aggr.pw_gecos)
29556return 0;
29557  ;
29558  return 0;
29559}
29560_ACEOF
29561rm -f conftest.$ac_objext
29562if { (ac_try="$ac_compile"
29563case "(($ac_try" in
29564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29565  *) ac_try_echo=$ac_try;;
29566esac
29567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29568  (eval "$ac_compile") 2>conftest.er1
29569  ac_status=$?
29570  grep -v '^ *+' conftest.er1 >conftest.err
29571  rm -f conftest.er1
29572  cat conftest.err >&5
29573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574  (exit $ac_status); } && {
29575	 test -z "$ac_c_werror_flag" ||
29576	 test ! -s conftest.err
29577       } && test -s conftest.$ac_objext; then
29578  ac_cv_member_struct_passwd_pw_gecos=yes
29579else
29580  echo "$as_me: failed program was:" >&5
29581sed 's/^/| /' conftest.$ac_ext >&5
29582
29583	ac_cv_member_struct_passwd_pw_gecos=no
29584fi
29585
29586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29587fi
29588
29589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29590fi
29591{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
29592echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
29593if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
29594
29595cat >>confdefs.h <<_ACEOF
29596#define HAVE_STRUCT_PASSWD_PW_GECOS 1
29597_ACEOF
29598
29599
29600fi
29601{ echo "$as_me:$LINENO: checking for struct passwd.pw_class" >&5
29602echo $ECHO_N "checking for struct passwd.pw_class... $ECHO_C" >&6; }
29603if test "${ac_cv_member_struct_passwd_pw_class+set}" = set; then
29604  echo $ECHO_N "(cached) $ECHO_C" >&6
29605else
29606  cat >conftest.$ac_ext <<_ACEOF
29607/* confdefs.h.  */
29608_ACEOF
29609cat confdefs.h >>conftest.$ac_ext
29610cat >>conftest.$ac_ext <<_ACEOF
29611/* end confdefs.h.  */
29612
29613#include <sys/types.h>
29614#include <pwd.h>
29615
29616
29617int
29618main ()
29619{
29620static struct passwd ac_aggr;
29621if (ac_aggr.pw_class)
29622return 0;
29623  ;
29624  return 0;
29625}
29626_ACEOF
29627rm -f conftest.$ac_objext
29628if { (ac_try="$ac_compile"
29629case "(($ac_try" in
29630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631  *) ac_try_echo=$ac_try;;
29632esac
29633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29634  (eval "$ac_compile") 2>conftest.er1
29635  ac_status=$?
29636  grep -v '^ *+' conftest.er1 >conftest.err
29637  rm -f conftest.er1
29638  cat conftest.err >&5
29639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640  (exit $ac_status); } && {
29641	 test -z "$ac_c_werror_flag" ||
29642	 test ! -s conftest.err
29643       } && test -s conftest.$ac_objext; then
29644  ac_cv_member_struct_passwd_pw_class=yes
29645else
29646  echo "$as_me: failed program was:" >&5
29647sed 's/^/| /' conftest.$ac_ext >&5
29648
29649	cat >conftest.$ac_ext <<_ACEOF
29650/* confdefs.h.  */
29651_ACEOF
29652cat confdefs.h >>conftest.$ac_ext
29653cat >>conftest.$ac_ext <<_ACEOF
29654/* end confdefs.h.  */
29655
29656#include <sys/types.h>
29657#include <pwd.h>
29658
29659
29660int
29661main ()
29662{
29663static struct passwd ac_aggr;
29664if (sizeof ac_aggr.pw_class)
29665return 0;
29666  ;
29667  return 0;
29668}
29669_ACEOF
29670rm -f conftest.$ac_objext
29671if { (ac_try="$ac_compile"
29672case "(($ac_try" in
29673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674  *) ac_try_echo=$ac_try;;
29675esac
29676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677  (eval "$ac_compile") 2>conftest.er1
29678  ac_status=$?
29679  grep -v '^ *+' conftest.er1 >conftest.err
29680  rm -f conftest.er1
29681  cat conftest.err >&5
29682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683  (exit $ac_status); } && {
29684	 test -z "$ac_c_werror_flag" ||
29685	 test ! -s conftest.err
29686       } && test -s conftest.$ac_objext; then
29687  ac_cv_member_struct_passwd_pw_class=yes
29688else
29689  echo "$as_me: failed program was:" >&5
29690sed 's/^/| /' conftest.$ac_ext >&5
29691
29692	ac_cv_member_struct_passwd_pw_class=no
29693fi
29694
29695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29696fi
29697
29698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29699fi
29700{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_class" >&5
29701echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_class" >&6; }
29702if test $ac_cv_member_struct_passwd_pw_class = yes; then
29703
29704cat >>confdefs.h <<_ACEOF
29705#define HAVE_STRUCT_PASSWD_PW_CLASS 1
29706_ACEOF
29707
29708
29709fi
29710{ echo "$as_me:$LINENO: checking for struct passwd.pw_change" >&5
29711echo $ECHO_N "checking for struct passwd.pw_change... $ECHO_C" >&6; }
29712if test "${ac_cv_member_struct_passwd_pw_change+set}" = set; then
29713  echo $ECHO_N "(cached) $ECHO_C" >&6
29714else
29715  cat >conftest.$ac_ext <<_ACEOF
29716/* confdefs.h.  */
29717_ACEOF
29718cat confdefs.h >>conftest.$ac_ext
29719cat >>conftest.$ac_ext <<_ACEOF
29720/* end confdefs.h.  */
29721
29722#include <sys/types.h>
29723#include <pwd.h>
29724
29725
29726int
29727main ()
29728{
29729static struct passwd ac_aggr;
29730if (ac_aggr.pw_change)
29731return 0;
29732  ;
29733  return 0;
29734}
29735_ACEOF
29736rm -f conftest.$ac_objext
29737if { (ac_try="$ac_compile"
29738case "(($ac_try" in
29739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740  *) ac_try_echo=$ac_try;;
29741esac
29742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743  (eval "$ac_compile") 2>conftest.er1
29744  ac_status=$?
29745  grep -v '^ *+' conftest.er1 >conftest.err
29746  rm -f conftest.er1
29747  cat conftest.err >&5
29748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749  (exit $ac_status); } && {
29750	 test -z "$ac_c_werror_flag" ||
29751	 test ! -s conftest.err
29752       } && test -s conftest.$ac_objext; then
29753  ac_cv_member_struct_passwd_pw_change=yes
29754else
29755  echo "$as_me: failed program was:" >&5
29756sed 's/^/| /' conftest.$ac_ext >&5
29757
29758	cat >conftest.$ac_ext <<_ACEOF
29759/* confdefs.h.  */
29760_ACEOF
29761cat confdefs.h >>conftest.$ac_ext
29762cat >>conftest.$ac_ext <<_ACEOF
29763/* end confdefs.h.  */
29764
29765#include <sys/types.h>
29766#include <pwd.h>
29767
29768
29769int
29770main ()
29771{
29772static struct passwd ac_aggr;
29773if (sizeof ac_aggr.pw_change)
29774return 0;
29775  ;
29776  return 0;
29777}
29778_ACEOF
29779rm -f conftest.$ac_objext
29780if { (ac_try="$ac_compile"
29781case "(($ac_try" in
29782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783  *) ac_try_echo=$ac_try;;
29784esac
29785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786  (eval "$ac_compile") 2>conftest.er1
29787  ac_status=$?
29788  grep -v '^ *+' conftest.er1 >conftest.err
29789  rm -f conftest.er1
29790  cat conftest.err >&5
29791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792  (exit $ac_status); } && {
29793	 test -z "$ac_c_werror_flag" ||
29794	 test ! -s conftest.err
29795       } && test -s conftest.$ac_objext; then
29796  ac_cv_member_struct_passwd_pw_change=yes
29797else
29798  echo "$as_me: failed program was:" >&5
29799sed 's/^/| /' conftest.$ac_ext >&5
29800
29801	ac_cv_member_struct_passwd_pw_change=no
29802fi
29803
29804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29805fi
29806
29807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29808fi
29809{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_change" >&5
29810echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_change" >&6; }
29811if test $ac_cv_member_struct_passwd_pw_change = yes; then
29812
29813cat >>confdefs.h <<_ACEOF
29814#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
29815_ACEOF
29816
29817
29818fi
29819{ echo "$as_me:$LINENO: checking for struct passwd.pw_expire" >&5
29820echo $ECHO_N "checking for struct passwd.pw_expire... $ECHO_C" >&6; }
29821if test "${ac_cv_member_struct_passwd_pw_expire+set}" = set; then
29822  echo $ECHO_N "(cached) $ECHO_C" >&6
29823else
29824  cat >conftest.$ac_ext <<_ACEOF
29825/* confdefs.h.  */
29826_ACEOF
29827cat confdefs.h >>conftest.$ac_ext
29828cat >>conftest.$ac_ext <<_ACEOF
29829/* end confdefs.h.  */
29830
29831#include <sys/types.h>
29832#include <pwd.h>
29833
29834
29835int
29836main ()
29837{
29838static struct passwd ac_aggr;
29839if (ac_aggr.pw_expire)
29840return 0;
29841  ;
29842  return 0;
29843}
29844_ACEOF
29845rm -f conftest.$ac_objext
29846if { (ac_try="$ac_compile"
29847case "(($ac_try" in
29848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849  *) ac_try_echo=$ac_try;;
29850esac
29851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852  (eval "$ac_compile") 2>conftest.er1
29853  ac_status=$?
29854  grep -v '^ *+' conftest.er1 >conftest.err
29855  rm -f conftest.er1
29856  cat conftest.err >&5
29857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858  (exit $ac_status); } && {
29859	 test -z "$ac_c_werror_flag" ||
29860	 test ! -s conftest.err
29861       } && test -s conftest.$ac_objext; then
29862  ac_cv_member_struct_passwd_pw_expire=yes
29863else
29864  echo "$as_me: failed program was:" >&5
29865sed 's/^/| /' conftest.$ac_ext >&5
29866
29867	cat >conftest.$ac_ext <<_ACEOF
29868/* confdefs.h.  */
29869_ACEOF
29870cat confdefs.h >>conftest.$ac_ext
29871cat >>conftest.$ac_ext <<_ACEOF
29872/* end confdefs.h.  */
29873
29874#include <sys/types.h>
29875#include <pwd.h>
29876
29877
29878int
29879main ()
29880{
29881static struct passwd ac_aggr;
29882if (sizeof ac_aggr.pw_expire)
29883return 0;
29884  ;
29885  return 0;
29886}
29887_ACEOF
29888rm -f conftest.$ac_objext
29889if { (ac_try="$ac_compile"
29890case "(($ac_try" in
29891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29892  *) ac_try_echo=$ac_try;;
29893esac
29894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29895  (eval "$ac_compile") 2>conftest.er1
29896  ac_status=$?
29897  grep -v '^ *+' conftest.er1 >conftest.err
29898  rm -f conftest.er1
29899  cat conftest.err >&5
29900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901  (exit $ac_status); } && {
29902	 test -z "$ac_c_werror_flag" ||
29903	 test ! -s conftest.err
29904       } && test -s conftest.$ac_objext; then
29905  ac_cv_member_struct_passwd_pw_expire=yes
29906else
29907  echo "$as_me: failed program was:" >&5
29908sed 's/^/| /' conftest.$ac_ext >&5
29909
29910	ac_cv_member_struct_passwd_pw_expire=no
29911fi
29912
29913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29914fi
29915
29916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29917fi
29918{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_expire" >&5
29919echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_expire" >&6; }
29920if test $ac_cv_member_struct_passwd_pw_expire = yes; then
29921
29922cat >>confdefs.h <<_ACEOF
29923#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
29924_ACEOF
29925
29926
29927fi
29928
29929
29930{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
29931echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
29932if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
29933  echo $ECHO_N "(cached) $ECHO_C" >&6
29934else
29935  cat >conftest.$ac_ext <<_ACEOF
29936/* confdefs.h.  */
29937_ACEOF
29938cat confdefs.h >>conftest.$ac_ext
29939cat >>conftest.$ac_ext <<_ACEOF
29940/* end confdefs.h.  */
29941
29942#include <stdio.h>
29943#if HAVE_SYS_TYPES_H
29944# include <sys/types.h>
29945#endif
29946#include <netinet/in.h>
29947#include <arpa/nameser.h>
29948#include <resolv.h>
29949
29950
29951int
29952main ()
29953{
29954static struct __res_state ac_aggr;
29955if (ac_aggr.retrans)
29956return 0;
29957  ;
29958  return 0;
29959}
29960_ACEOF
29961rm -f conftest.$ac_objext
29962if { (ac_try="$ac_compile"
29963case "(($ac_try" in
29964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29965  *) ac_try_echo=$ac_try;;
29966esac
29967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29968  (eval "$ac_compile") 2>conftest.er1
29969  ac_status=$?
29970  grep -v '^ *+' conftest.er1 >conftest.err
29971  rm -f conftest.er1
29972  cat conftest.err >&5
29973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974  (exit $ac_status); } && {
29975	 test -z "$ac_c_werror_flag" ||
29976	 test ! -s conftest.err
29977       } && test -s conftest.$ac_objext; then
29978  ac_cv_member_struct___res_state_retrans=yes
29979else
29980  echo "$as_me: failed program was:" >&5
29981sed 's/^/| /' conftest.$ac_ext >&5
29982
29983	cat >conftest.$ac_ext <<_ACEOF
29984/* confdefs.h.  */
29985_ACEOF
29986cat confdefs.h >>conftest.$ac_ext
29987cat >>conftest.$ac_ext <<_ACEOF
29988/* end confdefs.h.  */
29989
29990#include <stdio.h>
29991#if HAVE_SYS_TYPES_H
29992# include <sys/types.h>
29993#endif
29994#include <netinet/in.h>
29995#include <arpa/nameser.h>
29996#include <resolv.h>
29997
29998
29999int
30000main ()
30001{
30002static struct __res_state ac_aggr;
30003if (sizeof ac_aggr.retrans)
30004return 0;
30005  ;
30006  return 0;
30007}
30008_ACEOF
30009rm -f conftest.$ac_objext
30010if { (ac_try="$ac_compile"
30011case "(($ac_try" in
30012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013  *) ac_try_echo=$ac_try;;
30014esac
30015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016  (eval "$ac_compile") 2>conftest.er1
30017  ac_status=$?
30018  grep -v '^ *+' conftest.er1 >conftest.err
30019  rm -f conftest.er1
30020  cat conftest.err >&5
30021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022  (exit $ac_status); } && {
30023	 test -z "$ac_c_werror_flag" ||
30024	 test ! -s conftest.err
30025       } && test -s conftest.$ac_objext; then
30026  ac_cv_member_struct___res_state_retrans=yes
30027else
30028  echo "$as_me: failed program was:" >&5
30029sed 's/^/| /' conftest.$ac_ext >&5
30030
30031	ac_cv_member_struct___res_state_retrans=no
30032fi
30033
30034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30035fi
30036
30037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30038fi
30039{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
30040echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
30041if test $ac_cv_member_struct___res_state_retrans = yes; then
30042  :
30043else
30044
30045cat >>confdefs.h <<\_ACEOF
30046#define __res_state state
30047_ACEOF
30048
30049fi
30050
30051
30052{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
30053echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
30054if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
30055  echo $ECHO_N "(cached) $ECHO_C" >&6
30056else
30057
30058	cat >conftest.$ac_ext <<_ACEOF
30059/* confdefs.h.  */
30060_ACEOF
30061cat confdefs.h >>conftest.$ac_ext
30062cat >>conftest.$ac_ext <<_ACEOF
30063/* end confdefs.h.  */
30064
30065#include <sys/types.h>
30066#include <sys/socket.h>
30067
30068int
30069main ()
30070{
30071 struct sockaddr_storage s; s.ss_family = 1;
30072  ;
30073  return 0;
30074}
30075_ACEOF
30076rm -f conftest.$ac_objext
30077if { (ac_try="$ac_compile"
30078case "(($ac_try" in
30079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30080  *) ac_try_echo=$ac_try;;
30081esac
30082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083  (eval "$ac_compile") 2>conftest.er1
30084  ac_status=$?
30085  grep -v '^ *+' conftest.er1 >conftest.err
30086  rm -f conftest.er1
30087  cat conftest.err >&5
30088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089  (exit $ac_status); } && {
30090	 test -z "$ac_c_werror_flag" ||
30091	 test ! -s conftest.err
30092       } && test -s conftest.$ac_objext; then
30093   ac_cv_have_ss_family_in_struct_ss="yes"
30094else
30095  echo "$as_me: failed program was:" >&5
30096sed 's/^/| /' conftest.$ac_ext >&5
30097
30098	 ac_cv_have_ss_family_in_struct_ss="no"
30099fi
30100
30101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30102
30103fi
30104{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
30105echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
30106if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
30107
30108cat >>confdefs.h <<\_ACEOF
30109#define HAVE_SS_FAMILY_IN_SS 1
30110_ACEOF
30111
30112fi
30113
30114{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
30115echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
30116if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
30117  echo $ECHO_N "(cached) $ECHO_C" >&6
30118else
30119
30120	cat >conftest.$ac_ext <<_ACEOF
30121/* confdefs.h.  */
30122_ACEOF
30123cat confdefs.h >>conftest.$ac_ext
30124cat >>conftest.$ac_ext <<_ACEOF
30125/* end confdefs.h.  */
30126
30127#include <sys/types.h>
30128#include <sys/socket.h>
30129
30130int
30131main ()
30132{
30133 struct sockaddr_storage s; s.__ss_family = 1;
30134  ;
30135  return 0;
30136}
30137_ACEOF
30138rm -f conftest.$ac_objext
30139if { (ac_try="$ac_compile"
30140case "(($ac_try" in
30141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30142  *) ac_try_echo=$ac_try;;
30143esac
30144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30145  (eval "$ac_compile") 2>conftest.er1
30146  ac_status=$?
30147  grep -v '^ *+' conftest.er1 >conftest.err
30148  rm -f conftest.er1
30149  cat conftest.err >&5
30150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151  (exit $ac_status); } && {
30152	 test -z "$ac_c_werror_flag" ||
30153	 test ! -s conftest.err
30154       } && test -s conftest.$ac_objext; then
30155   ac_cv_have___ss_family_in_struct_ss="yes"
30156else
30157  echo "$as_me: failed program was:" >&5
30158sed 's/^/| /' conftest.$ac_ext >&5
30159
30160	 ac_cv_have___ss_family_in_struct_ss="no"
30161
30162fi
30163
30164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30165
30166fi
30167{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
30168echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
30169if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
30170
30171cat >>confdefs.h <<\_ACEOF
30172#define HAVE___SS_FAMILY_IN_SS 1
30173_ACEOF
30174
30175fi
30176
30177{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
30178echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
30179if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
30180  echo $ECHO_N "(cached) $ECHO_C" >&6
30181else
30182
30183	cat >conftest.$ac_ext <<_ACEOF
30184/* confdefs.h.  */
30185_ACEOF
30186cat confdefs.h >>conftest.$ac_ext
30187cat >>conftest.$ac_ext <<_ACEOF
30188/* end confdefs.h.  */
30189
30190#include <sys/types.h>
30191#include <sys/socket.h>
30192#include <sys/uio.h>
30193
30194int
30195main ()
30196{
30197
30198#ifdef msg_accrights
30199#error "msg_accrights is a macro"
30200exit(1);
30201#endif
30202struct msghdr m;
30203m.msg_accrights = 0;
30204exit(0);
30205
30206  ;
30207  return 0;
30208}
30209_ACEOF
30210rm -f conftest.$ac_objext
30211if { (ac_try="$ac_compile"
30212case "(($ac_try" in
30213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214  *) ac_try_echo=$ac_try;;
30215esac
30216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30217  (eval "$ac_compile") 2>conftest.er1
30218  ac_status=$?
30219  grep -v '^ *+' conftest.er1 >conftest.err
30220  rm -f conftest.er1
30221  cat conftest.err >&5
30222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223  (exit $ac_status); } && {
30224	 test -z "$ac_c_werror_flag" ||
30225	 test ! -s conftest.err
30226       } && test -s conftest.$ac_objext; then
30227   ac_cv_have_accrights_in_msghdr="yes"
30228else
30229  echo "$as_me: failed program was:" >&5
30230sed 's/^/| /' conftest.$ac_ext >&5
30231
30232	 ac_cv_have_accrights_in_msghdr="no"
30233
30234fi
30235
30236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30237
30238fi
30239{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
30240echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
30241if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
30242
30243cat >>confdefs.h <<\_ACEOF
30244#define HAVE_ACCRIGHTS_IN_MSGHDR 1
30245_ACEOF
30246
30247fi
30248
30249{ echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
30250echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
30251cat >conftest.$ac_ext <<_ACEOF
30252/* confdefs.h.  */
30253_ACEOF
30254cat confdefs.h >>conftest.$ac_ext
30255cat >>conftest.$ac_ext <<_ACEOF
30256/* end confdefs.h.  */
30257
30258#include <sys/param.h>
30259#include <sys/stat.h>
30260#ifdef HAVE_SYS_TIME_H
30261# include <sys/time.h>
30262#endif
30263#ifdef HAVE_SYS_MOUNT_H
30264#include <sys/mount.h>
30265#endif
30266#ifdef HAVE_SYS_STATVFS_H
30267#include <sys/statvfs.h>
30268#endif
30269
30270int
30271main ()
30272{
30273 struct statvfs s; s.f_fsid = 0;
30274  ;
30275  return 0;
30276}
30277_ACEOF
30278rm -f conftest.$ac_objext
30279if { (ac_try="$ac_compile"
30280case "(($ac_try" in
30281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30282  *) ac_try_echo=$ac_try;;
30283esac
30284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30285  (eval "$ac_compile") 2>conftest.er1
30286  ac_status=$?
30287  grep -v '^ *+' conftest.er1 >conftest.err
30288  rm -f conftest.er1
30289  cat conftest.err >&5
30290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291  (exit $ac_status); } && {
30292	 test -z "$ac_c_werror_flag" ||
30293	 test ! -s conftest.err
30294       } && test -s conftest.$ac_objext; then
30295   { echo "$as_me:$LINENO: result: yes" >&5
30296echo "${ECHO_T}yes" >&6; }
30297else
30298  echo "$as_me: failed program was:" >&5
30299sed 's/^/| /' conftest.$ac_ext >&5
30300
30301	 { echo "$as_me:$LINENO: result: no" >&5
30302echo "${ECHO_T}no" >&6; }
30303
30304	{ echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
30305echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
30306	cat >conftest.$ac_ext <<_ACEOF
30307/* confdefs.h.  */
30308_ACEOF
30309cat confdefs.h >>conftest.$ac_ext
30310cat >>conftest.$ac_ext <<_ACEOF
30311/* end confdefs.h.  */
30312
30313#include <sys/types.h>
30314#include <sys/statvfs.h>
30315
30316int
30317main ()
30318{
30319 fsid_t t; t.val[0] = 0;
30320  ;
30321  return 0;
30322}
30323_ACEOF
30324rm -f conftest.$ac_objext
30325if { (ac_try="$ac_compile"
30326case "(($ac_try" in
30327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328  *) ac_try_echo=$ac_try;;
30329esac
30330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331  (eval "$ac_compile") 2>conftest.er1
30332  ac_status=$?
30333  grep -v '^ *+' conftest.er1 >conftest.err
30334  rm -f conftest.er1
30335  cat conftest.err >&5
30336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337  (exit $ac_status); } && {
30338	 test -z "$ac_c_werror_flag" ||
30339	 test ! -s conftest.err
30340       } && test -s conftest.$ac_objext; then
30341   { echo "$as_me:$LINENO: result: yes" >&5
30342echo "${ECHO_T}yes" >&6; }
30343
30344cat >>confdefs.h <<\_ACEOF
30345#define FSID_HAS_VAL 1
30346_ACEOF
30347
30348else
30349  echo "$as_me: failed program was:" >&5
30350sed 's/^/| /' conftest.$ac_ext >&5
30351
30352	 { echo "$as_me:$LINENO: result: no" >&5
30353echo "${ECHO_T}no" >&6; }
30354fi
30355
30356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30357
30358	{ echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
30359echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
30360	cat >conftest.$ac_ext <<_ACEOF
30361/* confdefs.h.  */
30362_ACEOF
30363cat confdefs.h >>conftest.$ac_ext
30364cat >>conftest.$ac_ext <<_ACEOF
30365/* end confdefs.h.  */
30366
30367#include <sys/types.h>
30368#include <sys/statvfs.h>
30369
30370int
30371main ()
30372{
30373 fsid_t t; t.__val[0] = 0;
30374  ;
30375  return 0;
30376}
30377_ACEOF
30378rm -f conftest.$ac_objext
30379if { (ac_try="$ac_compile"
30380case "(($ac_try" in
30381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382  *) ac_try_echo=$ac_try;;
30383esac
30384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385  (eval "$ac_compile") 2>conftest.er1
30386  ac_status=$?
30387  grep -v '^ *+' conftest.er1 >conftest.err
30388  rm -f conftest.er1
30389  cat conftest.err >&5
30390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391  (exit $ac_status); } && {
30392	 test -z "$ac_c_werror_flag" ||
30393	 test ! -s conftest.err
30394       } && test -s conftest.$ac_objext; then
30395   { echo "$as_me:$LINENO: result: yes" >&5
30396echo "${ECHO_T}yes" >&6; }
30397
30398cat >>confdefs.h <<\_ACEOF
30399#define FSID_HAS___VAL 1
30400_ACEOF
30401
30402else
30403  echo "$as_me: failed program was:" >&5
30404sed 's/^/| /' conftest.$ac_ext >&5
30405
30406	 { echo "$as_me:$LINENO: result: no" >&5
30407echo "${ECHO_T}no" >&6; }
30408fi
30409
30410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30411
30412fi
30413
30414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30415
30416{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
30417echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
30418if test "${ac_cv_have_control_in_msghdr+set}" = set; then
30419  echo $ECHO_N "(cached) $ECHO_C" >&6
30420else
30421
30422	cat >conftest.$ac_ext <<_ACEOF
30423/* confdefs.h.  */
30424_ACEOF
30425cat confdefs.h >>conftest.$ac_ext
30426cat >>conftest.$ac_ext <<_ACEOF
30427/* end confdefs.h.  */
30428
30429#include <sys/types.h>
30430#include <sys/socket.h>
30431#include <sys/uio.h>
30432
30433int
30434main ()
30435{
30436
30437#ifdef msg_control
30438#error "msg_control is a macro"
30439exit(1);
30440#endif
30441struct msghdr m;
30442m.msg_control = 0;
30443exit(0);
30444
30445  ;
30446  return 0;
30447}
30448_ACEOF
30449rm -f conftest.$ac_objext
30450if { (ac_try="$ac_compile"
30451case "(($ac_try" in
30452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30453  *) ac_try_echo=$ac_try;;
30454esac
30455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30456  (eval "$ac_compile") 2>conftest.er1
30457  ac_status=$?
30458  grep -v '^ *+' conftest.er1 >conftest.err
30459  rm -f conftest.er1
30460  cat conftest.err >&5
30461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462  (exit $ac_status); } && {
30463	 test -z "$ac_c_werror_flag" ||
30464	 test ! -s conftest.err
30465       } && test -s conftest.$ac_objext; then
30466   ac_cv_have_control_in_msghdr="yes"
30467else
30468  echo "$as_me: failed program was:" >&5
30469sed 's/^/| /' conftest.$ac_ext >&5
30470
30471	 ac_cv_have_control_in_msghdr="no"
30472
30473fi
30474
30475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30476
30477fi
30478{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
30479echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
30480if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
30481
30482cat >>confdefs.h <<\_ACEOF
30483#define HAVE_CONTROL_IN_MSGHDR 1
30484_ACEOF
30485
30486fi
30487
30488{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
30489echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
30490if test "${ac_cv_libc_defines___progname+set}" = set; then
30491  echo $ECHO_N "(cached) $ECHO_C" >&6
30492else
30493
30494	cat >conftest.$ac_ext <<_ACEOF
30495/* confdefs.h.  */
30496_ACEOF
30497cat confdefs.h >>conftest.$ac_ext
30498cat >>conftest.$ac_ext <<_ACEOF
30499/* end confdefs.h.  */
30500
30501int
30502main ()
30503{
30504 extern char *__progname; printf("%s", __progname);
30505  ;
30506  return 0;
30507}
30508_ACEOF
30509rm -f conftest.$ac_objext conftest$ac_exeext
30510if { (ac_try="$ac_link"
30511case "(($ac_try" in
30512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30513  *) ac_try_echo=$ac_try;;
30514esac
30515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30516  (eval "$ac_link") 2>conftest.er1
30517  ac_status=$?
30518  grep -v '^ *+' conftest.er1 >conftest.err
30519  rm -f conftest.er1
30520  cat conftest.err >&5
30521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522  (exit $ac_status); } && {
30523	 test -z "$ac_c_werror_flag" ||
30524	 test ! -s conftest.err
30525       } && test -s conftest$ac_exeext &&
30526       $as_test_x conftest$ac_exeext; then
30527   ac_cv_libc_defines___progname="yes"
30528else
30529  echo "$as_me: failed program was:" >&5
30530sed 's/^/| /' conftest.$ac_ext >&5
30531
30532	 ac_cv_libc_defines___progname="no"
30533
30534fi
30535
30536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30537      conftest$ac_exeext conftest.$ac_ext
30538
30539fi
30540{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
30541echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
30542if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
30543
30544cat >>confdefs.h <<\_ACEOF
30545#define HAVE___PROGNAME 1
30546_ACEOF
30547
30548fi
30549
30550{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
30551echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
30552if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
30553  echo $ECHO_N "(cached) $ECHO_C" >&6
30554else
30555
30556	cat >conftest.$ac_ext <<_ACEOF
30557/* confdefs.h.  */
30558_ACEOF
30559cat confdefs.h >>conftest.$ac_ext
30560cat >>conftest.$ac_ext <<_ACEOF
30561/* end confdefs.h.  */
30562 #include <stdio.h>
30563int
30564main ()
30565{
30566 printf("%s", __FUNCTION__);
30567  ;
30568  return 0;
30569}
30570_ACEOF
30571rm -f conftest.$ac_objext conftest$ac_exeext
30572if { (ac_try="$ac_link"
30573case "(($ac_try" in
30574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575  *) ac_try_echo=$ac_try;;
30576esac
30577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30578  (eval "$ac_link") 2>conftest.er1
30579  ac_status=$?
30580  grep -v '^ *+' conftest.er1 >conftest.err
30581  rm -f conftest.er1
30582  cat conftest.err >&5
30583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584  (exit $ac_status); } && {
30585	 test -z "$ac_c_werror_flag" ||
30586	 test ! -s conftest.err
30587       } && test -s conftest$ac_exeext &&
30588       $as_test_x conftest$ac_exeext; then
30589   ac_cv_cc_implements___FUNCTION__="yes"
30590else
30591  echo "$as_me: failed program was:" >&5
30592sed 's/^/| /' conftest.$ac_ext >&5
30593
30594	 ac_cv_cc_implements___FUNCTION__="no"
30595
30596fi
30597
30598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30599      conftest$ac_exeext conftest.$ac_ext
30600
30601fi
30602{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
30603echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
30604if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
30605
30606cat >>confdefs.h <<\_ACEOF
30607#define HAVE___FUNCTION__ 1
30608_ACEOF
30609
30610fi
30611
30612{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
30613echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
30614if test "${ac_cv_cc_implements___func__+set}" = set; then
30615  echo $ECHO_N "(cached) $ECHO_C" >&6
30616else
30617
30618	cat >conftest.$ac_ext <<_ACEOF
30619/* confdefs.h.  */
30620_ACEOF
30621cat confdefs.h >>conftest.$ac_ext
30622cat >>conftest.$ac_ext <<_ACEOF
30623/* end confdefs.h.  */
30624 #include <stdio.h>
30625int
30626main ()
30627{
30628 printf("%s", __func__);
30629  ;
30630  return 0;
30631}
30632_ACEOF
30633rm -f conftest.$ac_objext conftest$ac_exeext
30634if { (ac_try="$ac_link"
30635case "(($ac_try" in
30636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30637  *) ac_try_echo=$ac_try;;
30638esac
30639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30640  (eval "$ac_link") 2>conftest.er1
30641  ac_status=$?
30642  grep -v '^ *+' conftest.er1 >conftest.err
30643  rm -f conftest.er1
30644  cat conftest.err >&5
30645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646  (exit $ac_status); } && {
30647	 test -z "$ac_c_werror_flag" ||
30648	 test ! -s conftest.err
30649       } && test -s conftest$ac_exeext &&
30650       $as_test_x conftest$ac_exeext; then
30651   ac_cv_cc_implements___func__="yes"
30652else
30653  echo "$as_me: failed program was:" >&5
30654sed 's/^/| /' conftest.$ac_ext >&5
30655
30656	 ac_cv_cc_implements___func__="no"
30657
30658fi
30659
30660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30661      conftest$ac_exeext conftest.$ac_ext
30662
30663fi
30664{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
30665echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
30666if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
30667
30668cat >>confdefs.h <<\_ACEOF
30669#define HAVE___func__ 1
30670_ACEOF
30671
30672fi
30673
30674{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
30675echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
30676if test "${ac_cv_have_va_copy+set}" = set; then
30677  echo $ECHO_N "(cached) $ECHO_C" >&6
30678else
30679
30680	cat >conftest.$ac_ext <<_ACEOF
30681/* confdefs.h.  */
30682_ACEOF
30683cat confdefs.h >>conftest.$ac_ext
30684cat >>conftest.$ac_ext <<_ACEOF
30685/* end confdefs.h.  */
30686
30687#include <stdarg.h>
30688va_list x,y;
30689
30690int
30691main ()
30692{
30693 va_copy(x,y);
30694  ;
30695  return 0;
30696}
30697_ACEOF
30698rm -f conftest.$ac_objext conftest$ac_exeext
30699if { (ac_try="$ac_link"
30700case "(($ac_try" in
30701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702  *) ac_try_echo=$ac_try;;
30703esac
30704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30705  (eval "$ac_link") 2>conftest.er1
30706  ac_status=$?
30707  grep -v '^ *+' conftest.er1 >conftest.err
30708  rm -f conftest.er1
30709  cat conftest.err >&5
30710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711  (exit $ac_status); } && {
30712	 test -z "$ac_c_werror_flag" ||
30713	 test ! -s conftest.err
30714       } && test -s conftest$ac_exeext &&
30715       $as_test_x conftest$ac_exeext; then
30716   ac_cv_have_va_copy="yes"
30717else
30718  echo "$as_me: failed program was:" >&5
30719sed 's/^/| /' conftest.$ac_ext >&5
30720
30721	 ac_cv_have_va_copy="no"
30722
30723fi
30724
30725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30726      conftest$ac_exeext conftest.$ac_ext
30727
30728fi
30729{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
30730echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
30731if test "x$ac_cv_have_va_copy" = "xyes" ; then
30732
30733cat >>confdefs.h <<\_ACEOF
30734#define HAVE_VA_COPY 1
30735_ACEOF
30736
30737fi
30738
30739{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
30740echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
30741if test "${ac_cv_have___va_copy+set}" = set; then
30742  echo $ECHO_N "(cached) $ECHO_C" >&6
30743else
30744
30745	cat >conftest.$ac_ext <<_ACEOF
30746/* confdefs.h.  */
30747_ACEOF
30748cat confdefs.h >>conftest.$ac_ext
30749cat >>conftest.$ac_ext <<_ACEOF
30750/* end confdefs.h.  */
30751
30752#include <stdarg.h>
30753va_list x,y;
30754
30755int
30756main ()
30757{
30758 __va_copy(x,y);
30759  ;
30760  return 0;
30761}
30762_ACEOF
30763rm -f conftest.$ac_objext conftest$ac_exeext
30764if { (ac_try="$ac_link"
30765case "(($ac_try" in
30766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30767  *) ac_try_echo=$ac_try;;
30768esac
30769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30770  (eval "$ac_link") 2>conftest.er1
30771  ac_status=$?
30772  grep -v '^ *+' conftest.er1 >conftest.err
30773  rm -f conftest.er1
30774  cat conftest.err >&5
30775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776  (exit $ac_status); } && {
30777	 test -z "$ac_c_werror_flag" ||
30778	 test ! -s conftest.err
30779       } && test -s conftest$ac_exeext &&
30780       $as_test_x conftest$ac_exeext; then
30781   ac_cv_have___va_copy="yes"
30782else
30783  echo "$as_me: failed program was:" >&5
30784sed 's/^/| /' conftest.$ac_ext >&5
30785
30786	 ac_cv_have___va_copy="no"
30787
30788fi
30789
30790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30791      conftest$ac_exeext conftest.$ac_ext
30792
30793fi
30794{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
30795echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
30796if test "x$ac_cv_have___va_copy" = "xyes" ; then
30797
30798cat >>confdefs.h <<\_ACEOF
30799#define HAVE___VA_COPY 1
30800_ACEOF
30801
30802fi
30803
30804{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
30805echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
30806if test "${ac_cv_have_getopt_optreset+set}" = set; then
30807  echo $ECHO_N "(cached) $ECHO_C" >&6
30808else
30809
30810	cat >conftest.$ac_ext <<_ACEOF
30811/* confdefs.h.  */
30812_ACEOF
30813cat confdefs.h >>conftest.$ac_ext
30814cat >>conftest.$ac_ext <<_ACEOF
30815/* end confdefs.h.  */
30816 #include <getopt.h>
30817int
30818main ()
30819{
30820 extern int optreset; optreset = 0;
30821  ;
30822  return 0;
30823}
30824_ACEOF
30825rm -f conftest.$ac_objext conftest$ac_exeext
30826if { (ac_try="$ac_link"
30827case "(($ac_try" in
30828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30829  *) ac_try_echo=$ac_try;;
30830esac
30831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30832  (eval "$ac_link") 2>conftest.er1
30833  ac_status=$?
30834  grep -v '^ *+' conftest.er1 >conftest.err
30835  rm -f conftest.er1
30836  cat conftest.err >&5
30837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838  (exit $ac_status); } && {
30839	 test -z "$ac_c_werror_flag" ||
30840	 test ! -s conftest.err
30841       } && test -s conftest$ac_exeext &&
30842       $as_test_x conftest$ac_exeext; then
30843   ac_cv_have_getopt_optreset="yes"
30844else
30845  echo "$as_me: failed program was:" >&5
30846sed 's/^/| /' conftest.$ac_ext >&5
30847
30848	 ac_cv_have_getopt_optreset="no"
30849
30850fi
30851
30852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30853      conftest$ac_exeext conftest.$ac_ext
30854
30855fi
30856{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
30857echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
30858if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
30859
30860cat >>confdefs.h <<\_ACEOF
30861#define HAVE_GETOPT_OPTRESET 1
30862_ACEOF
30863
30864fi
30865
30866{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
30867echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
30868if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
30869  echo $ECHO_N "(cached) $ECHO_C" >&6
30870else
30871
30872	cat >conftest.$ac_ext <<_ACEOF
30873/* confdefs.h.  */
30874_ACEOF
30875cat confdefs.h >>conftest.$ac_ext
30876cat >>conftest.$ac_ext <<_ACEOF
30877/* end confdefs.h.  */
30878
30879int
30880main ()
30881{
30882 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
30883  ;
30884  return 0;
30885}
30886_ACEOF
30887rm -f conftest.$ac_objext conftest$ac_exeext
30888if { (ac_try="$ac_link"
30889case "(($ac_try" in
30890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891  *) ac_try_echo=$ac_try;;
30892esac
30893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894  (eval "$ac_link") 2>conftest.er1
30895  ac_status=$?
30896  grep -v '^ *+' conftest.er1 >conftest.err
30897  rm -f conftest.er1
30898  cat conftest.err >&5
30899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900  (exit $ac_status); } && {
30901	 test -z "$ac_c_werror_flag" ||
30902	 test ! -s conftest.err
30903       } && test -s conftest$ac_exeext &&
30904       $as_test_x conftest$ac_exeext; then
30905   ac_cv_libc_defines_sys_errlist="yes"
30906else
30907  echo "$as_me: failed program was:" >&5
30908sed 's/^/| /' conftest.$ac_ext >&5
30909
30910	 ac_cv_libc_defines_sys_errlist="no"
30911
30912fi
30913
30914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30915      conftest$ac_exeext conftest.$ac_ext
30916
30917fi
30918{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
30919echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
30920if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
30921
30922cat >>confdefs.h <<\_ACEOF
30923#define HAVE_SYS_ERRLIST 1
30924_ACEOF
30925
30926fi
30927
30928
30929{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
30930echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
30931if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
30932  echo $ECHO_N "(cached) $ECHO_C" >&6
30933else
30934
30935	cat >conftest.$ac_ext <<_ACEOF
30936/* confdefs.h.  */
30937_ACEOF
30938cat confdefs.h >>conftest.$ac_ext
30939cat >>conftest.$ac_ext <<_ACEOF
30940/* end confdefs.h.  */
30941
30942int
30943main ()
30944{
30945 extern int sys_nerr; printf("%i", sys_nerr);
30946  ;
30947  return 0;
30948}
30949_ACEOF
30950rm -f conftest.$ac_objext conftest$ac_exeext
30951if { (ac_try="$ac_link"
30952case "(($ac_try" in
30953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954  *) ac_try_echo=$ac_try;;
30955esac
30956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957  (eval "$ac_link") 2>conftest.er1
30958  ac_status=$?
30959  grep -v '^ *+' conftest.er1 >conftest.err
30960  rm -f conftest.er1
30961  cat conftest.err >&5
30962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963  (exit $ac_status); } && {
30964	 test -z "$ac_c_werror_flag" ||
30965	 test ! -s conftest.err
30966       } && test -s conftest$ac_exeext &&
30967       $as_test_x conftest$ac_exeext; then
30968   ac_cv_libc_defines_sys_nerr="yes"
30969else
30970  echo "$as_me: failed program was:" >&5
30971sed 's/^/| /' conftest.$ac_ext >&5
30972
30973	 ac_cv_libc_defines_sys_nerr="no"
30974
30975fi
30976
30977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30978      conftest$ac_exeext conftest.$ac_ext
30979
30980fi
30981{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
30982echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
30983if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
30984
30985cat >>confdefs.h <<\_ACEOF
30986#define HAVE_SYS_NERR 1
30987_ACEOF
30988
30989fi
30990
30991# Check libraries needed by DNS fingerprint support
30992{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
30993echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
30994if test "${ac_cv_search_getrrsetbyname+set}" = set; then
30995  echo $ECHO_N "(cached) $ECHO_C" >&6
30996else
30997  ac_func_search_save_LIBS=$LIBS
30998cat >conftest.$ac_ext <<_ACEOF
30999/* confdefs.h.  */
31000_ACEOF
31001cat confdefs.h >>conftest.$ac_ext
31002cat >>conftest.$ac_ext <<_ACEOF
31003/* end confdefs.h.  */
31004
31005/* Override any GCC internal prototype to avoid an error.
31006   Use char because int might match the return type of a GCC
31007   builtin and then its argument prototype would still apply.  */
31008#ifdef __cplusplus
31009extern "C"
31010#endif
31011char getrrsetbyname ();
31012int
31013main ()
31014{
31015return getrrsetbyname ();
31016  ;
31017  return 0;
31018}
31019_ACEOF
31020for ac_lib in '' resolv; do
31021  if test -z "$ac_lib"; then
31022    ac_res="none required"
31023  else
31024    ac_res=-l$ac_lib
31025    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31026  fi
31027  rm -f conftest.$ac_objext conftest$ac_exeext
31028if { (ac_try="$ac_link"
31029case "(($ac_try" in
31030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31031  *) ac_try_echo=$ac_try;;
31032esac
31033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31034  (eval "$ac_link") 2>conftest.er1
31035  ac_status=$?
31036  grep -v '^ *+' conftest.er1 >conftest.err
31037  rm -f conftest.er1
31038  cat conftest.err >&5
31039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040  (exit $ac_status); } && {
31041	 test -z "$ac_c_werror_flag" ||
31042	 test ! -s conftest.err
31043       } && test -s conftest$ac_exeext &&
31044       $as_test_x conftest$ac_exeext; then
31045  ac_cv_search_getrrsetbyname=$ac_res
31046else
31047  echo "$as_me: failed program was:" >&5
31048sed 's/^/| /' conftest.$ac_ext >&5
31049
31050
31051fi
31052
31053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31054      conftest$ac_exeext
31055  if test "${ac_cv_search_getrrsetbyname+set}" = set; then
31056  break
31057fi
31058done
31059if test "${ac_cv_search_getrrsetbyname+set}" = set; then
31060  :
31061else
31062  ac_cv_search_getrrsetbyname=no
31063fi
31064rm conftest.$ac_ext
31065LIBS=$ac_func_search_save_LIBS
31066fi
31067{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
31068echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
31069ac_res=$ac_cv_search_getrrsetbyname
31070if test "$ac_res" != no; then
31071  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31072
31073cat >>confdefs.h <<\_ACEOF
31074#define HAVE_GETRRSETBYNAME 1
31075_ACEOF
31076
31077else
31078
31079		# Needed by our getrrsetbyname()
31080		{ echo "$as_me:$LINENO: checking for library containing res_query" >&5
31081echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
31082if test "${ac_cv_search_res_query+set}" = set; then
31083  echo $ECHO_N "(cached) $ECHO_C" >&6
31084else
31085  ac_func_search_save_LIBS=$LIBS
31086cat >conftest.$ac_ext <<_ACEOF
31087/* confdefs.h.  */
31088_ACEOF
31089cat confdefs.h >>conftest.$ac_ext
31090cat >>conftest.$ac_ext <<_ACEOF
31091/* end confdefs.h.  */
31092
31093/* Override any GCC internal prototype to avoid an error.
31094   Use char because int might match the return type of a GCC
31095   builtin and then its argument prototype would still apply.  */
31096#ifdef __cplusplus
31097extern "C"
31098#endif
31099char res_query ();
31100int
31101main ()
31102{
31103return res_query ();
31104  ;
31105  return 0;
31106}
31107_ACEOF
31108for ac_lib in '' resolv; do
31109  if test -z "$ac_lib"; then
31110    ac_res="none required"
31111  else
31112    ac_res=-l$ac_lib
31113    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31114  fi
31115  rm -f conftest.$ac_objext conftest$ac_exeext
31116if { (ac_try="$ac_link"
31117case "(($ac_try" in
31118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119  *) ac_try_echo=$ac_try;;
31120esac
31121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122  (eval "$ac_link") 2>conftest.er1
31123  ac_status=$?
31124  grep -v '^ *+' conftest.er1 >conftest.err
31125  rm -f conftest.er1
31126  cat conftest.err >&5
31127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128  (exit $ac_status); } && {
31129	 test -z "$ac_c_werror_flag" ||
31130	 test ! -s conftest.err
31131       } && test -s conftest$ac_exeext &&
31132       $as_test_x conftest$ac_exeext; then
31133  ac_cv_search_res_query=$ac_res
31134else
31135  echo "$as_me: failed program was:" >&5
31136sed 's/^/| /' conftest.$ac_ext >&5
31137
31138
31139fi
31140
31141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31142      conftest$ac_exeext
31143  if test "${ac_cv_search_res_query+set}" = set; then
31144  break
31145fi
31146done
31147if test "${ac_cv_search_res_query+set}" = set; then
31148  :
31149else
31150  ac_cv_search_res_query=no
31151fi
31152rm conftest.$ac_ext
31153LIBS=$ac_func_search_save_LIBS
31154fi
31155{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
31156echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
31157ac_res=$ac_cv_search_res_query
31158if test "$ac_res" != no; then
31159  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31160
31161fi
31162
31163		{ echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
31164echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
31165if test "${ac_cv_search_dn_expand+set}" = set; then
31166  echo $ECHO_N "(cached) $ECHO_C" >&6
31167else
31168  ac_func_search_save_LIBS=$LIBS
31169cat >conftest.$ac_ext <<_ACEOF
31170/* confdefs.h.  */
31171_ACEOF
31172cat confdefs.h >>conftest.$ac_ext
31173cat >>conftest.$ac_ext <<_ACEOF
31174/* end confdefs.h.  */
31175
31176/* Override any GCC internal prototype to avoid an error.
31177   Use char because int might match the return type of a GCC
31178   builtin and then its argument prototype would still apply.  */
31179#ifdef __cplusplus
31180extern "C"
31181#endif
31182char dn_expand ();
31183int
31184main ()
31185{
31186return dn_expand ();
31187  ;
31188  return 0;
31189}
31190_ACEOF
31191for ac_lib in '' resolv; do
31192  if test -z "$ac_lib"; then
31193    ac_res="none required"
31194  else
31195    ac_res=-l$ac_lib
31196    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31197  fi
31198  rm -f conftest.$ac_objext conftest$ac_exeext
31199if { (ac_try="$ac_link"
31200case "(($ac_try" in
31201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202  *) ac_try_echo=$ac_try;;
31203esac
31204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205  (eval "$ac_link") 2>conftest.er1
31206  ac_status=$?
31207  grep -v '^ *+' conftest.er1 >conftest.err
31208  rm -f conftest.er1
31209  cat conftest.err >&5
31210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211  (exit $ac_status); } && {
31212	 test -z "$ac_c_werror_flag" ||
31213	 test ! -s conftest.err
31214       } && test -s conftest$ac_exeext &&
31215       $as_test_x conftest$ac_exeext; then
31216  ac_cv_search_dn_expand=$ac_res
31217else
31218  echo "$as_me: failed program was:" >&5
31219sed 's/^/| /' conftest.$ac_ext >&5
31220
31221
31222fi
31223
31224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31225      conftest$ac_exeext
31226  if test "${ac_cv_search_dn_expand+set}" = set; then
31227  break
31228fi
31229done
31230if test "${ac_cv_search_dn_expand+set}" = set; then
31231  :
31232else
31233  ac_cv_search_dn_expand=no
31234fi
31235rm conftest.$ac_ext
31236LIBS=$ac_func_search_save_LIBS
31237fi
31238{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
31239echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
31240ac_res=$ac_cv_search_dn_expand
31241if test "$ac_res" != no; then
31242  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31243
31244fi
31245
31246		{ echo "$as_me:$LINENO: checking if res_query will link" >&5
31247echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
31248		cat >conftest.$ac_ext <<_ACEOF
31249/* confdefs.h.  */
31250_ACEOF
31251cat confdefs.h >>conftest.$ac_ext
31252cat >>conftest.$ac_ext <<_ACEOF
31253/* end confdefs.h.  */
31254
31255#include <sys/types.h>
31256#include <netinet/in.h>
31257#include <arpa/nameser.h>
31258#include <netdb.h>
31259#include <resolv.h>
31260
31261int
31262main ()
31263{
31264
31265	res_query (0, 0, 0, 0, 0);
31266
31267  ;
31268  return 0;
31269}
31270_ACEOF
31271rm -f conftest.$ac_objext conftest$ac_exeext
31272if { (ac_try="$ac_link"
31273case "(($ac_try" in
31274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275  *) ac_try_echo=$ac_try;;
31276esac
31277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278  (eval "$ac_link") 2>conftest.er1
31279  ac_status=$?
31280  grep -v '^ *+' conftest.er1 >conftest.err
31281  rm -f conftest.er1
31282  cat conftest.err >&5
31283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284  (exit $ac_status); } && {
31285	 test -z "$ac_c_werror_flag" ||
31286	 test ! -s conftest.err
31287       } && test -s conftest$ac_exeext &&
31288       $as_test_x conftest$ac_exeext; then
31289  { echo "$as_me:$LINENO: result: yes" >&5
31290echo "${ECHO_T}yes" >&6; }
31291else
31292  echo "$as_me: failed program was:" >&5
31293sed 's/^/| /' conftest.$ac_ext >&5
31294
31295	{ echo "$as_me:$LINENO: result: no" >&5
31296echo "${ECHO_T}no" >&6; }
31297		    saved_LIBS="$LIBS"
31298		    LIBS="$LIBS -lresolv"
31299		    { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
31300echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
31301		    cat >conftest.$ac_ext <<_ACEOF
31302/* confdefs.h.  */
31303_ACEOF
31304cat confdefs.h >>conftest.$ac_ext
31305cat >>conftest.$ac_ext <<_ACEOF
31306/* end confdefs.h.  */
31307
31308#include <sys/types.h>
31309#include <netinet/in.h>
31310#include <arpa/nameser.h>
31311#include <netdb.h>
31312#include <resolv.h>
31313
31314int
31315main ()
31316{
31317
31318	res_query (0, 0, 0, 0, 0);
31319
31320  ;
31321  return 0;
31322}
31323_ACEOF
31324rm -f conftest.$ac_objext conftest$ac_exeext
31325if { (ac_try="$ac_link"
31326case "(($ac_try" in
31327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328  *) ac_try_echo=$ac_try;;
31329esac
31330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331  (eval "$ac_link") 2>conftest.er1
31332  ac_status=$?
31333  grep -v '^ *+' conftest.er1 >conftest.err
31334  rm -f conftest.er1
31335  cat conftest.err >&5
31336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337  (exit $ac_status); } && {
31338	 test -z "$ac_c_werror_flag" ||
31339	 test ! -s conftest.err
31340       } && test -s conftest$ac_exeext &&
31341       $as_test_x conftest$ac_exeext; then
31342  { echo "$as_me:$LINENO: result: yes" >&5
31343echo "${ECHO_T}yes" >&6; }
31344else
31345  echo "$as_me: failed program was:" >&5
31346sed 's/^/| /' conftest.$ac_ext >&5
31347
31348	LIBS="$saved_LIBS"
31349			 { echo "$as_me:$LINENO: result: no" >&5
31350echo "${ECHO_T}no" >&6; }
31351fi
31352
31353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31354      conftest$ac_exeext conftest.$ac_ext
31355
31356fi
31357
31358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31359      conftest$ac_exeext conftest.$ac_ext
31360
31361
31362for ac_func in _getshort _getlong
31363do
31364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31365{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31367if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31368  echo $ECHO_N "(cached) $ECHO_C" >&6
31369else
31370  cat >conftest.$ac_ext <<_ACEOF
31371/* confdefs.h.  */
31372_ACEOF
31373cat confdefs.h >>conftest.$ac_ext
31374cat >>conftest.$ac_ext <<_ACEOF
31375/* end confdefs.h.  */
31376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31377   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31378#define $ac_func innocuous_$ac_func
31379
31380/* System header to define __stub macros and hopefully few prototypes,
31381    which can conflict with char $ac_func (); below.
31382    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31383    <limits.h> exists even on freestanding compilers.  */
31384
31385#ifdef __STDC__
31386# include <limits.h>
31387#else
31388# include <assert.h>
31389#endif
31390
31391#undef $ac_func
31392
31393/* Override any GCC internal prototype to avoid an error.
31394   Use char because int might match the return type of a GCC
31395   builtin and then its argument prototype would still apply.  */
31396#ifdef __cplusplus
31397extern "C"
31398#endif
31399char $ac_func ();
31400/* The GNU C library defines this for functions which it implements
31401    to always fail with ENOSYS.  Some functions are actually named
31402    something starting with __ and the normal name is an alias.  */
31403#if defined __stub_$ac_func || defined __stub___$ac_func
31404choke me
31405#endif
31406
31407int
31408main ()
31409{
31410return $ac_func ();
31411  ;
31412  return 0;
31413}
31414_ACEOF
31415rm -f conftest.$ac_objext conftest$ac_exeext
31416if { (ac_try="$ac_link"
31417case "(($ac_try" in
31418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419  *) ac_try_echo=$ac_try;;
31420esac
31421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422  (eval "$ac_link") 2>conftest.er1
31423  ac_status=$?
31424  grep -v '^ *+' conftest.er1 >conftest.err
31425  rm -f conftest.er1
31426  cat conftest.err >&5
31427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428  (exit $ac_status); } && {
31429	 test -z "$ac_c_werror_flag" ||
31430	 test ! -s conftest.err
31431       } && test -s conftest$ac_exeext &&
31432       $as_test_x conftest$ac_exeext; then
31433  eval "$as_ac_var=yes"
31434else
31435  echo "$as_me: failed program was:" >&5
31436sed 's/^/| /' conftest.$ac_ext >&5
31437
31438	eval "$as_ac_var=no"
31439fi
31440
31441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31442      conftest$ac_exeext conftest.$ac_ext
31443fi
31444ac_res=`eval echo '${'$as_ac_var'}'`
31445	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31446echo "${ECHO_T}$ac_res" >&6; }
31447if test `eval echo '${'$as_ac_var'}'` = yes; then
31448  cat >>confdefs.h <<_ACEOF
31449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31450_ACEOF
31451
31452fi
31453done
31454
31455		{ echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
31456echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
31457if test "${ac_cv_have_decl__getshort+set}" = set; then
31458  echo $ECHO_N "(cached) $ECHO_C" >&6
31459else
31460  cat >conftest.$ac_ext <<_ACEOF
31461/* confdefs.h.  */
31462_ACEOF
31463cat confdefs.h >>conftest.$ac_ext
31464cat >>conftest.$ac_ext <<_ACEOF
31465/* end confdefs.h.  */
31466#include <sys/types.h>
31467		    #include <arpa/nameser.h>
31468
31469int
31470main ()
31471{
31472#ifndef _getshort
31473  (void) _getshort;
31474#endif
31475
31476  ;
31477  return 0;
31478}
31479_ACEOF
31480rm -f conftest.$ac_objext
31481if { (ac_try="$ac_compile"
31482case "(($ac_try" in
31483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484  *) ac_try_echo=$ac_try;;
31485esac
31486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487  (eval "$ac_compile") 2>conftest.er1
31488  ac_status=$?
31489  grep -v '^ *+' conftest.er1 >conftest.err
31490  rm -f conftest.er1
31491  cat conftest.err >&5
31492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493  (exit $ac_status); } && {
31494	 test -z "$ac_c_werror_flag" ||
31495	 test ! -s conftest.err
31496       } && test -s conftest.$ac_objext; then
31497  ac_cv_have_decl__getshort=yes
31498else
31499  echo "$as_me: failed program was:" >&5
31500sed 's/^/| /' conftest.$ac_ext >&5
31501
31502	ac_cv_have_decl__getshort=no
31503fi
31504
31505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31506fi
31507{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
31508echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
31509if test $ac_cv_have_decl__getshort = yes; then
31510
31511cat >>confdefs.h <<_ACEOF
31512#define HAVE_DECL__GETSHORT 1
31513_ACEOF
31514
31515
31516else
31517  cat >>confdefs.h <<_ACEOF
31518#define HAVE_DECL__GETSHORT 0
31519_ACEOF
31520
31521
31522fi
31523{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
31524echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
31525if test "${ac_cv_have_decl__getlong+set}" = set; then
31526  echo $ECHO_N "(cached) $ECHO_C" >&6
31527else
31528  cat >conftest.$ac_ext <<_ACEOF
31529/* confdefs.h.  */
31530_ACEOF
31531cat confdefs.h >>conftest.$ac_ext
31532cat >>conftest.$ac_ext <<_ACEOF
31533/* end confdefs.h.  */
31534#include <sys/types.h>
31535		    #include <arpa/nameser.h>
31536
31537int
31538main ()
31539{
31540#ifndef _getlong
31541  (void) _getlong;
31542#endif
31543
31544  ;
31545  return 0;
31546}
31547_ACEOF
31548rm -f conftest.$ac_objext
31549if { (ac_try="$ac_compile"
31550case "(($ac_try" in
31551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552  *) ac_try_echo=$ac_try;;
31553esac
31554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555  (eval "$ac_compile") 2>conftest.er1
31556  ac_status=$?
31557  grep -v '^ *+' conftest.er1 >conftest.err
31558  rm -f conftest.er1
31559  cat conftest.err >&5
31560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561  (exit $ac_status); } && {
31562	 test -z "$ac_c_werror_flag" ||
31563	 test ! -s conftest.err
31564       } && test -s conftest.$ac_objext; then
31565  ac_cv_have_decl__getlong=yes
31566else
31567  echo "$as_me: failed program was:" >&5
31568sed 's/^/| /' conftest.$ac_ext >&5
31569
31570	ac_cv_have_decl__getlong=no
31571fi
31572
31573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31574fi
31575{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
31576echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
31577if test $ac_cv_have_decl__getlong = yes; then
31578
31579cat >>confdefs.h <<_ACEOF
31580#define HAVE_DECL__GETLONG 1
31581_ACEOF
31582
31583
31584else
31585  cat >>confdefs.h <<_ACEOF
31586#define HAVE_DECL__GETLONG 0
31587_ACEOF
31588
31589
31590fi
31591
31592
31593		{ echo "$as_me:$LINENO: checking for HEADER.ad" >&5
31594echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
31595if test "${ac_cv_member_HEADER_ad+set}" = set; then
31596  echo $ECHO_N "(cached) $ECHO_C" >&6
31597else
31598  cat >conftest.$ac_ext <<_ACEOF
31599/* confdefs.h.  */
31600_ACEOF
31601cat confdefs.h >>conftest.$ac_ext
31602cat >>conftest.$ac_ext <<_ACEOF
31603/* end confdefs.h.  */
31604#include <arpa/nameser.h>
31605
31606int
31607main ()
31608{
31609static HEADER ac_aggr;
31610if (ac_aggr.ad)
31611return 0;
31612  ;
31613  return 0;
31614}
31615_ACEOF
31616rm -f conftest.$ac_objext
31617if { (ac_try="$ac_compile"
31618case "(($ac_try" in
31619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620  *) ac_try_echo=$ac_try;;
31621esac
31622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623  (eval "$ac_compile") 2>conftest.er1
31624  ac_status=$?
31625  grep -v '^ *+' conftest.er1 >conftest.err
31626  rm -f conftest.er1
31627  cat conftest.err >&5
31628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629  (exit $ac_status); } && {
31630	 test -z "$ac_c_werror_flag" ||
31631	 test ! -s conftest.err
31632       } && test -s conftest.$ac_objext; then
31633  ac_cv_member_HEADER_ad=yes
31634else
31635  echo "$as_me: failed program was:" >&5
31636sed 's/^/| /' conftest.$ac_ext >&5
31637
31638	cat >conftest.$ac_ext <<_ACEOF
31639/* confdefs.h.  */
31640_ACEOF
31641cat confdefs.h >>conftest.$ac_ext
31642cat >>conftest.$ac_ext <<_ACEOF
31643/* end confdefs.h.  */
31644#include <arpa/nameser.h>
31645
31646int
31647main ()
31648{
31649static HEADER ac_aggr;
31650if (sizeof ac_aggr.ad)
31651return 0;
31652  ;
31653  return 0;
31654}
31655_ACEOF
31656rm -f conftest.$ac_objext
31657if { (ac_try="$ac_compile"
31658case "(($ac_try" in
31659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31660  *) ac_try_echo=$ac_try;;
31661esac
31662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31663  (eval "$ac_compile") 2>conftest.er1
31664  ac_status=$?
31665  grep -v '^ *+' conftest.er1 >conftest.err
31666  rm -f conftest.er1
31667  cat conftest.err >&5
31668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669  (exit $ac_status); } && {
31670	 test -z "$ac_c_werror_flag" ||
31671	 test ! -s conftest.err
31672       } && test -s conftest.$ac_objext; then
31673  ac_cv_member_HEADER_ad=yes
31674else
31675  echo "$as_me: failed program was:" >&5
31676sed 's/^/| /' conftest.$ac_ext >&5
31677
31678	ac_cv_member_HEADER_ad=no
31679fi
31680
31681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31682fi
31683
31684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31685fi
31686{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
31687echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
31688if test $ac_cv_member_HEADER_ad = yes; then
31689
31690cat >>confdefs.h <<\_ACEOF
31691#define HAVE_HEADER_AD 1
31692_ACEOF
31693
31694fi
31695
31696
31697fi
31698
31699
31700{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
31701echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
31702cat >conftest.$ac_ext <<_ACEOF
31703/* confdefs.h.  */
31704_ACEOF
31705cat confdefs.h >>conftest.$ac_ext
31706cat >>conftest.$ac_ext <<_ACEOF
31707/* end confdefs.h.  */
31708
31709#include <stdio.h>
31710#if HAVE_SYS_TYPES_H
31711# include <sys/types.h>
31712#endif
31713#include <netinet/in.h>
31714#include <arpa/nameser.h>
31715#include <resolv.h>
31716extern struct __res_state _res;
31717
31718int
31719main ()
31720{
31721
31722  ;
31723  return 0;
31724}
31725_ACEOF
31726rm -f conftest.$ac_objext conftest$ac_exeext
31727if { (ac_try="$ac_link"
31728case "(($ac_try" in
31729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730  *) ac_try_echo=$ac_try;;
31731esac
31732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733  (eval "$ac_link") 2>conftest.er1
31734  ac_status=$?
31735  grep -v '^ *+' conftest.er1 >conftest.err
31736  rm -f conftest.er1
31737  cat conftest.err >&5
31738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739  (exit $ac_status); } && {
31740	 test -z "$ac_c_werror_flag" ||
31741	 test ! -s conftest.err
31742       } && test -s conftest$ac_exeext &&
31743       $as_test_x conftest$ac_exeext; then
31744  { echo "$as_me:$LINENO: result: yes" >&5
31745echo "${ECHO_T}yes" >&6; }
31746
31747cat >>confdefs.h <<\_ACEOF
31748#define HAVE__RES_EXTERN 1
31749_ACEOF
31750
31751
31752else
31753  echo "$as_me: failed program was:" >&5
31754sed 's/^/| /' conftest.$ac_ext >&5
31755
31756	 { echo "$as_me:$LINENO: result: no" >&5
31757echo "${ECHO_T}no" >&6; }
31758
31759fi
31760
31761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31762      conftest$ac_exeext conftest.$ac_ext
31763
31764# Check whether user wants SELinux support
31765SELINUX_MSG="no"
31766LIBSELINUX=""
31767
31768# Check whether --with-selinux was given.
31769if test "${with_selinux+set}" = set; then
31770  withval=$with_selinux;  if test "x$withval" != "xno" ; then
31771		save_LIBS="$LIBS"
31772
31773cat >>confdefs.h <<\_ACEOF
31774#define WITH_SELINUX 1
31775_ACEOF
31776
31777		SELINUX_MSG="yes"
31778		if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31779  { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
31780echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
31781if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31782  echo $ECHO_N "(cached) $ECHO_C" >&6
31783fi
31784{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
31785echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
31786else
31787  # Is the header compilable?
31788{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
31789echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
31790cat >conftest.$ac_ext <<_ACEOF
31791/* confdefs.h.  */
31792_ACEOF
31793cat confdefs.h >>conftest.$ac_ext
31794cat >>conftest.$ac_ext <<_ACEOF
31795/* end confdefs.h.  */
31796$ac_includes_default
31797#include <selinux/selinux.h>
31798_ACEOF
31799rm -f conftest.$ac_objext
31800if { (ac_try="$ac_compile"
31801case "(($ac_try" in
31802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803  *) ac_try_echo=$ac_try;;
31804esac
31805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806  (eval "$ac_compile") 2>conftest.er1
31807  ac_status=$?
31808  grep -v '^ *+' conftest.er1 >conftest.err
31809  rm -f conftest.er1
31810  cat conftest.err >&5
31811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812  (exit $ac_status); } && {
31813	 test -z "$ac_c_werror_flag" ||
31814	 test ! -s conftest.err
31815       } && test -s conftest.$ac_objext; then
31816  ac_header_compiler=yes
31817else
31818  echo "$as_me: failed program was:" >&5
31819sed 's/^/| /' conftest.$ac_ext >&5
31820
31821	ac_header_compiler=no
31822fi
31823
31824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31825{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31826echo "${ECHO_T}$ac_header_compiler" >&6; }
31827
31828# Is the header present?
31829{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
31830echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
31831cat >conftest.$ac_ext <<_ACEOF
31832/* confdefs.h.  */
31833_ACEOF
31834cat confdefs.h >>conftest.$ac_ext
31835cat >>conftest.$ac_ext <<_ACEOF
31836/* end confdefs.h.  */
31837#include <selinux/selinux.h>
31838_ACEOF
31839if { (ac_try="$ac_cpp conftest.$ac_ext"
31840case "(($ac_try" in
31841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31842  *) ac_try_echo=$ac_try;;
31843esac
31844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31845  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31846  ac_status=$?
31847  grep -v '^ *+' conftest.er1 >conftest.err
31848  rm -f conftest.er1
31849  cat conftest.err >&5
31850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851  (exit $ac_status); } >/dev/null && {
31852	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31853	 test ! -s conftest.err
31854       }; then
31855  ac_header_preproc=yes
31856else
31857  echo "$as_me: failed program was:" >&5
31858sed 's/^/| /' conftest.$ac_ext >&5
31859
31860  ac_header_preproc=no
31861fi
31862
31863rm -f conftest.err conftest.$ac_ext
31864{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31865echo "${ECHO_T}$ac_header_preproc" >&6; }
31866
31867# So?  What about this header?
31868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31869  yes:no: )
31870    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
31871echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31872    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
31873echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
31874    ac_header_preproc=yes
31875    ;;
31876  no:yes:* )
31877    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
31878echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
31879    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
31880echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
31881    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
31882echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
31883    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
31884echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31885    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
31886echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
31887    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
31888echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
31889    ( cat <<\_ASBOX
31890## ------------------------------------------- ##
31891## Report this to openssh-unix-dev@mindrot.org ##
31892## ------------------------------------------- ##
31893_ASBOX
31894     ) | sed "s/^/$as_me: WARNING:     /" >&2
31895    ;;
31896esac
31897{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
31898echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
31899if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31900  echo $ECHO_N "(cached) $ECHO_C" >&6
31901else
31902  ac_cv_header_selinux_selinux_h=$ac_header_preproc
31903fi
31904{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
31905echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
31906
31907fi
31908if test $ac_cv_header_selinux_selinux_h = yes; then
31909  :
31910else
31911  { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
31912echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
31913   { (exit 1); exit 1; }; }
31914fi
31915
31916
31917		{ echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
31918echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
31919if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
31920  echo $ECHO_N "(cached) $ECHO_C" >&6
31921else
31922  ac_check_lib_save_LIBS=$LIBS
31923LIBS="-lselinux  $LIBS"
31924cat >conftest.$ac_ext <<_ACEOF
31925/* confdefs.h.  */
31926_ACEOF
31927cat confdefs.h >>conftest.$ac_ext
31928cat >>conftest.$ac_ext <<_ACEOF
31929/* end confdefs.h.  */
31930
31931/* Override any GCC internal prototype to avoid an error.
31932   Use char because int might match the return type of a GCC
31933   builtin and then its argument prototype would still apply.  */
31934#ifdef __cplusplus
31935extern "C"
31936#endif
31937char setexeccon ();
31938int
31939main ()
31940{
31941return setexeccon ();
31942  ;
31943  return 0;
31944}
31945_ACEOF
31946rm -f conftest.$ac_objext conftest$ac_exeext
31947if { (ac_try="$ac_link"
31948case "(($ac_try" in
31949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950  *) ac_try_echo=$ac_try;;
31951esac
31952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953  (eval "$ac_link") 2>conftest.er1
31954  ac_status=$?
31955  grep -v '^ *+' conftest.er1 >conftest.err
31956  rm -f conftest.er1
31957  cat conftest.err >&5
31958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959  (exit $ac_status); } && {
31960	 test -z "$ac_c_werror_flag" ||
31961	 test ! -s conftest.err
31962       } && test -s conftest$ac_exeext &&
31963       $as_test_x conftest$ac_exeext; then
31964  ac_cv_lib_selinux_setexeccon=yes
31965else
31966  echo "$as_me: failed program was:" >&5
31967sed 's/^/| /' conftest.$ac_ext >&5
31968
31969	ac_cv_lib_selinux_setexeccon=no
31970fi
31971
31972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31973      conftest$ac_exeext conftest.$ac_ext
31974LIBS=$ac_check_lib_save_LIBS
31975fi
31976{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
31977echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
31978if test $ac_cv_lib_selinux_setexeccon = yes; then
31979   LIBSELINUX="-lselinux"
31980			  LIBS="$LIBS -lselinux"
31981
31982else
31983  { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
31984echo "$as_me: error: SELinux support requires libselinux library" >&2;}
31985   { (exit 1); exit 1; }; }
31986fi
31987
31988		SSHLIBS="$SSHLIBS $LIBSELINUX"
31989		SSHDLIBS="$SSHDLIBS $LIBSELINUX"
31990
31991
31992for ac_func in getseuserbyname get_default_context_with_level
31993do
31994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31995{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31997if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31998  echo $ECHO_N "(cached) $ECHO_C" >&6
31999else
32000  cat >conftest.$ac_ext <<_ACEOF
32001/* confdefs.h.  */
32002_ACEOF
32003cat confdefs.h >>conftest.$ac_ext
32004cat >>conftest.$ac_ext <<_ACEOF
32005/* end confdefs.h.  */
32006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32007   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32008#define $ac_func innocuous_$ac_func
32009
32010/* System header to define __stub macros and hopefully few prototypes,
32011    which can conflict with char $ac_func (); below.
32012    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32013    <limits.h> exists even on freestanding compilers.  */
32014
32015#ifdef __STDC__
32016# include <limits.h>
32017#else
32018# include <assert.h>
32019#endif
32020
32021#undef $ac_func
32022
32023/* Override any GCC internal prototype to avoid an error.
32024   Use char because int might match the return type of a GCC
32025   builtin and then its argument prototype would still apply.  */
32026#ifdef __cplusplus
32027extern "C"
32028#endif
32029char $ac_func ();
32030/* The GNU C library defines this for functions which it implements
32031    to always fail with ENOSYS.  Some functions are actually named
32032    something starting with __ and the normal name is an alias.  */
32033#if defined __stub_$ac_func || defined __stub___$ac_func
32034choke me
32035#endif
32036
32037int
32038main ()
32039{
32040return $ac_func ();
32041  ;
32042  return 0;
32043}
32044_ACEOF
32045rm -f conftest.$ac_objext conftest$ac_exeext
32046if { (ac_try="$ac_link"
32047case "(($ac_try" in
32048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049  *) ac_try_echo=$ac_try;;
32050esac
32051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052  (eval "$ac_link") 2>conftest.er1
32053  ac_status=$?
32054  grep -v '^ *+' conftest.er1 >conftest.err
32055  rm -f conftest.er1
32056  cat conftest.err >&5
32057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058  (exit $ac_status); } && {
32059	 test -z "$ac_c_werror_flag" ||
32060	 test ! -s conftest.err
32061       } && test -s conftest$ac_exeext &&
32062       $as_test_x conftest$ac_exeext; then
32063  eval "$as_ac_var=yes"
32064else
32065  echo "$as_me: failed program was:" >&5
32066sed 's/^/| /' conftest.$ac_ext >&5
32067
32068	eval "$as_ac_var=no"
32069fi
32070
32071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32072      conftest$ac_exeext conftest.$ac_ext
32073fi
32074ac_res=`eval echo '${'$as_ac_var'}'`
32075	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32076echo "${ECHO_T}$ac_res" >&6; }
32077if test `eval echo '${'$as_ac_var'}'` = yes; then
32078  cat >>confdefs.h <<_ACEOF
32079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32080_ACEOF
32081
32082fi
32083done
32084
32085		LIBS="$save_LIBS"
32086	fi
32087
32088fi
32089
32090
32091
32092
32093# Check whether user wants Kerberos 5 support
32094KRB5_MSG="no"
32095
32096# Check whether --with-kerberos5 was given.
32097if test "${with_kerberos5+set}" = set; then
32098  withval=$with_kerberos5;  if test "x$withval" != "xno" ; then
32099		if test "x$withval" = "xyes" ; then
32100			KRB5ROOT="/usr/local"
32101		else
32102			KRB5ROOT=${withval}
32103		fi
32104
32105
32106cat >>confdefs.h <<\_ACEOF
32107#define KRB5 1
32108_ACEOF
32109
32110		KRB5_MSG="yes"
32111
32112		# Extract the first word of "krb5-config", so it can be a program name with args.
32113set dummy krb5-config; ac_word=$2
32114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
32115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32116if test "${ac_cv_path_KRB5CONF+set}" = set; then
32117  echo $ECHO_N "(cached) $ECHO_C" >&6
32118else
32119  case $KRB5CONF in
32120  [\\/]* | ?:[\\/]*)
32121  ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
32122  ;;
32123  *)
32124  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32125as_dummy="$KRB5ROOT/bin:$PATH"
32126for as_dir in $as_dummy
32127do
32128  IFS=$as_save_IFS
32129  test -z "$as_dir" && as_dir=.
32130  for ac_exec_ext in '' $ac_executable_extensions; do
32131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32132    ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
32133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32134    break 2
32135  fi
32136done
32137done
32138IFS=$as_save_IFS
32139
32140  test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
32141  ;;
32142esac
32143fi
32144KRB5CONF=$ac_cv_path_KRB5CONF
32145if test -n "$KRB5CONF"; then
32146  { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
32147echo "${ECHO_T}$KRB5CONF" >&6; }
32148else
32149  { echo "$as_me:$LINENO: result: no" >&5
32150echo "${ECHO_T}no" >&6; }
32151fi
32152
32153
32154		if test -x $KRB5CONF ; then
32155			K5CFLAGS="`$KRB5CONF --cflags`"
32156			K5LIBS="`$KRB5CONF --libs`"
32157			CPPFLAGS="$CPPFLAGS $K5CFLAGS"
32158
32159			{ echo "$as_me:$LINENO: checking for gssapi support" >&5
32160echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
32161			if $KRB5CONF | grep gssapi >/dev/null ; then
32162				{ echo "$as_me:$LINENO: result: yes" >&5
32163echo "${ECHO_T}yes" >&6; }
32164
32165cat >>confdefs.h <<\_ACEOF
32166#define GSSAPI 1
32167_ACEOF
32168
32169				GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
32170				GSSLIBS="`$KRB5CONF --libs gssapi`"
32171				CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
32172			else
32173				{ echo "$as_me:$LINENO: result: no" >&5
32174echo "${ECHO_T}no" >&6; }
32175			fi
32176			{ echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
32177echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
32178			cat >conftest.$ac_ext <<_ACEOF
32179/* confdefs.h.  */
32180_ACEOF
32181cat confdefs.h >>conftest.$ac_ext
32182cat >>conftest.$ac_ext <<_ACEOF
32183/* end confdefs.h.  */
32184 #include <krb5.h>
32185
32186int
32187main ()
32188{
32189 char *tmp = heimdal_version;
32190  ;
32191  return 0;
32192}
32193_ACEOF
32194rm -f conftest.$ac_objext
32195if { (ac_try="$ac_compile"
32196case "(($ac_try" in
32197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32198  *) ac_try_echo=$ac_try;;
32199esac
32200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32201  (eval "$ac_compile") 2>conftest.er1
32202  ac_status=$?
32203  grep -v '^ *+' conftest.er1 >conftest.err
32204  rm -f conftest.er1
32205  cat conftest.err >&5
32206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207  (exit $ac_status); } && {
32208	 test -z "$ac_c_werror_flag" ||
32209	 test ! -s conftest.err
32210       } && test -s conftest.$ac_objext; then
32211   { echo "$as_me:$LINENO: result: yes" >&5
32212echo "${ECHO_T}yes" >&6; }
32213
32214cat >>confdefs.h <<\_ACEOF
32215#define HEIMDAL 1
32216_ACEOF
32217
32218else
32219  echo "$as_me: failed program was:" >&5
32220sed 's/^/| /' conftest.$ac_ext >&5
32221
32222	{ echo "$as_me:$LINENO: result: no" >&5
32223echo "${ECHO_T}no" >&6; }
32224
32225fi
32226
32227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32228		else
32229			CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
32230			LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
32231			{ echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
32232echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
32233			cat >conftest.$ac_ext <<_ACEOF
32234/* confdefs.h.  */
32235_ACEOF
32236cat confdefs.h >>conftest.$ac_ext
32237cat >>conftest.$ac_ext <<_ACEOF
32238/* end confdefs.h.  */
32239 #include <krb5.h>
32240
32241int
32242main ()
32243{
32244 char *tmp = heimdal_version;
32245  ;
32246  return 0;
32247}
32248_ACEOF
32249rm -f conftest.$ac_objext
32250if { (ac_try="$ac_compile"
32251case "(($ac_try" in
32252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32253  *) ac_try_echo=$ac_try;;
32254esac
32255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32256  (eval "$ac_compile") 2>conftest.er1
32257  ac_status=$?
32258  grep -v '^ *+' conftest.er1 >conftest.err
32259  rm -f conftest.er1
32260  cat conftest.err >&5
32261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262  (exit $ac_status); } && {
32263	 test -z "$ac_c_werror_flag" ||
32264	 test ! -s conftest.err
32265       } && test -s conftest.$ac_objext; then
32266   { echo "$as_me:$LINENO: result: yes" >&5
32267echo "${ECHO_T}yes" >&6; }
32268					 cat >>confdefs.h <<\_ACEOF
32269#define HEIMDAL 1
32270_ACEOF
32271
32272					 K5LIBS="-lkrb5"
32273					 K5LIBS="$K5LIBS -lcom_err -lasn1"
32274					 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
32275echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
32276if test "${ac_cv_lib_roken_net_write+set}" = set; then
32277  echo $ECHO_N "(cached) $ECHO_C" >&6
32278else
32279  ac_check_lib_save_LIBS=$LIBS
32280LIBS="-lroken  $LIBS"
32281cat >conftest.$ac_ext <<_ACEOF
32282/* confdefs.h.  */
32283_ACEOF
32284cat confdefs.h >>conftest.$ac_ext
32285cat >>conftest.$ac_ext <<_ACEOF
32286/* end confdefs.h.  */
32287
32288/* Override any GCC internal prototype to avoid an error.
32289   Use char because int might match the return type of a GCC
32290   builtin and then its argument prototype would still apply.  */
32291#ifdef __cplusplus
32292extern "C"
32293#endif
32294char net_write ();
32295int
32296main ()
32297{
32298return net_write ();
32299  ;
32300  return 0;
32301}
32302_ACEOF
32303rm -f conftest.$ac_objext conftest$ac_exeext
32304if { (ac_try="$ac_link"
32305case "(($ac_try" in
32306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307  *) ac_try_echo=$ac_try;;
32308esac
32309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310  (eval "$ac_link") 2>conftest.er1
32311  ac_status=$?
32312  grep -v '^ *+' conftest.er1 >conftest.err
32313  rm -f conftest.er1
32314  cat conftest.err >&5
32315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316  (exit $ac_status); } && {
32317	 test -z "$ac_c_werror_flag" ||
32318	 test ! -s conftest.err
32319       } && test -s conftest$ac_exeext &&
32320       $as_test_x conftest$ac_exeext; then
32321  ac_cv_lib_roken_net_write=yes
32322else
32323  echo "$as_me: failed program was:" >&5
32324sed 's/^/| /' conftest.$ac_ext >&5
32325
32326	ac_cv_lib_roken_net_write=no
32327fi
32328
32329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32330      conftest$ac_exeext conftest.$ac_ext
32331LIBS=$ac_check_lib_save_LIBS
32332fi
32333{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
32334echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
32335if test $ac_cv_lib_roken_net_write = yes; then
32336  K5LIBS="$K5LIBS -lroken"
32337fi
32338
32339					 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
32340echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
32341if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
32342  echo $ECHO_N "(cached) $ECHO_C" >&6
32343else
32344  ac_check_lib_save_LIBS=$LIBS
32345LIBS="-ldes  $LIBS"
32346cat >conftest.$ac_ext <<_ACEOF
32347/* confdefs.h.  */
32348_ACEOF
32349cat confdefs.h >>conftest.$ac_ext
32350cat >>conftest.$ac_ext <<_ACEOF
32351/* end confdefs.h.  */
32352
32353/* Override any GCC internal prototype to avoid an error.
32354   Use char because int might match the return type of a GCC
32355   builtin and then its argument prototype would still apply.  */
32356#ifdef __cplusplus
32357extern "C"
32358#endif
32359char des_cbc_encrypt ();
32360int
32361main ()
32362{
32363return des_cbc_encrypt ();
32364  ;
32365  return 0;
32366}
32367_ACEOF
32368rm -f conftest.$ac_objext conftest$ac_exeext
32369if { (ac_try="$ac_link"
32370case "(($ac_try" in
32371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32372  *) ac_try_echo=$ac_try;;
32373esac
32374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32375  (eval "$ac_link") 2>conftest.er1
32376  ac_status=$?
32377  grep -v '^ *+' conftest.er1 >conftest.err
32378  rm -f conftest.er1
32379  cat conftest.err >&5
32380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381  (exit $ac_status); } && {
32382	 test -z "$ac_c_werror_flag" ||
32383	 test ! -s conftest.err
32384       } && test -s conftest$ac_exeext &&
32385       $as_test_x conftest$ac_exeext; then
32386  ac_cv_lib_des_des_cbc_encrypt=yes
32387else
32388  echo "$as_me: failed program was:" >&5
32389sed 's/^/| /' conftest.$ac_ext >&5
32390
32391	ac_cv_lib_des_des_cbc_encrypt=no
32392fi
32393
32394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32395      conftest$ac_exeext conftest.$ac_ext
32396LIBS=$ac_check_lib_save_LIBS
32397fi
32398{ echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
32399echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
32400if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
32401  K5LIBS="$K5LIBS -ldes"
32402fi
32403
32404
32405else
32406  echo "$as_me: failed program was:" >&5
32407sed 's/^/| /' conftest.$ac_ext >&5
32408
32409	 { echo "$as_me:$LINENO: result: no" >&5
32410echo "${ECHO_T}no" >&6; }
32411					 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
32412
32413
32414fi
32415
32416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32417			{ echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
32418echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
32419if test "${ac_cv_search_dn_expand+set}" = set; then
32420  echo $ECHO_N "(cached) $ECHO_C" >&6
32421else
32422  ac_func_search_save_LIBS=$LIBS
32423cat >conftest.$ac_ext <<_ACEOF
32424/* confdefs.h.  */
32425_ACEOF
32426cat confdefs.h >>conftest.$ac_ext
32427cat >>conftest.$ac_ext <<_ACEOF
32428/* end confdefs.h.  */
32429
32430/* Override any GCC internal prototype to avoid an error.
32431   Use char because int might match the return type of a GCC
32432   builtin and then its argument prototype would still apply.  */
32433#ifdef __cplusplus
32434extern "C"
32435#endif
32436char dn_expand ();
32437int
32438main ()
32439{
32440return dn_expand ();
32441  ;
32442  return 0;
32443}
32444_ACEOF
32445for ac_lib in '' resolv; do
32446  if test -z "$ac_lib"; then
32447    ac_res="none required"
32448  else
32449    ac_res=-l$ac_lib
32450    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32451  fi
32452  rm -f conftest.$ac_objext conftest$ac_exeext
32453if { (ac_try="$ac_link"
32454case "(($ac_try" in
32455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456  *) ac_try_echo=$ac_try;;
32457esac
32458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459  (eval "$ac_link") 2>conftest.er1
32460  ac_status=$?
32461  grep -v '^ *+' conftest.er1 >conftest.err
32462  rm -f conftest.er1
32463  cat conftest.err >&5
32464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465  (exit $ac_status); } && {
32466	 test -z "$ac_c_werror_flag" ||
32467	 test ! -s conftest.err
32468       } && test -s conftest$ac_exeext &&
32469       $as_test_x conftest$ac_exeext; then
32470  ac_cv_search_dn_expand=$ac_res
32471else
32472  echo "$as_me: failed program was:" >&5
32473sed 's/^/| /' conftest.$ac_ext >&5
32474
32475
32476fi
32477
32478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32479      conftest$ac_exeext
32480  if test "${ac_cv_search_dn_expand+set}" = set; then
32481  break
32482fi
32483done
32484if test "${ac_cv_search_dn_expand+set}" = set; then
32485  :
32486else
32487  ac_cv_search_dn_expand=no
32488fi
32489rm conftest.$ac_ext
32490LIBS=$ac_func_search_save_LIBS
32491fi
32492{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
32493echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
32494ac_res=$ac_cv_search_dn_expand
32495if test "$ac_res" != no; then
32496  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32497
32498fi
32499
32500
32501			{ echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
32502echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
32503if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
32504  echo $ECHO_N "(cached) $ECHO_C" >&6
32505else
32506  ac_check_lib_save_LIBS=$LIBS
32507LIBS="-lgssapi_krb5  $LIBS"
32508cat >conftest.$ac_ext <<_ACEOF
32509/* confdefs.h.  */
32510_ACEOF
32511cat confdefs.h >>conftest.$ac_ext
32512cat >>conftest.$ac_ext <<_ACEOF
32513/* end confdefs.h.  */
32514
32515/* Override any GCC internal prototype to avoid an error.
32516   Use char because int might match the return type of a GCC
32517   builtin and then its argument prototype would still apply.  */
32518#ifdef __cplusplus
32519extern "C"
32520#endif
32521char gss_init_sec_context ();
32522int
32523main ()
32524{
32525return gss_init_sec_context ();
32526  ;
32527  return 0;
32528}
32529_ACEOF
32530rm -f conftest.$ac_objext conftest$ac_exeext
32531if { (ac_try="$ac_link"
32532case "(($ac_try" in
32533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534  *) ac_try_echo=$ac_try;;
32535esac
32536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537  (eval "$ac_link") 2>conftest.er1
32538  ac_status=$?
32539  grep -v '^ *+' conftest.er1 >conftest.err
32540  rm -f conftest.er1
32541  cat conftest.err >&5
32542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543  (exit $ac_status); } && {
32544	 test -z "$ac_c_werror_flag" ||
32545	 test ! -s conftest.err
32546       } && test -s conftest$ac_exeext &&
32547       $as_test_x conftest$ac_exeext; then
32548  ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
32549else
32550  echo "$as_me: failed program was:" >&5
32551sed 's/^/| /' conftest.$ac_ext >&5
32552
32553	ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
32554fi
32555
32556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32557      conftest$ac_exeext conftest.$ac_ext
32558LIBS=$ac_check_lib_save_LIBS
32559fi
32560{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
32561echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
32562if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
32563   cat >>confdefs.h <<\_ACEOF
32564#define GSSAPI 1
32565_ACEOF
32566
32567				  GSSLIBS="-lgssapi_krb5"
32568else
32569   { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
32570echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
32571if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
32572  echo $ECHO_N "(cached) $ECHO_C" >&6
32573else
32574  ac_check_lib_save_LIBS=$LIBS
32575LIBS="-lgssapi  $LIBS"
32576cat >conftest.$ac_ext <<_ACEOF
32577/* confdefs.h.  */
32578_ACEOF
32579cat confdefs.h >>conftest.$ac_ext
32580cat >>conftest.$ac_ext <<_ACEOF
32581/* end confdefs.h.  */
32582
32583/* Override any GCC internal prototype to avoid an error.
32584   Use char because int might match the return type of a GCC
32585   builtin and then its argument prototype would still apply.  */
32586#ifdef __cplusplus
32587extern "C"
32588#endif
32589char gss_init_sec_context ();
32590int
32591main ()
32592{
32593return gss_init_sec_context ();
32594  ;
32595  return 0;
32596}
32597_ACEOF
32598rm -f conftest.$ac_objext conftest$ac_exeext
32599if { (ac_try="$ac_link"
32600case "(($ac_try" in
32601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602  *) ac_try_echo=$ac_try;;
32603esac
32604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605  (eval "$ac_link") 2>conftest.er1
32606  ac_status=$?
32607  grep -v '^ *+' conftest.er1 >conftest.err
32608  rm -f conftest.er1
32609  cat conftest.err >&5
32610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611  (exit $ac_status); } && {
32612	 test -z "$ac_c_werror_flag" ||
32613	 test ! -s conftest.err
32614       } && test -s conftest$ac_exeext &&
32615       $as_test_x conftest$ac_exeext; then
32616  ac_cv_lib_gssapi_gss_init_sec_context=yes
32617else
32618  echo "$as_me: failed program was:" >&5
32619sed 's/^/| /' conftest.$ac_ext >&5
32620
32621	ac_cv_lib_gssapi_gss_init_sec_context=no
32622fi
32623
32624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32625      conftest$ac_exeext conftest.$ac_ext
32626LIBS=$ac_check_lib_save_LIBS
32627fi
32628{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
32629echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
32630if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
32631   cat >>confdefs.h <<\_ACEOF
32632#define GSSAPI 1
32633_ACEOF
32634
32635					  GSSLIBS="-lgssapi"
32636else
32637   { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgss" >&5
32638echo $ECHO_N "checking for gss_init_sec_context in -lgss... $ECHO_C" >&6; }
32639if test "${ac_cv_lib_gss_gss_init_sec_context+set}" = set; then
32640  echo $ECHO_N "(cached) $ECHO_C" >&6
32641else
32642  ac_check_lib_save_LIBS=$LIBS
32643LIBS="-lgss  $LIBS"
32644cat >conftest.$ac_ext <<_ACEOF
32645/* confdefs.h.  */
32646_ACEOF
32647cat confdefs.h >>conftest.$ac_ext
32648cat >>conftest.$ac_ext <<_ACEOF
32649/* end confdefs.h.  */
32650
32651/* Override any GCC internal prototype to avoid an error.
32652   Use char because int might match the return type of a GCC
32653   builtin and then its argument prototype would still apply.  */
32654#ifdef __cplusplus
32655extern "C"
32656#endif
32657char gss_init_sec_context ();
32658int
32659main ()
32660{
32661return gss_init_sec_context ();
32662  ;
32663  return 0;
32664}
32665_ACEOF
32666rm -f conftest.$ac_objext conftest$ac_exeext
32667if { (ac_try="$ac_link"
32668case "(($ac_try" in
32669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670  *) ac_try_echo=$ac_try;;
32671esac
32672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673  (eval "$ac_link") 2>conftest.er1
32674  ac_status=$?
32675  grep -v '^ *+' conftest.er1 >conftest.err
32676  rm -f conftest.er1
32677  cat conftest.err >&5
32678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679  (exit $ac_status); } && {
32680	 test -z "$ac_c_werror_flag" ||
32681	 test ! -s conftest.err
32682       } && test -s conftest$ac_exeext &&
32683       $as_test_x conftest$ac_exeext; then
32684  ac_cv_lib_gss_gss_init_sec_context=yes
32685else
32686  echo "$as_me: failed program was:" >&5
32687sed 's/^/| /' conftest.$ac_ext >&5
32688
32689	ac_cv_lib_gss_gss_init_sec_context=no
32690fi
32691
32692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32693      conftest$ac_exeext conftest.$ac_ext
32694LIBS=$ac_check_lib_save_LIBS
32695fi
32696{ echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
32697echo "${ECHO_T}$ac_cv_lib_gss_gss_init_sec_context" >&6; }
32698if test $ac_cv_lib_gss_gss_init_sec_context = yes; then
32699   cat >>confdefs.h <<\_ACEOF
32700#define GSSAPI 1
32701_ACEOF
32702
32703						  GSSLIBS="-lgss"
32704else
32705  { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
32706echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
32707fi
32708
32709
32710fi
32711
32712
32713fi
32714
32715
32716			if test "${ac_cv_header_gssapi_h+set}" = set; then
32717  { echo "$as_me:$LINENO: checking for gssapi.h" >&5
32718echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
32719if test "${ac_cv_header_gssapi_h+set}" = set; then
32720  echo $ECHO_N "(cached) $ECHO_C" >&6
32721fi
32722{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
32723echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
32724else
32725  # Is the header compilable?
32726{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
32727echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
32728cat >conftest.$ac_ext <<_ACEOF
32729/* confdefs.h.  */
32730_ACEOF
32731cat confdefs.h >>conftest.$ac_ext
32732cat >>conftest.$ac_ext <<_ACEOF
32733/* end confdefs.h.  */
32734$ac_includes_default
32735#include <gssapi.h>
32736_ACEOF
32737rm -f conftest.$ac_objext
32738if { (ac_try="$ac_compile"
32739case "(($ac_try" in
32740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32741  *) ac_try_echo=$ac_try;;
32742esac
32743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32744  (eval "$ac_compile") 2>conftest.er1
32745  ac_status=$?
32746  grep -v '^ *+' conftest.er1 >conftest.err
32747  rm -f conftest.er1
32748  cat conftest.err >&5
32749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750  (exit $ac_status); } && {
32751	 test -z "$ac_c_werror_flag" ||
32752	 test ! -s conftest.err
32753       } && test -s conftest.$ac_objext; then
32754  ac_header_compiler=yes
32755else
32756  echo "$as_me: failed program was:" >&5
32757sed 's/^/| /' conftest.$ac_ext >&5
32758
32759	ac_header_compiler=no
32760fi
32761
32762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32763{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32764echo "${ECHO_T}$ac_header_compiler" >&6; }
32765
32766# Is the header present?
32767{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
32768echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
32769cat >conftest.$ac_ext <<_ACEOF
32770/* confdefs.h.  */
32771_ACEOF
32772cat confdefs.h >>conftest.$ac_ext
32773cat >>conftest.$ac_ext <<_ACEOF
32774/* end confdefs.h.  */
32775#include <gssapi.h>
32776_ACEOF
32777if { (ac_try="$ac_cpp conftest.$ac_ext"
32778case "(($ac_try" in
32779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32780  *) ac_try_echo=$ac_try;;
32781esac
32782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32783  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32784  ac_status=$?
32785  grep -v '^ *+' conftest.er1 >conftest.err
32786  rm -f conftest.er1
32787  cat conftest.err >&5
32788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789  (exit $ac_status); } >/dev/null && {
32790	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32791	 test ! -s conftest.err
32792       }; then
32793  ac_header_preproc=yes
32794else
32795  echo "$as_me: failed program was:" >&5
32796sed 's/^/| /' conftest.$ac_ext >&5
32797
32798  ac_header_preproc=no
32799fi
32800
32801rm -f conftest.err conftest.$ac_ext
32802{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32803echo "${ECHO_T}$ac_header_preproc" >&6; }
32804
32805# So?  What about this header?
32806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32807  yes:no: )
32808    { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
32809echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32810    { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
32811echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
32812    ac_header_preproc=yes
32813    ;;
32814  no:yes:* )
32815    { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
32816echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
32817    { echo "$as_me:$LINENO: WARNING: gssapi.h:     check for missing prerequisite headers?" >&5
32818echo "$as_me: WARNING: gssapi.h:     check for missing prerequisite headers?" >&2;}
32819    { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
32820echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
32821    { echo "$as_me:$LINENO: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&5
32822echo "$as_me: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32823    { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
32824echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
32825    { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
32826echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
32827    ( cat <<\_ASBOX
32828## ------------------------------------------- ##
32829## Report this to openssh-unix-dev@mindrot.org ##
32830## ------------------------------------------- ##
32831_ASBOX
32832     ) | sed "s/^/$as_me: WARNING:     /" >&2
32833    ;;
32834esac
32835{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
32836echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
32837if test "${ac_cv_header_gssapi_h+set}" = set; then
32838  echo $ECHO_N "(cached) $ECHO_C" >&6
32839else
32840  ac_cv_header_gssapi_h=$ac_header_preproc
32841fi
32842{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
32843echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
32844
32845fi
32846if test $ac_cv_header_gssapi_h = yes; then
32847  :
32848else
32849   unset ac_cv_header_gssapi_h
32850				  CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
32851
32852for ac_header in gssapi.h
32853do
32854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32856  { echo "$as_me:$LINENO: checking for $ac_header" >&5
32857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32859  echo $ECHO_N "(cached) $ECHO_C" >&6
32860fi
32861ac_res=`eval echo '${'$as_ac_Header'}'`
32862	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32863echo "${ECHO_T}$ac_res" >&6; }
32864else
32865  # Is the header compilable?
32866{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32868cat >conftest.$ac_ext <<_ACEOF
32869/* confdefs.h.  */
32870_ACEOF
32871cat confdefs.h >>conftest.$ac_ext
32872cat >>conftest.$ac_ext <<_ACEOF
32873/* end confdefs.h.  */
32874$ac_includes_default
32875#include <$ac_header>
32876_ACEOF
32877rm -f conftest.$ac_objext
32878if { (ac_try="$ac_compile"
32879case "(($ac_try" in
32880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32881  *) ac_try_echo=$ac_try;;
32882esac
32883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884  (eval "$ac_compile") 2>conftest.er1
32885  ac_status=$?
32886  grep -v '^ *+' conftest.er1 >conftest.err
32887  rm -f conftest.er1
32888  cat conftest.err >&5
32889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890  (exit $ac_status); } && {
32891	 test -z "$ac_c_werror_flag" ||
32892	 test ! -s conftest.err
32893       } && test -s conftest.$ac_objext; then
32894  ac_header_compiler=yes
32895else
32896  echo "$as_me: failed program was:" >&5
32897sed 's/^/| /' conftest.$ac_ext >&5
32898
32899	ac_header_compiler=no
32900fi
32901
32902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32904echo "${ECHO_T}$ac_header_compiler" >&6; }
32905
32906# Is the header present?
32907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32909cat >conftest.$ac_ext <<_ACEOF
32910/* confdefs.h.  */
32911_ACEOF
32912cat confdefs.h >>conftest.$ac_ext
32913cat >>conftest.$ac_ext <<_ACEOF
32914/* end confdefs.h.  */
32915#include <$ac_header>
32916_ACEOF
32917if { (ac_try="$ac_cpp conftest.$ac_ext"
32918case "(($ac_try" in
32919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32920  *) ac_try_echo=$ac_try;;
32921esac
32922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32923  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32924  ac_status=$?
32925  grep -v '^ *+' conftest.er1 >conftest.err
32926  rm -f conftest.er1
32927  cat conftest.err >&5
32928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929  (exit $ac_status); } >/dev/null && {
32930	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32931	 test ! -s conftest.err
32932       }; then
32933  ac_header_preproc=yes
32934else
32935  echo "$as_me: failed program was:" >&5
32936sed 's/^/| /' conftest.$ac_ext >&5
32937
32938  ac_header_preproc=no
32939fi
32940
32941rm -f conftest.err conftest.$ac_ext
32942{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32943echo "${ECHO_T}$ac_header_preproc" >&6; }
32944
32945# So?  What about this header?
32946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32947  yes:no: )
32948    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32950    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32952    ac_header_preproc=yes
32953    ;;
32954  no:yes:* )
32955    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32957    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32958echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32959    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32961    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32962echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32963    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32965    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32967    ( cat <<\_ASBOX
32968## ------------------------------------------- ##
32969## Report this to openssh-unix-dev@mindrot.org ##
32970## ------------------------------------------- ##
32971_ASBOX
32972     ) | sed "s/^/$as_me: WARNING:     /" >&2
32973    ;;
32974esac
32975{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32978  echo $ECHO_N "(cached) $ECHO_C" >&6
32979else
32980  eval "$as_ac_Header=\$ac_header_preproc"
32981fi
32982ac_res=`eval echo '${'$as_ac_Header'}'`
32983	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32984echo "${ECHO_T}$ac_res" >&6; }
32985
32986fi
32987if test `eval echo '${'$as_ac_Header'}'` = yes; then
32988  cat >>confdefs.h <<_ACEOF
32989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32990_ACEOF
32991
32992else
32993  { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
32994echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
32995
32996fi
32997
32998done
32999
33000
33001
33002fi
33003
33004
33005
33006			oldCPP="$CPPFLAGS"
33007			CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
33008			if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
33009  { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
33010echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
33011if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
33012  echo $ECHO_N "(cached) $ECHO_C" >&6
33013fi
33014{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
33015echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
33016else
33017  # Is the header compilable?
33018{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
33019echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
33020cat >conftest.$ac_ext <<_ACEOF
33021/* confdefs.h.  */
33022_ACEOF
33023cat confdefs.h >>conftest.$ac_ext
33024cat >>conftest.$ac_ext <<_ACEOF
33025/* end confdefs.h.  */
33026$ac_includes_default
33027#include <gssapi_krb5.h>
33028_ACEOF
33029rm -f conftest.$ac_objext
33030if { (ac_try="$ac_compile"
33031case "(($ac_try" in
33032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33033  *) ac_try_echo=$ac_try;;
33034esac
33035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33036  (eval "$ac_compile") 2>conftest.er1
33037  ac_status=$?
33038  grep -v '^ *+' conftest.er1 >conftest.err
33039  rm -f conftest.er1
33040  cat conftest.err >&5
33041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042  (exit $ac_status); } && {
33043	 test -z "$ac_c_werror_flag" ||
33044	 test ! -s conftest.err
33045       } && test -s conftest.$ac_objext; then
33046  ac_header_compiler=yes
33047else
33048  echo "$as_me: failed program was:" >&5
33049sed 's/^/| /' conftest.$ac_ext >&5
33050
33051	ac_header_compiler=no
33052fi
33053
33054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33055{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33056echo "${ECHO_T}$ac_header_compiler" >&6; }
33057
33058# Is the header present?
33059{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
33060echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
33061cat >conftest.$ac_ext <<_ACEOF
33062/* confdefs.h.  */
33063_ACEOF
33064cat confdefs.h >>conftest.$ac_ext
33065cat >>conftest.$ac_ext <<_ACEOF
33066/* end confdefs.h.  */
33067#include <gssapi_krb5.h>
33068_ACEOF
33069if { (ac_try="$ac_cpp conftest.$ac_ext"
33070case "(($ac_try" in
33071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072  *) ac_try_echo=$ac_try;;
33073esac
33074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33076  ac_status=$?
33077  grep -v '^ *+' conftest.er1 >conftest.err
33078  rm -f conftest.er1
33079  cat conftest.err >&5
33080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081  (exit $ac_status); } >/dev/null && {
33082	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33083	 test ! -s conftest.err
33084       }; then
33085  ac_header_preproc=yes
33086else
33087  echo "$as_me: failed program was:" >&5
33088sed 's/^/| /' conftest.$ac_ext >&5
33089
33090  ac_header_preproc=no
33091fi
33092
33093rm -f conftest.err conftest.$ac_ext
33094{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33095echo "${ECHO_T}$ac_header_preproc" >&6; }
33096
33097# So?  What about this header?
33098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33099  yes:no: )
33100    { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
33101echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33102    { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
33103echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
33104    ac_header_preproc=yes
33105    ;;
33106  no:yes:* )
33107    { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
33108echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
33109    { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h:     check for missing prerequisite headers?" >&5
33110echo "$as_me: WARNING: gssapi_krb5.h:     check for missing prerequisite headers?" >&2;}
33111    { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
33112echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
33113    { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
33114echo "$as_me: WARNING: gssapi_krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33115    { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
33116echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
33117    { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
33118echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
33119    ( cat <<\_ASBOX
33120## ------------------------------------------- ##
33121## Report this to openssh-unix-dev@mindrot.org ##
33122## ------------------------------------------- ##
33123_ASBOX
33124     ) | sed "s/^/$as_me: WARNING:     /" >&2
33125    ;;
33126esac
33127{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
33128echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
33129if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
33130  echo $ECHO_N "(cached) $ECHO_C" >&6
33131else
33132  ac_cv_header_gssapi_krb5_h=$ac_header_preproc
33133fi
33134{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
33135echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
33136
33137fi
33138if test $ac_cv_header_gssapi_krb5_h = yes; then
33139  :
33140else
33141   CPPFLAGS="$oldCPP"
33142fi
33143
33144
33145
33146		fi
33147		if test ! -z "$need_dash_r" ; then
33148			LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
33149		fi
33150		if test ! -z "$blibpath" ; then
33151			blibpath="$blibpath:${KRB5ROOT}/lib"
33152		fi
33153
33154
33155
33156for ac_header in gssapi.h gssapi/gssapi.h
33157do
33158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33160  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33163  echo $ECHO_N "(cached) $ECHO_C" >&6
33164fi
33165ac_res=`eval echo '${'$as_ac_Header'}'`
33166	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33167echo "${ECHO_T}$ac_res" >&6; }
33168else
33169  # Is the header compilable?
33170{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33171echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33172cat >conftest.$ac_ext <<_ACEOF
33173/* confdefs.h.  */
33174_ACEOF
33175cat confdefs.h >>conftest.$ac_ext
33176cat >>conftest.$ac_ext <<_ACEOF
33177/* end confdefs.h.  */
33178$ac_includes_default
33179#include <$ac_header>
33180_ACEOF
33181rm -f conftest.$ac_objext
33182if { (ac_try="$ac_compile"
33183case "(($ac_try" in
33184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33185  *) ac_try_echo=$ac_try;;
33186esac
33187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33188  (eval "$ac_compile") 2>conftest.er1
33189  ac_status=$?
33190  grep -v '^ *+' conftest.er1 >conftest.err
33191  rm -f conftest.er1
33192  cat conftest.err >&5
33193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194  (exit $ac_status); } && {
33195	 test -z "$ac_c_werror_flag" ||
33196	 test ! -s conftest.err
33197       } && test -s conftest.$ac_objext; then
33198  ac_header_compiler=yes
33199else
33200  echo "$as_me: failed program was:" >&5
33201sed 's/^/| /' conftest.$ac_ext >&5
33202
33203	ac_header_compiler=no
33204fi
33205
33206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33207{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33208echo "${ECHO_T}$ac_header_compiler" >&6; }
33209
33210# Is the header present?
33211{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33212echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33213cat >conftest.$ac_ext <<_ACEOF
33214/* confdefs.h.  */
33215_ACEOF
33216cat confdefs.h >>conftest.$ac_ext
33217cat >>conftest.$ac_ext <<_ACEOF
33218/* end confdefs.h.  */
33219#include <$ac_header>
33220_ACEOF
33221if { (ac_try="$ac_cpp conftest.$ac_ext"
33222case "(($ac_try" in
33223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224  *) ac_try_echo=$ac_try;;
33225esac
33226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33228  ac_status=$?
33229  grep -v '^ *+' conftest.er1 >conftest.err
33230  rm -f conftest.er1
33231  cat conftest.err >&5
33232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233  (exit $ac_status); } >/dev/null && {
33234	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33235	 test ! -s conftest.err
33236       }; then
33237  ac_header_preproc=yes
33238else
33239  echo "$as_me: failed program was:" >&5
33240sed 's/^/| /' conftest.$ac_ext >&5
33241
33242  ac_header_preproc=no
33243fi
33244
33245rm -f conftest.err conftest.$ac_ext
33246{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33247echo "${ECHO_T}$ac_header_preproc" >&6; }
33248
33249# So?  What about this header?
33250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33251  yes:no: )
33252    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33254    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33256    ac_header_preproc=yes
33257    ;;
33258  no:yes:* )
33259    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33261    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33262echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33263    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33265    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33266echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33267    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33269    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33271    ( cat <<\_ASBOX
33272## ------------------------------------------- ##
33273## Report this to openssh-unix-dev@mindrot.org ##
33274## ------------------------------------------- ##
33275_ASBOX
33276     ) | sed "s/^/$as_me: WARNING:     /" >&2
33277    ;;
33278esac
33279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33282  echo $ECHO_N "(cached) $ECHO_C" >&6
33283else
33284  eval "$as_ac_Header=\$ac_header_preproc"
33285fi
33286ac_res=`eval echo '${'$as_ac_Header'}'`
33287	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33288echo "${ECHO_T}$ac_res" >&6; }
33289
33290fi
33291if test `eval echo '${'$as_ac_Header'}'` = yes; then
33292  cat >>confdefs.h <<_ACEOF
33293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33294_ACEOF
33295
33296fi
33297
33298done
33299
33300
33301
33302for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
33303do
33304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33306  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33309  echo $ECHO_N "(cached) $ECHO_C" >&6
33310fi
33311ac_res=`eval echo '${'$as_ac_Header'}'`
33312	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33313echo "${ECHO_T}$ac_res" >&6; }
33314else
33315  # Is the header compilable?
33316{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33318cat >conftest.$ac_ext <<_ACEOF
33319/* confdefs.h.  */
33320_ACEOF
33321cat confdefs.h >>conftest.$ac_ext
33322cat >>conftest.$ac_ext <<_ACEOF
33323/* end confdefs.h.  */
33324$ac_includes_default
33325#include <$ac_header>
33326_ACEOF
33327rm -f conftest.$ac_objext
33328if { (ac_try="$ac_compile"
33329case "(($ac_try" in
33330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33331  *) ac_try_echo=$ac_try;;
33332esac
33333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33334  (eval "$ac_compile") 2>conftest.er1
33335  ac_status=$?
33336  grep -v '^ *+' conftest.er1 >conftest.err
33337  rm -f conftest.er1
33338  cat conftest.err >&5
33339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340  (exit $ac_status); } && {
33341	 test -z "$ac_c_werror_flag" ||
33342	 test ! -s conftest.err
33343       } && test -s conftest.$ac_objext; then
33344  ac_header_compiler=yes
33345else
33346  echo "$as_me: failed program was:" >&5
33347sed 's/^/| /' conftest.$ac_ext >&5
33348
33349	ac_header_compiler=no
33350fi
33351
33352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33353{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33354echo "${ECHO_T}$ac_header_compiler" >&6; }
33355
33356# Is the header present?
33357{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33358echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33359cat >conftest.$ac_ext <<_ACEOF
33360/* confdefs.h.  */
33361_ACEOF
33362cat confdefs.h >>conftest.$ac_ext
33363cat >>conftest.$ac_ext <<_ACEOF
33364/* end confdefs.h.  */
33365#include <$ac_header>
33366_ACEOF
33367if { (ac_try="$ac_cpp conftest.$ac_ext"
33368case "(($ac_try" in
33369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370  *) ac_try_echo=$ac_try;;
33371esac
33372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33374  ac_status=$?
33375  grep -v '^ *+' conftest.er1 >conftest.err
33376  rm -f conftest.er1
33377  cat conftest.err >&5
33378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379  (exit $ac_status); } >/dev/null && {
33380	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33381	 test ! -s conftest.err
33382       }; then
33383  ac_header_preproc=yes
33384else
33385  echo "$as_me: failed program was:" >&5
33386sed 's/^/| /' conftest.$ac_ext >&5
33387
33388  ac_header_preproc=no
33389fi
33390
33391rm -f conftest.err conftest.$ac_ext
33392{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33393echo "${ECHO_T}$ac_header_preproc" >&6; }
33394
33395# So?  What about this header?
33396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33397  yes:no: )
33398    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33399echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33400    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33401echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33402    ac_header_preproc=yes
33403    ;;
33404  no:yes:* )
33405    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33406echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33407    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33408echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33409    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33410echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33411    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33412echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33413    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33415    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33416echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33417    ( cat <<\_ASBOX
33418## ------------------------------------------- ##
33419## Report this to openssh-unix-dev@mindrot.org ##
33420## ------------------------------------------- ##
33421_ASBOX
33422     ) | sed "s/^/$as_me: WARNING:     /" >&2
33423    ;;
33424esac
33425{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33428  echo $ECHO_N "(cached) $ECHO_C" >&6
33429else
33430  eval "$as_ac_Header=\$ac_header_preproc"
33431fi
33432ac_res=`eval echo '${'$as_ac_Header'}'`
33433	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33434echo "${ECHO_T}$ac_res" >&6; }
33435
33436fi
33437if test `eval echo '${'$as_ac_Header'}'` = yes; then
33438  cat >>confdefs.h <<_ACEOF
33439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33440_ACEOF
33441
33442fi
33443
33444done
33445
33446
33447
33448for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
33449do
33450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33452  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33455  echo $ECHO_N "(cached) $ECHO_C" >&6
33456fi
33457ac_res=`eval echo '${'$as_ac_Header'}'`
33458	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33459echo "${ECHO_T}$ac_res" >&6; }
33460else
33461  # Is the header compilable?
33462{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33464cat >conftest.$ac_ext <<_ACEOF
33465/* confdefs.h.  */
33466_ACEOF
33467cat confdefs.h >>conftest.$ac_ext
33468cat >>conftest.$ac_ext <<_ACEOF
33469/* end confdefs.h.  */
33470$ac_includes_default
33471#include <$ac_header>
33472_ACEOF
33473rm -f conftest.$ac_objext
33474if { (ac_try="$ac_compile"
33475case "(($ac_try" in
33476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33477  *) ac_try_echo=$ac_try;;
33478esac
33479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33480  (eval "$ac_compile") 2>conftest.er1
33481  ac_status=$?
33482  grep -v '^ *+' conftest.er1 >conftest.err
33483  rm -f conftest.er1
33484  cat conftest.err >&5
33485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486  (exit $ac_status); } && {
33487	 test -z "$ac_c_werror_flag" ||
33488	 test ! -s conftest.err
33489       } && test -s conftest.$ac_objext; then
33490  ac_header_compiler=yes
33491else
33492  echo "$as_me: failed program was:" >&5
33493sed 's/^/| /' conftest.$ac_ext >&5
33494
33495	ac_header_compiler=no
33496fi
33497
33498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33499{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33500echo "${ECHO_T}$ac_header_compiler" >&6; }
33501
33502# Is the header present?
33503{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33505cat >conftest.$ac_ext <<_ACEOF
33506/* confdefs.h.  */
33507_ACEOF
33508cat confdefs.h >>conftest.$ac_ext
33509cat >>conftest.$ac_ext <<_ACEOF
33510/* end confdefs.h.  */
33511#include <$ac_header>
33512_ACEOF
33513if { (ac_try="$ac_cpp conftest.$ac_ext"
33514case "(($ac_try" in
33515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33516  *) ac_try_echo=$ac_try;;
33517esac
33518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33519  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33520  ac_status=$?
33521  grep -v '^ *+' conftest.er1 >conftest.err
33522  rm -f conftest.er1
33523  cat conftest.err >&5
33524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525  (exit $ac_status); } >/dev/null && {
33526	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33527	 test ! -s conftest.err
33528       }; then
33529  ac_header_preproc=yes
33530else
33531  echo "$as_me: failed program was:" >&5
33532sed 's/^/| /' conftest.$ac_ext >&5
33533
33534  ac_header_preproc=no
33535fi
33536
33537rm -f conftest.err conftest.$ac_ext
33538{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33539echo "${ECHO_T}$ac_header_preproc" >&6; }
33540
33541# So?  What about this header?
33542case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33543  yes:no: )
33544    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33545echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33546    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33547echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33548    ac_header_preproc=yes
33549    ;;
33550  no:yes:* )
33551    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33552echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33553    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33554echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33555    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33556echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33557    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33558echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33559    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33560echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33561    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33562echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33563    ( cat <<\_ASBOX
33564## ------------------------------------------- ##
33565## Report this to openssh-unix-dev@mindrot.org ##
33566## ------------------------------------------- ##
33567_ASBOX
33568     ) | sed "s/^/$as_me: WARNING:     /" >&2
33569    ;;
33570esac
33571{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33574  echo $ECHO_N "(cached) $ECHO_C" >&6
33575else
33576  eval "$as_ac_Header=\$ac_header_preproc"
33577fi
33578ac_res=`eval echo '${'$as_ac_Header'}'`
33579	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33580echo "${ECHO_T}$ac_res" >&6; }
33581
33582fi
33583if test `eval echo '${'$as_ac_Header'}'` = yes; then
33584  cat >>confdefs.h <<_ACEOF
33585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33586_ACEOF
33587
33588fi
33589
33590done
33591
33592
33593		{ echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
33594echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
33595if test "${ac_cv_search_k_hasafs+set}" = set; then
33596  echo $ECHO_N "(cached) $ECHO_C" >&6
33597else
33598  ac_func_search_save_LIBS=$LIBS
33599cat >conftest.$ac_ext <<_ACEOF
33600/* confdefs.h.  */
33601_ACEOF
33602cat confdefs.h >>conftest.$ac_ext
33603cat >>conftest.$ac_ext <<_ACEOF
33604/* end confdefs.h.  */
33605
33606/* Override any GCC internal prototype to avoid an error.
33607   Use char because int might match the return type of a GCC
33608   builtin and then its argument prototype would still apply.  */
33609#ifdef __cplusplus
33610extern "C"
33611#endif
33612char k_hasafs ();
33613int
33614main ()
33615{
33616return k_hasafs ();
33617  ;
33618  return 0;
33619}
33620_ACEOF
33621for ac_lib in '' kafs; do
33622  if test -z "$ac_lib"; then
33623    ac_res="none required"
33624  else
33625    ac_res=-l$ac_lib
33626    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33627  fi
33628  rm -f conftest.$ac_objext conftest$ac_exeext
33629if { (ac_try="$ac_link"
33630case "(($ac_try" in
33631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33632  *) ac_try_echo=$ac_try;;
33633esac
33634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33635  (eval "$ac_link") 2>conftest.er1
33636  ac_status=$?
33637  grep -v '^ *+' conftest.er1 >conftest.err
33638  rm -f conftest.er1
33639  cat conftest.err >&5
33640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641  (exit $ac_status); } && {
33642	 test -z "$ac_c_werror_flag" ||
33643	 test ! -s conftest.err
33644       } && test -s conftest$ac_exeext &&
33645       $as_test_x conftest$ac_exeext; then
33646  ac_cv_search_k_hasafs=$ac_res
33647else
33648  echo "$as_me: failed program was:" >&5
33649sed 's/^/| /' conftest.$ac_ext >&5
33650
33651
33652fi
33653
33654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33655      conftest$ac_exeext
33656  if test "${ac_cv_search_k_hasafs+set}" = set; then
33657  break
33658fi
33659done
33660if test "${ac_cv_search_k_hasafs+set}" = set; then
33661  :
33662else
33663  ac_cv_search_k_hasafs=no
33664fi
33665rm conftest.$ac_ext
33666LIBS=$ac_func_search_save_LIBS
33667fi
33668{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
33669echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
33670ac_res=$ac_cv_search_k_hasafs
33671if test "$ac_res" != no; then
33672  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33673
33674cat >>confdefs.h <<\_ACEOF
33675#define USE_AFS 1
33676_ACEOF
33677
33678fi
33679
33680
33681		{ echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5
33682echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6; }
33683if test "${ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE+set}" = set; then
33684  echo $ECHO_N "(cached) $ECHO_C" >&6
33685else
33686  cat >conftest.$ac_ext <<_ACEOF
33687/* confdefs.h.  */
33688_ACEOF
33689cat confdefs.h >>conftest.$ac_ext
33690cat >>conftest.$ac_ext <<_ACEOF
33691/* end confdefs.h.  */
33692
33693#ifdef HAVE_GSSAPI_H
33694# include <gssapi.h>
33695#elif defined(HAVE_GSSAPI_GSSAPI_H)
33696# include <gssapi/gssapi.h>
33697#endif
33698
33699#ifdef HAVE_GSSAPI_GENERIC_H
33700# include <gssapi_generic.h>
33701#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
33702# include <gssapi/gssapi_generic.h>
33703#endif
33704
33705
33706int
33707main ()
33708{
33709#ifndef GSS_C_NT_HOSTBASED_SERVICE
33710  (void) GSS_C_NT_HOSTBASED_SERVICE;
33711#endif
33712
33713  ;
33714  return 0;
33715}
33716_ACEOF
33717rm -f conftest.$ac_objext
33718if { (ac_try="$ac_compile"
33719case "(($ac_try" in
33720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721  *) ac_try_echo=$ac_try;;
33722esac
33723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724  (eval "$ac_compile") 2>conftest.er1
33725  ac_status=$?
33726  grep -v '^ *+' conftest.er1 >conftest.err
33727  rm -f conftest.er1
33728  cat conftest.err >&5
33729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730  (exit $ac_status); } && {
33731	 test -z "$ac_c_werror_flag" ||
33732	 test ! -s conftest.err
33733       } && test -s conftest.$ac_objext; then
33734  ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=yes
33735else
33736  echo "$as_me: failed program was:" >&5
33737sed 's/^/| /' conftest.$ac_ext >&5
33738
33739	ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no
33740fi
33741
33742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33743fi
33744{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5
33745echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6; }
33746if test $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE = yes; then
33747
33748cat >>confdefs.h <<_ACEOF
33749#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 1
33750_ACEOF
33751
33752
33753else
33754  cat >>confdefs.h <<_ACEOF
33755#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 0
33756_ACEOF
33757
33758
33759fi
33760
33761
33762		saved_LIBS="$LIBS"
33763		LIBS="$LIBS $K5LIBS"
33764
33765
33766
33767for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
33768do
33769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33770{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33772if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33773  echo $ECHO_N "(cached) $ECHO_C" >&6
33774else
33775  cat >conftest.$ac_ext <<_ACEOF
33776/* confdefs.h.  */
33777_ACEOF
33778cat confdefs.h >>conftest.$ac_ext
33779cat >>conftest.$ac_ext <<_ACEOF
33780/* end confdefs.h.  */
33781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33782   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33783#define $ac_func innocuous_$ac_func
33784
33785/* System header to define __stub macros and hopefully few prototypes,
33786    which can conflict with char $ac_func (); below.
33787    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33788    <limits.h> exists even on freestanding compilers.  */
33789
33790#ifdef __STDC__
33791# include <limits.h>
33792#else
33793# include <assert.h>
33794#endif
33795
33796#undef $ac_func
33797
33798/* Override any GCC internal prototype to avoid an error.
33799   Use char because int might match the return type of a GCC
33800   builtin and then its argument prototype would still apply.  */
33801#ifdef __cplusplus
33802extern "C"
33803#endif
33804char $ac_func ();
33805/* The GNU C library defines this for functions which it implements
33806    to always fail with ENOSYS.  Some functions are actually named
33807    something starting with __ and the normal name is an alias.  */
33808#if defined __stub_$ac_func || defined __stub___$ac_func
33809choke me
33810#endif
33811
33812int
33813main ()
33814{
33815return $ac_func ();
33816  ;
33817  return 0;
33818}
33819_ACEOF
33820rm -f conftest.$ac_objext conftest$ac_exeext
33821if { (ac_try="$ac_link"
33822case "(($ac_try" in
33823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33824  *) ac_try_echo=$ac_try;;
33825esac
33826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33827  (eval "$ac_link") 2>conftest.er1
33828  ac_status=$?
33829  grep -v '^ *+' conftest.er1 >conftest.err
33830  rm -f conftest.er1
33831  cat conftest.err >&5
33832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833  (exit $ac_status); } && {
33834	 test -z "$ac_c_werror_flag" ||
33835	 test ! -s conftest.err
33836       } && test -s conftest$ac_exeext &&
33837       $as_test_x conftest$ac_exeext; then
33838  eval "$as_ac_var=yes"
33839else
33840  echo "$as_me: failed program was:" >&5
33841sed 's/^/| /' conftest.$ac_ext >&5
33842
33843	eval "$as_ac_var=no"
33844fi
33845
33846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33847      conftest$ac_exeext conftest.$ac_ext
33848fi
33849ac_res=`eval echo '${'$as_ac_var'}'`
33850	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33851echo "${ECHO_T}$ac_res" >&6; }
33852if test `eval echo '${'$as_ac_var'}'` = yes; then
33853  cat >>confdefs.h <<_ACEOF
33854#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33855_ACEOF
33856
33857fi
33858done
33859
33860		LIBS="$saved_LIBS"
33861
33862	fi
33863
33864
33865fi
33866
33867
33868
33869
33870# Looking for programs, paths and files
33871
33872PRIVSEP_PATH=/var/empty
33873
33874# Check whether --with-privsep-path was given.
33875if test "${with_privsep_path+set}" = set; then
33876  withval=$with_privsep_path;
33877		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
33878		    test "x${withval}" != "xyes"; then
33879			PRIVSEP_PATH=$withval
33880		fi
33881
33882
33883fi
33884
33885
33886
33887
33888# Check whether --with-xauth was given.
33889if test "${with_xauth+set}" = set; then
33890  withval=$with_xauth;
33891		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
33892		    test "x${withval}" != "xyes"; then
33893			xauth_path=$withval
33894		fi
33895
33896else
33897
33898		TestPath="$PATH"
33899		TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
33900		TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
33901		TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
33902		TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
33903		# Extract the first word of "xauth", so it can be a program name with args.
33904set dummy xauth; ac_word=$2
33905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
33906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33907if test "${ac_cv_path_xauth_path+set}" = set; then
33908  echo $ECHO_N "(cached) $ECHO_C" >&6
33909else
33910  case $xauth_path in
33911  [\\/]* | ?:[\\/]*)
33912  ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
33913  ;;
33914  *)
33915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33916for as_dir in $TestPath
33917do
33918  IFS=$as_save_IFS
33919  test -z "$as_dir" && as_dir=.
33920  for ac_exec_ext in '' $ac_executable_extensions; do
33921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33922    ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
33923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33924    break 2
33925  fi
33926done
33927done
33928IFS=$as_save_IFS
33929
33930  ;;
33931esac
33932fi
33933xauth_path=$ac_cv_path_xauth_path
33934if test -n "$xauth_path"; then
33935  { echo "$as_me:$LINENO: result: $xauth_path" >&5
33936echo "${ECHO_T}$xauth_path" >&6; }
33937else
33938  { echo "$as_me:$LINENO: result: no" >&5
33939echo "${ECHO_T}no" >&6; }
33940fi
33941
33942
33943		if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
33944			xauth_path="/usr/openwin/bin/xauth"
33945		fi
33946
33947
33948fi
33949
33950
33951STRIP_OPT=-s
33952# Check whether --enable-strip was given.
33953if test "${enable_strip+set}" = set; then
33954  enableval=$enable_strip;
33955		if test "x$enableval" = "xno" ; then
33956			STRIP_OPT=
33957		fi
33958
33959
33960fi
33961
33962
33963
33964if test -z "$xauth_path" ; then
33965	XAUTH_PATH="undefined"
33966
33967else
33968
33969cat >>confdefs.h <<_ACEOF
33970#define XAUTH_PATH "$xauth_path"
33971_ACEOF
33972
33973	XAUTH_PATH=$xauth_path
33974
33975fi
33976
33977# Check for mail directory
33978
33979# Check whether --with-maildir was given.
33980if test "${with_maildir+set}" = set; then
33981  withval=$with_maildir;
33982	if test "X$withval" != X  &&  test "x$withval" != xno  &&  \
33983	    test "x${withval}" != xyes; then
33984
33985cat >>confdefs.h <<_ACEOF
33986#define MAIL_DIRECTORY "$withval"
33987_ACEOF
33988
33989	    fi
33990
33991else
33992
33993	if test "X$maildir" != "X"; then
33994	    cat >>confdefs.h <<_ACEOF
33995#define MAIL_DIRECTORY "$maildir"
33996_ACEOF
33997
33998	else
33999	    { echo "$as_me:$LINENO: checking Discovering system mail directory" >&5
34000echo $ECHO_N "checking Discovering system mail directory... $ECHO_C" >&6; }
34001	    if test "$cross_compiling" = yes; then
34002
34003			{ echo "$as_me:$LINENO: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
34004echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
34005
34006
34007else
34008  cat >conftest.$ac_ext <<_ACEOF
34009/* confdefs.h.  */
34010_ACEOF
34011cat confdefs.h >>conftest.$ac_ext
34012cat >>conftest.$ac_ext <<_ACEOF
34013/* end confdefs.h.  */
34014
34015#include <stdio.h>
34016#include <string.h>
34017#ifdef HAVE_PATHS_H
34018#include <paths.h>
34019#endif
34020#ifdef HAVE_MAILLOCK_H
34021#include <maillock.h>
34022#endif
34023#define DATA "conftest.maildir"
34024
34025int
34026main ()
34027{
34028
34029	FILE *fd;
34030	int rc;
34031
34032	fd = fopen(DATA,"w");
34033	if(fd == NULL)
34034		exit(1);
34035
34036#if defined (_PATH_MAILDIR)
34037	if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
34038		exit(1);
34039#elif defined (MAILDIR)
34040	if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
34041		exit(1);
34042#elif defined (_PATH_MAIL)
34043	if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
34044		exit(1);
34045#else
34046	exit (2);
34047#endif
34048
34049	exit(0);
34050
34051  ;
34052  return 0;
34053}
34054_ACEOF
34055rm -f conftest$ac_exeext
34056if { (ac_try="$ac_link"
34057case "(($ac_try" in
34058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34059  *) ac_try_echo=$ac_try;;
34060esac
34061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34062  (eval "$ac_link") 2>&5
34063  ac_status=$?
34064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34066  { (case "(($ac_try" in
34067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34068  *) ac_try_echo=$ac_try;;
34069esac
34070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34071  (eval "$ac_try") 2>&5
34072  ac_status=$?
34073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074  (exit $ac_status); }; }; then
34075
34076	 	    maildir_what=`awk -F: '{print $1}' conftest.maildir`
34077		    maildir=`awk -F: '{print $2}' conftest.maildir \
34078			| sed 's|/$||'`
34079		    { echo "$as_me:$LINENO: result: Using: $maildir from $maildir_what" >&5
34080echo "${ECHO_T}Using: $maildir from $maildir_what" >&6; }
34081		    if test "x$maildir_what" != "x_PATH_MAILDIR"; then
34082			cat >>confdefs.h <<_ACEOF
34083#define MAIL_DIRECTORY "$maildir"
34084_ACEOF
34085
34086		    fi
34087
34088else
34089  echo "$as_me: program exited with status $ac_status" >&5
34090echo "$as_me: failed program was:" >&5
34091sed 's/^/| /' conftest.$ac_ext >&5
34092
34093( exit $ac_status )
34094
34095		    if test "X$ac_status" = "X2";then
34096# our test program didn't find it. Default to /var/spool/mail
34097			{ echo "$as_me:$LINENO: result: Using: default value of /var/spool/mail" >&5
34098echo "${ECHO_T}Using: default value of /var/spool/mail" >&6; }
34099			cat >>confdefs.h <<_ACEOF
34100#define MAIL_DIRECTORY "/var/spool/mail"
34101_ACEOF
34102
34103		     else
34104			{ echo "$as_me:$LINENO: result: *** not found ***" >&5
34105echo "${ECHO_T}*** not found ***" >&6; }
34106		     fi
34107
34108fi
34109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34110fi
34111
34112
34113	fi
34114
34115
34116fi
34117 # maildir
34118
34119if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
34120	{ echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
34121echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
34122	disable_ptmx_check=yes
34123fi
34124if test -z "$no_dev_ptmx" ; then
34125	if test "x$disable_ptmx_check" != "xyes" ; then
34126		{ echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
34127echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
34128if test "${ac_cv_file___dev_ptmx_+set}" = set; then
34129  echo $ECHO_N "(cached) $ECHO_C" >&6
34130else
34131  test "$cross_compiling" = yes &&
34132  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34133echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34134   { (exit 1); exit 1; }; }
34135if test -r ""/dev/ptmx""; then
34136  ac_cv_file___dev_ptmx_=yes
34137else
34138  ac_cv_file___dev_ptmx_=no
34139fi
34140fi
34141{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
34142echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
34143if test $ac_cv_file___dev_ptmx_ = yes; then
34144
34145
34146cat >>confdefs.h <<_ACEOF
34147#define HAVE_DEV_PTMX 1
34148_ACEOF
34149
34150				have_dev_ptmx=1
34151
34152
34153fi
34154
34155	fi
34156fi
34157
34158if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
34159	{ echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
34160echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
34161if test "${ac_cv_file___dev_ptc_+set}" = set; then
34162  echo $ECHO_N "(cached) $ECHO_C" >&6
34163else
34164  test "$cross_compiling" = yes &&
34165  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34166echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34167   { (exit 1); exit 1; }; }
34168if test -r ""/dev/ptc""; then
34169  ac_cv_file___dev_ptc_=yes
34170else
34171  ac_cv_file___dev_ptc_=no
34172fi
34173fi
34174{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
34175echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
34176if test $ac_cv_file___dev_ptc_ = yes; then
34177
34178
34179cat >>confdefs.h <<_ACEOF
34180#define HAVE_DEV_PTS_AND_PTC 1
34181_ACEOF
34182
34183			have_dev_ptc=1
34184
34185
34186fi
34187
34188else
34189	{ echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
34190echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
34191fi
34192
34193# Options from here on. Some of these are preset by platform above
34194
34195# Check whether --with-mantype was given.
34196if test "${with_mantype+set}" = set; then
34197  withval=$with_mantype;
34198		case "$withval" in
34199		man|cat|doc)
34200			MANTYPE=$withval
34201			;;
34202		*)
34203			{ { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
34204echo "$as_me: error: invalid man type: $withval" >&2;}
34205   { (exit 1); exit 1; }; }
34206			;;
34207		esac
34208
34209
34210fi
34211
34212if test -z "$MANTYPE"; then
34213	TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
34214	for ac_prog in nroff awf
34215do
34216  # Extract the first word of "$ac_prog", so it can be a program name with args.
34217set dummy $ac_prog; ac_word=$2
34218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34220if test "${ac_cv_path_NROFF+set}" = set; then
34221  echo $ECHO_N "(cached) $ECHO_C" >&6
34222else
34223  case $NROFF in
34224  [\\/]* | ?:[\\/]*)
34225  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
34226  ;;
34227  *)
34228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34229for as_dir in $TestPath
34230do
34231  IFS=$as_save_IFS
34232  test -z "$as_dir" && as_dir=.
34233  for ac_exec_ext in '' $ac_executable_extensions; do
34234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34235    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
34236    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34237    break 2
34238  fi
34239done
34240done
34241IFS=$as_save_IFS
34242
34243  ;;
34244esac
34245fi
34246NROFF=$ac_cv_path_NROFF
34247if test -n "$NROFF"; then
34248  { echo "$as_me:$LINENO: result: $NROFF" >&5
34249echo "${ECHO_T}$NROFF" >&6; }
34250else
34251  { echo "$as_me:$LINENO: result: no" >&5
34252echo "${ECHO_T}no" >&6; }
34253fi
34254
34255
34256  test -n "$NROFF" && break
34257done
34258test -n "$NROFF" || NROFF="/bin/false"
34259
34260	if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
34261		MANTYPE=doc
34262	elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
34263		MANTYPE=man
34264	else
34265		MANTYPE=cat
34266	fi
34267fi
34268
34269if test "$MANTYPE" = "doc"; then
34270	mansubdir=man;
34271else
34272	mansubdir=$MANTYPE;
34273fi
34274
34275
34276# Check whether to enable MD5 passwords
34277MD5_MSG="no"
34278
34279# Check whether --with-md5-passwords was given.
34280if test "${with_md5_passwords+set}" = set; then
34281  withval=$with_md5_passwords;
34282		if test "x$withval" != "xno" ; then
34283
34284cat >>confdefs.h <<\_ACEOF
34285#define HAVE_MD5_PASSWORDS 1
34286_ACEOF
34287
34288			MD5_MSG="yes"
34289		fi
34290
34291
34292fi
34293
34294
34295# Whether to disable shadow password support
34296
34297# Check whether --with-shadow was given.
34298if test "${with_shadow+set}" = set; then
34299  withval=$with_shadow;
34300		if test "x$withval" = "xno" ; then
34301			cat >>confdefs.h <<\_ACEOF
34302#define DISABLE_SHADOW 1
34303_ACEOF
34304
34305			disable_shadow=yes
34306		fi
34307
34308
34309fi
34310
34311
34312if test -z "$disable_shadow" ; then
34313	{ echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
34314echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
34315	cat >conftest.$ac_ext <<_ACEOF
34316/* confdefs.h.  */
34317_ACEOF
34318cat confdefs.h >>conftest.$ac_ext
34319cat >>conftest.$ac_ext <<_ACEOF
34320/* end confdefs.h.  */
34321
34322#include <sys/types.h>
34323#include <shadow.h>
34324struct spwd sp;
34325
34326int
34327main ()
34328{
34329 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
34330  ;
34331  return 0;
34332}
34333_ACEOF
34334rm -f conftest.$ac_objext
34335if { (ac_try="$ac_compile"
34336case "(($ac_try" in
34337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34338  *) ac_try_echo=$ac_try;;
34339esac
34340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34341  (eval "$ac_compile") 2>conftest.er1
34342  ac_status=$?
34343  grep -v '^ *+' conftest.er1 >conftest.err
34344  rm -f conftest.er1
34345  cat conftest.err >&5
34346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34347  (exit $ac_status); } && {
34348	 test -z "$ac_c_werror_flag" ||
34349	 test ! -s conftest.err
34350       } && test -s conftest.$ac_objext; then
34351   sp_expire_available=yes
34352else
34353  echo "$as_me: failed program was:" >&5
34354sed 's/^/| /' conftest.$ac_ext >&5
34355
34356
34357
34358fi
34359
34360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34361
34362	if test "x$sp_expire_available" = "xyes" ; then
34363		{ echo "$as_me:$LINENO: result: yes" >&5
34364echo "${ECHO_T}yes" >&6; }
34365
34366cat >>confdefs.h <<\_ACEOF
34367#define HAS_SHADOW_EXPIRE 1
34368_ACEOF
34369
34370	else
34371		{ echo "$as_me:$LINENO: result: no" >&5
34372echo "${ECHO_T}no" >&6; }
34373	fi
34374fi
34375
34376# Use ip address instead of hostname in $DISPLAY
34377if test ! -z "$IPADDR_IN_DISPLAY" ; then
34378	DISPLAY_HACK_MSG="yes"
34379
34380cat >>confdefs.h <<\_ACEOF
34381#define IPADDR_IN_DISPLAY 1
34382_ACEOF
34383
34384else
34385	DISPLAY_HACK_MSG="no"
34386
34387# Check whether --with-ipaddr-display was given.
34388if test "${with_ipaddr_display+set}" = set; then
34389  withval=$with_ipaddr_display;
34390			if test "x$withval" != "xno" ; then
34391				cat >>confdefs.h <<\_ACEOF
34392#define IPADDR_IN_DISPLAY 1
34393_ACEOF
34394
34395				DISPLAY_HACK_MSG="yes"
34396			fi
34397
34398
34399fi
34400
34401fi
34402
34403# check for /etc/default/login and use it if present.
34404# Check whether --enable-etc-default-login was given.
34405if test "${enable_etc_default_login+set}" = set; then
34406  enableval=$enable_etc_default_login;  if test "x$enableval" = "xno"; then
34407		{ echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
34408echo "$as_me: /etc/default/login handling disabled" >&6;}
34409		etc_default_login=no
34410	  else
34411		etc_default_login=yes
34412	  fi
34413else
34414   if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
34415	  then
34416		{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
34417echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
34418		etc_default_login=no
34419	  else
34420		etc_default_login=yes
34421	  fi
34422
34423fi
34424
34425
34426if test "x$etc_default_login" != "xno"; then
34427	{ echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
34428echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
34429if test "${ac_cv_file___etc_default_login_+set}" = set; then
34430  echo $ECHO_N "(cached) $ECHO_C" >&6
34431else
34432  test "$cross_compiling" = yes &&
34433  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34434echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34435   { (exit 1); exit 1; }; }
34436if test -r ""/etc/default/login""; then
34437  ac_cv_file___etc_default_login_=yes
34438else
34439  ac_cv_file___etc_default_login_=no
34440fi
34441fi
34442{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
34443echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
34444if test $ac_cv_file___etc_default_login_ = yes; then
34445   external_path_file=/etc/default/login
34446fi
34447
34448	if test "x$external_path_file" = "x/etc/default/login"; then
34449
34450cat >>confdefs.h <<\_ACEOF
34451#define HAVE_ETC_DEFAULT_LOGIN 1
34452_ACEOF
34453
34454	fi
34455fi
34456
34457if test $ac_cv_func_login_getcapbool = "yes" && \
34458	test $ac_cv_header_login_cap_h = "yes" ; then
34459	external_path_file=/etc/login.conf
34460fi
34461
34462# Whether to mess with the default path
34463SERVER_PATH_MSG="(default)"
34464
34465# Check whether --with-default-path was given.
34466if test "${with_default_path+set}" = set; then
34467  withval=$with_default_path;
34468		if test "x$external_path_file" = "x/etc/login.conf" ; then
34469			{ echo "$as_me:$LINENO: WARNING:
34470--with-default-path=PATH has no effect on this system.
34471Edit /etc/login.conf instead." >&5
34472echo "$as_me: WARNING:
34473--with-default-path=PATH has no effect on this system.
34474Edit /etc/login.conf instead." >&2;}
34475		elif test "x$withval" != "xno" ; then
34476			if test ! -z "$external_path_file" ; then
34477				{ echo "$as_me:$LINENO: WARNING:
34478--with-default-path=PATH will only be used if PATH is not defined in
34479$external_path_file ." >&5
34480echo "$as_me: WARNING:
34481--with-default-path=PATH will only be used if PATH is not defined in
34482$external_path_file ." >&2;}
34483			fi
34484			user_path="$withval"
34485			SERVER_PATH_MSG="$withval"
34486		fi
34487
34488else
34489   if test "x$external_path_file" = "x/etc/login.conf" ; then
34490		{ echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
34491echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
34492	else
34493		if test ! -z "$external_path_file" ; then
34494			{ echo "$as_me:$LINENO: WARNING:
34495If PATH is defined in $external_path_file, ensure the path to scp is included,
34496otherwise scp will not work." >&5
34497echo "$as_me: WARNING:
34498If PATH is defined in $external_path_file, ensure the path to scp is included,
34499otherwise scp will not work." >&2;}
34500		fi
34501		if test "$cross_compiling" = yes; then
34502   user_path="/usr/bin:/bin:/usr/sbin:/sbin"
34503
34504else
34505  cat >conftest.$ac_ext <<_ACEOF
34506/* confdefs.h.  */
34507_ACEOF
34508cat confdefs.h >>conftest.$ac_ext
34509cat >>conftest.$ac_ext <<_ACEOF
34510/* end confdefs.h.  */
34511
34512/* find out what STDPATH is */
34513#include <stdio.h>
34514#ifdef HAVE_PATHS_H
34515# include <paths.h>
34516#endif
34517#ifndef _PATH_STDPATH
34518# ifdef _PATH_USERPATH	/* Irix */
34519#  define _PATH_STDPATH _PATH_USERPATH
34520# else
34521#  define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
34522# endif
34523#endif
34524#include <sys/types.h>
34525#include <sys/stat.h>
34526#include <fcntl.h>
34527#define DATA "conftest.stdpath"
34528
34529int
34530main ()
34531{
34532
34533	FILE *fd;
34534	int rc;
34535
34536	fd = fopen(DATA,"w");
34537	if(fd == NULL)
34538		exit(1);
34539
34540	if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
34541		exit(1);
34542
34543	exit(0);
34544
34545  ;
34546  return 0;
34547}
34548_ACEOF
34549rm -f conftest$ac_exeext
34550if { (ac_try="$ac_link"
34551case "(($ac_try" in
34552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34553  *) ac_try_echo=$ac_try;;
34554esac
34555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34556  (eval "$ac_link") 2>&5
34557  ac_status=$?
34558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34560  { (case "(($ac_try" in
34561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34562  *) ac_try_echo=$ac_try;;
34563esac
34564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34565  (eval "$ac_try") 2>&5
34566  ac_status=$?
34567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568  (exit $ac_status); }; }; then
34569   user_path=`cat conftest.stdpath`
34570else
34571  echo "$as_me: program exited with status $ac_status" >&5
34572echo "$as_me: failed program was:" >&5
34573sed 's/^/| /' conftest.$ac_ext >&5
34574
34575( exit $ac_status )
34576 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
34577fi
34578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34579fi
34580
34581
34582# make sure $bindir is in USER_PATH so scp will work
34583		t_bindir="${bindir}"
34584		while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
34585			t_bindir=`eval echo ${t_bindir}`
34586			case $t_bindir in
34587				NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
34588			esac
34589			case $t_bindir in
34590				NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
34591			esac
34592		done
34593		echo $user_path | grep ":$t_bindir"  > /dev/null 2>&1
34594		if test $? -ne 0  ; then
34595			echo $user_path | grep "^$t_bindir"  > /dev/null 2>&1
34596			if test $? -ne 0  ; then
34597				user_path=$user_path:$t_bindir
34598				{ echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
34599echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
34600			fi
34601		fi
34602	fi
34603
34604fi
34605
34606if test "x$external_path_file" != "x/etc/login.conf" ; then
34607
34608cat >>confdefs.h <<_ACEOF
34609#define USER_PATH "$user_path"
34610_ACEOF
34611
34612
34613fi
34614
34615# Set superuser path separately to user path
34616
34617# Check whether --with-superuser-path was given.
34618if test "${with_superuser_path+set}" = set; then
34619  withval=$with_superuser_path;
34620		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
34621		    test "x${withval}" != "xyes"; then
34622
34623cat >>confdefs.h <<_ACEOF
34624#define SUPERUSER_PATH "$withval"
34625_ACEOF
34626
34627			superuser_path=$withval
34628		fi
34629
34630
34631fi
34632
34633
34634
34635{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
34636echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
34637IPV4_IN6_HACK_MSG="no"
34638
34639# Check whether --with-4in6 was given.
34640if test "${with_4in6+set}" = set; then
34641  withval=$with_4in6;
34642		if test "x$withval" != "xno" ; then
34643			{ echo "$as_me:$LINENO: result: yes" >&5
34644echo "${ECHO_T}yes" >&6; }
34645
34646cat >>confdefs.h <<\_ACEOF
34647#define IPV4_IN_IPV6 1
34648_ACEOF
34649
34650			IPV4_IN6_HACK_MSG="yes"
34651		else
34652			{ echo "$as_me:$LINENO: result: no" >&5
34653echo "${ECHO_T}no" >&6; }
34654		fi
34655
34656else
34657
34658		if test "x$inet6_default_4in6" = "xyes"; then
34659			{ echo "$as_me:$LINENO: result: yes (default)" >&5
34660echo "${ECHO_T}yes (default)" >&6; }
34661			cat >>confdefs.h <<\_ACEOF
34662#define IPV4_IN_IPV6 1
34663_ACEOF
34664
34665			IPV4_IN6_HACK_MSG="yes"
34666		else
34667			{ echo "$as_me:$LINENO: result: no (default)" >&5
34668echo "${ECHO_T}no (default)" >&6; }
34669		fi
34670
34671
34672fi
34673
34674
34675# Whether to enable BSD auth support
34676BSD_AUTH_MSG=no
34677
34678# Check whether --with-bsd-auth was given.
34679if test "${with_bsd_auth+set}" = set; then
34680  withval=$with_bsd_auth;
34681		if test "x$withval" != "xno" ; then
34682
34683cat >>confdefs.h <<\_ACEOF
34684#define BSD_AUTH 1
34685_ACEOF
34686
34687			BSD_AUTH_MSG=yes
34688		fi
34689
34690
34691fi
34692
34693
34694# Where to place sshd.pid
34695piddir=/var/run
34696# make sure the directory exists
34697if test ! -d $piddir ; then
34698	piddir=`eval echo ${sysconfdir}`
34699	case $piddir in
34700		NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
34701	esac
34702fi
34703
34704
34705# Check whether --with-pid-dir was given.
34706if test "${with_pid_dir+set}" = set; then
34707  withval=$with_pid_dir;
34708		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
34709		    test "x${withval}" != "xyes"; then
34710			piddir=$withval
34711			if test ! -d $piddir ; then
34712			{ echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
34713echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
34714			fi
34715		fi
34716
34717
34718fi
34719
34720
34721
34722cat >>confdefs.h <<_ACEOF
34723#define _PATH_SSH_PIDDIR "$piddir"
34724_ACEOF
34725
34726
34727
34728# Check whether --enable-lastlog was given.
34729if test "${enable_lastlog+set}" = set; then
34730  enableval=$enable_lastlog;
34731		if test "x$enableval" = "xno" ; then
34732			cat >>confdefs.h <<\_ACEOF
34733#define DISABLE_LASTLOG 1
34734_ACEOF
34735
34736		fi
34737
34738
34739fi
34740
34741# Check whether --enable-utmp was given.
34742if test "${enable_utmp+set}" = set; then
34743  enableval=$enable_utmp;
34744		if test "x$enableval" = "xno" ; then
34745			cat >>confdefs.h <<\_ACEOF
34746#define DISABLE_UTMP 1
34747_ACEOF
34748
34749		fi
34750
34751
34752fi
34753
34754# Check whether --enable-utmpx was given.
34755if test "${enable_utmpx+set}" = set; then
34756  enableval=$enable_utmpx;
34757		if test "x$enableval" = "xno" ; then
34758
34759cat >>confdefs.h <<\_ACEOF
34760#define DISABLE_UTMPX 1
34761_ACEOF
34762
34763		fi
34764
34765
34766fi
34767
34768# Check whether --enable-wtmp was given.
34769if test "${enable_wtmp+set}" = set; then
34770  enableval=$enable_wtmp;
34771		if test "x$enableval" = "xno" ; then
34772			cat >>confdefs.h <<\_ACEOF
34773#define DISABLE_WTMP 1
34774_ACEOF
34775
34776		fi
34777
34778
34779fi
34780
34781# Check whether --enable-wtmpx was given.
34782if test "${enable_wtmpx+set}" = set; then
34783  enableval=$enable_wtmpx;
34784		if test "x$enableval" = "xno" ; then
34785
34786cat >>confdefs.h <<\_ACEOF
34787#define DISABLE_WTMPX 1
34788_ACEOF
34789
34790		fi
34791
34792
34793fi
34794
34795# Check whether --enable-libutil was given.
34796if test "${enable_libutil+set}" = set; then
34797  enableval=$enable_libutil;
34798		if test "x$enableval" = "xno" ; then
34799			cat >>confdefs.h <<\_ACEOF
34800#define DISABLE_LOGIN 1
34801_ACEOF
34802
34803		fi
34804
34805
34806fi
34807
34808# Check whether --enable-pututline was given.
34809if test "${enable_pututline+set}" = set; then
34810  enableval=$enable_pututline;
34811		if test "x$enableval" = "xno" ; then
34812
34813cat >>confdefs.h <<\_ACEOF
34814#define DISABLE_PUTUTLINE 1
34815_ACEOF
34816
34817		fi
34818
34819
34820fi
34821
34822# Check whether --enable-pututxline was given.
34823if test "${enable_pututxline+set}" = set; then
34824  enableval=$enable_pututxline;
34825		if test "x$enableval" = "xno" ; then
34826
34827cat >>confdefs.h <<\_ACEOF
34828#define DISABLE_PUTUTXLINE 1
34829_ACEOF
34830
34831		fi
34832
34833
34834fi
34835
34836
34837# Check whether --with-lastlog was given.
34838if test "${with_lastlog+set}" = set; then
34839  withval=$with_lastlog;
34840		if test "x$withval" = "xno" ; then
34841			cat >>confdefs.h <<\_ACEOF
34842#define DISABLE_LASTLOG 1
34843_ACEOF
34844
34845		elif test -n "$withval"  &&  test "x${withval}" != "xyes"; then
34846			conf_lastlog_location=$withval
34847		fi
34848
34849
34850fi
34851
34852
34853
34854{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
34855echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
34856cat >conftest.$ac_ext <<_ACEOF
34857/* confdefs.h.  */
34858_ACEOF
34859cat confdefs.h >>conftest.$ac_ext
34860cat >>conftest.$ac_ext <<_ACEOF
34861/* end confdefs.h.  */
34862
34863#include <sys/types.h>
34864#include <utmp.h>
34865#ifdef HAVE_LASTLOG_H
34866#  include <lastlog.h>
34867#endif
34868#ifdef HAVE_PATHS_H
34869#  include <paths.h>
34870#endif
34871#ifdef HAVE_LOGIN_H
34872# include <login.h>
34873#endif
34874
34875int
34876main ()
34877{
34878 char *lastlog = LASTLOG_FILE;
34879  ;
34880  return 0;
34881}
34882_ACEOF
34883rm -f conftest.$ac_objext
34884if { (ac_try="$ac_compile"
34885case "(($ac_try" in
34886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34887  *) ac_try_echo=$ac_try;;
34888esac
34889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34890  (eval "$ac_compile") 2>conftest.er1
34891  ac_status=$?
34892  grep -v '^ *+' conftest.er1 >conftest.err
34893  rm -f conftest.er1
34894  cat conftest.err >&5
34895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896  (exit $ac_status); } && {
34897	 test -z "$ac_c_werror_flag" ||
34898	 test ! -s conftest.err
34899       } && test -s conftest.$ac_objext; then
34900   { echo "$as_me:$LINENO: result: yes" >&5
34901echo "${ECHO_T}yes" >&6; }
34902else
34903  echo "$as_me: failed program was:" >&5
34904sed 's/^/| /' conftest.$ac_ext >&5
34905
34906
34907		{ echo "$as_me:$LINENO: result: no" >&5
34908echo "${ECHO_T}no" >&6; }
34909		{ echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
34910echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
34911		cat >conftest.$ac_ext <<_ACEOF
34912/* confdefs.h.  */
34913_ACEOF
34914cat confdefs.h >>conftest.$ac_ext
34915cat >>conftest.$ac_ext <<_ACEOF
34916/* end confdefs.h.  */
34917
34918#include <sys/types.h>
34919#include <utmp.h>
34920#ifdef HAVE_LASTLOG_H
34921#  include <lastlog.h>
34922#endif
34923#ifdef HAVE_PATHS_H
34924#  include <paths.h>
34925#endif
34926
34927int
34928main ()
34929{
34930 char *lastlog = _PATH_LASTLOG;
34931  ;
34932  return 0;
34933}
34934_ACEOF
34935rm -f conftest.$ac_objext
34936if { (ac_try="$ac_compile"
34937case "(($ac_try" in
34938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939  *) ac_try_echo=$ac_try;;
34940esac
34941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34942  (eval "$ac_compile") 2>conftest.er1
34943  ac_status=$?
34944  grep -v '^ *+' conftest.er1 >conftest.err
34945  rm -f conftest.er1
34946  cat conftest.err >&5
34947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948  (exit $ac_status); } && {
34949	 test -z "$ac_c_werror_flag" ||
34950	 test ! -s conftest.err
34951       } && test -s conftest.$ac_objext; then
34952   { echo "$as_me:$LINENO: result: yes" >&5
34953echo "${ECHO_T}yes" >&6; }
34954else
34955  echo "$as_me: failed program was:" >&5
34956sed 's/^/| /' conftest.$ac_ext >&5
34957
34958
34959			{ echo "$as_me:$LINENO: result: no" >&5
34960echo "${ECHO_T}no" >&6; }
34961			system_lastlog_path=no
34962
34963fi
34964
34965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34966
34967fi
34968
34969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34970
34971if test -z "$conf_lastlog_location"; then
34972	if test x"$system_lastlog_path" = x"no" ; then
34973		for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
34974				if (test -d "$f" || test -f "$f") ; then
34975					conf_lastlog_location=$f
34976				fi
34977		done
34978		if test -z "$conf_lastlog_location"; then
34979			{ echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
34980echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
34981					fi
34982	fi
34983fi
34984
34985if test -n "$conf_lastlog_location"; then
34986
34987cat >>confdefs.h <<_ACEOF
34988#define CONF_LASTLOG_FILE "$conf_lastlog_location"
34989_ACEOF
34990
34991fi
34992
34993{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
34994echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
34995cat >conftest.$ac_ext <<_ACEOF
34996/* confdefs.h.  */
34997_ACEOF
34998cat confdefs.h >>conftest.$ac_ext
34999cat >>conftest.$ac_ext <<_ACEOF
35000/* end confdefs.h.  */
35001
35002#include <sys/types.h>
35003#include <utmp.h>
35004#ifdef HAVE_PATHS_H
35005#  include <paths.h>
35006#endif
35007
35008int
35009main ()
35010{
35011 char *utmp = UTMP_FILE;
35012  ;
35013  return 0;
35014}
35015_ACEOF
35016rm -f conftest.$ac_objext
35017if { (ac_try="$ac_compile"
35018case "(($ac_try" in
35019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35020  *) ac_try_echo=$ac_try;;
35021esac
35022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35023  (eval "$ac_compile") 2>conftest.er1
35024  ac_status=$?
35025  grep -v '^ *+' conftest.er1 >conftest.err
35026  rm -f conftest.er1
35027  cat conftest.err >&5
35028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35029  (exit $ac_status); } && {
35030	 test -z "$ac_c_werror_flag" ||
35031	 test ! -s conftest.err
35032       } && test -s conftest.$ac_objext; then
35033   { echo "$as_me:$LINENO: result: yes" >&5
35034echo "${ECHO_T}yes" >&6; }
35035else
35036  echo "$as_me: failed program was:" >&5
35037sed 's/^/| /' conftest.$ac_ext >&5
35038
35039	 { echo "$as_me:$LINENO: result: no" >&5
35040echo "${ECHO_T}no" >&6; }
35041	  system_utmp_path=no
35042
35043fi
35044
35045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35046if test -z "$conf_utmp_location"; then
35047	if test x"$system_utmp_path" = x"no" ; then
35048		for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
35049			if test -f $f ; then
35050				conf_utmp_location=$f
35051			fi
35052		done
35053		if test -z "$conf_utmp_location"; then
35054			cat >>confdefs.h <<\_ACEOF
35055#define DISABLE_UTMP 1
35056_ACEOF
35057
35058		fi
35059	fi
35060fi
35061if test -n "$conf_utmp_location"; then
35062
35063cat >>confdefs.h <<_ACEOF
35064#define CONF_UTMP_FILE "$conf_utmp_location"
35065_ACEOF
35066
35067fi
35068
35069{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
35070echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
35071cat >conftest.$ac_ext <<_ACEOF
35072/* confdefs.h.  */
35073_ACEOF
35074cat confdefs.h >>conftest.$ac_ext
35075cat >>conftest.$ac_ext <<_ACEOF
35076/* end confdefs.h.  */
35077
35078#include <sys/types.h>
35079#include <utmp.h>
35080#ifdef HAVE_PATHS_H
35081#  include <paths.h>
35082#endif
35083
35084int
35085main ()
35086{
35087 char *wtmp = WTMP_FILE;
35088  ;
35089  return 0;
35090}
35091_ACEOF
35092rm -f conftest.$ac_objext
35093if { (ac_try="$ac_compile"
35094case "(($ac_try" in
35095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35096  *) ac_try_echo=$ac_try;;
35097esac
35098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35099  (eval "$ac_compile") 2>conftest.er1
35100  ac_status=$?
35101  grep -v '^ *+' conftest.er1 >conftest.err
35102  rm -f conftest.er1
35103  cat conftest.err >&5
35104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105  (exit $ac_status); } && {
35106	 test -z "$ac_c_werror_flag" ||
35107	 test ! -s conftest.err
35108       } && test -s conftest.$ac_objext; then
35109   { echo "$as_me:$LINENO: result: yes" >&5
35110echo "${ECHO_T}yes" >&6; }
35111else
35112  echo "$as_me: failed program was:" >&5
35113sed 's/^/| /' conftest.$ac_ext >&5
35114
35115	 { echo "$as_me:$LINENO: result: no" >&5
35116echo "${ECHO_T}no" >&6; }
35117	  system_wtmp_path=no
35118
35119fi
35120
35121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35122if test -z "$conf_wtmp_location"; then
35123	if test x"$system_wtmp_path" = x"no" ; then
35124		for f in /usr/adm/wtmp /var/log/wtmp; do
35125			if test -f $f ; then
35126				conf_wtmp_location=$f
35127			fi
35128		done
35129		if test -z "$conf_wtmp_location"; then
35130			cat >>confdefs.h <<\_ACEOF
35131#define DISABLE_WTMP 1
35132_ACEOF
35133
35134		fi
35135	fi
35136fi
35137if test -n "$conf_wtmp_location"; then
35138
35139cat >>confdefs.h <<_ACEOF
35140#define CONF_WTMP_FILE "$conf_wtmp_location"
35141_ACEOF
35142
35143fi
35144
35145{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
35146echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
35147cat >conftest.$ac_ext <<_ACEOF
35148/* confdefs.h.  */
35149_ACEOF
35150cat confdefs.h >>conftest.$ac_ext
35151cat >>conftest.$ac_ext <<_ACEOF
35152/* end confdefs.h.  */
35153
35154#include <sys/types.h>
35155#include <utmp.h>
35156#ifdef HAVE_UTMPX_H
35157#include <utmpx.h>
35158#endif
35159#ifdef HAVE_PATHS_H
35160#  include <paths.h>
35161#endif
35162
35163int
35164main ()
35165{
35166 char *wtmpx = WTMPX_FILE;
35167  ;
35168  return 0;
35169}
35170_ACEOF
35171rm -f conftest.$ac_objext
35172if { (ac_try="$ac_compile"
35173case "(($ac_try" in
35174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35175  *) ac_try_echo=$ac_try;;
35176esac
35177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35178  (eval "$ac_compile") 2>conftest.er1
35179  ac_status=$?
35180  grep -v '^ *+' conftest.er1 >conftest.err
35181  rm -f conftest.er1
35182  cat conftest.err >&5
35183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184  (exit $ac_status); } && {
35185	 test -z "$ac_c_werror_flag" ||
35186	 test ! -s conftest.err
35187       } && test -s conftest.$ac_objext; then
35188   { echo "$as_me:$LINENO: result: yes" >&5
35189echo "${ECHO_T}yes" >&6; }
35190else
35191  echo "$as_me: failed program was:" >&5
35192sed 's/^/| /' conftest.$ac_ext >&5
35193
35194	 { echo "$as_me:$LINENO: result: no" >&5
35195echo "${ECHO_T}no" >&6; }
35196	  system_wtmpx_path=no
35197
35198fi
35199
35200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35201if test -z "$conf_wtmpx_location"; then
35202	if test x"$system_wtmpx_path" = x"no" ; then
35203		cat >>confdefs.h <<\_ACEOF
35204#define DISABLE_WTMPX 1
35205_ACEOF
35206
35207	fi
35208else
35209
35210cat >>confdefs.h <<_ACEOF
35211#define CONF_WTMPX_FILE "$conf_wtmpx_location"
35212_ACEOF
35213
35214fi
35215
35216
35217if test ! -z "$blibpath" ; then
35218	LDFLAGS="$LDFLAGS $blibflags$blibpath"
35219	{ echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
35220echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
35221fi
35222
35223{ echo "$as_me:$LINENO: checking for struct lastlog.ll_line" >&5
35224echo $ECHO_N "checking for struct lastlog.ll_line... $ECHO_C" >&6; }
35225if test "${ac_cv_member_struct_lastlog_ll_line+set}" = set; then
35226  echo $ECHO_N "(cached) $ECHO_C" >&6
35227else
35228  cat >conftest.$ac_ext <<_ACEOF
35229/* confdefs.h.  */
35230_ACEOF
35231cat confdefs.h >>conftest.$ac_ext
35232cat >>conftest.$ac_ext <<_ACEOF
35233/* end confdefs.h.  */
35234
35235#ifdef HAVE_SYS_TYPES_H
35236#include <sys/types.h>
35237#endif
35238#ifdef HAVE_UTMP_H
35239#include <utmp.h>
35240#endif
35241#ifdef HAVE_UTMPX_H
35242#include <utmpx.h>
35243#endif
35244#ifdef HAVE_LASTLOG_H
35245#include <lastlog.h>
35246#endif
35247
35248
35249int
35250main ()
35251{
35252static struct lastlog ac_aggr;
35253if (ac_aggr.ll_line)
35254return 0;
35255  ;
35256  return 0;
35257}
35258_ACEOF
35259rm -f conftest.$ac_objext
35260if { (ac_try="$ac_compile"
35261case "(($ac_try" in
35262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35263  *) ac_try_echo=$ac_try;;
35264esac
35265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35266  (eval "$ac_compile") 2>conftest.er1
35267  ac_status=$?
35268  grep -v '^ *+' conftest.er1 >conftest.err
35269  rm -f conftest.er1
35270  cat conftest.err >&5
35271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272  (exit $ac_status); } && {
35273	 test -z "$ac_c_werror_flag" ||
35274	 test ! -s conftest.err
35275       } && test -s conftest.$ac_objext; then
35276  ac_cv_member_struct_lastlog_ll_line=yes
35277else
35278  echo "$as_me: failed program was:" >&5
35279sed 's/^/| /' conftest.$ac_ext >&5
35280
35281	cat >conftest.$ac_ext <<_ACEOF
35282/* confdefs.h.  */
35283_ACEOF
35284cat confdefs.h >>conftest.$ac_ext
35285cat >>conftest.$ac_ext <<_ACEOF
35286/* end confdefs.h.  */
35287
35288#ifdef HAVE_SYS_TYPES_H
35289#include <sys/types.h>
35290#endif
35291#ifdef HAVE_UTMP_H
35292#include <utmp.h>
35293#endif
35294#ifdef HAVE_UTMPX_H
35295#include <utmpx.h>
35296#endif
35297#ifdef HAVE_LASTLOG_H
35298#include <lastlog.h>
35299#endif
35300
35301
35302int
35303main ()
35304{
35305static struct lastlog ac_aggr;
35306if (sizeof ac_aggr.ll_line)
35307return 0;
35308  ;
35309  return 0;
35310}
35311_ACEOF
35312rm -f conftest.$ac_objext
35313if { (ac_try="$ac_compile"
35314case "(($ac_try" in
35315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35316  *) ac_try_echo=$ac_try;;
35317esac
35318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35319  (eval "$ac_compile") 2>conftest.er1
35320  ac_status=$?
35321  grep -v '^ *+' conftest.er1 >conftest.err
35322  rm -f conftest.er1
35323  cat conftest.err >&5
35324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325  (exit $ac_status); } && {
35326	 test -z "$ac_c_werror_flag" ||
35327	 test ! -s conftest.err
35328       } && test -s conftest.$ac_objext; then
35329  ac_cv_member_struct_lastlog_ll_line=yes
35330else
35331  echo "$as_me: failed program was:" >&5
35332sed 's/^/| /' conftest.$ac_ext >&5
35333
35334	ac_cv_member_struct_lastlog_ll_line=no
35335fi
35336
35337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35338fi
35339
35340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35341fi
35342{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_lastlog_ll_line" >&5
35343echo "${ECHO_T}$ac_cv_member_struct_lastlog_ll_line" >&6; }
35344if test $ac_cv_member_struct_lastlog_ll_line = yes; then
35345  :
35346else
35347
35348    if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
35349	cat >>confdefs.h <<\_ACEOF
35350#define DISABLE_LASTLOG 1
35351_ACEOF
35352
35353    fi
35354
35355fi
35356
35357
35358{ echo "$as_me:$LINENO: checking for struct utmp.ut_line" >&5
35359echo $ECHO_N "checking for struct utmp.ut_line... $ECHO_C" >&6; }
35360if test "${ac_cv_member_struct_utmp_ut_line+set}" = set; then
35361  echo $ECHO_N "(cached) $ECHO_C" >&6
35362else
35363  cat >conftest.$ac_ext <<_ACEOF
35364/* confdefs.h.  */
35365_ACEOF
35366cat confdefs.h >>conftest.$ac_ext
35367cat >>conftest.$ac_ext <<_ACEOF
35368/* end confdefs.h.  */
35369
35370#ifdef HAVE_SYS_TYPES_H
35371#include <sys/types.h>
35372#endif
35373#ifdef HAVE_UTMP_H
35374#include <utmp.h>
35375#endif
35376#ifdef HAVE_UTMPX_H
35377#include <utmpx.h>
35378#endif
35379#ifdef HAVE_LASTLOG_H
35380#include <lastlog.h>
35381#endif
35382
35383
35384int
35385main ()
35386{
35387static struct utmp ac_aggr;
35388if (ac_aggr.ut_line)
35389return 0;
35390  ;
35391  return 0;
35392}
35393_ACEOF
35394rm -f conftest.$ac_objext
35395if { (ac_try="$ac_compile"
35396case "(($ac_try" in
35397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35398  *) ac_try_echo=$ac_try;;
35399esac
35400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35401  (eval "$ac_compile") 2>conftest.er1
35402  ac_status=$?
35403  grep -v '^ *+' conftest.er1 >conftest.err
35404  rm -f conftest.er1
35405  cat conftest.err >&5
35406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407  (exit $ac_status); } && {
35408	 test -z "$ac_c_werror_flag" ||
35409	 test ! -s conftest.err
35410       } && test -s conftest.$ac_objext; then
35411  ac_cv_member_struct_utmp_ut_line=yes
35412else
35413  echo "$as_me: failed program was:" >&5
35414sed 's/^/| /' conftest.$ac_ext >&5
35415
35416	cat >conftest.$ac_ext <<_ACEOF
35417/* confdefs.h.  */
35418_ACEOF
35419cat confdefs.h >>conftest.$ac_ext
35420cat >>conftest.$ac_ext <<_ACEOF
35421/* end confdefs.h.  */
35422
35423#ifdef HAVE_SYS_TYPES_H
35424#include <sys/types.h>
35425#endif
35426#ifdef HAVE_UTMP_H
35427#include <utmp.h>
35428#endif
35429#ifdef HAVE_UTMPX_H
35430#include <utmpx.h>
35431#endif
35432#ifdef HAVE_LASTLOG_H
35433#include <lastlog.h>
35434#endif
35435
35436
35437int
35438main ()
35439{
35440static struct utmp ac_aggr;
35441if (sizeof ac_aggr.ut_line)
35442return 0;
35443  ;
35444  return 0;
35445}
35446_ACEOF
35447rm -f conftest.$ac_objext
35448if { (ac_try="$ac_compile"
35449case "(($ac_try" in
35450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35451  *) ac_try_echo=$ac_try;;
35452esac
35453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35454  (eval "$ac_compile") 2>conftest.er1
35455  ac_status=$?
35456  grep -v '^ *+' conftest.er1 >conftest.err
35457  rm -f conftest.er1
35458  cat conftest.err >&5
35459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460  (exit $ac_status); } && {
35461	 test -z "$ac_c_werror_flag" ||
35462	 test ! -s conftest.err
35463       } && test -s conftest.$ac_objext; then
35464  ac_cv_member_struct_utmp_ut_line=yes
35465else
35466  echo "$as_me: failed program was:" >&5
35467sed 's/^/| /' conftest.$ac_ext >&5
35468
35469	ac_cv_member_struct_utmp_ut_line=no
35470fi
35471
35472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35473fi
35474
35475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35476fi
35477{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_line" >&5
35478echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_line" >&6; }
35479if test $ac_cv_member_struct_utmp_ut_line = yes; then
35480  :
35481else
35482
35483	cat >>confdefs.h <<\_ACEOF
35484#define DISABLE_UTMP 1
35485_ACEOF
35486
35487	cat >>confdefs.h <<\_ACEOF
35488#define DISABLE_WTMP 1
35489_ACEOF
35490
35491
35492fi
35493
35494
35495CFLAGS="$CFLAGS $werror_flags"
35496
35497if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
35498	TEST_SSH_IPV6=no
35499else
35500	TEST_SSH_IPV6=yes
35501fi
35502{ echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
35503echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
35504if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
35505  echo $ECHO_N "(cached) $ECHO_C" >&6
35506else
35507  cat >conftest.$ac_ext <<_ACEOF
35508/* confdefs.h.  */
35509_ACEOF
35510cat confdefs.h >>conftest.$ac_ext
35511cat >>conftest.$ac_ext <<_ACEOF
35512/* end confdefs.h.  */
35513$ac_includes_default
35514int
35515main ()
35516{
35517#ifndef BROKEN_GETADDRINFO
35518  (void) BROKEN_GETADDRINFO;
35519#endif
35520
35521  ;
35522  return 0;
35523}
35524_ACEOF
35525rm -f conftest.$ac_objext
35526if { (ac_try="$ac_compile"
35527case "(($ac_try" in
35528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35529  *) ac_try_echo=$ac_try;;
35530esac
35531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35532  (eval "$ac_compile") 2>conftest.er1
35533  ac_status=$?
35534  grep -v '^ *+' conftest.er1 >conftest.err
35535  rm -f conftest.er1
35536  cat conftest.err >&5
35537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538  (exit $ac_status); } && {
35539	 test -z "$ac_c_werror_flag" ||
35540	 test ! -s conftest.err
35541       } && test -s conftest.$ac_objext; then
35542  ac_cv_have_decl_BROKEN_GETADDRINFO=yes
35543else
35544  echo "$as_me: failed program was:" >&5
35545sed 's/^/| /' conftest.$ac_ext >&5
35546
35547	ac_cv_have_decl_BROKEN_GETADDRINFO=no
35548fi
35549
35550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35551fi
35552{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
35553echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
35554if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
35555  TEST_SSH_IPV6=no
35556fi
35557
35558TEST_SSH_IPV6=$TEST_SSH_IPV6
35559
35560TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
35561
35562UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
35563
35564
35565
35566ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
35567
35568cat >confcache <<\_ACEOF
35569# This file is a shell script that caches the results of configure
35570# tests run on this system so they can be shared between configure
35571# scripts and configure runs, see configure's option --config-cache.
35572# It is not useful on other systems.  If it contains results you don't
35573# want to keep, you may remove or edit it.
35574#
35575# config.status only pays attention to the cache file if you give it
35576# the --recheck option to rerun configure.
35577#
35578# `ac_cv_env_foo' variables (set or unset) will be overridden when
35579# loading this file, other *unset* `ac_cv_foo' will be assigned the
35580# following values.
35581
35582_ACEOF
35583
35584# The following way of writing the cache mishandles newlines in values,
35585# but we know of no workaround that is simple, portable, and efficient.
35586# So, we kill variables containing newlines.
35587# Ultrix sh set writes to stderr and can't be redirected directly,
35588# and sets the high bit in the cache file unless we assign to the vars.
35589(
35590  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35591    eval ac_val=\$$ac_var
35592    case $ac_val in #(
35593    *${as_nl}*)
35594      case $ac_var in #(
35595      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35596echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35597      esac
35598      case $ac_var in #(
35599      _ | IFS | as_nl) ;; #(
35600      *) $as_unset $ac_var ;;
35601      esac ;;
35602    esac
35603  done
35604
35605  (set) 2>&1 |
35606    case $as_nl`(ac_space=' '; set) 2>&1` in #(
35607    *${as_nl}ac_space=\ *)
35608      # `set' does not quote correctly, so add quotes (double-quote
35609      # substitution turns \\\\ into \\, and sed turns \\ into \).
35610      sed -n \
35611	"s/'/'\\\\''/g;
35612	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35613      ;; #(
35614    *)
35615      # `set' quotes correctly as required by POSIX, so do not add quotes.
35616      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35617      ;;
35618    esac |
35619    sort
35620) |
35621  sed '
35622     /^ac_cv_env_/b end
35623     t clear
35624     :clear
35625     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35626     t end
35627     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35628     :end' >>confcache
35629if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35630  if test -w "$cache_file"; then
35631    test "x$cache_file" != "x/dev/null" &&
35632      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35633echo "$as_me: updating cache $cache_file" >&6;}
35634    cat confcache >$cache_file
35635  else
35636    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35637echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35638  fi
35639fi
35640rm -f confcache
35641
35642test "x$prefix" = xNONE && prefix=$ac_default_prefix
35643# Let make expand exec_prefix.
35644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35645
35646DEFS=-DHAVE_CONFIG_H
35647
35648ac_libobjs=
35649ac_ltlibobjs=
35650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35651  # 1. Remove the extension, and $U if already installed.
35652  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35653  ac_i=`echo "$ac_i" | sed "$ac_script"`
35654  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35655  #    will be set to the directory where LIBOBJS objects are built.
35656  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35657  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35658done
35659LIBOBJS=$ac_libobjs
35660
35661LTLIBOBJS=$ac_ltlibobjs
35662
35663
35664
35665: ${CONFIG_STATUS=./config.status}
35666ac_clean_files_save=$ac_clean_files
35667ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35668{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35669echo "$as_me: creating $CONFIG_STATUS" >&6;}
35670cat >$CONFIG_STATUS <<_ACEOF
35671#! $SHELL
35672# Generated by $as_me.
35673# Run this file to recreate the current configuration.
35674# Compiler output produced by configure, useful for debugging
35675# configure, is in config.log if it exists.
35676
35677debug=false
35678ac_cs_recheck=false
35679ac_cs_silent=false
35680SHELL=\${CONFIG_SHELL-$SHELL}
35681_ACEOF
35682
35683cat >>$CONFIG_STATUS <<\_ACEOF
35684## --------------------- ##
35685## M4sh Initialization.  ##
35686## --------------------- ##
35687
35688# Be more Bourne compatible
35689DUALCASE=1; export DUALCASE # for MKS sh
35690if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35691  emulate sh
35692  NULLCMD=:
35693  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35694  # is contrary to our usage.  Disable this feature.
35695  alias -g '${1+"$@"}'='"$@"'
35696  setopt NO_GLOB_SUBST
35697else
35698  case `(set -o) 2>/dev/null` in
35699  *posix*) set -o posix ;;
35700esac
35701
35702fi
35703
35704
35705
35706
35707# PATH needs CR
35708# Avoid depending upon Character Ranges.
35709as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35710as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35711as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35712as_cr_digits='0123456789'
35713as_cr_alnum=$as_cr_Letters$as_cr_digits
35714
35715# The user is always right.
35716if test "${PATH_SEPARATOR+set}" != set; then
35717  echo "#! /bin/sh" >conf$$.sh
35718  echo  "exit 0"   >>conf$$.sh
35719  chmod +x conf$$.sh
35720  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35721    PATH_SEPARATOR=';'
35722  else
35723    PATH_SEPARATOR=:
35724  fi
35725  rm -f conf$$.sh
35726fi
35727
35728# Support unset when possible.
35729if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35730  as_unset=unset
35731else
35732  as_unset=false
35733fi
35734
35735
35736# IFS
35737# We need space, tab and new line, in precisely that order.  Quoting is
35738# there to prevent editors from complaining about space-tab.
35739# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35740# splitting by setting IFS to empty value.)
35741as_nl='
35742'
35743IFS=" ""	$as_nl"
35744
35745# Find who we are.  Look in the path if we contain no directory separator.
35746case $0 in
35747  *[\\/]* ) as_myself=$0 ;;
35748  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35749for as_dir in $PATH
35750do
35751  IFS=$as_save_IFS
35752  test -z "$as_dir" && as_dir=.
35753  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35754done
35755IFS=$as_save_IFS
35756
35757     ;;
35758esac
35759# We did not find ourselves, most probably we were run as `sh COMMAND'
35760# in which case we are not to be found in the path.
35761if test "x$as_myself" = x; then
35762  as_myself=$0
35763fi
35764if test ! -f "$as_myself"; then
35765  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35766  { (exit 1); exit 1; }
35767fi
35768
35769# Work around bugs in pre-3.0 UWIN ksh.
35770for as_var in ENV MAIL MAILPATH
35771do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35772done
35773PS1='$ '
35774PS2='> '
35775PS4='+ '
35776
35777# NLS nuisances.
35778for as_var in \
35779  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35780  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35781  LC_TELEPHONE LC_TIME
35782do
35783  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35784    eval $as_var=C; export $as_var
35785  else
35786    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35787  fi
35788done
35789
35790# Required to use basename.
35791if expr a : '\(a\)' >/dev/null 2>&1 &&
35792   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35793  as_expr=expr
35794else
35795  as_expr=false
35796fi
35797
35798if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35799  as_basename=basename
35800else
35801  as_basename=false
35802fi
35803
35804
35805# Name of the executable.
35806as_me=`$as_basename -- "$0" ||
35807$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35808	 X"$0" : 'X\(//\)$' \| \
35809	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35810echo X/"$0" |
35811    sed '/^.*\/\([^/][^/]*\)\/*$/{
35812	    s//\1/
35813	    q
35814	  }
35815	  /^X\/\(\/\/\)$/{
35816	    s//\1/
35817	    q
35818	  }
35819	  /^X\/\(\/\).*/{
35820	    s//\1/
35821	    q
35822	  }
35823	  s/.*/./; q'`
35824
35825# CDPATH.
35826$as_unset CDPATH
35827
35828
35829
35830  as_lineno_1=$LINENO
35831  as_lineno_2=$LINENO
35832  test "x$as_lineno_1" != "x$as_lineno_2" &&
35833  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35834
35835  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35836  # uniformly replaced by the line number.  The first 'sed' inserts a
35837  # line-number line after each line using $LINENO; the second 'sed'
35838  # does the real work.  The second script uses 'N' to pair each
35839  # line-number line with the line containing $LINENO, and appends
35840  # trailing '-' during substitution so that $LINENO is not a special
35841  # case at line end.
35842  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35843  # scripts with optimization help from Paolo Bonzini.  Blame Lee
35844  # E. McMahon (1931-1989) for sed's syntax.  :-)
35845  sed -n '
35846    p
35847    /[$]LINENO/=
35848  ' <$as_myself |
35849    sed '
35850      s/[$]LINENO.*/&-/
35851      t lineno
35852      b
35853      :lineno
35854      N
35855      :loop
35856      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35857      t loop
35858      s/-\n.*//
35859    ' >$as_me.lineno &&
35860  chmod +x "$as_me.lineno" ||
35861    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35862   { (exit 1); exit 1; }; }
35863
35864  # Don't try to exec as it changes $[0], causing all sort of problems
35865  # (the dirname of $[0] is not the place where we might find the
35866  # original and so on.  Autoconf is especially sensitive to this).
35867  . "./$as_me.lineno"
35868  # Exit status is that of the last command.
35869  exit
35870}
35871
35872
35873if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35874  as_dirname=dirname
35875else
35876  as_dirname=false
35877fi
35878
35879ECHO_C= ECHO_N= ECHO_T=
35880case `echo -n x` in
35881-n*)
35882  case `echo 'x\c'` in
35883  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
35884  *)   ECHO_C='\c';;
35885  esac;;
35886*)
35887  ECHO_N='-n';;
35888esac
35889
35890if expr a : '\(a\)' >/dev/null 2>&1 &&
35891   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35892  as_expr=expr
35893else
35894  as_expr=false
35895fi
35896
35897rm -f conf$$ conf$$.exe conf$$.file
35898if test -d conf$$.dir; then
35899  rm -f conf$$.dir/conf$$.file
35900else
35901  rm -f conf$$.dir
35902  mkdir conf$$.dir
35903fi
35904echo >conf$$.file
35905if ln -s conf$$.file conf$$ 2>/dev/null; then
35906  as_ln_s='ln -s'
35907  # ... but there are two gotchas:
35908  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35909  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35910  # In both cases, we have to default to `cp -p'.
35911  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35912    as_ln_s='cp -p'
35913elif ln conf$$.file conf$$ 2>/dev/null; then
35914  as_ln_s=ln
35915else
35916  as_ln_s='cp -p'
35917fi
35918rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35919rmdir conf$$.dir 2>/dev/null
35920
35921if mkdir -p . 2>/dev/null; then
35922  as_mkdir_p=:
35923else
35924  test -d ./-p && rmdir ./-p
35925  as_mkdir_p=false
35926fi
35927
35928if test -x / >/dev/null 2>&1; then
35929  as_test_x='test -x'
35930else
35931  if ls -dL / >/dev/null 2>&1; then
35932    as_ls_L_option=L
35933  else
35934    as_ls_L_option=
35935  fi
35936  as_test_x='
35937    eval sh -c '\''
35938      if test -d "$1"; then
35939        test -d "$1/.";
35940      else
35941	case $1 in
35942        -*)set "./$1";;
35943	esac;
35944	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35945	???[sx]*):;;*)false;;esac;fi
35946    '\'' sh
35947  '
35948fi
35949as_executable_p=$as_test_x
35950
35951# Sed expression to map a string onto a valid CPP name.
35952as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35953
35954# Sed expression to map a string onto a valid variable name.
35955as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35956
35957
35958exec 6>&1
35959
35960# Save the log message, to keep $[0] and so on meaningful, and to
35961# report actual input values of CONFIG_FILES etc. instead of their
35962# values after options handling.
35963ac_log="
35964This file was extended by OpenSSH $as_me Portable, which was
35965generated by GNU Autoconf 2.61.  Invocation command line was
35966
35967  CONFIG_FILES    = $CONFIG_FILES
35968  CONFIG_HEADERS  = $CONFIG_HEADERS
35969  CONFIG_LINKS    = $CONFIG_LINKS
35970  CONFIG_COMMANDS = $CONFIG_COMMANDS
35971  $ $0 $@
35972
35973on `(hostname || uname -n) 2>/dev/null | sed 1q`
35974"
35975
35976_ACEOF
35977
35978cat >>$CONFIG_STATUS <<_ACEOF
35979# Files that config.status was made for.
35980config_files="$ac_config_files"
35981config_headers="$ac_config_headers"
35982
35983_ACEOF
35984
35985cat >>$CONFIG_STATUS <<\_ACEOF
35986ac_cs_usage="\
35987\`$as_me' instantiates files from templates according to the
35988current configuration.
35989
35990Usage: $0 [OPTIONS] [FILE]...
35991
35992  -h, --help       print this help, then exit
35993  -V, --version    print version number and configuration settings, then exit
35994  -q, --quiet      do not print progress messages
35995  -d, --debug      don't remove temporary files
35996      --recheck    update $as_me by reconfiguring in the same conditions
35997  --file=FILE[:TEMPLATE]
35998		   instantiate the configuration file FILE
35999  --header=FILE[:TEMPLATE]
36000		   instantiate the configuration header FILE
36001
36002Configuration files:
36003$config_files
36004
36005Configuration headers:
36006$config_headers
36007
36008Report bugs to <bug-autoconf@gnu.org>."
36009
36010_ACEOF
36011cat >>$CONFIG_STATUS <<_ACEOF
36012ac_cs_version="\\
36013OpenSSH config.status Portable
36014configured by $0, generated by GNU Autoconf 2.61,
36015  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
36016
36017Copyright (C) 2006 Free Software Foundation, Inc.
36018This config.status script is free software; the Free Software Foundation
36019gives unlimited permission to copy, distribute and modify it."
36020
36021ac_pwd='$ac_pwd'
36022srcdir='$srcdir'
36023INSTALL='$INSTALL'
36024_ACEOF
36025
36026cat >>$CONFIG_STATUS <<\_ACEOF
36027# If no file are specified by the user, then we need to provide default
36028# value.  By we need to know if files were specified by the user.
36029ac_need_defaults=:
36030while test $# != 0
36031do
36032  case $1 in
36033  --*=*)
36034    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36035    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36036    ac_shift=:
36037    ;;
36038  *)
36039    ac_option=$1
36040    ac_optarg=$2
36041    ac_shift=shift
36042    ;;
36043  esac
36044
36045  case $ac_option in
36046  # Handling of the options.
36047  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36048    ac_cs_recheck=: ;;
36049  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36050    echo "$ac_cs_version"; exit ;;
36051  --debug | --debu | --deb | --de | --d | -d )
36052    debug=: ;;
36053  --file | --fil | --fi | --f )
36054    $ac_shift
36055    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36056    ac_need_defaults=false;;
36057  --header | --heade | --head | --hea )
36058    $ac_shift
36059    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36060    ac_need_defaults=false;;
36061  --he | --h)
36062    # Conflict between --help and --header
36063    { echo "$as_me: error: ambiguous option: $1
36064Try \`$0 --help' for more information." >&2
36065   { (exit 1); exit 1; }; };;
36066  --help | --hel | -h )
36067    echo "$ac_cs_usage"; exit ;;
36068  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36069  | -silent | --silent | --silen | --sile | --sil | --si | --s)
36070    ac_cs_silent=: ;;
36071
36072  # This is an error.
36073  -*) { echo "$as_me: error: unrecognized option: $1
36074Try \`$0 --help' for more information." >&2
36075   { (exit 1); exit 1; }; } ;;
36076
36077  *) ac_config_targets="$ac_config_targets $1"
36078     ac_need_defaults=false ;;
36079
36080  esac
36081  shift
36082done
36083
36084ac_configure_extra_args=
36085
36086if $ac_cs_silent; then
36087  exec 6>/dev/null
36088  ac_configure_extra_args="$ac_configure_extra_args --silent"
36089fi
36090
36091_ACEOF
36092cat >>$CONFIG_STATUS <<_ACEOF
36093if \$ac_cs_recheck; then
36094  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36095  CONFIG_SHELL=$SHELL
36096  export CONFIG_SHELL
36097  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36098fi
36099
36100_ACEOF
36101cat >>$CONFIG_STATUS <<\_ACEOF
36102exec 5>>config.log
36103{
36104  echo
36105  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36106## Running $as_me. ##
36107_ASBOX
36108  echo "$ac_log"
36109} >&5
36110
36111_ACEOF
36112cat >>$CONFIG_STATUS <<_ACEOF
36113_ACEOF
36114
36115cat >>$CONFIG_STATUS <<\_ACEOF
36116
36117# Handling of arguments.
36118for ac_config_target in $ac_config_targets
36119do
36120  case $ac_config_target in
36121    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
36122    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36123    "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
36124    "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
36125    "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
36126    "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
36127    "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
36128    "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
36129
36130  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36131echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36132   { (exit 1); exit 1; }; };;
36133  esac
36134done
36135
36136
36137# If the user did not use the arguments to specify the items to instantiate,
36138# then the envvar interface is used.  Set only those that are not.
36139# We use the long form for the default assignment because of an extremely
36140# bizarre bug on SunOS 4.1.3.
36141if $ac_need_defaults; then
36142  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36143  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36144fi
36145
36146# Have a temporary directory for convenience.  Make it in the build tree
36147# simply because there is no reason against having it here, and in addition,
36148# creating and moving files from /tmp can sometimes cause problems.
36149# Hook for its removal unless debugging.
36150# Note that there is a small window in which the directory will not be cleaned:
36151# after its creation but before its name has been assigned to `$tmp'.
36152$debug ||
36153{
36154  tmp=
36155  trap 'exit_status=$?
36156  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36157' 0
36158  trap '{ (exit 1); exit 1; }' 1 2 13 15
36159}
36160# Create a (secure) tmp directory for tmp files.
36161
36162{
36163  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36164  test -n "$tmp" && test -d "$tmp"
36165}  ||
36166{
36167  tmp=./conf$$-$RANDOM
36168  (umask 077 && mkdir "$tmp")
36169} ||
36170{
36171   echo "$me: cannot create a temporary directory in ." >&2
36172   { (exit 1); exit 1; }
36173}
36174
36175#
36176# Set up the sed scripts for CONFIG_FILES section.
36177#
36178
36179# No need to generate the scripts if there are no CONFIG_FILES.
36180# This happens for instance when ./config.status config.h
36181if test -n "$CONFIG_FILES"; then
36182
36183_ACEOF
36184
36185
36186
36187ac_delim='%!_!# '
36188for ac_last_try in false false false false false :; do
36189  cat >conf$$subs.sed <<_ACEOF
36190SHELL!$SHELL$ac_delim
36191PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36192PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36193PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36194PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36195PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36196PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36197exec_prefix!$exec_prefix$ac_delim
36198prefix!$prefix$ac_delim
36199program_transform_name!$program_transform_name$ac_delim
36200bindir!$bindir$ac_delim
36201sbindir!$sbindir$ac_delim
36202libexecdir!$libexecdir$ac_delim
36203datarootdir!$datarootdir$ac_delim
36204datadir!$datadir$ac_delim
36205sysconfdir!$sysconfdir$ac_delim
36206sharedstatedir!$sharedstatedir$ac_delim
36207localstatedir!$localstatedir$ac_delim
36208includedir!$includedir$ac_delim
36209oldincludedir!$oldincludedir$ac_delim
36210docdir!$docdir$ac_delim
36211infodir!$infodir$ac_delim
36212htmldir!$htmldir$ac_delim
36213dvidir!$dvidir$ac_delim
36214pdfdir!$pdfdir$ac_delim
36215psdir!$psdir$ac_delim
36216libdir!$libdir$ac_delim
36217localedir!$localedir$ac_delim
36218mandir!$mandir$ac_delim
36219DEFS!$DEFS$ac_delim
36220ECHO_C!$ECHO_C$ac_delim
36221ECHO_N!$ECHO_N$ac_delim
36222ECHO_T!$ECHO_T$ac_delim
36223LIBS!$LIBS$ac_delim
36224build_alias!$build_alias$ac_delim
36225host_alias!$host_alias$ac_delim
36226target_alias!$target_alias$ac_delim
36227CC!$CC$ac_delim
36228CFLAGS!$CFLAGS$ac_delim
36229LDFLAGS!$LDFLAGS$ac_delim
36230CPPFLAGS!$CPPFLAGS$ac_delim
36231ac_ct_CC!$ac_ct_CC$ac_delim
36232EXEEXT!$EXEEXT$ac_delim
36233OBJEXT!$OBJEXT$ac_delim
36234build!$build$ac_delim
36235build_cpu!$build_cpu$ac_delim
36236build_vendor!$build_vendor$ac_delim
36237build_os!$build_os$ac_delim
36238host!$host$ac_delim
36239host_cpu!$host_cpu$ac_delim
36240host_vendor!$host_vendor$ac_delim
36241host_os!$host_os$ac_delim
36242CPP!$CPP$ac_delim
36243GREP!$GREP$ac_delim
36244EGREP!$EGREP$ac_delim
36245AWK!$AWK$ac_delim
36246RANLIB!$RANLIB$ac_delim
36247INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36248INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36249INSTALL_DATA!$INSTALL_DATA$ac_delim
36250AR!$AR$ac_delim
36251ac_ct_AR!$ac_ct_AR$ac_delim
36252CAT!$CAT$ac_delim
36253KILL!$KILL$ac_delim
36254PERL!$PERL$ac_delim
36255SED!$SED$ac_delim
36256ENT!$ENT$ac_delim
36257TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
36258SH!$SH$ac_delim
36259GROFF!$GROFF$ac_delim
36260NROFF!$NROFF$ac_delim
36261MANDOC!$MANDOC$ac_delim
36262TEST_SHELL!$TEST_SHELL$ac_delim
36263MANFMT!$MANFMT$ac_delim
36264PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
36265PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
36266MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
36267STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
36268LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
36269PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
36270LD!$LD$ac_delim
36271PKGCONFIG!$PKGCONFIG$ac_delim
36272LIBEDIT!$LIBEDIT$ac_delim
36273TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim
36274COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim
36275SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
36276SSHLIBS!$SSHLIBS$ac_delim
36277SSHDLIBS!$SSHDLIBS$ac_delim
36278KRB5CONF!$KRB5CONF$ac_delim
36279GSSLIBS!$GSSLIBS$ac_delim
36280K5LIBS!$K5LIBS$ac_delim
36281PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
36282xauth_path!$xauth_path$ac_delim
36283STRIP_OPT!$STRIP_OPT$ac_delim
36284XAUTH_PATH!$XAUTH_PATH$ac_delim
36285MANTYPE!$MANTYPE$ac_delim
36286mansubdir!$mansubdir$ac_delim
36287_ACEOF
36288
36289  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36290    break
36291  elif $ac_last_try; then
36292    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36293echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36294   { (exit 1); exit 1; }; }
36295  else
36296    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36297  fi
36298done
36299
36300ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36301if test -n "$ac_eof"; then
36302  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36303  ac_eof=`expr $ac_eof + 1`
36304fi
36305
36306cat >>$CONFIG_STATUS <<_ACEOF
36307cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36308/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36309_ACEOF
36310sed '
36311s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36312s/^/s,@/; s/!/@,|#_!!_#|/
36313:n
36314t n
36315s/'"$ac_delim"'$/,g/; t
36316s/$/\\/; p
36317N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36318' >>$CONFIG_STATUS <conf$$subs.sed
36319rm -f conf$$subs.sed
36320cat >>$CONFIG_STATUS <<_ACEOF
36321CEOF$ac_eof
36322_ACEOF
36323
36324
36325ac_delim='%!_!# '
36326for ac_last_try in false false false false false :; do
36327  cat >conf$$subs.sed <<_ACEOF
36328user_path!$user_path$ac_delim
36329piddir!$piddir$ac_delim
36330TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
36331TEST_MALLOC_OPTIONS!$TEST_MALLOC_OPTIONS$ac_delim
36332UNSUPPORTED_ALGORITHMS!$UNSUPPORTED_ALGORITHMS$ac_delim
36333LIBOBJS!$LIBOBJS$ac_delim
36334LTLIBOBJS!$LTLIBOBJS$ac_delim
36335_ACEOF
36336
36337  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
36338    break
36339  elif $ac_last_try; then
36340    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36341echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36342   { (exit 1); exit 1; }; }
36343  else
36344    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36345  fi
36346done
36347
36348ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36349if test -n "$ac_eof"; then
36350  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36351  ac_eof=`expr $ac_eof + 1`
36352fi
36353
36354cat >>$CONFIG_STATUS <<_ACEOF
36355cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36356/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36357_ACEOF
36358sed '
36359s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36360s/^/s,@/; s/!/@,|#_!!_#|/
36361:n
36362t n
36363s/'"$ac_delim"'$/,g/; t
36364s/$/\\/; p
36365N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36366' >>$CONFIG_STATUS <conf$$subs.sed
36367rm -f conf$$subs.sed
36368cat >>$CONFIG_STATUS <<_ACEOF
36369:end
36370s/|#_!!_#|//g
36371CEOF$ac_eof
36372_ACEOF
36373
36374
36375# VPATH may cause trouble with some makes, so we remove $(srcdir),
36376# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36377# trailing colons and then remove the whole line if VPATH becomes empty
36378# (actually we leave an empty line to preserve line numbers).
36379if test "x$srcdir" = x.; then
36380  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
36381s/:*\$(srcdir):*/:/
36382s/:*\${srcdir}:*/:/
36383s/:*@srcdir@:*/:/
36384s/^\([^=]*=[	 ]*\):*/\1/
36385s/:*$//
36386s/^[^=]*=[	 ]*$//
36387}'
36388fi
36389
36390cat >>$CONFIG_STATUS <<\_ACEOF
36391fi # test -n "$CONFIG_FILES"
36392
36393
36394for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
36395do
36396  case $ac_tag in
36397  :[FHLC]) ac_mode=$ac_tag; continue;;
36398  esac
36399  case $ac_mode$ac_tag in
36400  :[FHL]*:*);;
36401  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36402echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36403   { (exit 1); exit 1; }; };;
36404  :[FH]-) ac_tag=-:-;;
36405  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36406  esac
36407  ac_save_IFS=$IFS
36408  IFS=:
36409  set x $ac_tag
36410  IFS=$ac_save_IFS
36411  shift
36412  ac_file=$1
36413  shift
36414
36415  case $ac_mode in
36416  :L) ac_source=$1;;
36417  :[FH])
36418    ac_file_inputs=
36419    for ac_f
36420    do
36421      case $ac_f in
36422      -) ac_f="$tmp/stdin";;
36423      *) # Look for the file first in the build tree, then in the source tree
36424	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
36425	 # because $ac_f cannot contain `:'.
36426	 test -f "$ac_f" ||
36427	   case $ac_f in
36428	   [\\/$]*) false;;
36429	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36430	   esac ||
36431	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36432echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36433   { (exit 1); exit 1; }; };;
36434      esac
36435      ac_file_inputs="$ac_file_inputs $ac_f"
36436    done
36437
36438    # Let's still pretend it is `configure' which instantiates (i.e., don't
36439    # use $as_me), people would be surprised to read:
36440    #    /* config.h.  Generated by config.status.  */
36441    configure_input="Generated from "`IFS=:
36442	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36443    if test x"$ac_file" != x-; then
36444      configure_input="$ac_file.  $configure_input"
36445      { echo "$as_me:$LINENO: creating $ac_file" >&5
36446echo "$as_me: creating $ac_file" >&6;}
36447    fi
36448
36449    case $ac_tag in
36450    *:-:* | *:-) cat >"$tmp/stdin";;
36451    esac
36452    ;;
36453  esac
36454
36455  ac_dir=`$as_dirname -- "$ac_file" ||
36456$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36457	 X"$ac_file" : 'X\(//\)[^/]' \| \
36458	 X"$ac_file" : 'X\(//\)$' \| \
36459	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36460echo X"$ac_file" |
36461    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36462	    s//\1/
36463	    q
36464	  }
36465	  /^X\(\/\/\)[^/].*/{
36466	    s//\1/
36467	    q
36468	  }
36469	  /^X\(\/\/\)$/{
36470	    s//\1/
36471	    q
36472	  }
36473	  /^X\(\/\).*/{
36474	    s//\1/
36475	    q
36476	  }
36477	  s/.*/./; q'`
36478  { as_dir="$ac_dir"
36479  case $as_dir in #(
36480  -*) as_dir=./$as_dir;;
36481  esac
36482  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36483    as_dirs=
36484    while :; do
36485      case $as_dir in #(
36486      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36487      *) as_qdir=$as_dir;;
36488      esac
36489      as_dirs="'$as_qdir' $as_dirs"
36490      as_dir=`$as_dirname -- "$as_dir" ||
36491$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36492	 X"$as_dir" : 'X\(//\)[^/]' \| \
36493	 X"$as_dir" : 'X\(//\)$' \| \
36494	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36495echo X"$as_dir" |
36496    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36497	    s//\1/
36498	    q
36499	  }
36500	  /^X\(\/\/\)[^/].*/{
36501	    s//\1/
36502	    q
36503	  }
36504	  /^X\(\/\/\)$/{
36505	    s//\1/
36506	    q
36507	  }
36508	  /^X\(\/\).*/{
36509	    s//\1/
36510	    q
36511	  }
36512	  s/.*/./; q'`
36513      test -d "$as_dir" && break
36514    done
36515    test -z "$as_dirs" || eval "mkdir $as_dirs"
36516  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36517echo "$as_me: error: cannot create directory $as_dir" >&2;}
36518   { (exit 1); exit 1; }; }; }
36519  ac_builddir=.
36520
36521case "$ac_dir" in
36522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36523*)
36524  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36525  # A ".." for each directory in $ac_dir_suffix.
36526  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36527  case $ac_top_builddir_sub in
36528  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36529  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36530  esac ;;
36531esac
36532ac_abs_top_builddir=$ac_pwd
36533ac_abs_builddir=$ac_pwd$ac_dir_suffix
36534# for backward compatibility:
36535ac_top_builddir=$ac_top_build_prefix
36536
36537case $srcdir in
36538  .)  # We are building in place.
36539    ac_srcdir=.
36540    ac_top_srcdir=$ac_top_builddir_sub
36541    ac_abs_top_srcdir=$ac_pwd ;;
36542  [\\/]* | ?:[\\/]* )  # Absolute name.
36543    ac_srcdir=$srcdir$ac_dir_suffix;
36544    ac_top_srcdir=$srcdir
36545    ac_abs_top_srcdir=$srcdir ;;
36546  *) # Relative name.
36547    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36548    ac_top_srcdir=$ac_top_build_prefix$srcdir
36549    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36550esac
36551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36552
36553
36554  case $ac_mode in
36555  :F)
36556  #
36557  # CONFIG_FILE
36558  #
36559
36560  case $INSTALL in
36561  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36562  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36563  esac
36564_ACEOF
36565
36566cat >>$CONFIG_STATUS <<\_ACEOF
36567# If the template does not know about datarootdir, expand it.
36568# FIXME: This hack should be removed a few years after 2.60.
36569ac_datarootdir_hack=; ac_datarootdir_seen=
36570
36571case `sed -n '/datarootdir/ {
36572  p
36573  q
36574}
36575/@datadir@/p
36576/@docdir@/p
36577/@infodir@/p
36578/@localedir@/p
36579/@mandir@/p
36580' $ac_file_inputs` in
36581*datarootdir*) ac_datarootdir_seen=yes;;
36582*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36583  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36584echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36585_ACEOF
36586cat >>$CONFIG_STATUS <<_ACEOF
36587  ac_datarootdir_hack='
36588  s&@datadir@&$datadir&g
36589  s&@docdir@&$docdir&g
36590  s&@infodir@&$infodir&g
36591  s&@localedir@&$localedir&g
36592  s&@mandir@&$mandir&g
36593    s&\\\${datarootdir}&$datarootdir&g' ;;
36594esac
36595_ACEOF
36596
36597# Neutralize VPATH when `$srcdir' = `.'.
36598# Shell code in configure.ac might set extrasub.
36599# FIXME: do we really want to maintain this feature?
36600cat >>$CONFIG_STATUS <<_ACEOF
36601  sed "$ac_vpsub
36602$extrasub
36603_ACEOF
36604cat >>$CONFIG_STATUS <<\_ACEOF
36605:t
36606/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36607s&@configure_input@&$configure_input&;t t
36608s&@top_builddir@&$ac_top_builddir_sub&;t t
36609s&@srcdir@&$ac_srcdir&;t t
36610s&@abs_srcdir@&$ac_abs_srcdir&;t t
36611s&@top_srcdir@&$ac_top_srcdir&;t t
36612s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36613s&@builddir@&$ac_builddir&;t t
36614s&@abs_builddir@&$ac_abs_builddir&;t t
36615s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36616s&@INSTALL@&$ac_INSTALL&;t t
36617$ac_datarootdir_hack
36618" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36619
36620test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36621  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36622  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36623  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36624which seems to be undefined.  Please make sure it is defined." >&5
36625echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36626which seems to be undefined.  Please make sure it is defined." >&2;}
36627
36628  rm -f "$tmp/stdin"
36629  case $ac_file in
36630  -) cat "$tmp/out"; rm -f "$tmp/out";;
36631  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36632  esac
36633 ;;
36634  :H)
36635  #
36636  # CONFIG_HEADER
36637  #
36638_ACEOF
36639
36640# Transform confdefs.h into a sed script `conftest.defines', that
36641# substitutes the proper values into config.h.in to produce config.h.
36642rm -f conftest.defines conftest.tail
36643# First, append a space to every undef/define line, to ease matching.
36644echo 's/$/ /' >conftest.defines
36645# Then, protect against being on the right side of a sed subst, or in
36646# an unquoted here document, in config.status.  If some macros were
36647# called several times there might be several #defines for the same
36648# symbol, which is useless.  But do not sort them, since the last
36649# AC_DEFINE must be honored.
36650ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36651# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36652# NAME is the cpp macro being defined, VALUE is the value it is being given.
36653# PARAMS is the parameter list in the macro definition--in most cases, it's
36654# just an empty string.
36655ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
36656ac_dB='\\)[	 (].*,\\1define\\2'
36657ac_dC=' '
36658ac_dD=' ,'
36659
36660uniq confdefs.h |
36661  sed -n '
36662	t rset
36663	:rset
36664	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
36665	t ok
36666	d
36667	:ok
36668	s/[\\&,]/\\&/g
36669	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36670	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36671  ' >>conftest.defines
36672
36673# Remove the space that was appended to ease matching.
36674# Then replace #undef with comments.  This is necessary, for
36675# example, in the case of _POSIX_SOURCE, which is predefined and required
36676# on some systems where configure will not decide to define it.
36677# (The regexp can be short, since the line contains either #define or #undef.)
36678echo 's/ $//
36679s,^[	 #]*u.*,/* & */,' >>conftest.defines
36680
36681# Break up conftest.defines:
36682ac_max_sed_lines=50
36683
36684# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36685# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36686# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36687# et cetera.
36688ac_in='$ac_file_inputs'
36689ac_out='"$tmp/out1"'
36690ac_nxt='"$tmp/out2"'
36691
36692while :
36693do
36694  # Write a here document:
36695    cat >>$CONFIG_STATUS <<_ACEOF
36696    # First, check the format of the line:
36697    cat >"\$tmp/defines.sed" <<\\CEOF
36698/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
36699/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
36700b
36701:def
36702_ACEOF
36703  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36704  echo 'CEOF
36705    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36706  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36707  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36708  grep . conftest.tail >/dev/null || break
36709  rm -f conftest.defines
36710  mv conftest.tail conftest.defines
36711done
36712rm -f conftest.defines conftest.tail
36713
36714echo "ac_result=$ac_in" >>$CONFIG_STATUS
36715cat >>$CONFIG_STATUS <<\_ACEOF
36716  if test x"$ac_file" != x-; then
36717    echo "/* $configure_input  */" >"$tmp/config.h"
36718    cat "$ac_result" >>"$tmp/config.h"
36719    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36720      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36721echo "$as_me: $ac_file is unchanged" >&6;}
36722    else
36723      rm -f $ac_file
36724      mv "$tmp/config.h" $ac_file
36725    fi
36726  else
36727    echo "/* $configure_input  */"
36728    cat "$ac_result"
36729  fi
36730  rm -f "$tmp/out12"
36731 ;;
36732
36733
36734  esac
36735
36736done # for ac_tag
36737
36738
36739{ (exit 0); exit 0; }
36740_ACEOF
36741chmod +x $CONFIG_STATUS
36742ac_clean_files=$ac_clean_files_save
36743
36744
36745# configure is writing to config.log, and then calls config.status.
36746# config.status does its own redirection, appending to config.log.
36747# Unfortunately, on DOS this fails, as config.log is still kept open
36748# by configure, so config.status won't be able to write to it; its
36749# output is simply discarded.  So we exec the FD to /dev/null,
36750# effectively closing config.log, so it can be properly (re)opened and
36751# appended to by config.status.  When coming back to configure, we
36752# need to make the FD available again.
36753if test "$no_create" != yes; then
36754  ac_cs_success=:
36755  ac_config_status_args=
36756  test "$silent" = yes &&
36757    ac_config_status_args="$ac_config_status_args --quiet"
36758  exec 5>/dev/null
36759  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36760  exec 5>>config.log
36761  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36762  # would make configure fail if this is the last instruction.
36763  $ac_cs_success || { (exit 1); exit 1; }
36764fi
36765
36766
36767# Print summary of options
36768
36769# Someone please show me a better way :)
36770A=`eval echo ${prefix}` ; A=`eval echo ${A}`
36771B=`eval echo ${bindir}` ; B=`eval echo ${B}`
36772C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
36773D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
36774E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
36775F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
36776G=`eval echo ${piddir}` ; G=`eval echo ${G}`
36777H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
36778I=`eval echo ${user_path}` ; I=`eval echo ${I}`
36779J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
36780
36781echo ""
36782echo "OpenSSH has been configured with the following options:"
36783echo "                     User binaries: $B"
36784echo "                   System binaries: $C"
36785echo "               Configuration files: $D"
36786echo "                   Askpass program: $E"
36787echo "                      Manual pages: $F"
36788echo "                          PID file: $G"
36789echo "  Privilege separation chroot path: $H"
36790if test "x$external_path_file" = "x/etc/login.conf" ; then
36791echo "   At runtime, sshd will use the path defined in $external_path_file"
36792echo "   Make sure the path to scp is present, otherwise scp will not work"
36793else
36794echo "            sshd default user PATH: $I"
36795	if test ! -z "$external_path_file"; then
36796echo "   (If PATH is set in $external_path_file it will be used instead. If"
36797echo "   used, ensure the path to scp is present, otherwise scp will not work.)"
36798	fi
36799fi
36800if test ! -z "$superuser_path" ; then
36801echo "          sshd superuser user PATH: $J"
36802fi
36803echo "                    Manpage format: $MANTYPE"
36804echo "                       PAM support: $PAM_MSG"
36805echo "                   OSF SIA support: $SIA_MSG"
36806echo "                 KerberosV support: $KRB5_MSG"
36807echo "                   SELinux support: $SELINUX_MSG"
36808echo "                 Smartcard support: $SCARD_MSG"
36809echo "                     S/KEY support: $SKEY_MSG"
36810echo "              MD5 password support: $MD5_MSG"
36811echo "                   libedit support: $LIBEDIT_MSG"
36812echo "  Solaris process contract support: $SPC_MSG"
36813echo "           Solaris project support: $SP_MSG"
36814echo "       IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
36815echo "           Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
36816echo "                  BSD Auth support: $BSD_AUTH_MSG"
36817echo "              Random number source: $RAND_MSG"
36818echo "             Privsep sandbox style: $SANDBOX_STYLE"
36819
36820echo ""
36821
36822echo "              Host: ${host}"
36823echo "          Compiler: ${CC}"
36824echo "    Compiler flags: ${CFLAGS}"
36825echo "Preprocessor flags: ${CPPFLAGS}"
36826echo "      Linker flags: ${LDFLAGS}"
36827echo "         Libraries: ${LIBS}"
36828if test ! -z "${SSHDLIBS}"; then
36829echo "         +for sshd: ${SSHDLIBS}"
36830fi
36831if test ! -z "${SSHLIBS}"; then
36832echo "          +for ssh: ${SSHLIBS}"
36833fi
36834
36835echo ""
36836
36837if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
36838	echo "SVR4 style packages are supported with \"make package\""
36839	echo ""
36840fi
36841
36842if test "x$PAM_MSG" = "xyes" ; then
36843	echo "PAM is enabled. You may need to install a PAM control file "
36844	echo "for sshd, otherwise password authentication may fail. "
36845	echo "Example PAM control files can be found in the contrib/ "
36846	echo "subdirectory"
36847	echo ""
36848fi
36849
36850if test ! -z "$NO_PEERCHECK" ; then
36851	echo "WARNING: the operating system that you are using does not"
36852	echo "appear to support getpeereid(), getpeerucred() or the"
36853	echo "SO_PEERCRED getsockopt() option. These facilities are used to"
36854	echo "enforce security checks to prevent unauthorised connections to"
36855	echo "ssh-agent. Their absence increases the risk that a malicious"
36856	echo "user can connect to your agent."
36857	echo ""
36858fi
36859
36860if test "$AUDIT_MODULE" = "bsm" ; then
36861	echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
36862	echo "See the Solaris section in README.platform for details."
36863fi
36864