Google


--------------------- ##

# Be Bourne compatible if test -n "${ZSH_VERSION+set}"  &&  (emu-
late sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias  -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}"
&& (set -o posix) >/dev/null 2>&1; then
  set -o posix fi

#  Support  unset  when  possible.   if  (FOO=FOO;   unset   FOO)
>/dev/null 2>&1; then
  as_unset=unset else
  as_unset=false fi


# Work around bugs in pre-3.0 UWIN ksh.  $as_unset ENV MAIL MAIL-
PATH PS1='$ ' PS2='> ' PS4='+ '

# NLS nuisances.  for as_var in   LANG LANGUAGE LC_ADDRESS LC_ALL
LC_COLLATE  LC_CTYPE  LC_IDENTIFICATION    LC_MEASUREMENT LC_MES-
SAGES  LC_MONETARY  LC_NAME  LC_NUMERIC  LC_PAPER    LC_TELEPHONE
LC_TIME do
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`");
then
    eval $as_var=C; export $as_var
  else
    $as_unset $as_var
  fi done

# Required to use basename.  if expr a : '' >/dev/null 2>&1; then
  as_expr=expr else
  as_expr=false fi

if  (basename  /)  >/dev/null 2>&1 && test "X`basename / 2>&1`" =
"X/"; then
  as_basename=basename else
  as_basename=false fi


# Name of the executable.  as_me=`$as_basename "$0"  ||  $as_expr
X/"$0"  : '.*//][^/]*/*$'       X"$0" : 'X$'    X"$0" : 'X$'    .
: '' 2>/dev/null || echo X/"$0" |
    sed '/^.*/][^/]**$/{ s//1/; q; }
          /^X$/{ s//1/; q; }
          /^X.*/{ s//1/; q; }
          s/.*/./; q'`


# PATH needs CR, and LINENO needs CR and PATH.  # Avoid depending
  fi
  rm -f conf$$.sh fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  #  Find  who we are.  Look in the path if we contain no path at
all
  # relative or not.
  case $0 in
    *[\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in  $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done

       ;;
  esac
  #  We  did not find ourselves, most probably we were run as `sh
COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { echo "$as_me: error: cannot find myself; rerun with an  ab-
solute path" >&2
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS;    IFS=$PATH_SEPARATOR    for   as_dir   in
/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do            case  $as_dir  in
         /*)            if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test  "x$as_lineno_3"   =  "x$as_lineno_2" ') 2>/dev/null; then
             $as_unset BASH_ENV || test "${BASH_ENV+set}" !=  set
||  { BASH_ENV=; export BASH_ENV; }              $as_unset ENV ||
test "${ENV+set}" != set  ||  {  ENV=;  export  ENV;  }
CONFIG_SHELL=$as_dir/$as_base                export  CONFIG_SHELL
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}             fi;;
         esac

  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  #  second 'sed' script.  Blame Lee E. McMahon for sed's syntax.
:-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^$as_cr_digits']*[$]LINENO'$as_cr_alnum'_],1213,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*0,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { echo "$as_me: error:  cannot  create  $as_me.lineno;  rerun
with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  #  Don't  try  to  exec as it changes $[0], causing all sort of
problems
  # (the dirname of $[0] is not the place where we might find the
  #  original  and  so  on.   Autoconf  is especially sensible to
this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit }


case `echo "testing  *c*,-n*) ECHO_N= ECHO_C='
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='esac

if expr a : '' >/dev/null 2>&1; then
  as_expr=expr else
  as_expr=false fi

rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file  if  ln  -s
conf$$.file conf$$ 2>/dev/null; then
  #  We  could just check for DJGPP; but this test a) works b) is
more generic
  # and c) will remain valid once DJGPP supports symlinks  (DJGPP
2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln else
  as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file

if mkdir -p . 2>/dev/null; then
as_nl=' IFS="   $as_nl"

# CDPATH.  $as_unset CDPATH


#  Name  of the host.  # hostname on some systems (SVR3.2, Linux)
returns a bogus exit status, # so uname gets run  too.   ac_host-
name=`(hostname || uname -n) 2>/dev/null | sed 1q`

exec 6>&1

#  #  Initializations.   #  ac_default_prefix=/usr/local  ac_con-
fig_libobj_dir=.  cross_compiling=no subdirs= MFLAGS=  MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

#  Maximum  number  of  lines to put in a shell here document.  #
This variable seems obsolete.  It should probably be removed, and
#     only     ac_max_sed_lines     should     be     used.     :
${ac_max_here_lines=38}

# Identity of this package.  PACKAGE_NAME= PACKAGE_TARNAME= PACK-
AGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT=

ac_unique_file="ssh.c"  #  Factoring  default  headers  for  most
tests.      ac_includes_default="#include      <stdio.h>      #if
HAVE_SYS_TYPES_H    #    include    <sys/types.h>    #endif   #if
HAVE_SYS_STAT_H # include <sys/stat.h> #endif #if STDC_HEADERS  #
include  <stdlib.h> # include <stddef.h> #else # if HAVE_STDLIB_H
#  include <stdlib.h> #  endif  #endif  #if  HAVE_STRING_H  #  if
!STDC_HEADERS  &&  HAVE_MEMORY_H  #  include <memory.h> # endif #
include  <string.h>   #endif   #if   HAVE_STRINGS_H   #   include
strip(1) on install
  --disable-etc-default-login        Disable  using   PATH   from
/etc/default/login no
  --disable-lastlog       disable use of lastlog even if detected
no
  --disable-utmp          disable use of utmp even if detected no
  --disable-utmpx          disable  use of utmpx even if detected

PACKAGE=no)
  --without-rpath         Disable auto-added -R linker paths
  --with-osfsia           Enable Digital Unix SIA
  --with-cflags           Specify additional  flags  to  pass  to
compiler
  --with-cppflags          Specify  additional  flags  to pass to
preprocessor
  --with-ldflags          Specify additional  flags  to  pass  to
linker
  --with-libs              Specify  additional  libraries to link
with
  --with-zlib=PATH        Use zlib in PATH
  --without-zlib-version-check Disable zlib version check
  --with-skey[=PATH]            Enable       S/Key        support
                            (optionally in PATH)
  --with-tcp-wrappers[=PATH]        Enable   tcpwrappers  support
                            (optionally in PATH)
  --with-pam              Enable PAM support
  --with-ssl-dir=PATH     Specify path to OpenSSL installation
  --with-rand-helper      Use subprocess to gather strong random-
ness
  --with-prngd-port=PORT   read entropy from PRNGD/EGD TCP local-
host:PORT
  --with-prngd-socket=FILE read  entropy  from  PRNGD/EGD  socket
FILE (default=/var/run/egd-pool)
  --with-entropy-timeout  Specify entropy gathering command time-
out (msec)
  --with-privsep-user=user Specify non-privileged user for privi-
lege separation
  --with-sectok            Enable smartcard support using libsec-
tok
  --with-opensc=PFX       Enable smartcard support using OpenSC
  --with-kerberos5=PATH   Enable Kerberos 5 support
  --with-privsep-path=xxx Path for  privilege  separation  chroot
(default=/var/empty)
  --with-xauth=PATH       Specify path to xauth program
  --with-mantype=man|cat|doc  Set man page type
  --with-md5-passwords    Enable use of MD5 passwords
  --without-shadow        Disable shadow password support
  --with-ipaddr-display    Use  ip address instead of hostname in
ISPLAY
  --with-default-path=    Specify  default  ATH  environment  for
server
  --with-superuser-path=  Specify different path for super-user
  --with-4in6              Check  for  and  convert  IPv4 in IPv6
mapped addresses
  --with-bsd-auth         Enable BSD auth support
  --with-pid-dir=PATH     Specify location of ssh.pid file
  --with-lastlog=FILE|DIR specify lastlog location  common  loca-
tions

Some influential environment variables:
_ACEOF fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for  ac_dir  in  :  $ac_subdirs_all; do test "x$ac_dir" = x: &&
continue
    test -d $ac_dir || continue
    ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^.[\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir= fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\/]* | ?:[\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Don't blindly
perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo  can  be  #
absolute.   ac_abs_builddir=`cd  "$ac_dir"  && cd $ac_builddir &&
pwd` ac_abs_top_builddir=`cd "$ac_dir" && cd  ${ac_top_builddir}.
&&  pwd`  ac_abs_srcdir=`cd  "$ac_dir"  &&  cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`

    cd $ac_dir
    # Check for guested configure;  otherwise  get  Cygnus  style
configure.
    if test -f $ac_srcdir/configure.gnu; then
      echo
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_srcdir/configure; then
      echo
      $SHELL $ac_srcdir/configure  --help=recursive
    elif test -f $ac_srcdir/configure.ac ||
           test -f $ac_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      echo  "$as_me:  WARNING: no configuration information is in

aid debugging if configure makes a mistake.

It  was  created  by  $as_me, which was generated by GNU Autoconf
2.57.  Invocation command line was

  $ $0 $@

_ACEOF { cat  <<_ASUNAME  @%:@@%:@  ---------  @%:@@%:@  @%:@@%:@
Platform. @%:@@%:@ @%:@@%:@ --------- @%:@@%:@

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m
= `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r)
2>/dev/null  ||  echo unknown` uname -s = `(uname -s) 2>/dev/null
|| echo unknown` uname -v = `(uname -v) 2>/dev/null ||  echo  un-
known`

/usr/bin/uname  -p = `(/usr/bin/uname -p) 2>/dev/null || echo un-
known` /bin/uname -X     = `(/bin/uname  -X)  2>/dev/null      ||
echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              ||
echo  unknown`  /usr/bin/arch  -k        =  `(/usr/bin/arch   -k)
2>/dev/null         ||  echo  unknown`  /usr/convex/getsysinfo  =
`(/usr/convex/getsysinfo) 2>/dev/null || echo  unknown`  hostinfo
= `(hostinfo) 2>/dev/null               || echo unknown` /bin/ma-
chine           = `(/bin/machine) 2>/dev/null            ||  echo
unknown` /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null
||  echo  unknown`  /bin/universe            =   `(/bin/universe)
2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  echo "PATH: $as_dir" done

} >&5

cat >&5 <<_ACEOF


@%:@@%:@  -----------  @%:@@%:@  @%:@@%:@  Core  tests.  @%:@@%:@
@%:@@%:@ ----------- @%:@@%:@

_ACEOF


# Keep a trace of the command line.  # Strip out --no-create  and
--no-recursion  so they do not pile up.  # Strip out --silent be-
cause we don't want to record it for future runs.  #  Also  quote
any  args containing shell meta-characters.  # Make two passes to
    case $ac_pass in
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    2)
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
      if test $ac_must_keep_next = true; then
        ac_must_keep_next=false # Got value, back to normal.
      else
        case $ac_arg in
          *=*  |  --config-cache  | -C | -disable-* | --disable-*
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf*           |
-q  |  -quiet | --q* | -silent | --sil* | -v | -verb*           |
-with-* | --with-* | -without-* | --without-* | --x)
            case "$ac_configure_args0 " in
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
            esac
            ;;
          -* ) ac_must_keep_next=true ;;
        esac
      fi
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
      # Get rid of the leading space.
      ac_sep=" "
      ;;
    esac
  done done $as_unset ac_configure_args0  ||  test  "${ac_config-
ure_args0+set}"  !=  set || { ac_configure_args0=; export ac_con-
figure_args0; } $as_unset ac_configure_args1 ||  test  "${ac_con-
figure_args1+set}"   !=  set  ||  {  ac_configure_args1=;  export
ac_configure_args1; }

# When interrupted or exit'd, cleanup temporary files,  and  com-
plete # config.log.  We remove comments because anyway the quotes
in there # would cause problems or look ugly.  # WARNING: Be sure
not  to use single quotes in there, as some shells, # such as our
DU 5.0 friend, will then `close' the trap.  trap  'exit_status=$?
  #  Save into config.log some information that might help in de-
bugging.
  {
    echo

    cat  <<_ASBOX  @%:@@%:@  ----------------  @%:@@%:@  @%:@@%:@
Cache variables. @%:@@%:@ @%:@@%:@ ---------------- @%:@@%:@ _AS-
BOX
    echo
    # The following way of writing the cache mishandles  newlines
in values, {
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space= *)
      sed -n         "s/'"'"'/'"'"'\\'"'"''"'"'/g;
                            s/^\([_$as_cr_alnum]*_cv_[_$as_cr_al-
num]*\)=\(.*\)/\1='"'"'\2'"'"'/p"
      eval ac_val=$`echo $ac_var`
      echo "$ac_var='"'"'$ac_val'"'"'"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat  <<_ASBOX @%:@@%:@ ------------- @%:@@%:@ @%:@@%:@ Out-
put files. @%:@@%:@ @%:@@%:@ ------------- @%:@@%:@ _ASBOX
      echo
      for ac_var in $ac_subst_files
      do         eval ac_val=$`echo $ac_var`
        echo "$ac_var='"'"'$ac_val'"'"'"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat  <<_ASBOX  @%:@@%:@   -----------   @%:@@%:@   @%:@@%:@
confdefs.h. @%:@@%:@ @%:@@%:@ ----------- @%:@@%:@ _ASBOX
      echo
      sed "/^$/d" confdefs.h | sort
      echo
    fi
    test "$ac_signal" != 0 &&
      echo "$as_me: caught signal $ac_signal"
    echo "$as_me: exit $exit_status"
  } >&5
  rm -f core core.* *.core &&
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
     ' 0 for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done ac_signal=0

# confdefs.h avoids OS command line length limits that  DEFS  can
exceed.   rm -rf conftest* confdefs.h # AIX cpp loses on an empty
file, so  make  sure  it  contains  at  least  a  newline.   echo
>confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF


cat  >>confdefs.h  <<_ACEOF  @%:@define  PACKAGE_TARNAME  "$PACK-
AGE_TARNAME" _ACEOF


cat  >>confdefs.h  <<_ACEOF  @%:@define  PACKAGE_VERSION  "$PACK-
AGE_VERSION" _ACEOF

fig.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site     $ac_de-
fault_prefix/etc/config.site"
  fi fi for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    { echo "$as_me:$LINENO: loading  site  script  $ac_site_file"
>&5 echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    {  echo  "$as_me:$LINENO: loading cache $cache_file" >&5 echo
"$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\/]* | ?:[\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi else
  { echo "$as_me:$LINENO: creating cache  $cache_file"  >&5  echo
"$as_me: creating cache $cache_file" >&6;}
  >$cache_file fi

#  Check that the precious variables saved in the cache have kept
the same # value.  ac_cache_corrupted=false for ac_var in  `(set)
2>&1 |
               sed -n 's/^ac_env_-zA-Z_0-9]*_set=.*/1/p'`; do
  eval ac_old_set=c_cv_env_${ac_var}_set
  eval ac_new_set=c_env_${ac_var}_set
  eval ac_old_val="c_cv_env_${ac_var}_value"
  eval ac_new_val="c_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      {   echo  "$as_me:$LINENO:  error:  `$ac_var'  was  set  to
`$ac_old_val' in the  previous  run"  >&5  echo  "$as_me:  error:
`$ac_var' was set to `$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { echo "$as_me:$LINENO: error: `$ac_var' was not set in the
previous run" >&5 echo "$as_me: error: `$ac_var' was not  set  in
the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        {  echo  "$as_me:$LINENO:  error:  `$ac_var'  has changed
since the previous run:" >&5 echo "$as_me: error:  `$ac_var'  has
changed since the previous run:" >&2;}
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use  of  quotes  ensures
accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    esac
  fi done if $ac_cache_corrupted; then
  {  echo  "$as_me:$LINENO: error: changes in the environment can
compromise the build" >&5 echo "$as_me: error: changes in the en-
vironment can compromise the build" >&2;}
  {  {  echo  "$as_me:$LINENO: error: run `make distclean' and/or
`rm $cache_file' and start over" >&5  echo  "$as_me:  error:  run
`make distclean' and/or `rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; } fi

ac_ext=c   ac_cpp='$CPP  $CPPFLAGS'  ac_compile='$CC  -c  $CFLAGS
$CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o  conftest$ac_exe-
ext   $CFLAGS  $CPPFLAGS  $LDFLAGS  conftest.$ac_ext  $LIBS  >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu





















          ac_config_headers="$ac_config_headers config.h"

ac_ext=c  ac_cpp='$CPP  $CPPFLAGS'  ac_compile='$CC  -c   $CFLAGS
$CPPFLAGS  conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exe-
ext  $CFLAGS  $CPPFLAGS  $LDFLAGS  conftest.$ac_ext  $LIBS   >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu  if  test -n "$ac_tool_pre-
fix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so  it  can
be  a  program  name  with args.  set dummy ${ac_tool_prefix}gcc;
ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5  echo
$ECHO_N   "checking   for   $ac_word...   $ECHO_C"  >&6  if  test
"${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

fi if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program  name
with  args.   set  dummy  gcc;  ac_word=$2  echo "$as_me:$LINENO:
checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word...
$ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC"  #  Let  the  user override the
test.  else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for  as_dir  in
$PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then
  echo   "$as_me:$LINENO:    result:    $ac_ct_CC"    >&5    echo
"${ECHO_T}$ac_ct_CC" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

  CC=$ac_ct_CC else
  CC="$ac_cv_prog_CC" fi

if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be
a   program  name  with  args.   set  dummy  ${ac_tool_prefix}cc;
ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5  echo
$ECHO_N   "checking   for   $ac_word...   $ECHO_C"  >&6  if  test
"${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user  override  the  test.   else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then
$PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then
  echo   "$as_me:$LINENO:    result:    $ac_ct_CC"    >&5    echo
"${ECHO_T}$ac_ct_CC" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

  CC=$ac_ct_CC else
  CC="$ac_cv_prog_CC" fi

fi if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a  program  name
with args.  set dummy cc; ac_word=$2 echo "$as_me:$LINENO: check-
ing for $ac_word" >&5  echo  $ECHO_N  "checking  for  $ac_word...
$ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.  else
  ac_prog_rejected=no  as_save_IFS=$IFS;  IFS=$PATH_SEPARATOR for
as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $@%:@ != 0; then
    # We chose a different compiler from the bogus one.
    #  However,  it  has  the same basename, so the bogon will be
chosen
    # first if we set CC to just the basename; use the full  file
name.
    shift

if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC"  #  Let  the  user override the test.  else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then
  echo  "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

    test -n "$CC" && break
  done fi if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl do
  #  Extract the first word of "$ac_prog", so it can be a program
name  with   args.    set   dummy   $ac_prog;   ac_word=$2   echo
"$as_me:$LINENO:  checking for $ac_word" >&5 echo $ECHO_N "check-
ing     for     $ac_word...     $ECHO_C"     >&6     if      test
"${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC"  #  Let  the  user override the
test.  else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for  as_dir  in
$PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then
  echo   "$as_me:$LINENO:    result:    $ac_ct_CC"    >&5    echo
"${ECHO_T}$ac_ct_CC" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

  test -n "$ac_ct_CC" && break done

  CC=$ac_ct_CC fi

fi
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } { (eval echo "$as_me:$LINENO:
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } { (eval echo "$as_me:$LINENO:
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }

cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

int main () {

  ;
  return   0;   }   _ACEOF    ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files  a.out a.exe b.out" # Try to cre-
ate an executable without -o first, disregard a.out.  #  It  will
help us diagnose broken compilers, and finding out an intuition #
of exeext.  echo "$as_me:$LINENO: checking for C compiler default
output"  >&5  echo  $ECHO_N "checking for C compiler default out-
put... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o
*conftest[^ ]*//'` if { (eval echo "$as_me:$LINENO:
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; then
  #  Find the output, starting from the most likely.  This scheme
is # not robust to junk in `.', hence go to wildcards (a.*)  only
as a last # resort.

#  Be  careful  to  initialize this variable, since it used to be
cached.  # Otherwise an old cache value of `no' led to `EXEEXT  =
no' in a Makefile.  ac_cv_exeext= # b.out is created by i960 com-
pilers.  for ac_file in a_out.exe a.exe conftest.exe  a.out  con-
ftest a.* conftest.* b.out do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext  |  *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb |
*.bbg | *.o | *.obj )
        ;;
    conftest.$ac_ext )
        # This is the source file.
        ;;
    [ab].out )
        # We found the default executable, but exeext='' is most
        # certainly right.
        break;;
    *.* )

cutables  See  `config.log'  for more details." >&5 echo "$as_me:
error: C compiler cannot create executables See `config.log'  for
more details." >&2;}
   { (exit 77); exit 77; }; } fi

ac_exeext=$ac_cv_exeext  echo  "$as_me:$LINENO: result: $ac_file"
>&5 echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can  run.   If  not,
either  #  the  compiler  is  broken,  or we cross compile.  echo
"$as_me:$LINENO: checking whether the C compiler works" >&5  echo
$ECHO_N  "checking whether the C compiler works... $ECHO_C" >&6 #
FIXME: These cross compiler hacks should be removed for  Autoconf
3.0 # If not cross compiling, check that we can run a simple pro-
gram.  if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe;  then          cross_com-
piling=yes
    else          {  {  echo "$as_me:$LINENO: error: cannot run C
compiled programs.  If you meant to cross compile, use  `--host'.
See `config.log' for more details." >&5 echo "$as_me: error: can-
not run C compiled programs.  If you meant to cross compile,  use
`--host'.  See `config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi   fi   echo   "$as_me:$LINENO:   result:   yes"   >&5   echo
"${ECHO_T}yes" >&6

rm     -f     a.out     a.exe     conftest$ac_cv_exeext     b.out
ac_clean_files=$ac_clean_files_save # Check the compiler produces
executables we can run.  If not, either # the compiler is broken,
or  we  cross compile.  echo "$as_me:$LINENO: checking whether we
are cross compiling" >&5 echo $ECHO_N "checking  whether  we  are
cross  compiling...  $ECHO_C"  >&6  echo "$as_me:$LINENO: result:
$cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:$LINENO: checking for  suffix  of  executables"  >&5
echo  $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest'  are  `present'  (well,
observable)  #  catch  `conftest.exe'.  For instance with Cygwin,
tails."  >&5  echo  "$as_me: error: cannot compute suffix of exe-
cutables: cannot compile and link See `config.log' for  more  de-
tails." >&2;}
   { (exit 1); exit 1; }; } fi

rm   -f   conftest$ac_cv_exeext   echo  "$as_me:$LINENO:  result:
$ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6

rm  -f  conftest.$ac_ext  EXEEXT=$ac_cv_exeext  ac_exeext=$EXEEXT
echo  "$as_me:$LINENO:  checking  for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

int main () {

  ;
  return  0;  }  _ACEOF  rm -f conftest.o conftest.obj if { (eval
echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls  conftest.o  conftest.obj;  ls  conftest.*)
2>/dev/null`; do
  case $ac_file in
    *.$ac_ext  |  *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb |
*.bbg ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*.'`
       break;;
  esac done else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

{  { echo "$as_me:$LINENO: error: cannot compute suffix of object
files: cannot compile See `config.log'  for  more  details."  >&5
echo  "$as_me: error: cannot compute suffix of object files: can-
not compile See `config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } fi

rm   -f   conftest.$ac_cv_objext   conftest.$ac_ext    fi    echo
"$as_me:$LINENO:      result:     $ac_cv_objext"     >&5     echo
"${ECHO_T}$ac_cv_objext" >&6 OBJEXT=$ac_cv_objext  ac_objext=$OB-
JEXT  echo "$as_me:$LINENO: checking whether we are using the GNU
C compiler" >&5 echo $ECHO_N "checking whether we are  using  the
GNU   C  compiler...  $ECHO_C"  >&6  if  test  "${ac_cv_c_compil-
er_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_compiler_gnu=no fi rm -f conftest.$ac_objext  conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi  echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo
"${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu =
yes      &&      echo      yes`      ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS CFLAGS="-g" echo "$as_me:$LINENO: checking
whether  $CC  accepts  -g" >&5 echo $ECHO_N "checking whether $CC
accepts -g... $ECHO_C" >&6  if  test  "${ac_cv_prog_cc_g+set}"  =
set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

int main () {

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_g=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_prog_cc_g=no  fi rm -f conftest.$ac_objext conftest.$ac_ext
fi  echo  "$as_me:$LINENO:  result:  $ac_cv_prog_cc_g"  >&5  echo
"${ECHO_T}$ac_cv_prog_cc_g"  >&6 if test "$ac_test_CFLAGS" = set;
then
  CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"

ing tests are stolen from RCS 5.7's src/conf.sh.  */ struct buf {
int  x;  }; FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i; {
  return p[i]; } static char *f (char * (*g) (char **, int), char
**p, ...)  {
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return  s;  }  int  test (int i, double x); struct s1 {int (*f)
(int a);}; struct s2 {int (*f) (double a);}; int pairnames  (int,
char  **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc; char **argv; int main () { return f  (e,  argv,  0)  !=
argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0; } _ACEOF # Don't try gcc -ansi; that turns off useful
extensions  and  #  breaks  some  systems'   header   files.    #
AIX                   -qlanglvl=ansi       #      Ultrix      and
OSF/1      -std1 # HP-UX 10.20 and later -Ae # HP-UX  older  ver-
sions  -Aa  -D_HPUX_SOURCE # SVR4                  -Xc -D__EXTEN-
SIONS__  for  ac_arg  in  ""  -qlanglvl=ansi   -std1   -Ae   "-Aa
-D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_stdc=$ac_arg break else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

fi rm -f conftest.$ac_objext done  rm  -f  conftest.$ac_ext  con-
ftest.$ac_objext CC=$ac_save_CC

fi

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo   "$as_me:$LINENO:   result:   none   needed"  >&5  echo
"${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc"  >&5  echo

  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  for  ac_declaration in    ''   '#include <stdlib.h>'    'extern
"C" void std::exit (int) throw (); using  std::exit;'     'extern
"C"  void  std::exit (int); using std::exit;'    'extern "C" void
exit (int) throw ();'    'extern "C" void exit  (int);'     'void
exit (int);' do
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end confdefs.h.  */ @%:@include
/dev/null 2>&1 ||
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }

echo  "$as_me:$LINENO:  checking  build  system  type"  >&5  echo
$ECHO_N "checking build  system  type...  $ECHO_C"  >&6  if  test
"${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_cv_build_alias=$build_alias test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`           test          -z
"$ac_cv_build_alias" &&
  { { echo "$as_me:$LINENO: error: cannot guess build  type;  you
must  specify  one"  >&5  echo "$as_me: error: cannot guess build
type; you must specify one" >&2;}
   {  (exit  1);  exit  1;   };   }   ac_cv_build=`$ac_config_sub
$ac_cv_build_alias` ||
  {     {    echo    "$as_me:$LINENO:    error:    $ac_config_sub
$ac_cv_build_alias failed"  >&5  echo  "$as_me:  error:  $ac_con-
fig_sub $ac_cv_build_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi   echo   "$as_me:$LINENO:   result:   $ac_cv_build"  >&5  echo
$ac_cv_host_alias failed" >&5 echo "$as_me: error: $ac_config_sub
$ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi  echo   "$as_me:$LINENO:   result:   $ac_cv_host"   >&5   echo
"${ECHO_T}$ac_cv_host"    >&6   host=$ac_cv_host   host_cpu=`echo
$ac_cv_host   |    sed    's/^-]*--]*-$/1/'`    host_vendor=`echo
$ac_cv_host  | sed 's/^-]*--]*-$/2/'` host_os=`echo $ac_cv_host |
sed 's/^-]*--]*-$/3/'`



echo "$as_me:$LINENO: checking whether byte ordering is  bigendi-
an"  >&5 echo $ECHO_N "checking whether byte ordering is bigendi-
an... $ECHO_C" >&6 if test "${ac_cv_c_bigendian+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  #  See  if sys/param.h defines the BYTE_ORDER macro.  cat >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext  <<_ACEOF   /*   end   confdefs.h.    */   #include
=    (60    <<    16))                   exit(0);           else
                exit(1); } _ACEOF rm -f conftest$ac_exeext  if  {
(eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: working" >&5 echo "${ECHO_T}work-
ing" >&6 else
  echo "$as_me: program exited with status $ac_status"  >&5  echo
"$as_me:  failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5

( exit $ac_status ) echo "$as_me:$LINENO: result: buggy" >&5 echo
"${ECHO_T}buggy" >&6         cat >>confdefs.h <<_ACEOF @%:@define
BROKEN_GETADDRINFO 1 _ACEOF

fi rm -f core core.* *.core  gmon.out  bb.out  conftest$ac_exeext
conftest.$ac_objext  conftest.$ac_ext fi         cat >>confdefs.h
<<_ACEOF @%:@define SETEUID_BREAKS_SETUID 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_SETREUID  1
_ACEOF
        cat >>confdefs.h <<_ACEOF @%:@define USE_PIPES 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  LOGIN_NO_ENDOPT  1
_ACEOF

        cat  >>confdefs.h <<_ACEOF @%:@define LOGIN_NEEDS_UTMPX 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define LOCKED_PASSWD_STRING
"*" _ACEOF

        cat  >>confdefs.h  <<_ACEOF @%:@define SPT_TYPE SPT_PSTAT
_ACEOF

        LIBS="$LIBS -lsec -lsecpw"          echo "$as_me:$LINENO:
checking  for  t_error  in -lxnet" >&5 echo $ECHO_N "checking for
t_error in -lxnet... $ECHO_C" >&6 if test "${ac_cv_lib_xnet_t_er-
ror+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS  LIBS="-lxnet   $LIBS"  cat  >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char t_error (); int main () { t_error ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_xnet_t_error=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_lib_xnet_t_error=no   fi  rm  -f  conftest.$ac_objext  con-
ftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS  fi
echo  "$as_me:$LINENO:  result: $ac_cv_lib_xnet_t_error" >&5 echo
"${ECHO_T}$ac_cv_lib_xnet_t_error"       >&6       if        test
$ac_cv_lib_xnet_t_error = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBXNET 1 _ACEOF

USE_PIPES 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  LOGIN_NO_ENDOPT  1
_ACEOF

        cat  >>confdefs.h <<_ACEOF @%:@define LOGIN_NEEDS_UTMPX 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define LOCKED_PASSWD_STRING
"*" _ACEOF

        cat  >>confdefs.h  <<_ACEOF @%:@define SPT_TYPE SPT_PSTAT
_ACEOF

        LIBS="$LIBS -lsec"          echo "$as_me:$LINENO:  check-
ing for t_error in -lxnet" >&5 echo $ECHO_N "checking for t_error
in -lxnet... $ECHO_C" >&6 if test "${ac_cv_lib_xnet_t_error+set}"
= set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS  LIBS="-lxnet   $LIBS"  cat  >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char t_error (); int main () { t_error ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_xnet_t_error=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_lib_xnet_t_error=no   fi  rm  -f  conftest.$ac_objext  con-
ftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS  fi
echo  "$as_me:$LINENO:  result: $ac_cv_lib_xnet_t_error" >&5 echo
"${ECHO_T}$ac_cv_lib_xnet_t_error"       >&6       if        test
$ac_cv_lib_xnet_t_error = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBXNET 1 _ACEOF
        cat >>confdefs.h <<_ACEOF @%:@define USE_PIPES 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  LOGIN_NO_ENDOPT  1
_ACEOF

        cat  >>confdefs.h <<_ACEOF @%:@define LOGIN_NEEDS_UTMPX 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define DISABLE_UTMP 1 _ACE-
OF

        cat >>confdefs.h <<_ACEOF @%:@define LOCKED_PASSWD_STRING
"*" _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define  SPT_TYPE  SPT_PSTAT
_ACEOF

        check_for_hpux_broken_getaddrinfo=1           LIBS="$LIBS
-lsec"          echo "$as_me:$LINENO:  checking  for  t_error  in
-lxnet"  >&5  echo  $ECHO_N  "checking  for  t_error in -lxnet...
$ECHO_C" >&6 if test "${ac_cv_lib_xnet_t_error+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS  LIBS="-lxnet   $LIBS"  cat  >con-
ftest.$ac_ext  <<_ACEOF  #line $LINENO "configure" /* confdefs.h.
*/  _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat   >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char t_error (); int main () { t_error ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_xnet_t_error=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_lib_xnet_t_error=no  fi  rm  -f  conftest.$ac_objext   con-
ftest$ac_exeext  conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi
echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error"  >&5  echo

        cat >>confdefs.h <<_ACEOF @%:@define SETEUID_BREAKS_SETU-
ID 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_SETREUID  1
_ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define BROKEN_SETREGID 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define WITH_ABBREV_NO_TTY 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define LOCKED_PASSWD_STRING
"*LK*" _ACEOF

        ;; *-*-irix6*)         PATH="$PATH:/usr/etc"          cat
>>confdefs.h <<_ACEOF @%:@define WITH_IRIX_ARRAY 1 _ACEOF

        cat  >>confdefs.h <<_ACEOF @%:@define WITH_IRIX_PROJECT 1
_ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  WITH_IRIX_AUDIT  1
_ACEOF

        echo  "$as_me:$LINENO:  checking for jlimit_startjob" >&5
echo $ECHO_N "checking for  jlimit_startjob...  $ECHO_C"  >&6  if
test "${ac_cv_func_jlimit_startjob+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char jlimit_startjob (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char jlimit_startjob (); /* The GNU C library  defines  this  for
functions which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/    #if    defined    (__stub_jlimit_startjob)    ||    defined
(__stub___jlimit_startjob) choke me #else char (*f)  ()  =  jlim-
it_startjob; #endif #ifdef __cplusplus } #endif

int main () { return f != jlimit_startjob;
  ;

ftest.$ac_ext >&5

ac_cv_func_jlimit_startjob=no  fi  rm -f conftest.$ac_objext con-
ftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result:
$ac_cv_func_jlimit_startjob" >&5 echo "${ECHO_T}$ac_cv_func_jlim-
it_startjob" >&6 if test $ac_cv_func_jlimit_startjob = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define WITH_IRIX_JOBS 1 _ACEOF

fi

        cat >>confdefs.h <<_ACEOF @%:@define  BROKEN_INET_NTOA  1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define SETEUID_BREAKS_SETU-
ID 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_SETREUID  1
_ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define BROKEN_SETREGID 1
_ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_UPDWTMPX  1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define WITH_ABBREV_NO_TTY 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define LOCKED_PASSWD_STRING
"*LK*" _ACEOF

        ;;            *-*-linux*)                   no_dev_ptmx=1
        check_for_libcrypt_later=1          check_for_openpty_ct-
ty_bug=1            cat    >>confdefs.h    <<_ACEOF    @%:@define
DONT_TRY_OTHER_AF 1 _ACEOF

        cat >>confdefs.h  <<_ACEOF  @%:@define  PAM_TTY_KLUDGE  1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define LOCKED_PASSWD_PREFIX
"!"  _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define SPT_TYPE  SPT_REUSE-
ARGV _ACEOF

        inet6_default_4in6=yes           case   `uname   -r`   in
        1.*|2.0.*)                   cat  >>confdefs.h   <<_ACEOF
@%:@define BROKEN_CMSG_TYPE 1 _ACEOF

                ;;          esac          ;;  mips-sony-bsd|mips-
sony-newsos4)          cat   >>confdefs.h   <<_ACEOF   @%:@define
HAVE_NEWS4 1 _ACEOF
        ;;          *-next-*)                  conf_lastlog_loca-
tion="/usr/adm/lastlog"              conf_utmp_location=/etc/utmp
        conf_wtmp_location=/usr/adm/wtmp
        MAIL=/usr/spool/mail          cat  >>confdefs.h  <<_ACEOF
@%:@define HAVE_NEXT 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_REALPATH  1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define USE_PIPES 1 _ACEOF

        cat  >>confdefs.h <<_ACEOF @%:@define BROKEN_SAVED_UIDS 1
_ACEOF

        ;; *-*-solaris*)         if test "x$withval" !=  "xno"  ;
then                       need_dash_r=1          fi          cat
>>confdefs.h <<_ACEOF @%:@define PAM_SUN_CODEBASE 1 _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define LOGIN_NEEDS_UTMPX  1
_ACEOF

        cat  >>confdefs.h  <<_ACEOF @%:@define LOGIN_NEEDS_TERM 1
_ACEOF

        cat >>confdefs.h  <<_ACEOF  @%:@define  PAM_TTY_KLUDGE  1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define LOCKED_PASSWD_STRING
"*LK*" _ACEOF

        # Pushing STREAMS modules will cause sshd  to  acquire  a
controlling  tty.           cat  >>confdefs.h <<_ACEOF @%:@define
SSHD_ACQUIRES_CTTY 1 _ACEOF

        external_path_file=/etc/default/login         #  hardwire
lastlog   location   (can't   detect   it   on   some   versions)
        conf_lastlog_location="/var/adm/lastlog"             echo
"$as_me:$LINENO:  checking  for  obsolete  utmp  and  wtmp in so-
laris2.x" >&5 echo $ECHO_N "checking for obsolete utmp  and  wtmp
in  solaris2.x... $ECHO_C" >&6         sol2ver=`echo "$host"| sed
-e  's/.*[0-9].//'`          if  test  "$sol2ver"  -ge  8;   then
                echo   "$as_me:$LINENO:  result:  yes"  >&5  echo
"${ECHO_T}yes"  >&6                  cat  >>confdefs.h   <<_ACEOF
@%:@define DISABLE_UTMP 1 _ACEOF

                cat >>confdefs.h <<_ACEOF @%:@define DISABLE_WTMP
1 _ACEOF

        else                 echo  "$as_me:$LINENO:  result:  no"
>&5  echo  "${ECHO_T}no"  >&6          fi         ;; *-*-sunos4*)
        CPPFLAGS="$CPPFLAGS -DSUNOS4"            for  ac_func  in
getpwanam  do  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/  #if  defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`" >&6 if test `eval echo  '${'$as_ac_var'}'`  =
yes; then
  cat  >>confdefs.h  <<_ACEOF  @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF

fi done

        cat >>confdefs.h <<_ACEOF @%:@define  PAM_SUN_CODEBASE  1
_ACEOF

        conf_utmp_location=/etc/utmp              conf_wtmp_loca-
tion=/var/adm/wtmp         conf_lastlog_location=/var/adm/lastlog
        cat >>confdefs.h <<_ACEOF @%:@define USE_PIPES 1 _ACEOF

        ;;  *-ncr-sysv*)          LIBS="$LIBS  -lc89"         cat
>>confdefs.h <<_ACEOF @%:@define USE_PIPES 1 _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define SSHD_ACQUIRES_CTTY 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define SETEUID_BREAKS_SETU-

  ac_check_lib_save_LIBS=$LIBS  LIBS="-ldl   $LIBS"   cat   >con-
ftest.$ac_ext  <<_ACEOF  #line $LINENO "configure" /* confdefs.h.
*/  _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat   >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlsym (); int main () { dlsym ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlsym=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_lib_dl_dlsym=no   fi   rm   -f   conftest.$ac_objext   con-
ftest$ac_exeext  conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi
echo  "$as_me:$LINENO:  result:  $ac_cv_lib_dl_dlsym"  >&5   echo
"${ECHO_T}$ac_cv_lib_dl_dlsym"  >&6 if test $ac_cv_lib_dl_dlsym =
yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBDL 1 _ACEOF

  LIBS="-ldl $LIBS"

fi

        IPADDR_IN_DISPLAY=yes         cat  >>confdefs.h  <<_ACEOF
@%:@define USE_PIPES 1 _ACEOF

        cat  >>confdefs.h  <<_ACEOF @%:@define IP_TOS_IS_BROKEN 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define SETEUID_BREAKS_SETU-
ID 1 _ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define BROKEN_SETREUID 1
_ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_SETREGID  1
_ACEOF
        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_SETREUID  1
_ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define BROKEN_SETREGID 1
_ACEOF

        ;; *-*-sysv5*)         cat >>confdefs.h <<_ACEOF  @%:@de-
fine USE_PIPES 1 _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define SETEUID_BREAKS_SETU-
ID 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_SETREUID  1
_ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define BROKEN_SETREGID 1
_ACEOF

        ;;       *-*-sysv*)               ;;       *-*-sco3.2v4*)
        CPPFLAGS="$CPPFLAGS                   -Dftruncate=chsize"
        LIBS="$LIBS  -los  -lprot  -lcrypt_i  -lx  -ltinfo   -lm"
        RANLIB=true               no_dev_ptmx=1               cat
>>confdefs.h <<_ACEOF @%:@define BROKEN_SYS_TERMIO_H 1 _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define USE_PIPES 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  HAVE_SECUREWARE  1
_ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define  DISABLE_SHADOW 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define BROKEN_SAVED_UIDS  1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define SETEUID_BREAKS_SETU-
ID 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_SETREUID  1
_ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define BROKEN_SETREGID 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define WITH_ABBREV_NO_TTY 1
_ACEOF



for    ac_func    in    getluid    setluid   do   as_ac_var=`echo
"ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking
for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C"
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to always fail with  ENOSYS.   Some  functions  are  actually
named
    something  starting  with __ and the normal name is an alias.
*/ #if defined (__stub_$ac_func) ||  defined  (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`"  >&6  if test `eval echo '${'$as_ac_var'}'` =
yes; then
  cat >>confdefs.h <<_ACEOF @%:@define  `echo  "HAVE_$ac_func"  |
$as_tr_cpp` 1 _ACEOF

fi done

        MANTYPE=man                   do_sco3_extra_lib_check=yes
        ;;  *-*-sco3.2v5*)          if  test  -z   "$GCC";   then
                CFLAGS="$CFLAGS         -belf"                 fi
        LIBS="$LIBS -lprot -lx -ltinfo -lm"         no_dev_ptmx=1
        cat >>confdefs.h <<_ACEOF @%:@define USE_PIPES 1 _ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define HAVE_SECUREWARE 1
_ACEOF

        cat >>confdefs.h  <<_ACEOF  @%:@define  DISABLE_SHADOW  1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define DISABLE_FD_PASSING 1
_ACEOF

for   ac_func   in    getluid    setluid    do    as_ac_var=`echo
"ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking
for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C"
>&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/  #if  defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`" >&6 if test `eval echo  '${'$as_ac_var'}'`  =
yes; then
  cat  >>confdefs.h  <<_ACEOF  @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define USE_PIPES 1 _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define DISABLE_FD_PASSING 1
_ACEOF

        LDFLAGS="$LDFLAGS"            LIBS="$LIBS   -lgen   -lrsc
-lshare  -luex  -lacm"          MANTYPE=cat          ;;  *-*-uni-
cosmp*)           cat   >>confdefs.h   <<_ACEOF   @%:@define  SE-
TEUID_BREAKS_SETUID 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_SETREUID  1
_ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define BROKEN_SETREGID 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define WITH_ABBREV_NO_TTY 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define USE_PIPES 1 _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define DISABLE_FD_PASSING 1
_ACEOF

        LDFLAGS="$LDFLAGS"         LIBS="$LIBS -lgen -lacid -ldb"
        MANTYPE=cat             ;;    *-*-unicos*)            cat
>>confdefs.h <<_ACEOF @%:@define SETEUID_BREAKS_SETUID 1 _ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_SETREUID  1
_ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define BROKEN_SETREGID 1
_ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define USE_PIPES 1 _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define DISABLE_FD_PASSING 1
_ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define  NO_SSH_LASTLOG 1
_ACEOF

        LDFLAGS="$LDFLAGS               -Wl,-Dmsglevel=334:fatal"
        LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"         MAN-
TYPE=cat          ;;  *-dec-osf*)          echo  "$as_me:$LINENO:
checking  for  Digital  Unix  SIA" >&5 echo $ECHO_N "checking for
Digital Unix SIA... $ECHO_C" >&6         no_osfsia=""           #
Check  whether  --with-osfsia  or --without-osfsia was given.  if
test "${with_osfsia+set}" = set; then
  withval="$with_osfsia"

                        if  test  "x$withval"  =  "xno"  ;   then

ABLE_FD_PASSING 1 _ACEOF

                        LIBS="$LIBS  -lsecurity  -ldb  -lm -laud"
                else                                         echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
                        cat  >>confdefs.h   <<_ACEOF   @%:@define
LOCKED_PASSWD_SUBSTR "Nologin" _ACEOF

                fi          fi          cat >>confdefs.h <<_ACEOF
@%:@define BROKEN_GETADDRINFO 1 _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define SETEUID_BREAKS_SETU-
ID 1 _ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define BROKEN_SETREUID 1
_ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  BROKEN_SETREGID  1
_ACEOF

        ;;

*-*-nto-qnx)           cat   >>confdefs.h   <<_ACEOF   @%:@define
USE_PIPES 1 _ACEOF

        cat >>confdefs.h <<_ACEOF @%:@define  NO_X11_UNIX_SOCKETS
1 _ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define MISSING_NFDBITS 1
_ACEOF

        cat >>confdefs.h <<_ACEOF  @%:@define  MISSING_HOWMANY  1
_ACEOF

        cat  >>confdefs.h  <<_ACEOF  @%:@define MISSING_FD_MASK 1
_ACEOF

        ;; esac

# Allow user to specify flags

# Check whether --with-cflags or --without-cflags was given.   if
test "${with_cflags+set}" = set; then
  withval="$with_cflags"

                if    test    "x$withval"   !=   "xno"   ;   then
                        CFLAGS="$CFLAGS                 $withval"
                fi

fi;

#  Check whether --with-cppflags or --without-cppflags was given.
                        LDFLAGS="$LDFLAGS               $withval"
                fi

fi;

# Check whether --with-libs or --without-libs was given.  if test
"${with_libs+set}" = set; then
  withval="$with_libs"

                if   test   "x$withval"   !=   "xno"    ;    then
                        LIBS="$LIBS  $withval"                 fi


fi;

echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
echo  $ECHO_N "checking compiler and flags for sanity... $ECHO_C"
>&6 if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include  <stdio.h>  int  main(){exit(0);}           _ACEOF rm -f
conftest$ac_exeext if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
        echo   "$as_me:$LINENO:    result:    yes"    >&5    echo
"${ECHO_T}yes" >&6 else
  echo  "$as_me:  program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /'  conftest.$ac_ext
>&5

( exit $ac_status )

                echo   "$as_me:$LINENO:   result:  no"  >&5  echo
"${ECHO_T}no" >&6                 { { echo  "$as_me:$LINENO:  er-
ror:  ***  compiler cannot create working executables, check con-
fig.log ***" >&5 echo "$as_me: error: *** compiler cannot  create
working executables, check config.log ***" >&2;}
   { (exit 1); exit 1; }; }

echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep


echo  "$as_me:$LINENO: checking for ANSI C header files" >&5 echo
$ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test
"${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */  #include
exit(2);
  exit (0); } _ACEOF rm -f conftest$ac_exeext  if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  : else
  echo  "$as_me:  program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /'  conftest.$ac_ext
>&5

(  exit  $ac_status  )  ac_cv_header_stdc=no fi rm -f core core.*
*.core  gmon.out  bb.out  conftest$ac_exeext  conftest.$ac_objext
conftest.$ac_ext   fi   fi   fi   echo  "$as_me:$LINENO:  result:
$ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if
test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<_ACEOF @%:@define STDC_HEADERS 1 _ACEOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.






@%:@include <$ac_header> _ACEOF rm -f  conftest.$ac_objext  if  {
(eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

eval  "$as_ac_Header=no"  fi  rm  -f   conftest.$ac_objext   con-
ftest.$ac_ext   fi   echo  "$as_me:$LINENO:  result:  `eval  echo
'${'$as_ac_Header'}'`"    >&5    echo    "${ECHO_T}`eval     echo
'${'$as_ac_Header'}'`"  >&6  if  test `eval echo '${'$as_ac_Head-
er'}'` = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header"  |
$as_tr_cpp` 1 _ACEOF

fi

done








































for  ac_header in bstring.h crypt.h endian.h features.h floating-
point.h        getopt.h glob.h ia.h  lastlog.h  limits.h  login.h
        login_cap.h       maillock.h      netdb.h      netgroup.h
    netinet/in_systm.h   pam/pam_appl.h   paths.h   pty.h   read-
passphrase.h        rpc/types.h security/pam_appl.h shadow.h std-
def.h    stdint.h        strings.h    sys/strtio.h    sys/audit.h
sys/bitypes.h    sys/bsdtty.h           sys/cdefs.h    sys/mman.h
sys/prctl.h sys/pstat.h sys/ptms.h       sys/select.h  sys/stat.h
sys/stream.h    sys/stropts.h        sys/sysmacros.h   sys/time.h
sys/timers.h sys/un.h time.h tmpdir.h  ttyent.h usersec.h  util.h
utime.h  utmp.h  utmpx.h vis.h do as_ac_Header=`echo "ac_cv_head-
er_$ac_header" | $as_tr_sh` if eval "test
  echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N
"checking for $ac_header... $ECHO_C" >&6 if eval "test
  echo  $ECHO_N  "(cached)  $ECHO_C" >&6 fi echo "$as_me:$LINENO:
result:    `eval    echo    '${'$as_ac_Header'}'`"    >&5    echo
"${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else
  #  Is  the  header  compilable?  echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking  $ac_header  us-
ability...  $ECHO_C"  >&6  cat  >conftest.$ac_ext  <<_ACEOF #line
$LINENO "configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h
>>conftest.$ac_ext   cat   >>conftest.$ac_ext   <<_ACEOF  /*  end
confdefs.h.   */  $ac_includes_default  @%:@include  <$ac_header>
_ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

  ac_header_preproc=no fi  rm  -f  conftest.err  conftest.$ac_ext
echo   "$as_me:$LINENO:   result:  $ac_header_preproc"  >&5  echo
"${ECHO_T}$ac_header_preproc" >&6

#  So?   What  about  this   header?    case   $ac_header_compil-
er:$ac_header_preproc in
  yes:no )
    {  echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me:  WARN-
ING:  $ac_header:  accepted by the compiler, rejected by the pre-
processor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding  with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not  be  compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for  miss-
ing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header:
check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding  with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |

done


#  Checks  for  libraries.   echo  "$as_me:$LINENO:  checking for
yp_match" >&5 echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
if test "${ac_cv_func_yp_match+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char yp_match (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char yp_match (); /* The GNU C library defines this for functions
which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/  #if  defined (__stub_yp_match) || defined (__stub___yp_match)
choke me #else char (*f) () = yp_match; #endif #ifdef __cplusplus
} #endif

int main () { return f != yp_match;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_yp_match=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_func_yp_match=no   fi   rm   -f   conftest.$ac_objext  con-
ftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result:
$ac_cv_func_yp_match"  >&5  echo  "${ECHO_T}$ac_cv_func_yp_match"
>&6 if test $ac_cv_func_yp_match = yes; then
  : else

char yp_match (); int main () { yp_match ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_nsl_yp_match=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_lib_nsl_yp_match=no  fi  rm  -f  conftest.$ac_objext   con-
ftest$ac_exeext  conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match"  >&5  echo
"${ECHO_T}$ac_cv_lib_nsl_yp_match"        >&6       if       test
$ac_cv_lib_nsl_yp_match = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBNSL 1 _ACEOF

  LIBS="-lnsl $LIBS"

fi

fi

echo "$as_me:$LINENO: checking for setsockopt" >&5  echo  $ECHO_N
"checking    for    setsockopt...    $ECHO_C"    >&6    if   test
"${ac_cv_func_setsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /*  end  confdefs.h.   */  /*  System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char setsockopt (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */  #ifdef
__STDC__  #  include <limits.h> #else # include <assert.h> #endif
/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char  setsockopt  (); /* The GNU C library defines this for func-
tions which it implements
    to always fail with  ENOSYS.   Some  functions  are  actually
named
    something  starting  with __ and the normal name is an alias.

  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_setsockopt=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_func_setsockopt=no  fi  rm  -f   conftest.$ac_objext   con-
ftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result:
$ac_cv_func_setsockopt" >&5  echo  "${ECHO_T}$ac_cv_func_setsock-
opt" >&6 if test $ac_cv_func_setsockopt = yes; then
  : else

echo  "$as_me:$LINENO:  checking  for setsockopt in -lsocket" >&5
echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS  LIBS="-lsocket   $LIBS" cat >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char setsockopt (); int main () { setsockopt ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_socket_setsockopt=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_lib_socket_setsockopt=no  fi rm -f conftest.$ac_objext con-
ftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS  fi
echo  "$as_me:$LINENO:  result: $ac_cv_lib_socket_setsockopt" >&5
echo   "${ECHO_T}$ac_cv_lib_socket_setsockopt"   >&6   if    test
$ac_cv_lib_socket_setsockopt = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBSOCKET 1 _ACEOF

>conftest.$ac_ext   <<_ACEOF   #line   $LINENO   "configure"   /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char innetgr (); int main () { innetgr ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_rpc_innetgr=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_lib_rpc_innetgr=no  fi  rm  -f   conftest.$ac_objext   con-
ftest$ac_exeext  conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi
echo "$as_me:$LINENO: result:  $ac_cv_lib_rpc_innetgr"  >&5  echo
"${ECHO_T}$ac_cv_lib_rpc_innetgr"  >&6 if test $ac_cv_lib_rpc_in-
netgr = yes; then
  LIBS="-lrpc -lyp -lrpc $LIBS" fi

    fi fi


for ac_func in dirname do as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`  echo "$as_me:$LINENO: checking for $ac_func" >&5 echo
$ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /*  end  confdefs.h.   */  /*  System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */  #ifdef
__STDC__  #  include <limits.h> #else # include <assert.h> #endif
/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */

  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`"  >&6  if test `eval echo '${'$as_ac_var'}'` =
yes; then
  cat >>confdefs.h <<_ACEOF @%:@define  `echo  "HAVE_$ac_func"  |
$as_tr_cpp` 1 _ACEOF

for  ac_header  in  libgen.h  do  as_ac_Header=`echo "ac_cv_head-
er_$ac_header" | $as_tr_sh` if eval "test
  echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N
"checking for $ac_header... $ECHO_C" >&6 if eval "test
  echo  $ECHO_N  "(cached)  $ECHO_C" >&6 fi echo "$as_me:$LINENO:
result:    `eval    echo    '${'$as_ac_Header'}'`"    >&5    echo
"${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else
  #  Is  the  header  compilable?  echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking  $ac_header  us-
ability...  $ECHO_C"  >&6  cat  >conftest.$ac_ext  <<_ACEOF #line
$LINENO "configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h
>>conftest.$ac_ext   cat   >>conftest.$ac_ext   <<_ACEOF  /*  end
confdefs.h.   */  $ac_includes_default  @%:@include  <$ac_header>
_ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_header_compiler=no   fi   rm   -f   conftest.$ac_objext   con-
ftest.$ac_ext echo "$as_me:$LINENO: result:  $ac_header_compiler"
>&5 echo "${ECHO_T}$ac_header_compiler" >&6
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

  ac_header_preproc=no fi  rm  -f  conftest.err  conftest.$ac_ext
echo   "$as_me:$LINENO:   result:  $ac_header_preproc"  >&5  echo
"${ECHO_T}$ac_header_preproc" >&6

#  So?   What  about  this   header?    case   $ac_header_compil-
er:$ac_header_preproc in
  yes:no )
    {  echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me:  WARN-
ING:  $ac_header:  accepted by the compiler, rejected by the pre-
processor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding  with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not  be  compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for  miss-
ing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header:
check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding  with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;; esac echo "$as_me:$LINENO: checking  for  $ac_header"  >&5
echo  $ECHO_N  "checking  for  $ac_header... $ECHO_C" >&6 if eval
"test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
        echo  "$as_me:$LINENO: checking for dirname in -lgen" >&5
echo $ECHO_N "checking for dirname in -lgen...  $ECHO_C"  >&6  if
test "${ac_cv_lib_gen_dirname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS   LIBS="-lgen   $LIBS"  cat  >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dirname (); int main () { dirname ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gen_dirname=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_lib_gen_dirname=no   fi   rm  -f  conftest.$ac_objext  con-
ftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS  fi
echo  "$as_me:$LINENO:  result:  $ac_cv_lib_gen_dirname" >&5 echo
"${ECHO_T}$ac_cv_lib_gen_dirname"       >&6        if        test
$ac_cv_lib_gen_dirname = yes; then

                echo   "$as_me:$LINENO:   checking   for   broken
dirname"  >&5  echo  $ECHO_N  "checking  for  broken   dirname...
$ECHO_C"  >&6  if  test "${ac_cv_have_broken_dirname+set}" = set;
then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                        save_LIBS="$LIBS"
                        LIBS="$LIBS                        -lgen"
                        if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_broken_dirname="no" else
  echo "$as_me: program exited with status $ac_status"  >&5  echo
"$as_me:  failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5

( exit $ac_status )
 ac_cv_have_broken_dirname="yes"                           fi  rm
-f  core  core.*  *.core  gmon.out bb.out conftest$ac_exeext con-
ftest.$ac_objext               conftest.$ac_ext                fi
                        LIBS="$save_LIBS"                      fi
echo  "$as_me:$LINENO:  result:  $ac_cv_have_broken_dirname"  >&5
echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6                 if
test    "x$ac_cv_have_broken_dirname"    =    "xno"    ;     then
                        LIBS="$LIBS                        -lgen"
                        cat  >>confdefs.h   <<_ACEOF   @%:@define
HAVE_DIRNAME 1 _ACEOF

                         for ac_header in libgen.h do as_ac_Head-
er=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test
  echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N
"checking for $ac_header... $ECHO_C" >&6 if eval "test
  echo  $ECHO_N  "(cached)  $ECHO_C" >&6 fi echo "$as_me:$LINENO:
result:    `eval    echo    '${'$as_ac_Header'}'`"    >&5    echo
"${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else
  #  Is  the  header  compilable?  echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking  $ac_header  us-
ability...  $ECHO_C"  >&6  cat  >conftest.$ac_ext  <<_ACEOF #line
$LINENO "configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h
>>conftest.$ac_ext   cat   >>conftest.$ac_ext   <<_ACEOF  /*  end
confdefs.h.   */  $ac_includes_default  @%:@include  <$ac_header>
_ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

  ac_header_preproc=no fi  rm  -f  conftest.err  conftest.$ac_ext
echo   "$as_me:$LINENO:   result:  $ac_header_preproc"  >&5  echo
"${ECHO_T}$ac_header_preproc" >&6

#  So?   What  about  this   header?    case   $ac_header_compil-
er:$ac_header_preproc in
  yes:no )
    {  echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me:  WARN-
ING:  $ac_header:  accepted by the compiler, rejected by the pre-
processor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding  with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not  be  compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for  miss-
ing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header:
check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding  with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |

done

                fi          fi


fi done


echo  "$as_me:$LINENO:  checking  for  getspnam" >&5 echo $ECHO_N
"checking for getspnam... $ECHO_C" >&6 if test "${ac_cv_func_get-
spnam+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char getspnam (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getspnam (); /* The GNU C library defines this for functions
which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/  #if  defined (__stub_getspnam) || defined (__stub___getspnam)
choke me #else char (*f) () = getspnam; #endif #ifdef __cplusplus
} #endif

int main () { return f != getspnam;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getspnam=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getspnam (); int main () { getspnam ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gen_getspnam=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_lib_gen_getspnam=no  fi  rm  -f  conftest.$ac_objext   con-
ftest$ac_exeext  conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam"  >&5  echo
"${ECHO_T}$ac_cv_lib_gen_getspnam"        >&6       if       test
$ac_cv_lib_gen_getspnam = yes; then
  LIBS="$LIBS -lgen" fi

fi

echo "$as_me:$LINENO: checking for library  containing  basename"
>&5  echo  $ECHO_N  "checking  for library containing basename...
$ECHO_C" >&6 if test "${ac_cv_search_basename+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_func_search_save_LIBS=$LIBS   ac_cv_search_basename=no   cat
>conftest.$ac_ext   <<_ACEOF   #line   $LINENO   "configure"   /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char basename (); int main () { basename ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
    cat  >conftest.$ac_ext  <<_ACEOF #line $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char basename (); int main () { basename ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_basename="-l$ac_lib" break else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO:
result:          $ac_cv_search_basename"         >&5         echo
"${ECHO_T}$ac_cv_search_basename"       >&6        if        test
"$ac_cv_search_basename" != no; then
  test    "$ac_cv_search_basename"    =    "none   required"   ||
LIBS="$ac_cv_search_basename $LIBS"
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_BASENAME 1 _ACEOF

fi



# Check whether --with-zlib or --without-zlib was given.  if test
"${with_zlib+set}" = set; then
  withval="$with_zlib"

                if    test    "x$withval"    =   "xno"   ;   then
                        { { echo "$as_me:$LINENO: error: *** zlib
is  required  ***"  >&5 echo "$as_me: error: *** zlib is required
***" >&2;}
   { (exit 1); exit 1; }; }                 fi                 if
test  -d  "$withval/lib"; then                         if test -n
"${need_dash_r}";    then                                     LD-
FLAGS="-L${withval}/lib        -R${withval}/lib       ${LDFLAGS}"
                        else                                  LD-

echo  "$as_me:$LINENO:  checking  for  deflate  in  -lz" >&5 echo
$ECHO_N "checking for deflate in  -lz...  $ECHO_C"  >&6  if  test
"${ac_cv_lib_z_deflate+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS   LIBS="-lz    $LIBS"   cat  >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char deflate (); int main () { deflate ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_z_deflate=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_lib_z_deflate=no   fi   rm   -f   conftest.$ac_objext  con-
ftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS  fi
echo  "$as_me:$LINENO:  result:  $ac_cv_lib_z_deflate"  >&5  echo
"${ECHO_T}$ac_cv_lib_z_deflate" >&6 if test  $ac_cv_lib_z_deflate
= yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBZ 1 _ACEOF

  LIBS="-lz $LIBS"

else

                saved_CPPFLAGS="$CPPFLAGS"
                saved_LDFLAGS="$LDFLAGS"
                save_LIBS="$LIBS"
                                if test -n "${need_dash_r}"; then
                        LDFLAGS="-L/usr/local/lib      -R/usr/lo-
cal/lib          ${saved_LDFLAGS}"                           else
                        LDFLAGS="-L/usr/local/lib     ${saved_LD-
FLAGS}"                  fi                  CPPFLAGS="-I/usr/lo-
cal/include  ${saved_CPPFLAGS}"                  LIBS="$LIBS -lz"
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBZ 1 _ACEOF

else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5


                                { { echo "$as_me:$LINENO:  error:
***  zlib missing - please install first or check config.log ***"
>&5 echo "$as_me: error: *** zlib missing - please install  first
or check config.log ***" >&2;}
   {   (exit   1);   exit   1;   };   }
                 fi rm -f conftest.$ac_objext  conftest$ac_exeext
conftest.$ac_ext

fi

if test "${ac_cv_header_zlib_h+set}" = set; then
  echo  "$as_me:$LINENO:  checking  for  zlib.h" >&5 echo $ECHO_N
"checking for  zlib.h...  $ECHO_C"  >&6  if  test  "${ac_cv_head-
er_zlib_h+set}" = set; then
  echo  $ECHO_N  "(cached)  $ECHO_C" >&6 fi echo "$as_me:$LINENO:
result:  $ac_cv_header_zlib_h"  >&5  echo  "${ECHO_T}$ac_cv_head-
er_zlib_h" >&6 else
  #  Is  the  header  compilable?  echo "$as_me:$LINENO: checking
zlib.h usability" >&5 echo $ECHO_N "checking zlib.h  usability...
$ECHO_C"  >&6  cat >conftest.$ac_ext <<_ACEOF #line $LINENO "con-
figure"  /*  confdefs.h.   */  _ACEOF   cat   confdefs.h   >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/ $ac_includes_default @%:@include <zlib.h> _ACEOF  rm  -f  con-
ftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

  ac_header_preproc=no fi  rm  -f  conftest.err  conftest.$ac_ext
echo   "$as_me:$LINENO:   result:  $ac_header_preproc"  >&5  echo
"${ECHO_T}$ac_header_preproc" >&6

#  So?   What  about  this   header?    case   $ac_header_compil-
er:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the com-
piler, rejected by the preprocessor!" >&5 echo "$as_me:  WARNING:
zlib.h:  accepted by the compiler, rejected by the preprocessor!"
>&2;}
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with  the
preprocessor's  result"  >&5  echo "$as_me: WARNING: zlib.h: pro-
ceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: zlib.h: present  but  cannot
be  compiled" >&5 echo "$as_me: WARNING: zlib.h: present but can-
not be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: zlib.h:  check  for  missing
prerequisite  headers?"  >&5 echo "$as_me: WARNING: zlib.h: check
for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with  the
preprocessor's  result"  >&5  echo "$as_me: WARNING: zlib.h: pro-
ceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2

   { (exit 1); exit 1; }; } fi




#  Check whether --with-zlib-version-check or --without-zlib-ver-
sion-check was given.  if test "${with_zlib_version_check+set}" =
set; then
  withval="$with_zlib_version_check"
    if      test      "x$withval"      =     "xno"     ;     then
                zlib_check_nonfatal=1            fi

fi;

echo "$as_me:$LINENO: checking for zlib  1.1.4  or  greater"  >&5
echo  $ECHO_N "checking for zlib 1.1.4 or greater... $ECHO_C" >&6
if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include <zlib.h> int main() {         int a, b, c, v;         if
(sscanf(ZLIB_VERSION,   "%d.%d.%d",   &a,   &b,   &c)    !=    3)
                exit(1);          v  =  a*1000000  +  b*1000 + c;
        if (v >=  1001004)                  exit(0);          ex-
it(2); }          _ACEOF rm -f conftest$ac_exeext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes"  >&6
else
  echo  "$as_me:  program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /'  conftest.$ac_ext
>&5

( exit $ac_status )
 echo  "$as_me:$LINENO:  result:  no"  >&5 echo "${ECHO_T}no" >&6
            if   test   -z    "$zlib_check_nonfatal"    ;    then
                { { echo "$as_me:$LINENO: error: *** zlib too old
- check config.log *** Your reported zlib version has known secu-
"$as_me:$LINENO: WARNING: zlib version may  have  security  prob-
lems"  >&5  echo "$as_me: WARNING: zlib version may have security
problems" >&2;}           fi

fi rm -f core core.* *.core  gmon.out  bb.out  conftest$ac_exeext
conftest.$ac_objext conftest.$ac_ext fi

echo  "$as_me:$LINENO:  checking for strcasecmp" >&5 echo $ECHO_N
"checking   for    strcasecmp...    $ECHO_C"    >&6    if    test
"${ac_cv_func_strcasecmp+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char strcasecmp (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strcasecmp (); /* The GNU C library defines this  for  func-
tions which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/  #if  defined  (__stub_strcasecmp)  ||  defined (__stub___str-
casecmp) choke me #else char (*f) () = strcasecmp; #endif  #ifdef
__cplusplus } #endif

int main () { return f != strcasecmp;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_strcasecmp=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_func_strcasecmp=no   fi   rm  -f  conftest.$ac_objext  con-
ftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result:
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strcasecmp (); int main () { strcasecmp ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_resolv_strcasecmp=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_lib_resolv_strcasecmp=no fi rm -f conftest.$ac_objext  con-
ftest$ac_exeext  conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi
echo "$as_me:$LINENO: result:  $ac_cv_lib_resolv_strcasecmp"  >&5
echo    "${ECHO_T}$ac_cv_lib_resolv_strcasecmp"   >&6   if   test
$ac_cv_lib_resolv_strcasecmp = yes; then
  LIBS="$LIBS -lresolv" fi


fi

echo "$as_me:$LINENO:  checking  for  utimes"  >&5  echo  $ECHO_N
"checking     for     utimes...     $ECHO_C"    >&6    if    test
"${ac_cv_func_utimes+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /*  end  confdefs.h.   */  /*  System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char utimes (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */  #ifdef
__STDC__  #  include <limits.h> #else # include <assert.h> #endif
/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char  utimes  (); /* The GNU C library defines this for functions
which it implements
    to always fail with  ENOSYS.   Some  functions  are  actually
named
    something  starting  with __ and the normal name is an alias.
*/ #if defined (__stub_utimes) || defined (__stub___utimes) choke
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_utimes=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_func_utimes=no fi rm -f conftest.$ac_objext conftest$ac_ex-
eext    conftest.$ac_ext   fi   echo   "$as_me:$LINENO:   result:
$ac_cv_func_utimes" >&5 echo "${ECHO_T}$ac_cv_func_utimes" >&6 if
test $ac_cv_func_utimes = yes; then
  : else
   echo  "$as_me:$LINENO:  checking for utimes in -lc89" >&5 echo
$ECHO_N "checking for utimes in -lc89...  $ECHO_C"  >&6  if  test
"${ac_cv_lib_c89_utimes+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS   LIBS="-lc89   $LIBS"  cat  >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char utimes (); int main () { utimes ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_c89_utimes=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_lib_c89_utimes=no   fi   rm   -f  conftest.$ac_objext  con-
ftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS  fi
echo  "$as_me:$LINENO:  result:  $ac_cv_lib_c89_utimes"  >&5 echo
"${ECHO_T}$ac_cv_lib_c89_utimes"        >&6        if        test
$ac_cv_lib_c89_utimes = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_UTIMES 1 _ACEOF

                                        LIBS="$LIBS -lc89" fi

ability...  $ECHO_C"  >&6  cat  >conftest.$ac_ext  <<_ACEOF #line
$LINENO "configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h
>>conftest.$ac_ext   cat   >>conftest.$ac_ext   <<_ACEOF  /*  end
confdefs.h.   */  $ac_includes_default  @%:@include  <$ac_header>
_ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_header_compiler=no   fi   rm   -f   conftest.$ac_objext   con-
ftest.$ac_ext echo "$as_me:$LINENO: result:  $ac_header_compiler"
>&5 echo "${ECHO_T}$ac_header_compiler" >&6

#   Is   the  header  present?   echo  "$as_me:$LINENO:  checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header  pres-
ence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO
"configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h  >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/   @%:@include   <$ac_header>   _ACEOF   if   {   (eval    echo
"$as_me:$LINENO:
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

  ac_header_preproc=no fi  rm  -f  conftest.err  conftest.$ac_ext
echo   "$as_me:$LINENO:   result:  $ac_header_preproc"  >&5  echo
"${ECHO_T}$ac_header_preproc" >&6

#  So?   What  about  this   header?    case   $ac_header_compil-
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not  be  compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for  miss-
ing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header:
check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding  with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;; esac echo "$as_me:$LINENO: checking  for  $ac_header"  >&5
echo  $ECHO_N  "checking  for  $ac_header... $ECHO_C" >&6 if eval
"test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  eval      "$as_ac_Header=$ac_header_preproc"      fi       echo
"$as_me:$LINENO:  result:  `eval  echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header"  |
$as_tr_cpp` 1 _ACEOF

fi

done

echo  "$as_me:$LINENO: checking for library containing login" >&5
echo $ECHO_N "checking for library containing  login...  $ECHO_C"
>&6 if test "${ac_cv_search_login+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_func_search_save_LIBS=$LIBS  ac_cv_search_login=no cat >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char login (); int main () { login ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5

if test "$ac_cv_search_login" = no; then
  for ac_lib in util bsd; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char login (); int main () { login ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_login="-l$ac_lib" break else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO:
result: $ac_cv_search_login" >&5 echo "${ECHO_T}$ac_cv_search_lo-
gin" >&6 if test "$ac_cv_search_login" != no; then
  test     "$ac_cv_search_login"    =    "none    required"    ||
LIBS="$ac_cv_search_login $LIBS"
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LOGIN 1 _ACEOF

fi




for  ac_func  in  logout  updwtmp  logwtmp   do   as_ac_var=`echo
"ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking
for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C"
>&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.

} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`" >&6 if test `eval echo  '${'$as_ac_var'}'`  =
yes; then
  cat  >>confdefs.h  <<_ACEOF  @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF

fi done



for ac_header in bsm/audit.h do  as_ac_Header=`echo  "ac_cv_head-
er_$ac_header" | $as_tr_sh` if eval "test
  echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N
"checking for $ac_header... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6  fi  echo  "$as_me:$LINENO:
result:    `eval    echo    '${'$as_ac_Header'}'`"    >&5    echo
"${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else
  # Is the header  compilable?   echo  "$as_me:$LINENO:  checking
$ac_header  usability"  >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C"  >&6  cat  >conftest.$ac_ext  <<_ACEOF  #line
$LINENO  "configure"  /*  confdefs.h.   */  _ACEOF cat confdefs.h
>>conftest.$ac_ext  cat  >>conftest.$ac_ext   <<_ACEOF   /*   end
confdefs.h.   */  $ac_includes_default  @%:@include  <$ac_header>
_ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:

ence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO
"configure"  /*  confdefs.h.   */  _ACEOF  cat  confdefs.h >>con-
ftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end  confdefs.h.
*/    @%:@include   <$ac_header>   _ACEOF   if   {   (eval   echo
"$as_me:$LINENO:
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

  ac_header_preproc=no  fi  rm  -f  conftest.err conftest.$ac_ext
echo  "$as_me:$LINENO:  result:  $ac_header_preproc"   >&5   echo
"${ECHO_T}$ac_header_preproc" >&6

#   So?    What   about  this  header?   case  $ac_header_compil-
er:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by  the
compiler,  rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by  the  pre-
processor!" >&2;}
    {  echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat  <<_ASBOX @%:@@%:@ ------------------------------------
@%:@@%:@ @%:@@%:@ Report this to  bug-autoconf@gnu.org.  @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING:  $ac_header:  present
but cannot be compiled" >&2;}
    {  echo "$as_me:$LINENO: WARNING: $ac_header: check for miss-
ing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header:
check for missing prerequisite headers?" >&2;}
    {  echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:

fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat  >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF

fi

done


echo "$as_me:$LINENO: checking for getaudit in  -lbsm"  >&5  echo
$ECHO_N  "checking  for getaudit in -lbsm... $ECHO_C" >&6 if test
"${ac_cv_lib_bsm_getaudit+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS  LIBS="-lbsm   $LIBS"  cat   >con-
ftest.$ac_ext  <<_ACEOF  #line $LINENO "configure" /* confdefs.h.
*/  _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat   >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getaudit (); int main () { getaudit ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_bsm_getaudit=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_lib_bsm_getaudit=no  fi  rm  -f  conftest.$ac_objext   con-
ftest$ac_exeext  conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi
echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit"  >&5  echo
"${ECHO_T}$ac_cv_lib_bsm_getaudit"        >&6       if       test
$ac_cv_lib_bsm_getaudit = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBBSM 1 _ACEOF

  LIBS="-lbsm $LIBS"

fi

might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getaudit (); /* The GNU C library defines this for functions
which it implements
    to always fail with  ENOSYS.   Some  functions  are  actually
named
    something  starting  with __ and the normal name is an alias.
*/ #if defined (__stub_getaudit) ||  defined  (__stub___getaudit)
choke me #else char (*f) () = getaudit; #endif #ifdef __cplusplus
} #endif

int main () { return f != getaudit;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getaudit=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_func_getaudit=no  fi   rm   -f   conftest.$ac_objext   con-
ftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result:
$ac_cv_func_getaudit"  >&5  echo  "${ECHO_T}$ac_cv_func_getaudit"
>&6 if test $ac_cv_func_getaudit = yes; then

cat >>confdefs.h <<_ACEOF @%:@define HAVE_GETAUDIT 1 _ACEOF

         fi

echo   "$as_me:$LINENO:  checking  for  getaudit_addr"  >&5  echo
$ECHO_N "checking  for  getaudit_addr...  $ECHO_C"  >&6  if  test
"${ac_cv_func_getaudit_addr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char getaudit_addr (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getaudit_addr=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_func_getaudit_addr=no  fi  rm  -f  conftest.$ac_objext con-
ftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result:
$ac_cv_func_getaudit_addr"  >&5 echo "${ECHO_T}$ac_cv_func_getau-
dit_addr" >&6 if test $ac_cv_func_getaudit_addr = yes; then

cat >>confdefs.h <<_ACEOF @%:@define HAVE_GETAUDIT_ADDR 1 _ACEOF

         fi



for ac_func in strftime do as_ac_var=`echo  "ac_cv_func_$ac_func"
|  $as_tr_sh`  echo  "$as_me:$LINENO:  checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/  #if  defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`" >&6 if test `eval echo  '${'$as_ac_var'}'`  =
yes; then
  cat  >>confdefs.h  <<_ACEOF  @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF

else
  # strftime is in -lintl on  SCO  UNIX.   echo  "$as_me:$LINENO:
checking  for  strftime in -lintl" >&5 echo $ECHO_N "checking for
strftime    in     -lintl...     $ECHO_C"     >&6     if     test
"${ac_cv_lib_intl_strftime+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS  LIBS="-lintl   $LIBS"  cat  >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char strftime (); int main () { strftime ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_intl_strftime=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_lib_intl_strftime=no  fi  rm  -f  conftest.$ac_objext  con-
ftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS  fi
echo  "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 echo
"${ECHO_T}$ac_cv_lib_intl_strftime"       >&6       if       test
$ac_cv_lib_intl_strftime = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_STRFTIME 1 _ACEOF

LIBS="-lintl $LIBS" fi
  $EGREP "FOUNDIT" >/dev/null 2>&1; then

                cat     >>confdefs.h     <<_ACEOF      @%:@define
GLOB_HAS_ALTDIRFUNC 1 _ACEOF

                echo   "$as_me:$LINENO:  result:  yes"  >&5  echo
"${ECHO_T}yes" >&6          else

                echo  "$as_me:$LINENO:  result:  no"   >&5   echo
"${ECHO_T}no" >&6

fi rm -f conftest*


#  Check  for  g.gl_matchc glob() extension echo "$as_me:$LINENO:
checking for gl_matchc field in glob_t" >&5 echo $ECHO_N  "check-
ing  for  gl_matchc  field  in  glob_t...  $ECHO_C" >&6 cat >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

                #include       <glob.h>                       int
main(void){glob_t  g;  g.gl_matchc = 1;}          _ACEOF if (eval
"$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "FOUNDIT" >/dev/null 2>&1; then

                cat     >>confdefs.h     <<_ACEOF      @%:@define
GLOB_HAS_GL_MATCHC 1 _ACEOF

                echo   "$as_me:$LINENO:  result:  yes"  >&5  echo
"${ECHO_T}yes" >&6          else

                echo  "$as_me:$LINENO:  result:  no"   >&5   echo
"${ECHO_T}no" >&6

fi rm -f conftest*


echo  "$as_me:$LINENO:  checking  whether struct dirent allocates
space for d_name" >&5 echo $ECHO_N "checking whether  struct  di-
rent   allocates   space  for  d_name...  $ECHO_C"  >&6  if  test
"$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include  <sys/types.h> #include <dirent.h> int main(void){struct
"$as_me:  failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5

( exit $ac_status )

                echo  "$as_me:$LINENO:  result:  no"   >&5   echo
"${ECHO_T}no"   >&6                   cat  >>confdefs.h  <<_ACEOF
@%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 _ACEOF



fi rm -f core core.* *.core  gmon.out  bb.out  conftest$ac_exeext
conftest.$ac_objext conftest.$ac_ext fi

# Check whether user wants S/Key support SKEY_MSG="no"

# Check whether --with-skey or --without-skey was given.  if test
"${with_skey+set}" = set; then
  withval="$with_skey"

                if test "x$withval" != "xno" ; then

                        if test  "x$withval"  !=  "xyes"  ;  then
                                CPPFLAGS="$CPPFLAGS     -I${with-
val}/include"                                   LDFLAGS="$LDFLAGS
-L${withval}/lib"                         fi

                        cat >>confdefs.h <<_ACEOF @%:@define SKEY
1 _ACEOF

                        LIBS="-lskey                       $LIBS"
                        SKEY_MSG="yes"
                        echo "$as_me:$LINENO: checking for  s/key
support" >&5 echo $ECHO_N "checking for s/key support... $ECHO_C"
>&6                         if  test  "$cross_compiling"  =  yes;
then
  {  { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log'  for  more  details."  >&5  echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include <stdio.h> #include <skey.h> int  main()  {  char  *ff  =
skey_keyinfo("");           ff="";           exit(0);           }
                                 _ACEOF rm -f  conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
                                        echo "$as_me:$LINENO: re-
sult:       no"       >&5       echo       "${ECHO_T}no"      >&6
                                        { { echo "$as_me:$LINENO:
error:  **  Incomplete  or  missing  s/key  libraries."  >&5 echo
"$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
   { (exit 1); exit 1; }; }                                    fi
rm  -f core core.* *.core gmon.out bb.out conftest$ac_exeext con-
ftest.$ac_objext conftest.$ac_ext fi
                        echo "$as_me:$LINENO: checking  if  skey-
challenge  takes 4 arguments" >&5 echo $ECHO_N "checking if skey-
challenge     takes     4     arguments...      $ECHO_C"      >&6
                        cat   >conftest.$ac_ext   <<_ACEOF  #line
$LINENO "configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h
>>conftest.$ac_ext   cat   >>conftest.$ac_ext   <<_ACEOF  /*  end
confdefs.h.            */           #include            <stdio.h>
                                  #include <skey.h> int main () {
(void)skeychallenge(NULL,"name","",0);
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo  "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6
                                   cat   >>confdefs.h    <<_ACEOF
@%:@define SKEYCHALLENGE_4ARG 1 _ACEOF

else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6
                          fi  rm  -f   conftest.$ac_objext   con-
ftest.$ac_ext                 fi

fi;

# Check whether user wants TCP wrappers support TCPW_MSG="no"

# Check whether --with-tcp-wrappers or --without-tcp-wrappers was
given.  if test "${with_tcp_wrappers+set}" = set; then
  withval="$with_tcp_wrappers"

                if   test   "x$withval"   !=   "xno"    ;    then
                        saved_LIBS="$LIBS"

"${need_dash_r}";                                            then
                                                LD-
FLAGS="-L${withval}           -R${withval}            ${LDFLAGS}"
                                        else
                                                LD-
FLAGS="-L${withval}                                   ${LDFLAGS}"
                                        fi
                                fi
                                if test -d  "${withval}/include";
then                                          CPPFLAGS="-I${with-
val}/include  ${CPPFLAGS}"                                   else
                                        CPPFLAGS="-I${withval}
${CPPFLAGS}"                                                   fi
                        fi                                   LIB-
WRAP="-lwrap"                            LIBS="$LIBWRAP    $LIBS"
                        echo  "$as_me:$LINENO:  checking for lib-
wrap" >&5 echo $ECHO_N  "checking  for  libwrap...  $ECHO_C"  >&6
                        cat   >conftest.$ac_ext   <<_ACEOF  #line
$LINENO "configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h
>>conftest.$ac_ext   cat   >>conftest.$ac_ext   <<_ACEOF  /*  end
confdefs.h.  */

#include   <sys/types.h>   #include    <sys/socket.h>    #include
hosts_access(0);
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then

                                        echo "$as_me:$LINENO: re-
sult:      yes"      >&5      echo       "${ECHO_T}yes"       >&6
                                        cat >>confdefs.h <<_ACEOF
@%:@define LIBWRAP 1 _ACEOF


                                        TCPW_MSG="yes"
                                 else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5




























































for   ac_func   in   arc4random  __b64_ntop  b64_ntop  __b64_pton
b64_pton       bcopy bindresvport_sa clock fchmod fchown  freead-
drinfo futimes        getaddrinfo getcwd getgrouplist getnameinfo
getopt       getpeereid  _getpty  getrlimit  getttyent  glob  in-
et_aton        inet_ntoa   inet_ntop   innetgr   login_getcapbool
md5_crypt memmove  mkdtemp mmap ngetaddrinfo nsleep  ogetaddrinfo
openlog_r  openpty          pstat  prctl  readpassphrase realpath
recvmsg rresvport_af sendmsg     setdtablesize setegid setenv se-
teuid setgroups setlogin setpcred       setproctitle setregid se-
treuid setrlimit       setsid setvbuf sigaction  sigvec  snprintf
socketpair  strerror    strlcat  strlcpy  strmode strnvis strtoul
sysconf tcgetpgrp    truncate unsetenv  updwtmpx  utimes  vhangup
vsnprintf  waitpid  do  as_ac_var=`echo  "ac_cv_func_$ac_func"  |
$as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5  echo
$ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/  #if  defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&

yes; then
  cat  >>confdefs.h  <<_ACEOF  @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF

fi done


# IRIX has a const char return value for gai_strerror()

for    ac_func     in     gai_strerror     do     as_ac_var=`echo
"ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking
for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C"
>&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/  #if  defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include <sys/types.h> #include <sys/socket.h> #include <netdb.h>

const char *gai_strerror(int); int main () {

char *str;

str = gai_strerror(0);
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then

                  cat  >>confdefs.h <<_ACEOF @%:@define HAVE_CON-
ST_GAI_STRERROR_PROTO 1 _ACEOF

else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

fi rm -f conftest.$ac_objext conftest.$ac_ext fi done


echo  "$as_me:$LINENO: checking for library containing nanosleep"
>&5 echo $ECHO_N "checking for  library  containing  nanosleep...
$ECHO_C" >&6 if test "${ac_cv_search_nanosleep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_func_search_save_LIBS=$LIBS   ac_cv_search_nanosleep=no  cat
>conftest.$ac_ext   <<_ACEOF   #line   $LINENO   "configure"   /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char nanosleep (); int main () { nanosleep ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  for ac_lib in rt posix4; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char nanosleep (); int main () { nanosleep ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_nanosleep="-l$ac_lib" break else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO:
result:         $ac_cv_search_nanosleep"         >&5         echo
"${ECHO_T}$ac_cv_search_nanosleep"        >&6       if       test
"$ac_cv_search_nanosleep" != no; then
  test   "$ac_cv_search_nanosleep"   =   "none    required"    ||
LIBS="$ac_cv_search_nanosleep $LIBS"
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_NANOSLEEP 1 _ACEOF

fi


echo  "$as_me:$LINENO:  checking  whether strsep is declared" >&5
echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl_strsep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { #ifndef strsep
  char *p = (char *) strsep; #endif

  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo

ac_cv_have_decl_strsep=no  fi  rm  -f  conftest.$ac_objext   con-
ftest.$ac_ext  fi  echo  "$as_me:$LINENO: result: $ac_cv_have_de-
cl_strsep" >&5  echo  "${ECHO_T}$ac_cv_have_decl_strsep"  >&6  if
test $ac_cv_have_decl_strsep = yes; then

for  ac_func in strsep do as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5  echo
$ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/  #if  defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default int main () { #ifndef getrusage
  char *p = (char *) getrusage; #endif

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_have_decl_getrusage=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_have_decl_getrusage=no  fi  rm  -f conftest.$ac_objext con-
ftest.$ac_ext fi echo  "$as_me:$LINENO:  result:  $ac_cv_have_de-
cl_getrusage"  >&5 echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
if test $ac_cv_have_decl_getrusage = yes; then

for ac_func in getrusage do as_ac_var=`echo "ac_cv_func_$ac_func"
|  $as_tr_sh`  echo  "$as_me:$LINENO:  checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/  #if  defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

  eval "$as_ac_var=yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`" >&6 if test `eval echo  '${'$as_ac_var'}'`  =
yes; then
  cat  >>confdefs.h  <<_ACEOF  @%:@define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1 _ACEOF

fi done

fi


echo "$as_me:$LINENO: checking whether tcsendbreak  is  declared"
>&5  echo  $ECHO_N  "checking  whether tcsendbreak is declared...
$ECHO_C" >&6 if test "${ac_cv_have_decl_tcsendbreak+set}" =  set;
then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */  #include
exit(1);   else   exit(0);}
                 _ACEOF rm -f conftest$ac_exeext if { (eval  echo
"$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5

                  echo  "$as_me:$LINENO: result: not implemented"
>&5 echo "${ECHO_T}not implemented" >&6          fi  rm  -f  core
core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_ob-
jext conftest.$ac_ext fi

fi done



for ac_func in setresgid do as_ac_var=`echo "ac_cv_func_$ac_func"
|  $as_tr_sh`  echo  "$as_me:$LINENO:  checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/  #if  defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include  <stdlib.h>  #include  <errno.h> int main(){errno=0; se-
tresgid(0,0,0);  if  (errno==ENOSYS)  exit(1);   else   exit(0);}
                  _ACEOF rm -f conftest$ac_exeext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes"  >&6
else
  echo  "$as_me:  program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /'  conftest.$ac_ext
>&5

(  exit  $ac_status  )  cat >>confdefs.h <<_ACEOF @%:@define BRO-
KEN_SETRESGID 1 _ACEOF

                 echo "$as_me:$LINENO: result:  not  implemented"
>&5  echo  "${ECHO_T}not  implemented" >&6          fi rm -f core
core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_ob-
jext conftest.$ac_ext fi

fi done




for    ac_func    in   gettimeofday   time   do   as_ac_var=`echo
"ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking
for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C"
>&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /*  end  confdefs.h.   */  /*  System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */  #ifdef
__STDC__  #  include <limits.h> #else # include <assert.h> #endif
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`"  >&6  if test `eval echo '${'$as_ac_var'}'` =
yes; then
  cat >>confdefs.h <<_ACEOF @%:@define  `echo  "HAVE_$ac_func"  |
$as_tr_cpp` 1 _ACEOF

fi done







for  ac_func in endutent getutent getutid getutline pututline se-
tutent do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo
"$as_me:$LINENO:  checking for $ac_func" >&5 echo $ECHO_N "check-
ing for $ac_func... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /*  end  confdefs.h.   */  /*  System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */  #ifdef
__STDC__  #  include <limits.h> #else # include <assert.h> #endif
/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`"  >&6  if test `eval echo '${'$as_ac_var'}'` =
yes; then
  cat >>confdefs.h <<_ACEOF @%:@define  `echo  "HAVE_$ac_func"  |
$as_tr_cpp` 1 _ACEOF

fi done


for  ac_func in utmpname do as_ac_var=`echo "ac_cv_func_$ac_func"
| $as_tr_sh` echo "$as_me:$LINENO:  checking  for  $ac_func"  >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /*  end  confdefs.h.   */  /*  System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */  #ifdef
__STDC__  #  include <limits.h> #else # include <assert.h> #endif
/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to always fail with  ENOSYS.   Some  functions  are  actually
named
    something  starting  with __ and the normal name is an alias.
*/ #if defined (__stub_$ac_func) ||  defined  (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5

eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`"  >&6  if test `eval echo '${'$as_ac_var'}'` =
yes; then
  cat >>confdefs.h <<_ACEOF @%:@define  `echo  "HAVE_$ac_func"  |
$as_tr_cpp` 1 _ACEOF

fi done






for ac_func in endutxent getutxent getutxid getutxline pututxline
do  as_ac_var=`echo  "ac_cv_func_$ac_func"  |   $as_tr_sh`   echo
"$as_me:$LINENO:  checking for $ac_func" >&5 echo $ECHO_N "check-
ing for $ac_func... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /*  end  confdefs.h.   */  /*  System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */  #ifdef
__STDC__  #  include <limits.h> #else # include <assert.h> #endif
/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to always fail with  ENOSYS.   Some  functions  are  actually
named
    something  starting  with __ and the normal name is an alias.
*/ #if defined (__stub_$ac_func) ||  defined  (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?

fi done



for   ac_func   in   setutxent   utmpxname   do   as_ac_var=`echo
"ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking
for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C"
>&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /*  end  confdefs.h.   */  /*  System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */  #ifdef
__STDC__  #  include <limits.h> #else # include <assert.h> #endif
/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to always fail with  ENOSYS.   Some  functions  are  actually
named
    something  starting  with __ and the normal name is an alias.
*/ #if defined (__stub_$ac_func) ||  defined  (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`"  >&6  if test `eval echo '${'$as_ac_var'}'` =
header to define __stub macros and hopefully few prototypes,
    which can conflict with char daemon (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char daemon (); /* The GNU C library defines this  for  functions
which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/ #if defined (__stub_daemon) || defined (__stub___daemon) choke
me #else char (*f) () = daemon; #endif #ifdef __cplusplus }  #en-
dif

int main () { return f != daemon;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_daemon=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_func_daemon=no fi rm -f conftest.$ac_objext conftest$ac_ex-
eext   conftest.$ac_ext   fi   echo   "$as_me:$LINENO:    result:
$ac_cv_func_daemon" >&5 echo "${ECHO_T}$ac_cv_func_daemon" >&6 if
test $ac_cv_func_daemon = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_DAEMON 1 _ACEOF

else
  echo "$as_me:$LINENO: checking for daemon in  -lbsd"  >&5  echo
$ECHO_N  "checking  for  daemon  in -lbsd... $ECHO_C" >&6 if test
"${ac_cv_lib_bsd_daemon+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS  LIBS="-lbsd   $LIBS"  cat   >con-
ftest.$ac_ext  <<_ACEOF  #line $LINENO "configure" /* confdefs.h.
*/  _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat   >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_bsd_daemon=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_lib_bsd_daemon=no  fi  rm   -f   conftest.$ac_objext   con-
ftest$ac_exeext  conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi
echo "$as_me:$LINENO:  result:  $ac_cv_lib_bsd_daemon"  >&5  echo
"${ECHO_T}$ac_cv_lib_bsd_daemon"  >&6 if test $ac_cv_lib_bsd_dae-
mon = yes; then
  LIBS="$LIBS  -lbsd";  cat  >>confdefs.h   <<_ACEOF   @%:@define
HAVE_DAEMON 1 _ACEOF

fi


fi


echo  "$as_me:$LINENO: checking for getpagesize" >&5 echo $ECHO_N
"checking   for   getpagesize...    $ECHO_C"    >&6    if    test
"${ac_cv_func_getpagesize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */ /* System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char getpagesize (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h>  exists even on freestanding compilers.  */ #ifdef
__STDC__ # include <limits.h> #else # include  <assert.h>  #endif
/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getpagesize (); /* The GNU C library defines this for  func-
tions which it implements
    to  always  fail  with  ENOSYS.   Some functions are actually
named
    something starting with __ and the normal name is  an  alias.
*/ #if defined (__stub_getpagesize) || defined (__stub___getpage-
size) choke me #else char (*f) () =  getpagesize;  #endif  #ifdef
__cplusplus } #endif

int main () { return f != getpagesize;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5

ftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result:
$ac_cv_func_getpagesize"  >&5 echo "${ECHO_T}$ac_cv_func_getpage-
size" >&6 if test $ac_cv_func_getpagesize = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_GETPAGESIZE 1 _ACEOF

else
  echo "$as_me:$LINENO: checking for getpagesize  in  -lucb"  >&5
echo  $ECHO_N  "checking for getpagesize in -lucb... $ECHO_C" >&6
if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS  LIBS="-lucb   $LIBS"  cat   >con-
ftest.$ac_ext  <<_ACEOF  #line $LINENO "configure" /* confdefs.h.
*/  _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat   >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getpagesize (); int main () { getpagesize ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_ucb_getpagesize=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_lib_ucb_getpagesize=no fi rm  -f  conftest.$ac_objext  con-
ftest$ac_exeext  conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi
echo  "$as_me:$LINENO:  result:  $ac_cv_lib_ucb_getpagesize"  >&5
echo    "${ECHO_T}$ac_cv_lib_ucb_getpagesize"    >&6    if   test
$ac_cv_lib_ucb_getpagesize = yes; then
  LIBS="$LIBS  -lucb";  cat  >>confdefs.h   <<_ACEOF   @%:@define
HAVE_GETPAGESIZE 1 _ACEOF

fi


fi


#  Check  for  broken  snprintf if test "x$ac_cv_func_snprintf" =
b[5];snprintf(b,5,"123456789");exit(b[4]!=' ');}
_ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes"  >&6
else
  echo  "$as_me:  program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /'  conftest.$ac_ext
>&5

( exit $ac_status )

                        echo  "$as_me:$LINENO:  result:  no"  >&5
echo "${ECHO_T}no" >&6                          cat  >>confdefs.h
<<_ACEOF @%:@define BROKEN_SNPRINTF 1 _ACEOF

                        {  echo  "$as_me:$LINENO: WARNING: ******
Your snprintf() function is broken, complain to your vendor"  >&5
echo "$as_me: WARNING: ****** Your snprintf() function is broken,
complain to your vendor" >&2;}                           fi rm -f
core   core.*  *.core  gmon.out  bb.out  conftest$ac_exeext  con-
ftest.$ac_objext conftest.$ac_ext fi fi

if   test   "x$ac_cv_func_mkdtemp"   =   "xyes"   ;   then   echo
"$as_me:$LINENO:  checking  for (overly) strict mkstemp" >&5 echo
$ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6  if
test "$cross_compiling" = yes; then

                echo   "$as_me:$LINENO:  result:  yes"  >&5  echo
"${ECHO_T}yes"  >&6                  cat  >>confdefs.h   <<_ACEOF
@%:@define HAVE_STRICT_MKSTEMP 1 _ACEOF



else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include  <stdlib.h>  main() { char template[]="conftest.mkstemp-
test"; if (mkstemp(template) == -1)         exit(1);  unlink(tem-
plate);  exit(0); }          _ACEOF rm -f conftest$ac_exeext if {
(eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?

( exit $ac_status )

                echo   "$as_me:$LINENO:  result:  yes"  >&5  echo
"${ECHO_T}yes"  >&6                  cat  >>confdefs.h   <<_ACEOF
@%:@define HAVE_STRICT_MKSTEMP 1 _ACEOF

          fi  rm  -f  core  core.*  *.core  gmon.out  bb.out con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi

if test !  -z  "$check_for_openpty_ctty_bug";  then          echo
"$as_me:$LINENO:  checking  if openpty correctly handles control-
ling tty" >&5 echo $ECHO_N "checking if openpty correctly handles
controlling  tty...  $ECHO_C" >&6         if test "$cross_compil-
ing" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include  <stdio.h> #include <sys/fcntl.h> #include <sys/types.h>
#include <sys/wait.h>

int main() {         pid_t pid;          int  fd,  ptyfd,  ttyfd,
status;

        pid  =  fork();         if (pid < 0) {          /* failed
*/                 exit(1);         } else if (pid  >  0)  {   /*
parent     */                     waitpid(pid,    &status,    0);
                if                            (WIFEXITED(status))
                        exit(WEXITSTATUS(status));
                else                          exit(2);          }
else   {               /*   child   */                  close(0);
close(1);           close(2);                           setsid();
                openpty(&ptyfd,   &ttyfd,   NULL,   NULL,  NULL);
                fd  =  open("/dev/tty",   O_RDWR   |   O_NOCTTY);
                if    (fd   >=   0)                           ex-
it(3);        /* Acquired ctty:  broken  */                  else
                        exit(0);        /*  Did not acquire ctty:
OK */         } }                  _ACEOF rm -f  conftest$ac_exe-
ext if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
                          fi rm -f core  core.*  *.core  gmon.out
bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi

if    test     "x$ac_cv_func_getaddrinfo"     =     "xyes"     -a
"x$check_for_hpux_broken_getaddrinfo"  =  "x1"; then         echo
"$as_me:$LINENO: checking if getaddrinfo seems to work" >&5  echo
$ECHO_N  "checking  if  getaddrinfo seems to work... $ECHO_C" >&6
        if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include  <stdio.h>  #include  <sys/socket.h>  #include <netdb.h>
#include <errno.h> #include <netinet/in.h>

#define TEST_PORT "2222"

int main(void) {         int err, sock;          struct  addrinfo
*gai_ai,   *ai,   hints;           char   ntop[NI_MAXHOST],  str-
port[NI_MAXSERV], *name = NULL;

        memset(&hints, 0, sizeof(hints));         hints.ai_family
=    PF_UNSPEC;            hints.ai_socktype    =    SOCK_STREAM;
        hints.ai_flags = AI_PASSIVE;

        err  =  getaddrinfo(name,  TEST_PORT,  &hints,  &gai_ai);
        if  (err  != 0) {                 fprintf(stderr, "getad-
drinfo failed (%s)", gai_strerror(err));                 exit(1);
        }

        for  (ai  =  gai_ai;  ai  !=  NULL;  ai  = ai->ai_next) {
                if       (ai->ai_family       !=        AF_INET6)
                        continue;

                err  =  getnameinfo(ai->ai_addr,  ai->ai_addrlen,
ntop,                     sizeof(ntop), strport, sizeof(strport),
                    NI_NUMERICHOST|NI_NUMERICSERV);

                if  (err  != 0) {                         if (err
== EAI_SYSTEM)                                 perror("getnamein-
fo           EAI_SYSTEM");                                   else
                                fprintf(stderr,      "getnameinfo
failed:    %s0,                                          gai_str-
error(err));                         exit(2);                 }

                sock  =  socket(ai->ai_family,   ai->ai_socktype,

  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then

                        echo  "$as_me:$LINENO:  result:  yes" >&5
echo "${ECHO_T}yes" >&6                  else
  echo "$as_me: program exited with status $ac_status"  >&5  echo
"$as_me:  failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5

( exit $ac_status )

                        echo  "$as_me:$LINENO:  result:  no"  >&5
echo  "${ECHO_T}no"  >&6                         cat >>confdefs.h
<<_ACEOF @%:@define BROKEN_GETADDRINFO 1 _ACEOF

                          fi rm -f core  core.*  *.core  gmon.out
bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi

echo "$as_me:$LINENO: checking whether getpgrp requires zero  ar-
guments" >&5 echo $ECHO_N "checking whether getpgrp requires zero
arguments...   $ECHO_C"   >&6   if    test    "${ac_cv_func_getp-
grp_void+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  #  Use  it  with  a single arg.  cat >conftest.$ac_ext <<_ACEOF
#line  $LINENO  "configure"  /*  confdefs.h.    */   _ACEOF   cat
confdefs.h  >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h.  */ $ac_includes_default int main  ()  {  getpgrp
(0);
  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_getpgrp_void=no else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_func_getpgrp_void=yes  fi  rm  -f  conftest.$ac_objext con-
ftest.$ac_ext

fi echo "$as_me:$LINENO:  result:  $ac_cv_func_getpgrp_void"  >&5
echo     "${ECHO_T}$ac_cv_func_getpgrp_void"    >&6    if    test
$ac_cv_func_getpgrp_void = yes; then
pl_h"  != "xyes" &&                           test "x$ac_cv_head-
er_pam_pam_appl_h"        !=        "xyes"         ;         then
                                {  { echo "$as_me:$LINENO: error:
PAM headers not found" >&5 echo "$as_me: error: PAM  headers  not
found" >&2;}
   { (exit 1); exit 1; }; }                         fi

                           echo   "$as_me:$LINENO:  checking  for
dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in  -ldl...
$ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS   LIBS="-ldl    $LIBS"  cat  >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen (); int main () { dlopen ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_dl_dlopen=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_lib_dl_dlopen=no   fi   rm   -f   conftest.$ac_objext  con-
ftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS  fi
echo  "$as_me:$LINENO:  result:  $ac_cv_lib_dl_dlopen"  >&5  echo
"${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test  $ac_cv_lib_dl_dlopen
= yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBDL 1 _ACEOF

  LIBS="-ldl $LIBS"

fi

                           echo   "$as_me:$LINENO:  checking  for
pam_set_item  in  -lpam"   >&5   echo   $ECHO_N   "checking   for
pam_set_item     in     -lpam...    $ECHO_C"    >&6    if    test
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_pam_pam_set_item=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_lib_pam_pam_set_item=no fi rm -f  conftest.$ac_objext  con-
ftest$ac_exeext  conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi
echo "$as_me:$LINENO:  result:  $ac_cv_lib_pam_pam_set_item"  >&5
echo    "${ECHO_T}$ac_cv_lib_pam_pam_set_item"    >&6   if   test
$ac_cv_lib_pam_pam_set_item = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBPAM 1 _ACEOF

  LIBS="-lpam $LIBS"

else
  { { echo "$as_me:$LINENO: error: *** libpam missing"  >&5  echo
"$as_me: error: *** libpam missing" >&2;}
   { (exit 1); exit 1; }; } fi

                           for   ac_func   in  pam_getenvlist  do
as_ac_var=`echo   "ac_cv_func_$ac_func"   |    $as_tr_sh`    echo
"$as_me:$LINENO:  checking for $ac_func" >&5 echo $ECHO_N "check-
ing for $ac_func... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /*  end  confdefs.h.   */  /*  System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */  #ifdef
__STDC__  #  include <limits.h> #else # include <assert.h> #endif
/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to always fail with  ENOSYS.   Some  functions  are  actually
named
    something  starting  with __ and the normal name is an alias.
*/ #if defined (__stub_$ac_func) ||  defined  (__stub___$ac_func)
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_ex-
eext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo
'${'$as_ac_var'}'`"     >&5     echo     "${ECHO_T}`eval     echo
'${'$as_ac_var'}'`"  >&6  if test `eval echo '${'$as_ac_var'}'` =
yes; then
  cat >>confdefs.h <<_ACEOF @%:@define  `echo  "HAVE_$ac_func"  |
$as_tr_cpp` 1 _ACEOF

fi done

                            for    ac_func   in   pam_putenv   do
as_ac_var=`echo   "ac_cv_func_$ac_func"   |    $as_tr_sh`    echo
"$as_me:$LINENO:  checking for $ac_func" >&5 echo $ECHO_N "check-
ing for $ac_func... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /*  end  confdefs.h.   */  /*  System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */  #ifdef
__STDC__  #  include <limits.h> #else # include <assert.h> #endif
/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to always fail with  ENOSYS.   Some  functions  are  actually
named
    something  starting  with __ and the normal name is an alias.
*/ #if defined (__stub_$ac_func) ||  defined  (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'

  cat >>confdefs.h <<_ACEOF @%:@define  `echo  "HAVE_$ac_func"  |
$as_tr_cpp` 1 _ACEOF

fi done


                        PAM_MSG="yes"

                        cat   >>confdefs.h   <<_ACEOF  @%:@define
USE_PAM 1 _ACEOF

                        if test $ac_cv_lib_dl_dlopen = yes;  then
                                LIBPAM="-lpam               -ldl"
                        else                                 LIB-
PAM="-lpam"                          fi
                fi

fi;

# Check for older  PAM  if  test  "x$PAM_MSG"  =  "xyes"  ;  then
        #  Check  PAM  strerror  arguments (old PAM)         echo
"$as_me:$LINENO: checking whether pam_strerror takes only one ar-
gument" >&5 echo $ECHO_N "checking whether pam_strerror takes on-
ly one argument...  $ECHO_C"  >&6          cat  >conftest.$ac_ext
<<_ACEOF  #line $LINENO "configure" /* confdefs.h.  */ _ACEOF cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF  /*
end confdefs.h.  */

#include  <stdlib.h>  #if  defined(HAVE_SECURITY_PAM_APPL_H) #in-
clude <security/pam_appl.h> #elif  defined  (HAVE_PAM_PAM_APPL_H)
#include  <pam/pam_appl.h>  #endif                  int main () {
(void)pam_strerror((pam_handle_t *)NULL, -1);
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo  "$as_me:$LINENO:  result:  no" >&5 echo "${ECHO_T}no" >&6
else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5


                        cat   >>confdefs.h   <<_ACEOF  @%:@define

                if    test    "x$withval"   !=   "xno"   ;   then
                        if   test   -d    "$withval/lib";    then
                                if test -n "${need_dash_r}"; then
                                        LDFLAGS="-L${withval}/lib
-R${withval}/lib ${LDFLAGS}"                                 else
                                        LDFLAGS="-L${withval}/lib
${LDFLAGS}"                                                    fi
                        else                                   if
test             -n             "${need_dash_r}";            then
                                        LDFLAGS="-L${withval}
-R${withval}   ${LDFLAGS}"                                   else
                                        LDFLAGS="-L${withval}
${LDFLAGS}"                                                    fi
                        fi                          if  test   -d
"$withval/include";                                          then
                                CPPFLAGS="-I${withval}/include
${CPPFLAGS}"                                                 else
                                CPPFLAGS="-I${withval}
${CPPFLAGS}"                             fi                    fi


fi; LIBS="-lcrypto $LIBS" cat  >conftest.$ac_ext  <<_ACEOF  #line
$LINENO  "configure"  /*  confdefs.h.   */  _ACEOF cat confdefs.h
>>conftest.$ac_ext  cat  >>conftest.$ac_ext   <<_ACEOF   /*   end
confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char RAND_add (); int main () { RAND_add ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_OPENSSL 1 _ACEOF

else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5


                                if test -n "${need_dash_r}"; then

  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_OPENSSL 1 _ACEOF

else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5


                                {  { echo "$as_me:$LINENO: error:
*** Can't find recent OpenSSL libcrypto (see config.log  for  de-
tails)  ***"  >&5  echo  "$as_me:  error:  ***  Can't find recent
OpenSSL libcrypto (see config.log for details) ***" >&2;}
   {  (exit   1);   exit   1;   };   }
                  fi rm -f conftest.$ac_objext conftest$ac_exeext
conftest.$ac_ext

fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

# Determine OpenSSL header version echo "$as_me:$LINENO: checking
OpenSSL header version" >&5 echo $ECHO_N "checking OpenSSL header
version... $ECHO_C" >&6 if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include  <stdio.h> #include <string.h> #include <openssl/openss-
lv.h>  #define  DATA  "conftest.sslincver"   int   main(void)   {
        FILE *fd;         int rc;

        fd    =    fopen(DATA,"w");            if(fd   ==   NULL)
                exit(1);

        if ((rc = fprintf(fd ,"%x (%s)0,  OPENSSL_VERSION_NUMBER,
OPENSSL_VERSION_TEXT)) <0)                 exit(1);

>&5 echo "${ECHO_T}$ssl_header_ver" >&6          else
  echo "$as_me: program exited with status $ac_status"  >&5  echo
"$as_me:  failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5

( exit $ac_status )

                echo "$as_me:$LINENO: result: not found" >&5 echo
"${ECHO_T}not     found"    >&6                    {    {    echo
"$as_me:$LINENO: error: OpenSSL version header  not  found."  >&5
echo "$as_me: error: OpenSSL version header not found." >&2;}
   { (exit 1); exit 1; }; }

fi  rm  -f  core core.* *.core gmon.out bb.out conftest$ac_exeext
conftest.$ac_objext conftest.$ac_ext fi

# Determine OpenSSL library version echo "$as_me:$LINENO:  check-
ing  OpenSSL  library version" >&5 echo $ECHO_N "checking OpenSSL
library version... $ECHO_C" >&6 if test "$cross_compiling" = yes;
then
  {  { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log'  for  more  details."  >&5  echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include <stdio.h> #include <string.h> #include  <openssl/openss-
lv.h>  #include <openssl/crypto.h> #define DATA "conftest.ssllib-
ver" int main(void) {         FILE *fd;         int rc;

        fd   =   fopen(DATA,"w");            if(fd    ==    NULL)
                exit(1);

        if  ((rc  =  fprintf(fd ,"%x (%s)0, SSLeay(), SSLeay_ver-
sion(SSLEAY_VERSION))) <0)                 exit(1);

        exit(0); }          _ACEOF rm -f conftest$ac_exeext if  {
(eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then

                ssl_library_ver=`cat          conftest.ssllibver`

fi rm -f core core.* *.core  gmon.out  bb.out  conftest$ac_exeext
conftest.$ac_objext conftest.$ac_ext fi

#  Sanity  check  OpenSSL  headers echo "$as_me:$LINENO: checking
whether OpenSSL's headers match the  library"  >&5  echo  $ECHO_N
"checking whether OpenSSL's headers match the library... $ECHO_C"
>&6 if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include  <string.h> #include <openssl/opensslv.h> int main(void)
{ exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 :  1);  }
_ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then

                echo   "$as_me:$LINENO:  result:  yes"  >&5  echo
"${ECHO_T}yes" >&6          else
  echo "$as_me: program exited with status $ac_status"  >&5  echo
"$as_me:  failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5

( exit $ac_status )

                echo  "$as_me:$LINENO:  result:  no"   >&5   echo
"${ECHO_T}no"  >&6                  { { echo "$as_me:$LINENO: er-
ror: Your OpenSSL headers do not match your library.  Check  con-
fig.log  for details.  Also see contrib/findssl.sh for help iden-
tifying header/library mismatches." >&5 echo "$as_me: error: Your
OpenSSL  headers do not match your library.  Check config.log for
details.  Also see contrib/findssl.sh for help identifying  head-
er/library mismatches." >&2;}
   { (exit 1); exit 1; }; }

fi  rm  -f  core core.* *.core gmon.out bb.out conftest$ac_exeext
conftest.$ac_objext conftest.$ac_ext fi

# Some systems want crypt() from libcrypt, *not* the  version  in
OpenSSL,  #  because  the  system crypt() is more featureful.  if
char crypt (); int main () { crypt ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_crypt_crypt=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_lib_crypt_crypt=no   fi   rm  -f  conftest.$ac_objext  con-
ftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS  fi
echo  "$as_me:$LINENO:  result:  $ac_cv_lib_crypt_crypt" >&5 echo
"${ECHO_T}$ac_cv_lib_crypt_crypt"       >&6        if        test
$ac_cv_lib_crypt_crypt = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBCRYPT 1 _ACEOF

  LIBS="-lcrypt $LIBS"

fi

fi

#  Some  Linux  systems  (Slackware)  need crypt() from libcrypt,
*not*    the    #    version     in     OpenSSL.      if     test
"x$check_for_libcrypt_later"    =    "x1";    then           echo
"$as_me:$LINENO: checking for crypt in -lcrypt" >&5 echo  $ECHO_N
"checking   for   crypt   in  -lcrypt...  $ECHO_C"  >&6  if  test
"${ac_cv_lib_crypt_crypt+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypt   $LIBS"  cat  >con-
ftest.$ac_ext  <<_ACEOF  #line $LINENO "configure" /* confdefs.h.
*/  _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat   >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char crypt (); int main () { crypt ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5

ftest$ac_exeext  conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi
echo "$as_me:$LINENO: result:  $ac_cv_lib_crypt_crypt"  >&5  echo
"${ECHO_T}$ac_cv_lib_crypt_crypt"        >&6        if       test
$ac_cv_lib_crypt_crypt = yes; then
  LIBS="$LIBS -lcrypt" fi

fi


### Configure cryptographic random number support

# Check wheter OpenSSL seeds itself echo "$as_me:$LINENO:  check-
ing whether OpenSSL's PRNG is internally seeded" >&5 echo $ECHO_N
"checking whether OpenSSL's PRNG is internally seeded... $ECHO_C"
>&6 if test "$cross_compiling" = yes; then
  {  { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log'  for  more  details."  >&5  echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include <string.h> #include <openssl/rand.h>  int  main(void)  {
exit(RAND_status()  ==  1  ? 0 : 1); }          _ACEOF rm -f con-
ftest$ac_exeext if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then

                OPENSSL_SEEDS_ITSELF=yes                     echo
"$as_me:$LINENO:   result:   yes"  >&5  echo  "${ECHO_T}yes"  >&6
         else
  echo "$as_me: program exited with status $ac_status"  >&5  echo
"$as_me:  failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5

( exit $ac_status )

                echo  "$as_me:$LINENO:  result:  no"   >&5   echo
"${ECHO_T}no"  >&6                  #  Default to use of the rand
helper  if  OpenSSL   doesn't                   #   seed   itself
                USE_RAND_HELPER=yes

fi  rm  -f  core core.* *.core gmon.out bb.out conftest$ac_exeext
echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's  non-
self-seeding  PRNG" >&5 echo "$as_me: WARNING: *** Forcing use of
OpenSSL's          non-self-seeding          PRNG"          >&2;}
                                OPENSSL_SEEDS_ITSELF=yes
                                USE_RAND_HELPER=""
                        fi                                   else
                        USE_RAND_HELPER=yes                    fi
         fi;

#   Which   randomness   source   do   we  use?   if  test  !  -z
"$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then         #
OpenSSL   only           cat   >>confdefs.h  <<_ACEOF  @%:@define
OPENSSL_PRNG_ONLY 1 _ACEOF

        RAND_MSG="OpenSSL     internal     ONLY"              IN-
STALL_SSH_RAND_HELPER="" elif test ! -z "$USE_RAND_HELPER" ; then
        # install rand helper          RAND_MSG="ssh-rand-helper"
        INSTALL_SSH_RAND_HELPER="yes" fi


### Configuration of ssh-rand-helper

# PRNGD TCP socket

#  Check  whether  --with-prngd-port  or --without-prngd-port was
given.  if test "${with_prngd_port+set}" = set; then
  withval="$with_prngd_port"

                case    "$withval"     in                     no)
                        withval=""                             ;;
                [0-9]*)                                        ;;
                *)                              {      {     echo
"$as_me:$LINENO: error: You must specify a  numeric  port  number
for  --with-prngd-port" >&5 echo "$as_me: error: You must specify
a numeric port number for --with-prngd-port" >&2;}
   {  (exit  1);  exit   1;   };   }                           ;;
                esac                  if  test  ! -z "$withval" ;
then                                        PRNGD_PORT="$withval"
                        cat   >>confdefs.h   <<_ACEOF  @%:@define
PRNGD_PORT $PRNGD_PORT _ACEOF

                fi

fi;

# PRNGD Unix domain socket

# Check whether --with-prngd-socket or --without-prngd-socket was
given.  if test "${with_prngd_socket+set}" = set; then
  withval="$with_prngd_socket"

                case     "$withval"    in                    yes)

You  may  not  specify both a PRNGD/EGD port and socket" >&5 echo
"$as_me: error: You may not specify both  a  PRNGD/EGD  port  and
socket" >&2;}
   {   (exit   1);   exit   1;  };  }                          fi
                        if  test   !   -r   "$withval"   ;   then
                                {  echo "$as_me:$LINENO: WARNING:
Entropy socket is not readable" >&5 echo  "$as_me:  WARNING:  En-
tropy  socket  is  not readable" >&2;}                         fi
                        PRNGD_SOCKET="$withval"
                        cat   >>confdefs.h   <<_ACEOF  @%:@define
PRNGD_SOCKET "$PRNGD_SOCKET" _ACEOF

                fi          else

                # Check for existing socket only if we don't have
a     random     device     already                    if    test
"$USE_RAND_HELPER"  =  yes  ;  then                          echo
"$as_me:$LINENO:  checking for PRNGD/EGD socket" >&5 echo $ECHO_N
"checking    for     PRNGD/EGD     socket...     $ECHO_C"     >&6
                        #    Insert    other    locations    here
                        for sock in  /var/run/egd-pool  /dev/egd-
pool  /etc/entropy; do                                 if test -r
$sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock"  ;  then
                                        PRNGD_SOCKET="$sock"
                                        cat >>confdefs.h <<_ACEOF
@%:@define PRNGD_SOCKET "$PRNGD_SOCKET" _ACEOF

                                        break;
                                fi                           done
                        if  test  !  -z  "$PRNGD_SOCKET"  ;  then
                                echo   "$as_me:$LINENO:   result:
$PRNGD_SOCKET"     >&5    echo    "${ECHO_T}$PRNGD_SOCKET"    >&6
                        else                                 echo
"$as_me:$LINENO: result: not found" >&5 echo "${ECHO_T}not found"
>&6                         fi                 fi

fi;

# Change default command timeout for hashing entropy  source  en-
tropy_timeout=200

# Check whether --with-entropy-timeout or --without-entropy-time-
out was given.  if test "${with_entropy_timeout+set}" = set; then
  withval="$with_entropy_timeout"

                if    test    "x$withval"   !=   "xno"   ;   then
                        entropy_timeout=$withval
                fi

fi;  cat  >>confdefs.h  <<_ACEOF  @%:@define ENTROPY_TIMEOUT_MSEC
$entropy_timeout _ACEOF



# We do this little dance with the search path to insure  #  that
programs  that  we  select for use by installed programs # (which
may be run by the super-user) come from trusted #  locations  be-
fore  they come from the user's private area.  # This should help
avoid accidentally configuring some # random version of a program
in someone's personal bin.

OPATH=$PATH  PATH=/bin:/usr/bin  test  -h  /bin  2>  /dev/null &&
PATH=/usr/bin test -d /sbin && PATH=$PATH:/sbin test -d /usr/sbin
&& PATH=$PATH:/usr/sbin PATH=$PATH:/etc:$OPATH

# These programs are used by the command hashing source to gather
entropy

        # Extract the first word of "ls", so it can be a  program
name  with  args.  set dummy ls; ac_word=$2 echo "$as_me:$LINENO:
checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word...
$ECHO_C" >&6 if test "${ac_cv_path_PROG_LS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_LS in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_LS="$PROG_LS"  # Let the user override the test
with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  ;; esac fi PROG_LS=$ac_cv_path_PROG_LS

if test -n "$PROG_LS"; then
  echo    "$as_me:$LINENO:    result:    $PROG_LS"    >&5    echo
"${ECHO_T}$PROG_LS" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if test -z "$PROG_LS" ; then                 PROG_LS="un-
def"         fi


        # Extract the first word of "netstat", so  it  can  be  a
program  name  with  args.   set  dummy  netstat; ac_word=$2 echo
"$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N  "check-
ing  for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_PROG_NET-
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  ;; esac fi PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT

if test -n "$PROG_NETSTAT"; then
  echo   "$as_me:$LINENO:   result:   $PROG_NETSTAT"   >&5   echo
"${ECHO_T}$PROG_NETSTAT" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if     test      -z      "$PROG_NETSTAT"      ;      then
                PROG_NETSTAT="undef"         fi


        # Extract the first word of "arp", so it can be a program
name with args.  set dummy arp; ac_word=$2 echo  "$as_me:$LINENO:
checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word...
$ECHO_C" >&6 if test "${ac_cv_path_PROG_ARP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_ARP in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_ARP="$PROG_ARP" # Let  the  user  override  the
test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  ;; esac fi PROG_ARP=$ac_cv_path_PROG_ARP

if test -n "$PROG_ARP"; then
  echo   "$as_me:$LINENO:    result:    $PROG_ARP"    >&5    echo
"${ECHO_T}$PROG_ARP" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if      test      -z       "$PROG_ARP"       ;       then
                PROG_ARP="undef"         fi


        #  Extract  the  first word of "ifconfig", so it can be a
program name with args.   set  dummy  ifconfig;  ac_word=$2  echo
"$as_me:$LINENO:  checking for $ac_word" >&5 echo $ECHO_N "check-
ing for $ac_word... $ECHO_C" >&6 if  test  "${ac_cv_path_PROG_IF-
CONFIG+set}" = set; then
    break 2
  fi done done

  ;; esac fi PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG

if test -n "$PROG_IFCONFIG"; then
  echo   "$as_me:$LINENO:   result:   $PROG_IFCONFIG"   >&5  echo
"${ECHO_T}$PROG_IFCONFIG" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if      test      -z      "$PROG_IFCONFIG"     ;     then
                PROG_IFCONFIG="undef"         fi


        # Extract the first word of "jstat", so it can be a  pro-
gram   name   with   args.   set  dummy  jstat;  ac_word=$2  echo
"$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N  "check-
ing  for  $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_PROG_JS-
TAT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_JSTAT in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the
test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  ;; esac fi PROG_JSTAT=$ac_cv_path_PROG_JSTAT

if test -n "$PROG_JSTAT"; then
  echo   "$as_me:$LINENO:   result:   $PROG_JSTAT"    >&5    echo
"${ECHO_T}$PROG_JSTAT" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if test -z "$PROG_JSTAT" ; then                  PROG_JS-
TAT="undef"         fi


        #  Extract the first word of "ps", so it can be a program
name with args.  set dummy ps; ac_word=$2  echo  "$as_me:$LINENO:
checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word...
$ECHO_C" >&6 if test "${ac_cv_path_PROG_PS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  fi done done

  ;; esac fi PROG_PS=$ac_cv_path_PROG_PS

if test -n "$PROG_PS"; then
  echo    "$as_me:$LINENO:    result:    $PROG_PS"    >&5    echo
"${ECHO_T}$PROG_PS" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if test -z "$PROG_PS" ; then                 PROG_PS="un-
def"         fi


        # Extract the first word of "sar", so it can be a program
name with args.  set dummy sar; ac_word=$2 echo  "$as_me:$LINENO:
checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word...
$ECHO_C" >&6 if test "${ac_cv_path_PROG_SAR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_SAR in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_SAR="$PROG_SAR" # Let  the  user  override  the
test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  ;; esac fi PROG_SAR=$ac_cv_path_PROG_SAR

if test -n "$PROG_SAR"; then
  echo   "$as_me:$LINENO:    result:    $PROG_SAR"    >&5    echo
"${ECHO_T}$PROG_SAR" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if      test      -z       "$PROG_SAR"       ;       then
                PROG_SAR="undef"         fi


        #  Extract  the first word of "w", so it can be a program
name with args.  set dummy w;  ac_word=$2  echo  "$as_me:$LINENO:
checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word...
$ECHO_C" >&6 if test "${ac_cv_path_PROG_W+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_W in
  [\/]* | ?:[\/]*)
  ;; esac fi PROG_W=$ac_cv_path_PROG_W

if test -n "$PROG_W"; then
  echo    "$as_me:$LINENO:    result:    $PROG_W"    >&5     echo
"${ECHO_T}$PROG_W" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if test -z "$PROG_W" ;  then                  PROG_W="un-
def"         fi


        # Extract the first word of "who", so it can be a program
name with args.  set dummy who; ac_word=$2 echo  "$as_me:$LINENO:
checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word...
$ECHO_C" >&6 if test "${ac_cv_path_PROG_WHO+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_WHO in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_WHO="$PROG_WHO" # Let  the  user  override  the
test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  ;; esac fi PROG_WHO=$ac_cv_path_PROG_WHO

if test -n "$PROG_WHO"; then
  echo   "$as_me:$LINENO:    result:    $PROG_WHO"    >&5    echo
"${ECHO_T}$PROG_WHO" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if      test      -z       "$PROG_WHO"       ;       then
                PROG_WHO="undef"         fi


        #  Extract  the first word of "last", so it can be a pro-
gram  name  with  args.   set   dummy   last;   ac_word=$2   echo
"$as_me:$LINENO:  checking for $ac_word" >&5 echo $ECHO_N "check-
ing     for     $ac_word...     $ECHO_C"     >&6     if      test
"${ac_cv_path_PROG_LAST+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_LAST in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_LAST="$PROG_LAST"  #  Let the user override the

if test -n "$PROG_LAST"; then
  echo    "$as_me:$LINENO:    result:    $PROG_LAST"   >&5   echo
"${ECHO_T}$PROG_LAST" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if       test       -z      "$PROG_LAST"      ;      then
                PROG_LAST="undef"         fi


        # Extract the first word of "lastlog", so  it  can  be  a
program  name  with  args.   set  dummy  lastlog; ac_word=$2 echo
"$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N  "check-
ing for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_PROG_LAST-
LOG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_LASTLOG in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override
the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  ;; esac fi PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG

if test -n "$PROG_LASTLOG"; then
  echo   "$as_me:$LINENO:   result:   $PROG_LASTLOG"   >&5   echo
"${ECHO_T}$PROG_LASTLOG" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if     test      -z      "$PROG_LASTLOG"      ;      then
                PROG_LASTLOG="undef"         fi


        #  Extract the first word of "df", so it can be a program
name with args.  set dummy df; ac_word=$2  echo  "$as_me:$LINENO:
checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word...
$ECHO_C" >&6 if test "${ac_cv_path_PROG_DF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_DF in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the  test
with a path.
if test -n "$PROG_DF"; then
  echo    "$as_me:$LINENO:    result:    $PROG_DF"    >&5    echo
"${ECHO_T}$PROG_DF" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if test -z "$PROG_DF" ; then                 PROG_DF="un-
def"         fi


        # Extract the first word of "vmstat", so it can be a pro-
gram  name  with  args.   set  dummy  vmstat;   ac_word=$2   echo
"$as_me:$LINENO:  checking for $ac_word" >&5 echo $ECHO_N "check-
ing for $ac_word... $ECHO_C" >&6 if  test  "${ac_cv_path_PROG_VM-
STAT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_VMSTAT in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT"  #  Let the user override
the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  ;; esac fi PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT

if test -n "$PROG_VMSTAT"; then
  echo    "$as_me:$LINENO:   result:   $PROG_VMSTAT"   >&5   echo
"${ECHO_T}$PROG_VMSTAT" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if test -z "$PROG_VMSTAT" ; then                 PROG_VM-
STAT="undef"         fi


        # Extract the first word of "uptime", so it can be a pro-
gram   name   with  args.   set  dummy  uptime;  ac_word=$2  echo
"$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N  "check-
ing  for  $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_PROG_UP-
TIME+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_UPTIME in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the  user  override
the test with a path.
if test -n "$PROG_UPTIME"; then
  echo   "$as_me:$LINENO:   result:   $PROG_UPTIME"   >&5    echo
"${ECHO_T}$PROG_UPTIME" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if test -z "$PROG_UPTIME" ; then                 PROG_UP-
TIME="undef"         fi


        #  Extract  the first word of "ipcs", so it can be a pro-
gram  name  with  args.   set   dummy   ipcs;   ac_word=$2   echo
"$as_me:$LINENO:  checking for $ac_word" >&5 echo $ECHO_N "check-
ing     for     $ac_word...     $ECHO_C"     >&6     if      test
"${ac_cv_path_PROG_IPCS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_IPCS in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_IPCS="$PROG_IPCS"  #  Let the user override the
test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  ;; esac fi PROG_IPCS=$ac_cv_path_PROG_IPCS

if test -n "$PROG_IPCS"; then
  echo    "$as_me:$LINENO:    result:    $PROG_IPCS"   >&5   echo
"${ECHO_T}$PROG_IPCS" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if       test       -z      "$PROG_IPCS"      ;      then
                PROG_IPCS="undef"         fi


        # Extract the first word of "tail", so it can be  a  pro-
gram   name   with   args.    set  dummy  tail;  ac_word=$2  echo
"$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N  "check-
ing      for     $ac_word...     $ECHO_C"     >&6     if     test
"${ac_cv_path_PROG_TAIL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $PROG_TAIL in
  [\/]* | ?:[\/]*)
  ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user  override  the
test with a path.
if test -n "$PROG_TAIL"; then
  echo   "$as_me:$LINENO:   result:    $PROG_TAIL"    >&5    echo
"${ECHO_T}$PROG_TAIL" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

        if      test      -z      "$PROG_TAIL"       ;       then
                PROG_TAIL="undef"         fi

# restore PATH PATH=$OPATH

#  Where  does  ssh-rand-helper  get  its  randomness  from?  IN-
STALL_SSH_PRNG_CMDS="" if test ! -z "$INSTALL_SSH_RAND_HELPER"  ;
then            if    test    !    -z    "$PRNGD_PORT"   ;   then
                RAND_HELPER_MSG="TCP       localhost:$PRNGD_PORT"
        elif     test     !    -z    "$PRNGD_SOCKET"    ;    then
                RAND_HELPER_MSG="Unix domain socket          else
                RAND_HELPER_MSG="Command  hashing  (timeout  $en-
tropy_timeout)"                           RAND_HELPER_CMDHASH=yes
                INSTALL_SSH_PRNG_CMDS="yes"         fi fi



#  Cheap hack to ensure NEWS-OS libraries are arranged right.  if
test ! -z "$SONY" ; then
  LIBS="$LIBS -liberty"; fi

# Checks for data types echo "$as_me:$LINENO: checking for  char"
>&5  echo  $ECHO_N  "checking  for  char...  $ECHO_C" >&6 if test
"${ac_cv_type_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default int main () { if ((char *) 0)
  return 0; if (sizeof (char))
  return 0;
  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_char=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi  bounds.   cat
>conftest.$ac_ext   <<_ACEOF   #line   $LINENO   "configure"   /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { static int test_array @<:@1  -  2  *
!(((long) (sizeof (char))) >= 0)@:>@; test_array @<:@0@:>@ = 0

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  () { static int test_array @<:@1 - 2 *
!(((long) (sizeof (char))) <= $ac_mid)@:>@; test_array  @<:@0@:>@
= 0

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  () { static int test_array @<:@1 - 2 *
!(((long) (sizeof (char))) >= $ac_mid)@:>@; test_array  @<:@0@:>@
= 0

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr  2 '*' $ac_mid` fi rm -f con-
ftest.$ac_objext conftest.$ac_ext
  done else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_lo= ac_hi= fi rm -f conftest.$ac_objext conftest.$ac_ext fi rm
-f conftest.$ac_objext conftest.$ac_ext # Binary  search  between
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_lo=`expr '(' $ac_mid ')' + 1`  fi  rm  -f  conftest.$ac_objext
conftest.$ac_ext    done   case   $ac_lo   in   ?*)   ac_cv_size-
of_char=$ac_lo;; See `config.log' for  more  details."  >&5  echo
"$as_me: error: cannot compute sizeof (char), 77 See `config.log'
for more details." >&2;}
   { (exit 1); exit 1; }; } ;; esac else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default long longval () { return (long) (sizeof (char)); }
unsigned  long  ulongval  ()  {  return (long) (sizeof (char)); }
@%:@include <stdio.h> @%:@include <stdlib.h> int main () {

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (char))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (char))))         exit (1);
      fprintf (f, "%ld0, i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (char))))         exit (1);
      fprintf (f, "%lu0, i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0; } _ACEOF rm -f conftest$ac_exeext  if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_link) 2>&5

pute sizeof (char), 77 See `config.log' for  more  details."  >&5
echo  "$as_me:  error: cannot compute sizeof (char), 77 See `con-
fig.log' for more details." >&2;}
   { (exit 1); exit 1; }; } fi rm -f core core.* *.core  gmon.out
bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi rm -f conftest.val else
  ac_cv_sizeof_char=0  fi  fi   echo   "$as_me:$LINENO:   result:
$ac_cv_sizeof_char"  >&5  echo  "${ECHO_T}$ac_cv_sizeof_char" >&6
cat >>confdefs.h  <<_ACEOF  @%:@define  SIZEOF_CHAR  $ac_cv_size-
of_char _ACEOF


echo  "$as_me:$LINENO:  checking  for short int" >&5 echo $ECHO_N
"checking   for   short   int...    $ECHO_C"    >&6    if    test
"${ac_cv_type_short_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { if ((short int *) 0)
  return 0; if (sizeof (short int))
  return 0;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_short_int=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_type_short_int=no  fi  rm   -f   conftest.$ac_objext   con-
ftest.$ac_ext      fi      echo      "$as_me:$LINENO:     result:
$ac_cv_type_short_int" >&5 echo  "${ECHO_T}$ac_cv_type_short_int"
>&6

echo  "$as_me:$LINENO:  checking  size  of  short  int"  >&5 echo
$ECHO_N "checking size of  short  int...  $ECHO_C"  >&6  if  test
"${ac_cv_sizeof_short_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  if test "$ac_cv_type_short_int" = yes; then
  # The cast to unsigned long works around a bug in the HP C Com-
piler
  # version HP92453-01 B.11.11.23709.GP,  which  incorrectly  re-

"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat  >conftest.$ac_ext  <<_ACEOF #line $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { static int test_array @<:@1  -  2  *
!(((long)  (sizeof  (short  int)))  <=  $ac_mid)@:>@;  test_array
@<:@0@:>@ = 0

  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f con-
ftest.$ac_objext conftest.$ac_ext
  done else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  () { static int test_array @<:@1 - 2 *
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  () { static int test_array @<:@1 - 2 *
!(((long)  (sizeof  (short  int)))  >=  $ac_mid)@:>@;  test_array
@<:@0@:>@ = 0

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr  2 '*' $ac_mid` fi rm -f con-
ftest.$ac_objext conftest.$ac_ext
  done else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_lo= ac_hi= fi rm -f conftest.$ac_objext conftest.$ac_ext fi rm
-f conftest.$ac_objext conftest.$ac_ext # Binary  search  between
lo and hi bounds.  while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { static int test_array @<:@1  -  2  *
!(((long)  (sizeof  (short  int)))  <=  $ac_mid)@:>@;  test_array
@<:@0@:>@ = 0

  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo

ac_lo=`expr '(' $ac_mid ')' + 1`  fi  rm  -f  conftest.$ac_objext
conftest.$ac_ext    done   case   $ac_lo   in   ?*)   ac_cv_size-
of_short_int=$ac_lo;; See `config.log'  for  more  details."  >&5
echo  "$as_me:  error:  cannot compute sizeof (short int), 77 See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;; esac else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default long longval () {  return  (long)  (sizeof  (short
int)); } unsigned long ulongval () { return (long) (sizeof (short
int)); } @%:@include <stdio.h> @%:@include <stdlib.h> int main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (short int))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (short int))))         exit (1);
      fprintf (f, "%ld0, i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (short int))))         exit (1);
      fprintf (f, "%lu0, i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return  0;  }  _ACEOF  rm -f conftest$ac_exeext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_short_int=`cat conftest.val` else
  echo "$as_me: program exited with status $ac_status"  >&5  echo


echo "$as_me:$LINENO: checking for int" >&5 echo $ECHO_N  "check-
ing  for  int...  $ECHO_C"  >&6 if test "${ac_cv_type_int+set}" =
set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default int main () { if ((int *) 0)
  return 0; if (sizeof (int))
  return 0;
  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_type_int=no  fi  rm -f conftest.$ac_objext conftest.$ac_ext
fi  echo  "$as_me:$LINENO:  result:  $ac_cv_type_int"  >&5   echo
"${ECHO_T}$ac_cv_type_int" >&6

echo  "$as_me:$LINENO:  checking  size  of  int" >&5 echo $ECHO_N
"checking size of int...  $ECHO_C"  >&6  if  test  "${ac_cv_size-
of_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  if test "$ac_cv_type_int" = yes; then
  # The cast to unsigned long works around a bug in the HP C Com-
piler
  # version HP92453-01 B.11.11.23709.GP,  which  incorrectly  re-
jects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi  bounds.   cat
>conftest.$ac_ext   <<_ACEOF   #line   $LINENO   "configure"   /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { static int test_array @<:@1  -  2  *
!(((long) (sizeof (int))) >= 0)@:>@; test_array @<:@0@:>@ = 0

  while :; do
    cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  () { static int test_array @<:@1 - 2 *
!(((long) (sizeof (int))) <= $ac_mid)@:>@; test_array @<:@0@:>@ =
0

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f con-
ftest.$ac_objext conftest.$ac_ext
  done else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { static int test_array @<:@1  -  2  *
!(((long) (sizeof (int))) < 0)@:>@; test_array @<:@0@:>@ = 0

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5

"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr  2 '*' $ac_mid` fi rm -f con-
ftest.$ac_objext conftest.$ac_ext
  done else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_lo= ac_hi= fi rm -f conftest.$ac_objext conftest.$ac_ext fi rm
-f conftest.$ac_objext conftest.$ac_ext # Binary  search  between
lo and hi bounds.  while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { static int test_array @<:@1  -  2  *
!(((long) (sizeof (int))) <= $ac_mid)@:>@; test_array @<:@0@:>@ =
0

  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default long longval () { return (long) (sizeof (int));  }
unsigned  long  ulongval  ()  {  return  (long) (sizeof (int)); }
@%:@include <stdio.h> @%:@include <stdlib.h> int main () {

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (int))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (int))))         exit (1);
      fprintf (f, "%ld0, i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (int))))         exit (1);
      fprintf (f, "%lu0, i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0; } _ACEOF rm -f conftest$ac_exeext  if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_int=`cat conftest.val` else
  echo  "$as_me:  program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /'  conftest.$ac_ext
>&5

(  exit $ac_status ) { { echo "$as_me:$LINENO: error: cannot com-
pute sizeof (int), 77 See `config.log'  for  more  details."  >&5
echo  "$as_me:  error:  cannot compute sizeof (int), 77 See `con-
fig.log' for more details." >&2;}
   { (exit 1); exit 1; }; } fi rm -f core core.* *.core  gmon.out
bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi rm -f conftest.val else
  ac_cv_sizeof_int=0  fi   fi   echo   "$as_me:$LINENO:   result:
$ac_cv_sizeof_int"  >&5 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 cat
>>confdefs.h  <<_ACEOF  @%:@define  SIZEOF_INT  $ac_cv_sizeof_int
_ACEOF
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long_int=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_type_long_int=no  fi   rm   -f   conftest.$ac_objext   con-
ftest.$ac_ext      fi      echo      "$as_me:$LINENO:     result:
$ac_cv_type_long_int"  >&5  echo  "${ECHO_T}$ac_cv_type_long_int"
>&6

echo "$as_me:$LINENO: checking size of long int" >&5 echo $ECHO_N
"checking size of long int... $ECHO_C" >&6 if test "${ac_cv_size-
of_long_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  if test "$ac_cv_type_long_int" = yes; then
  # The cast to unsigned long works around a bug in the HP C Com-
piler
  # version HP92453-01 B.11.11.23709.GP,  which  incorrectly  re-
jects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi  bounds.   cat
>conftest.$ac_ext   <<_ACEOF   #line   $LINENO   "configure"   /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { static int test_array @<:@1  -  2  *
!(((long)  (sizeof (long int))) >= 0)@:>@; test_array @<:@0@:>@ =
0

  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f con-
ftest.$ac_objext conftest.$ac_ext
  done else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  () { static int test_array @<:@1 - 2 *
!(((long) (sizeof (long int))) < 0)@:>@; test_array @<:@0@:>@ = 0

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  () { static int test_array @<:@1 - 2 *
!(((long)  (sizeof  (long  int)))  >=  $ac_mid)@:>@;   test_array
@<:@0@:>@ = 0

  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr  2 '*' $ac_mid` fi rm -f con-
ftest.$ac_objext conftest.$ac_ext
  done else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_lo= ac_hi= fi rm -f conftest.$ac_objext conftest.$ac_ext fi rm
-f conftest.$ac_objext conftest.$ac_ext # Binary  search  between
lo and hi bounds.  while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { static int test_array @<:@1  -  2  *
!(((long)   (sizeof  (long  int)))  <=  $ac_mid)@:>@;  test_array
@<:@0@:>@ = 0

  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_lo=`expr '(' $ac_mid ')' + 1`  fi  rm  -f  conftest.$ac_objext
conftest.$ac_ext    done   case   $ac_lo   in   ?*)   ac_cv_size-
of_long_int=$ac_lo;; See `config.log' for more details." >&5 echo
"$as_me:  error:  cannot  compute sizeof (long int), 77 See `con-
fig.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;; esac else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
    {
      long i = longval ();
      if (i != ((long) (sizeof (long int))))         exit (1);
      fprintf (f, "%ld0, i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (long int))))         exit (1);
      fprintf (f, "%lu0, i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return  0;  }  _ACEOF  rm -f conftest$ac_exeext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long_int=`cat conftest.val` else
  echo "$as_me: program exited with status $ac_status"  >&5  echo
"$as_me:  failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5

( exit $ac_status ) { { echo "$as_me:$LINENO: error: cannot  com-
pute  sizeof  (long  int), 77 See `config.log' for more details."
>&5 echo "$as_me: error: cannot compute sizeof (long int), 77 See
`config.log' for more details." >&2;}
   {  (exit 1); exit 1; }; } fi rm -f core core.* *.core gmon.out
bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi rm -f conftest.val else
  ac_cv_sizeof_long_int=0  fi  fi  echo  "$as_me:$LINENO: result:
$ac_cv_sizeof_long_int"    >&5    echo     "${ECHO_T}$ac_cv_size-
of_long_int"  >&6  cat  >>confdefs.h  <<_ACEOF  @%:@define  SIZE-
OF_LONG_INT $ac_cv_sizeof_long_int _ACEOF


echo "$as_me:$LINENO:  checking  for  long  long  int"  >&5  echo
$ECHO_N  "checking  for  long  long  int...  $ECHO_C" >&6 if test
"${ac_cv_type_long_long_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default int main () { if ((long long int *) 0)
  return 0; if (sizeof (long long int))
  ac_cv_type_long_long_int=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_type_long_long_int=no  fi  rm  -f  conftest.$ac_objext con-
ftest.$ac_ext     fi      echo      "$as_me:$LINENO:      result:
$ac_cv_type_long_long_int"                >&5                echo
"${ECHO_T}$ac_cv_type_long_long_int" >&6

echo "$as_me:$LINENO: checking size of long long  int"  >&5  echo
$ECHO_N  "checking  size of long long int... $ECHO_C" >&6 if test
"${ac_cv_sizeof_long_long_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  if test "$ac_cv_type_long_long_int" = yes; then
  # The cast to unsigned long works around a bug in the HP C Com-
piler
  #  version  HP92453-01  B.11.11.23709.GP, which incorrectly re-
jects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  #  Depending  upon the size, compute the lo and hi bounds.  cat
>conftest.$ac_ext   <<_ACEOF   #line   $LINENO   "configure"   /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  () { static int test_array @<:@1 - 2 *
!(((long)  (sizeof  (long  long  int)))  >=  0)@:>@;   test_array
@<:@0@:>@ = 0

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  () { static int test_array @<:@1 - 2 *
!(((long) (sizeof (long long int))) <=  $ac_mid)@:>@;  test_array
@<:@0@:>@ = 0

  ;

ftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f con-
ftest.$ac_objext conftest.$ac_ext
  done else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { static int test_array @<:@1  -  2  *
!(((long)   (sizeof   (long  long  int)))  <  0)@:>@;  test_array
@<:@0@:>@ = 0

  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat  >conftest.$ac_ext  <<_ACEOF #line $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext   <<_ACEOF  /*  end  confdefs.h.   */  $ac_in-
cludes_default int main () { static int test_array @<:@1  -  2  *
!(((long)  (sizeof  (long long int))) >= $ac_mid)@:>@; test_array
@<:@0@:>@ = 0

  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  done else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_lo= ac_hi= fi rm -f conftest.$ac_objext conftest.$ac_ext fi rm
-f  conftest.$ac_objext  conftest.$ac_ext # Binary search between
lo and hi bounds.  while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  () { static int test_array @<:@1 - 2 *
!(((long) (sizeof (long long int))) <=  $ac_mid)@:>@;  test_array
@<:@0@:>@ = 0

  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_lo=`expr  '('  $ac_mid  ')'  + 1` fi rm -f conftest.$ac_objext
conftest.$ac_ext   done   case   $ac_lo   in   ?*)    ac_cv_size-
of_long_long_int=$ac_lo;; See `config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long  long  int),  77
See `config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;; esac else
  if test "$cross_compiling" = yes; then
  {  { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log'  for  more  details."  >&5  echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default long longval () { return (long) (sizeof (long long
int)); } unsigned long ulongval () { return (long) (sizeof  (long
long  int));  }  @%:@include <stdio.h> @%:@include <stdlib.h> int
main () {

(1);
      fprintf (f, "%lu0, i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0; } _ACEOF rm -f conftest$ac_exeext  if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long_long_int=`cat conftest.val` else
  echo  "$as_me:  program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /'  conftest.$ac_ext
>&5

(  exit $ac_status ) { { echo "$as_me:$LINENO: error: cannot com-
pute sizeof (long long int), 77 See  `config.log'  for  more  de-
tails." >&5 echo "$as_me: error: cannot compute sizeof (long long
int), 77 See `config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } fi rm -f core core.* *.core  gmon.out
bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi
fi rm -f conftest.val else
  ac_cv_sizeof_long_long_int=0 fi fi  echo  "$as_me:$LINENO:  re-
sult:         $ac_cv_sizeof_long_long_int"        >&5        echo
"${ECHO_T}$ac_cv_sizeof_long_long_int"   >&6   cat   >>confdefs.h
<<_ACEOF     @%:@define     SIZEOF_LONG_LONG_INT     $ac_cv_size-
of_long_long_int _ACEOF



# Sanity check  long  long  for  some  platforms  (AIX)  if  test
"x$ac_cv_sizeof_long_long_int"  = "x4" ; then         ac_cv_size-
of_long_long_int=0 fi

# More checks for data types echo "$as_me:$LINENO:  checking  for
u_int type" >&5 echo $ECHO_N "checking for u_int type... $ECHO_C"
>&6 if test "${ac_cv_have_u_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"
/*  confdefs.h.   */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */
 #include <sys/types.h> int main () {
 u_int a; a = 1;
  ;

ftest.$ac_ext >&5

 ac_cv_have_u_int="no"          fi rm -f conftest.$ac_objext con-
ftest.$ac_ext

fi  echo  "$as_me:$LINENO:  result:  $ac_cv_have_u_int"  >&5 echo
"${ECHO_T}$ac_cv_have_u_int" >&6 if test  "x$ac_cv_have_u_int"  =
"xyes"   ;  then          cat  >>confdefs.h  <<_ACEOF  @%:@define
HAVE_U_INT 1 _ACEOF

        have_u_int=1 fi

echo  "$as_me:$LINENO:  checking  for  intXX_t  types"  >&5  echo
$ECHO_N  "checking  for  intXX_t  types...  $ECHO_C"  >&6 if test
"${ac_cv_have_intxx_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"
/*  confdefs.h.   */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */
 #include <sys/types.h> int main () {
 int8_t a; int16_t b; int32_t c; a = b = c = 1;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_intxx_t="yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

 ac_cv_have_intxx_t="no"          fi  rm  -f  conftest.$ac_objext
conftest.$ac_ext

fi  echo  "$as_me:$LINENO:  result: $ac_cv_have_intxx_t" >&5 echo
"${ECHO_T}$ac_cv_have_intxx_t" >&6 if test "x$ac_cv_have_intxx_t"
=  "xyes"  ;  then          cat  >>confdefs.h <<_ACEOF @%:@define
HAVE_INTXX_T 1 _ACEOF

        have_intxx_t=1 fi

if (test -z "$have_intxx_t" &&     test "x$ac_cv_header_stdint_h"
= "xyes") then
    echo "$as_me:$LINENO: checking for intXX_t types in stdint.h"
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then

                        cat   >>confdefs.h   <<_ACEOF  @%:@define
HAVE_INTXX_T 1 _ACEOF

                        echo "$as_me:$LINENO:  result:  yes"  >&5
echo "${ECHO_T}yes" >&6                  else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

 echo "$as_me:$LINENO: result: no"  >&5  echo  "${ECHO_T}no"  >&6
         fi rm -f conftest.$ac_objext conftest.$ac_ext fi

echo "$as_me:$LINENO: checking for int64_t type" >&5 echo $ECHO_N
"checking   for   int64_t   type...   $ECHO_C"   >&6   if    test
"${ac_cv_have_int64_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat  >conftest.$ac_ext <<_ACEOF #line $LINENO "configure"
/* confdefs.h.  */ _ACEOF cat confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include  <sys/types.h> #ifdef HAVE_STDINT_H # include <stdint.h>
#endif #include <sys/socket.h> #ifdef  HAVE_SYS_BITYPES_H  #  in-
clude <sys/bitypes.h> #endif                  int main () {
 int64_t a; a = 1;
  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_int64_t="yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

 ac_cv_have_int64_t="no"            fi  rm -f conftest.$ac_objext
conftest.$ac_ext

fi echo "$as_me:$LINENO: result:  $ac_cv_have_int64_t"  >&5  echo
 #include <sys/types.h> int main () {
 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_u_intxx_t="yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

 ac_cv_have_u_intxx_t="no"           fi rm -f conftest.$ac_objext
conftest.$ac_ext

fi echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5  echo
"${ECHO_T}$ac_cv_have_u_intxx_t"  >&6 if test "x$ac_cv_have_u_in-
txx_t" = "xyes" ; then         cat >>confdefs.h <<_ACEOF  @%:@de-
fine HAVE_U_INTXX_T 1 _ACEOF

        have_u_intxx_t=1 fi

if test -z "$have_u_intxx_t" ; then
    echo   "$as_me:$LINENO:   checking  for  u_intXX_t  types  in
sys/socket.h" >&5 echo $ECHO_N "checking for u_intXX_t  types  in
sys/socket.h...   $ECHO_C"   >&6           cat  >conftest.$ac_ext
<<_ACEOF #line $LINENO "configure" /* confdefs.h.  */ _ACEOF  cat
confdefs.h  >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h.  */
 #include <sys/socket.h> int main () {
 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then

  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat  >conftest.$ac_ext <<_ACEOF #line $LINENO "configure"
/* confdefs.h.  */ _ACEOF cat confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */
 #include <sys/types.h> int main () {
 u_int64_t a; a = 1;
  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_u_int64_t="yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

 ac_cv_have_u_int64_t="no"           fi rm -f conftest.$ac_objext
conftest.$ac_ext

fi echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5  echo
"${ECHO_T}$ac_cv_have_u_int64_t"        >&6        if        test
"x$ac_cv_have_u_int64_t" = "xyes" ; then         cat >>confdefs.h
<<_ACEOF @%:@define HAVE_U_INT64_T 1 _ACEOF

        have_u_int64_t=1 fi

if test -z "$have_u_int64_t" ; then
    echo   "$as_me:$LINENO:   checking   for  u_int64_t  type  in
sys/bitypes.h" >&5 echo $ECHO_N "checking for u_int64_t  type  in
sys/bitypes.h...   $ECHO_C"   >&6          cat  >conftest.$ac_ext
<<_ACEOF #line $LINENO "configure" /* confdefs.h.  */ _ACEOF  cat
confdefs.h  >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /*
end confdefs.h.  */
 #include <sys/bitypes.h> int main () {
 u_int64_t a; a = 1
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
         fi rm -f conftest.$ac_objext conftest.$ac_ext fi

if test -z "$have_u_intxx_t" ; then         echo "$as_me:$LINENO:
checking for uintXX_t types" >&5 echo $ECHO_N "checking for  uin-
tXX_t  types... $ECHO_C" >&6 if test "${ac_cv_have_uintxx_t+set}"
= set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat  >conftest.$ac_ext  <<_ACEOF  #line   $LINENO
"configure"  /*  confdefs.h.   */  _ACEOF  cat  confdefs.h >>con-
ftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end  confdefs.h.
*/

#include <sys/types.h>                          int main () {
 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_uintxx_t="yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

 ac_cv_have_uintxx_t="no"                      fi   rm   -f  con-
ftest.$ac_objext    conftest.$ac_ext                  fi     echo
"$as_me:$LINENO:    result:    $ac_cv_have_uintxx_t"   >&5   echo
"${ECHO_T}$ac_cv_have_uintxx_t"     >&6              if      test
"x$ac_cv_have_uintxx_t"   =  "xyes"  ;  then                  cat
>>confdefs.h <<_ACEOF @%:@define HAVE_UINTXX_T 1 _ACEOF

        fi fi

if test -z "$have_uintxx_t" ; then
    echo  "$as_me:$LINENO:  checking  for   uintXX_t   types   in
stdint.h"  >&5  echo  $ECHO_N  "checking  for  uintXX_t  types in
stdint.h... $ECHO_C" >&6         cat  >conftest.$ac_ext  <<_ACEOF
#line   $LINENO   "configure"   /*  confdefs.h.   */  _ACEOF  cat
confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF  /*
end confdefs.h.  */
 #include <stdint.h> int main () {
 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo

                        echo  "$as_me:$LINENO:  result:  yes" >&5
echo "${ECHO_T}yes" >&6                  else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

 echo  "$as_me:$LINENO:  result:  no"  >&5 echo "${ECHO_T}no" >&6
         fi rm -f conftest.$ac_objext conftest.$ac_ext fi

if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" &&
test  "x$ac_cv_header_sys_bitypes_h"  = "xyes") then         echo
"$as_me:$LINENO: checking for  intXX_t  and  u_intXX_t  types  in
sys/bitypes.h"  >&5  echo $ECHO_N "checking for intXX_t and u_in-
tXX_t types in sys/bitypes.h... $ECHO_C"  >&6          cat  >con-
ftest.$ac_ext  <<_ACEOF  #line $LINENO "configure" /* confdefs.h.
*/  _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat   >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include <sys/bitypes.h>                  int main () {

                        int8_t   a;   int16_t   b;   int32_t   c;
                        u_int8_t e;  u_int16_t  f;  u_int32_t  g;
                        a   =   b   =  c  =  e  =  f  =  g  =  1;

  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then

                        cat   >>confdefs.h   <<_ACEOF  @%:@define
HAVE_U_INTXX_T 1 _ACEOF

                        cat  >>confdefs.h   <<_ACEOF   @%:@define
HAVE_INTXX_T 1 _ACEOF

                        echo  "$as_me:$LINENO:  result:  yes" >&5
echo "${ECHO_T}yes" >&6                  else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

echo  "$as_me:$LINENO:  result:  no"  >&5  echo "${ECHO_T}no" >&6
         fi rm -f conftest.$ac_objext conftest.$ac_ext fi

"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_u_char="yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

 ac_cv_have_u_char="no"           fi  rm  -f  conftest.$ac_objext
conftest.$ac_ext

fi  echo  "$as_me:$LINENO:  result:  $ac_cv_have_u_char" >&5 echo
"${ECHO_T}$ac_cv_have_u_char" >&6 if test "x$ac_cv_have_u_char" =
"xyes"   ;  then          cat  >>confdefs.h  <<_ACEOF  @%:@define
HAVE_U_CHAR 1 _ACEOF

fi


   echo "$as_me:$LINENO: checking for socklen_t" >&5 echo $ECHO_N
"checking    for    socklen_t...    $ECHO_C"    >&6    if    test
"${ac_cv_type_socklen_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */  #include
exit(1);         exit(0); } #else  main()  {  ex-
it(0);  } #endif                  _ACEOF rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   true else
  echo "$as_me: program exited with status $ac_status"  >&5  echo
"$as_me:  failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5

( exit $ac_status )
 cat >>confdefs.h <<_ACEOF @%:@define BROKEN_SNPRINTF 1 _ACEOF

         fi  rm  -f  core  core.*  *.core  gmon.out  bb.out  con-
ftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi


# look for field 'ut_host' in header 'utmp.h'                 os-
sh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`                  os-
sh_varname="ossh_cv_$ossh_safe""_has_"ut_host                echo
"$as_me:$LINENO: checking for ut_host field in utmp.h"  >&5  echo
$ECHO_N  "checking  for  ut_host  field in utmp.h... $ECHO_C" >&6
        if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat  >conftest.$ac_ext  <<_ACEOF  #line   $LINENO

"$as_me:$LINENO:  result:  $ossh_result"  >&5 echo "${ECHO_T}$os-
sh_result" >&6                 if test "x$ossh_result" =  "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_HOST_IN_UTMP 1 _ACEOF

                fi               else                        echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
        fi


#   look   for    field    'ut_host'    in    header    'utmpx.h'
                ossh_safe=`echo  "utmpx.h"  | sed 'y%./+-%__p_%'`
                ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
        echo  "$as_me:$LINENO: checking for ut_host field in utm-
px.h" >&5 echo $ECHO_N "checking for ut_host field in  utmpx.h...
$ECHO_C" >&6         if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat   >conftest.$ac_ext  <<_ACEOF  #line  $LINENO
"configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h  >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/ #include <utmpx.h>

_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ut_host" >/dev/null 2>&1; then
                        eval "$ossh_varname=yes"
else
                        eval  "$ossh_varname=no"
fi rm -f conftest*
         fi

        ossh_result=`eval  'echo  $'"$ossh_varname"`           if
test   -n   "`echo   $ossh_varname`";  then                  echo
"$as_me:$LINENO: result: $ossh_result"  >&5  echo  "${ECHO_T}$os-
sh_result"  >&6                 if test "x$ossh_result" = "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_HOST_IN_UTMPX 1 _ACEOF

                fi                else                       echo
"$as_me:$LINENO:  result:  no"   >&5   echo   "${ECHO_T}no"   >&6
        fi


# look for field 'syslen' in header 'utmpx.h'                 os-
sh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`                 os-
sh_varname="ossh_cv_$ossh_safe""_has_"syslen                 echo
"$as_me:$LINENO: checking for syslen field in utmpx.h"  >&5  echo
$ECHO_N  "checking  for  syslen  field in utmpx.h... $ECHO_C" >&6
        if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat  >conftest.$ac_ext  <<_ACEOF  #line   $LINENO

"$as_me:$LINENO:  result:  $ossh_result"  >&5 echo "${ECHO_T}$os-
sh_result" >&6                 if test "x$ossh_result" =  "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_SYSLEN_IN_UTMPX 1 _ACEOF

                fi               else                        echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
        fi


# look for field 'ut_pid' in header 'utmp.h'                  os-
sh_safe=`echo  "utmp.h" | sed 'y%./+-%__p_%'`                 os-
sh_varname="ossh_cv_$ossh_safe""_has_"ut_pid                 echo
"$as_me:$LINENO:  checking  for  ut_pid field in utmp.h" >&5 echo
$ECHO_N "checking for ut_pid  field  in  utmp.h...  $ECHO_C"  >&6
        if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat   >conftest.$ac_ext  <<_ACEOF  #line  $LINENO
"configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h  >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/ #include <utmp.h>

_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ut_pid" >/dev/null 2>&1; then
                        eval "$ossh_varname=yes"
else
                        eval  "$ossh_varname=no"
fi rm -f conftest*
         fi

        ossh_result=`eval  'echo  $'"$ossh_varname"`           if
test   -n   "`echo   $ossh_varname`";  then                  echo
"$as_me:$LINENO: result: $ossh_result"  >&5  echo  "${ECHO_T}$os-
sh_result"  >&6                 if test "x$ossh_result" = "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_PID_IN_UTMP 1 _ACEOF

                fi                else                       echo
"$as_me:$LINENO:  result:  no"   >&5   echo   "${ECHO_T}no"   >&6
        fi


# look for field 'ut_type' in header 'utmp.h'                 os-
sh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`                  os-
sh_varname="ossh_cv_$ossh_safe""_has_"ut_type                echo
"$as_me:$LINENO: checking for ut_type field in utmp.h"  >&5  echo
$ECHO_N  "checking  for  ut_type  field in utmp.h... $ECHO_C" >&6
        if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat  >conftest.$ac_ext  <<_ACEOF  #line   $LINENO

"$as_me:$LINENO:  result:  $ossh_result"  >&5 echo "${ECHO_T}$os-
sh_result" >&6                 if test "x$ossh_result" =  "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_TYPE_IN_UTMP 1 _ACEOF

                fi               else                        echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
        fi


#   look   for    field    'ut_type'    in    header    'utmpx.h'
                ossh_safe=`echo  "utmpx.h"  | sed 'y%./+-%__p_%'`
                ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
        echo  "$as_me:$LINENO: checking for ut_type field in utm-
px.h" >&5 echo $ECHO_N "checking for ut_type field in  utmpx.h...
$ECHO_C" >&6         if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat   >conftest.$ac_ext  <<_ACEOF  #line  $LINENO
"configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h  >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/ #include <utmpx.h>

_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ut_type" >/dev/null 2>&1; then
                        eval "$ossh_varname=yes"
else
                        eval  "$ossh_varname=no"
fi rm -f conftest*
         fi

        ossh_result=`eval  'echo  $'"$ossh_varname"`           if
test   -n   "`echo   $ossh_varname`";  then                  echo
"$as_me:$LINENO: result: $ossh_result"  >&5  echo  "${ECHO_T}$os-
sh_result"  >&6                 if test "x$ossh_result" = "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_TYPE_IN_UTMPX 1 _ACEOF

                fi                else                       echo
"$as_me:$LINENO:  result:  no"   >&5   echo   "${ECHO_T}no"   >&6
        fi


#  look  for field 'ut_tv' in header 'utmp.h'                 os-
sh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`                  os-
sh_varname="ossh_cv_$ossh_safe""_has_"ut_tv                  echo
"$as_me:$LINENO: checking for ut_tv field  in  utmp.h"  >&5  echo
$ECHO_N  "checking  for  ut_tv  field  in  utmp.h... $ECHO_C" >&6
        if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat  >conftest.$ac_ext  <<_ACEOF  #line   $LINENO

"$as_me:$LINENO:  result:  $ossh_result"  >&5 echo "${ECHO_T}$os-
sh_result" >&6                 if test "x$ossh_result" =  "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_TV_IN_UTMP 1 _ACEOF

                fi               else                        echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
        fi


# look for field 'ut_id' in header  'utmp.h'                  os-
sh_safe=`echo  "utmp.h" | sed 'y%./+-%__p_%'`                 os-
sh_varname="ossh_cv_$ossh_safe""_has_"ut_id                  echo
"$as_me:$LINENO:  checking  for  ut_id  field in utmp.h" >&5 echo
$ECHO_N "checking for  ut_id  field  in  utmp.h...  $ECHO_C"  >&6
        if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat   >conftest.$ac_ext  <<_ACEOF  #line  $LINENO
"configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h  >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/ #include <utmp.h>

_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ut_id" >/dev/null 2>&1; then
                        eval "$ossh_varname=yes"
else
                        eval  "$ossh_varname=no"
fi rm -f conftest*
         fi

        ossh_result=`eval  'echo  $'"$ossh_varname"`           if
test   -n   "`echo   $ossh_varname`";  then                  echo
"$as_me:$LINENO: result: $ossh_result"  >&5  echo  "${ECHO_T}$os-
sh_result"  >&6                 if test "x$ossh_result" = "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_ID_IN_UTMP 1 _ACEOF

                fi                else                       echo
"$as_me:$LINENO:  result:  no"   >&5   echo   "${ECHO_T}no"   >&6
        fi


#  look for field 'ut_id' in header 'utmpx.h'                 os-
sh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`                 os-
sh_varname="ossh_cv_$ossh_safe""_has_"ut_id                  echo
"$as_me:$LINENO: checking for ut_id field in  utmpx.h"  >&5  echo
$ECHO_N  "checking  for  ut_id  field  in utmpx.h... $ECHO_C" >&6
        if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat  >conftest.$ac_ext  <<_ACEOF  #line   $LINENO

"$as_me:$LINENO:  result:  $ossh_result"  >&5 echo "${ECHO_T}$os-
sh_result" >&6                 if test "x$ossh_result" =  "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_ID_IN_UTMPX 1 _ACEOF

                fi               else                        echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
        fi


# look for field 'ut_addr' in header 'utmp.h'                 os-
sh_safe=`echo  "utmp.h" | sed 'y%./+-%__p_%'`                 os-
sh_varname="ossh_cv_$ossh_safe""_has_"ut_addr                echo
"$as_me:$LINENO:  checking  for ut_addr field in utmp.h" >&5 echo
$ECHO_N "checking for ut_addr field  in  utmp.h...  $ECHO_C"  >&6
        if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat   >conftest.$ac_ext  <<_ACEOF  #line  $LINENO
"configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h  >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/ #include <utmp.h>

_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ut_addr" >/dev/null 2>&1; then
                        eval "$ossh_varname=yes"
else
                        eval  "$ossh_varname=no"
fi rm -f conftest*
         fi

        ossh_result=`eval  'echo  $'"$ossh_varname"`           if
test   -n   "`echo   $ossh_varname`";  then                  echo
"$as_me:$LINENO: result: $ossh_result"  >&5  echo  "${ECHO_T}$os-
sh_result"  >&6                 if test "x$ossh_result" = "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_ADDR_IN_UTMP 1 _ACEOF

                fi                else                       echo
"$as_me:$LINENO:  result:  no"   >&5   echo   "${ECHO_T}no"   >&6
        fi


#    look    for    field    'ut_addr'    in   header   'utmpx.h'
                ossh_safe=`echo "utmpx.h" |  sed  'y%./+-%__p_%'`
                ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
        echo "$as_me:$LINENO: checking for ut_addr field in  utm-
px.h"  >&5 echo $ECHO_N "checking for ut_addr field in utmpx.h...
$ECHO_C" >&6         if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat  >conftest.$ac_ext  <<_ACEOF  #line   $LINENO

"$as_me:$LINENO:  result:  $ossh_result"  >&5 echo "${ECHO_T}$os-
sh_result" >&6                 if test "x$ossh_result" =  "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_ADDR_IN_UTMPX 1 _ACEOF

                fi               else                        echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
        fi


#   look   for   field   'ut_addr_v6'    in    header    'utmp.h'
                ossh_safe=`echo  "utmp.h"  |  sed 'y%./+-%__p_%'`
                ossh_varname="ossh_cv_$ossh_safe""_has_"ut_ad-
dr_v6         echo "$as_me:$LINENO: checking for ut_addr_v6 field
in utmp.h" >&5 echo $ECHO_N "checking  for  ut_addr_v6  field  in
utmp.h... $ECHO_C" >&6         if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat   >conftest.$ac_ext  <<_ACEOF  #line  $LINENO
"configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h  >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/ #include <utmp.h>

_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ut_addr_v6" >/dev/null 2>&1; then
                        eval "$ossh_varname=yes"
else
                        eval  "$ossh_varname=no"
fi rm -f conftest*
         fi

        ossh_result=`eval  'echo  $'"$ossh_varname"`           if
test   -n   "`echo   $ossh_varname`";  then                  echo
"$as_me:$LINENO: result: $ossh_result"  >&5  echo  "${ECHO_T}$os-
sh_result"  >&6                 if test "x$ossh_result" = "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_ADDR_V6_IN_UTMP 1 _ACEOF

                fi                else                       echo
"$as_me:$LINENO:  result:  no"   >&5   echo   "${ECHO_T}no"   >&6
        fi


#    look    for   field   'ut_addr_v6'   in   header   'utmpx.h'
                ossh_safe=`echo "utmpx.h" |  sed  'y%./+-%__p_%'`
                ossh_varname="ossh_cv_$ossh_safe""_has_"ut_ad-
dr_v6         echo "$as_me:$LINENO: checking for ut_addr_v6 field
in  utmpx.h"  >&5  echo $ECHO_N "checking for ut_addr_v6 field in
utmpx.h... $ECHO_C" >&6         if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat  >conftest.$ac_ext  <<_ACEOF  #line   $LINENO

"$as_me:$LINENO:  result:  $ossh_result"  >&5 echo "${ECHO_T}$os-
sh_result" >&6                 if test "x$ossh_result" =  "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_ADDR_V6_IN_UTMPX 1 _ACEOF

                fi               else                        echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
        fi


# look for field 'ut_exit' in header 'utmp.h'                 os-
sh_safe=`echo  "utmp.h" | sed 'y%./+-%__p_%'`                 os-
sh_varname="ossh_cv_$ossh_safe""_has_"ut_exit                echo
"$as_me:$LINENO:  checking  for ut_exit field in utmp.h" >&5 echo
$ECHO_N "checking for ut_exit field  in  utmp.h...  $ECHO_C"  >&6
        if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat   >conftest.$ac_ext  <<_ACEOF  #line  $LINENO
"configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h  >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/ #include <utmp.h>

_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ut_exit" >/dev/null 2>&1; then
                        eval "$ossh_varname=yes"
else
                        eval  "$ossh_varname=no"
fi rm -f conftest*
         fi

        ossh_result=`eval  'echo  $'"$ossh_varname"`           if
test   -n   "`echo   $ossh_varname`";  then                  echo
"$as_me:$LINENO: result: $ossh_result"  >&5  echo  "${ECHO_T}$os-
sh_result"  >&6                 if test "x$ossh_result" = "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_EXIT_IN_UTMP 1 _ACEOF

                fi                else                       echo
"$as_me:$LINENO:  result:  no"   >&5   echo   "${ECHO_T}no"   >&6
        fi


# look for field 'ut_time' in header 'utmp.h'                 os-
sh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`                  os-
sh_varname="ossh_cv_$ossh_safe""_has_"ut_time                echo
"$as_me:$LINENO: checking for ut_time field in utmp.h"  >&5  echo
$ECHO_N  "checking  for  ut_time  field in utmp.h... $ECHO_C" >&6
        if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat  >conftest.$ac_ext  <<_ACEOF  #line   $LINENO

"$as_me:$LINENO:  result:  $ossh_result"  >&5 echo "${ECHO_T}$os-
sh_result" >&6                 if test "x$ossh_result" =  "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_TIME_IN_UTMP 1 _ACEOF

                fi               else                        echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
        fi


#   look   for    field    'ut_time'    in    header    'utmpx.h'
                ossh_safe=`echo  "utmpx.h"  | sed 'y%./+-%__p_%'`
                ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
        echo  "$as_me:$LINENO: checking for ut_time field in utm-
px.h" >&5 echo $ECHO_N "checking for ut_time field in  utmpx.h...
$ECHO_C" >&6         if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat   >conftest.$ac_ext  <<_ACEOF  #line  $LINENO
"configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h  >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/ #include <utmpx.h>

_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "ut_time" >/dev/null 2>&1; then
                        eval "$ossh_varname=yes"
else
                        eval  "$ossh_varname=no"
fi rm -f conftest*
         fi

        ossh_result=`eval  'echo  $'"$ossh_varname"`           if
test   -n   "`echo   $ossh_varname`";  then                  echo
"$as_me:$LINENO: result: $ossh_result"  >&5  echo  "${ECHO_T}$os-
sh_result"  >&6                 if test "x$ossh_result" = "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_TIME_IN_UTMPX 1 _ACEOF

                fi                else                       echo
"$as_me:$LINENO:  result:  no"   >&5   echo   "${ECHO_T}no"   >&6
        fi


#  look for field 'ut_tv' in header 'utmpx.h'                 os-
sh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`                 os-
sh_varname="ossh_cv_$ossh_safe""_has_"ut_tv                  echo
"$as_me:$LINENO: checking for ut_tv field in  utmpx.h"  >&5  echo
$ECHO_N  "checking  for  ut_tv  field  in utmpx.h... $ECHO_C" >&6
        if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

                cat  >conftest.$ac_ext  <<_ACEOF  #line   $LINENO

"$as_me:$LINENO:  result:  $ossh_result"  >&5 echo "${ECHO_T}$os-
sh_result" >&6                 if test "x$ossh_result" =  "xyes";
then                         cat >>confdefs.h <<_ACEOF @%:@define
HAVE_TV_IN_UTMPX 1 _ACEOF

                fi               else                        echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
        fi


echo "$as_me:$LINENO: checking for  struct  stat.st_blksize"  >&5
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  ()  {  static  struct stat ac_aggr; if
(ac_aggr.st_blksize) return 0;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_member_struct_stat_st_blksize=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */   $ac_in-
cludes_default  int  main  ()  {  static  struct stat ac_aggr; if
(sizeof ac_aggr.st_blksize) return 0;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?

1 _ACEOF


fi


echo "$as_me:$LINENO: checking  for  ss_family  field  in  struct
sockaddr_storage"  >&5 echo $ECHO_N "checking for ss_family field
in   struct   sockaddr_storage...   $ECHO_C"    >&6    if    test
"${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat  >conftest.$ac_ext <<_ACEOF #line $LINENO "configure"
/* confdefs.h.  */ _ACEOF cat confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include  <sys/types.h>  #include <sys/socket.h>
int main () {
 struct sockaddr_storage s; s.ss_family = 1;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_ss_family_in_struct_ss="yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

 ac_cv_have_ss_family_in_struct_ss="no" fi rm -f conftest.$ac_ob-
jext conftest.$ac_ext

fi    echo    "$as_me:$LINENO:    result:    $ac_cv_have_ss_fami-
ly_in_struct_ss"    >&5    echo    "${ECHO_T}$ac_cv_have_ss_fami-
ly_in_struct_ss"     >&6     if    test    "x$ac_cv_have_ss_fami-
ly_in_struct_ss" = "xyes" ; then         cat >>confdefs.h <<_ACE-
OF @%:@define HAVE_SS_FAMILY_IN_SS 1 _ACEOF

fi

echo  "$as_me:$LINENO:  checking  for __ss_family field in struct
sockaddr_storage" >&5  echo  $ECHO_N  "checking  for  __ss_family
field   in   struct  sockaddr_storage...  $ECHO_C"  >&6  if  test
"${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have___ss_family_in_struct_ss="yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

 ac_cv_have___ss_family_in_struct_ss="no"           fi rm -f con-
ftest.$ac_objext conftest.$ac_ext

fi   echo   "$as_me:$LINENO:    result:    $ac_cv_have___ss_fami-
ly_in_struct_ss"    >&5   echo   "${ECHO_T}$ac_cv_have___ss_fami-
ly_in_struct_ss"    >&6    if    test    "x$ac_cv_have___ss_fami-
ly_in_struct_ss" = "xyes" ; then         cat >>confdefs.h <<_ACE-
OF @%:@define HAVE___SS_FAMILY_IN_SS 1 _ACEOF

fi

echo "$as_me:$LINENO: checking for pw_class field in struct pass-
wd" >&5 echo $ECHO_N "checking for pw_class field in struct pass-
wd... $ECHO_C" >&6 if test "${ac_cv_have_pw_class_in_struct_pass-
wd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat  >conftest.$ac_ext <<_ACEOF #line $LINENO "configure"
/* confdefs.h.  */ _ACEOF cat confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include <pwd.h>                  int main () {
 struct passwd p; p.pw_class = 0;
  ;
  return  0;  }  _ACEOF rm -f conftest.$ac_objext if { (eval echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_pw_class_in_struct_passwd="yes" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

 ac_cv_have_pw_class_in_struct_passwd="no"          fi rm -f con-

pire_in_struct_passwd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"
/*  confdefs.h.   */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include <pwd.h>                  int main () {
 struct passwd p; p.pw_expire = 0;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_pw_expire_in_struct_passwd="yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

 ac_cv_have_pw_expire_in_struct_passwd="no"            fi  rm  -f
conftest.$ac_objext conftest.$ac_ext

fi     echo     "$as_me:$LINENO:    result:    $ac_cv_have_pw_ex-
pire_in_struct_passwd"  >&5   echo   "${ECHO_T}$ac_cv_have_pw_ex-
pire_in_struct_passwd"    >&6    if   test   "x$ac_cv_have_pw_ex-
pire_in_struct_passwd" = "xyes" ; then          cat  >>confdefs.h
<<_ACEOF @%:@define HAVE_PW_EXPIRE_IN_PASSWD 1 _ACEOF

fi

echo  "$as_me:$LINENO:  checking  for  pw_change  field in struct
passwd" >&5 echo $ECHO_N "checking for pw_change field in  struct
passwd...          $ECHO_C"          >&6          if         test
"${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"
/*  confdefs.h.   */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include <pwd.h>                  int main () {
 struct passwd p; p.pw_change = 0;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
 ac_cv_have_pw_change_in_struct_passwd="no"            fi  rm  -f
conftest.$ac_objext conftest.$ac_ext

fi            echo            "$as_me:$LINENO:            result:
$ac_cv_have_pw_change_in_struct_passwd"         >&5          echo
"${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd"   >&6  if  test
"x$ac_cv_have_pw_change_in_struct_passwd"   =   "xyes"   ;   then
        cat        >>confdefs.h        <<_ACEOF        @%:@define
HAVE_PW_CHANGE_IN_PASSWD 1 _ACEOF

fi

echo "$as_me:$LINENO: checking for msg_accrights field in  struct
msghdr"  >&5  echo  $ECHO_N  "checking for msg_accrights field in
struct  msghdr...  $ECHO_C"   >&6   if   test   "${ac_cv_have_ac-
crights_in_msghdr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        if test "$cross_compiling" = yes; then
  {  { echo "$as_me:$LINENO: error: cannot run test program while
cross compiling See `config.log'  for  more  details."  >&5  echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include   <sys/types.h>   #include    <sys/socket.h>    #include
exit(1); #endif
struct msghdr m; m.msg_accrights = 0; exit(0); }
_ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_accrights_in_msghdr="yes" else
  echo  "$as_me:  program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /'  conftest.$ac_ext
>&5

( exit $ac_status )
 ac_cv_have_accrights_in_msghdr="no"             fi  rm  -f  core
core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_ob-
jext conftest.$ac_ext fi

fi echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr"
  { { echo "$as_me:$LINENO: error: cannot run test program  while
cross  compiling  See  `config.log'  for  more details." >&5 echo
"$as_me: error: cannot run test program while cross compiling See
`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include    <sys/types.h>    #include   <sys/socket.h>   #include
exit(1);  #endif
struct  msghdr  m; m.msg_control = 0; exit(0); }
_ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_have_control_in_msghdr="yes" else
  echo "$as_me: program exited with status $ac_status"  >&5  echo
"$as_me:  failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext
>&5

( exit $ac_status )
 ac_cv_have_control_in_msghdr="no"          fi rm -f core  core.*
*.core  gmon.out  bb.out  conftest$ac_exeext  conftest.$ac_objext
conftest.$ac_ext fi

fi echo "$as_me:$LINENO:  result:  $ac_cv_have_control_in_msghdr"
>&5  echo  "${ECHO_T}$ac_cv_have_control_in_msghdr"  >&6  if test
"x$ac_cv_have_control_in_msghdr"  =  "xyes"  ;  then          cat
>>confdefs.h <<_ACEOF @%:@define HAVE_CONTROL_IN_MSGHDR 1 _ACEOF

fi

echo  "$as_me:$LINENO:  checking  if libc defines __progname" >&5
echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
if test "${ac_cv_libc_defines___progname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat  >conftest.$ac_ext <<_ACEOF #line $LINENO "configure"
/* confdefs.h.  */ _ACEOF cat confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

int main () {
 extern char *__progname; printf("%s", __progname);
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext

 ac_cv_libc_defines___progname="no"              fi  rm  -f  con-
ftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi echo "$as_me:$LINENO: result:  $ac_cv_libc_defines___progname"
>&5  echo  "${ECHO_T}$ac_cv_libc_defines___progname"  >&6 if test
"x$ac_cv_libc_defines___progname" =  "xyes"  ;  then          cat
>>confdefs.h <<_ACEOF @%:@define HAVE___PROGNAME 1 _ACEOF

fi

echo  "$as_me:$LINENO:  checking  whether  $CC implements __FUNC-
TION__" >&5 echo $ECHO_N "checking whether $CC implements __FUNC-
TION__...  $ECHO_C"  >&6  if  test "${ac_cv_cc_implements___FUNC-
TION__+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"
/*  confdefs.h.   */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include <stdio.h>

int main () {
 printf("%s", __FUNCTION__);
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_cc_implements___FUNCTION__="yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

 ac_cv_cc_implements___FUNCTION__="no"           fi  rm  -f  con-
ftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi  echo  "$as_me:$LINENO:  result:  $ac_cv_cc_implements___FUNC-
TION__" >&5 echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
if  test  "x$ac_cv_cc_implements___FUNCTION__"  =  "xyes"  ; then
        cat >>confdefs.h <<_ACEOF @%:@define HAVE___FUNCTION__  1
_ACEOF

fi
 printf("%s", __func__);
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_cc_implements___func__="yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

 ac_cv_cc_implements___func__="no"            fi   rm   -f   con-
ftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi  echo  "$as_me:$LINENO: result: $ac_cv_cc_implements___func__"
>&5 echo  "${ECHO_T}$ac_cv_cc_implements___func__"  >&6  if  test
"x$ac_cv_cc_implements___func__"  =  "xyes"  ;  then          cat
>>confdefs.h <<_ACEOF @%:@define HAVE___func__ 1 _ACEOF

fi

echo "$as_me:$LINENO: checking whether getopt has  optreset  sup-
port" >&5 echo $ECHO_N "checking whether getopt has optreset sup-
port... $ECHO_C" >&6 if test  "${ac_cv_have_getopt_optreset+set}"
= set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat  >conftest.$ac_ext <<_ACEOF #line $LINENO "configure"
/* confdefs.h.  */ _ACEOF cat confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

#include <getopt.h>                  int main () {
 extern int optreset; optreset = 0;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5

echo  "$as_me:$LINENO:  checking if libc defines sys_errlist" >&5
echo $ECHO_N "checking if libc  defines  sys_errlist...  $ECHO_C"
>&6 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat  >conftest.$ac_ext <<_ACEOF #line $LINENO "configure"
/* confdefs.h.  */ _ACEOF cat confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

int main () {
 extern  const  char  *const  sys_errlist[]; printf("%s", sys_er-
rlist[0]);
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   ac_cv_libc_defines_sys_errlist="yes" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

 ac_cv_libc_defines_sys_errlist="no"            fi  rm  -f   con-
ftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist"
>&5 echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6  if  test
"x$ac_cv_libc_defines_sys_errlist"  =  "xyes"  ; then         cat
>>confdefs.h <<_ACEOF @%:@define HAVE_SYS_ERRLIST 1 _ACEOF

fi


echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 echo
$ECHO_N  "checking  if  libc  defines sys_nerr... $ECHO_C" >&6 if
test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else

        cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"
/*  confdefs.h.   */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

int main () {
 extern int sys_nerr; printf("%i", sys_nerr);
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

 ac_cv_libc_defines_sys_nerr="no"             fi   rm   -f   con-
ftest.$ac_objext conftest$ac_exeext conftest.$ac_ext

fi  echo  "$as_me:$LINENO:  result: $ac_cv_libc_defines_sys_nerr"
>&5  echo  "${ECHO_T}$ac_cv_libc_defines_sys_nerr"  >&6  if  test
"x$ac_cv_libc_defines_sys_nerr"   =  "xyes"  ;  then          cat
>>confdefs.h <<_ACEOF @%:@define HAVE_SYS_NERR 1 _ACEOF

fi

SCARD_MSG="no" # Check whether user wants sectok support

# Check whether --with-sectok or --without-sectok was given.   if
test "${with_sectok+set}" = set; then
  withval="$with_sectok"

                if    test    "x$withval"   !=   "xno"   ;   then
                        if test  "x$withval"  !=  "xyes"  ;  then
                                CPPFLAGS="$CPPFLAGS -I${withval}"
                                LDFLAGS="$LDFLAGS   -L${withval}"
                                if  test  !  -z  "$need_dash_r" ;
then                                            LDFLAGS="$LDFLAGS
-R${withval}"                                                  fi
                                if test ! -z "$blibpath"  ;  then
                                        blibpath="$blib-
path:${withval}"                                               fi
                        fi                          for ac_header
in sectok.h  do  as_ac_Header=`echo  "ac_cv_header_$ac_header"  |
$as_tr_sh` if eval "test
  echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N
"checking for $ac_header... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6  fi  echo  "$as_me:$LINENO:
result:    `eval    echo    '${'$as_ac_Header'}'`"    >&5    echo
"${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else
  # Is the header  compilable?   echo  "$as_me:$LINENO:  checking
$ac_header  usability"  >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C"  >&6  cat  >conftest.$ac_ext  <<_ACEOF  #line
$LINENO  "configure"  /*  confdefs.h.   */  _ACEOF cat confdefs.h
>>conftest.$ac_ext  cat  >>conftest.$ac_ext   <<_ACEOF   /*   end
confdefs.h.   */  $ac_includes_default  @%:@include  <$ac_header>
_ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?

ftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end  confdefs.h.
*/    @%:@include   <$ac_header>   _ACEOF   if   {   (eval   echo
"$as_me:$LINENO:
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

  ac_header_preproc=no  fi  rm  -f  conftest.err conftest.$ac_ext
echo  "$as_me:$LINENO:  result:  $ac_header_preproc"   >&5   echo
"${ECHO_T}$ac_header_preproc" >&6

#   So?    What   about  this  header?   case  $ac_header_compil-
er:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by  the
compiler,  rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by  the  pre-
processor!" >&2;}
    {  echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat  <<_ASBOX @%:@@%:@ ------------------------------------
@%:@@%:@ @%:@@%:@ Report this to  bug-autoconf@gnu.org.  @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING:  $ac_header:  present
but cannot be compiled" >&2;}
    {  echo "$as_me:$LINENO: WARNING: $ac_header: check for miss-
ing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header:
check for missing prerequisite headers?" >&2;}
    {  echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (

  cat  >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF

fi

done

                        if test "$ac_cv_header_sectok_h" !=  yes;
then                                  {  {  echo "$as_me:$LINENO:
error: Can't find sectok.h" >&5 echo "$as_me: error:  Can't  find
sectok.h" >&2;}
   {   (exit   1);   exit   1;  };  }                          fi
                         echo "$as_me:$LINENO: checking for  sec-
tok_open  in -lsectok" >&5 echo $ECHO_N "checking for sectok_open
in -lsectok...  $ECHO_C"  >&6  if  test  "${ac_cv_lib_sectok_sec-
tok_open+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS  LIBS="-lsectok   $LIBS" cat >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char sectok_open (); int main () { sectok_open ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_sectok_sectok_open=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_cv_lib_sectok_sectok_open=no fi rm -f conftest.$ac_objext con-
ftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS  fi
echo  "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
echo   "${ECHO_T}$ac_cv_lib_sectok_sectok_open"   >&6   if   test
$ac_cv_lib_sectok_sectok_open = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBSECTOK 1 _ACEOF

  LIBS="-lsectok $LIBS"
                        SCARD_MSG="yes,       using       sectok"
                fi

fi;

# Check whether user wants OpenSC support

# Check whether --with-opensc or --without-opensc was given.   if
test "${with_opensc+set}" = set; then
  withval="$with_opensc"
  opensc_config_prefix="$withval" else
  opensc_config_prefix="" fi; if test x$opensc_config_prefix != x
; then
  OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
  # Extract the first word of "opensc-config", so  it  can  be  a
program name with args.  set dummy opensc-config; ac_word=$2 echo
"$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N  "check-
ing  for  $ac_word...  $ECHO_C"  >&6  if test "${ac_cv_path_OPEN-
SC_CONFIG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $OPENSC_CONFIG in
  [\/]* | ?:[\/]*)
  ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user  over-
ride the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  test -z "$ac_cv_path_OPENSC_CONFIG"  &&  ac_cv_path_OPENSC_CON-
FIG="no"
  ;; esac fi OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG

if test -n "$OPENSC_CONFIG"; then
  echo   "$as_me:$LINENO:   result:   $OPENSC_CONFIG"   >&5  echo
"${ECHO_T}$OPENSC_CONFIG" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

  if test "$OPENSC_CONFIG" != "no"; then
    LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
    LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
    CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
    LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
    cat >>confdefs.h <<_ACEOF @%:@define SMARTCARD 1 _ACEOF

>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getrrsetbyname (); int main () { getrrsetbyname ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_getrrsetbyname="none required" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

fi  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_getrrsetbyname" = no; then
  for ac_lib in resolv; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char getrrsetbyname (); int main () { getrrsetbyname ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_getrrsetbyname="-l$ac_lib" break else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
                #     Needed     by     our      getrrsetbyname()
                echo  "$as_me:$LINENO:  checking for library con-
taining res_query" >&5 echo $ECHO_N "checking  for  library  con-
taining      res_query...      $ECHO_C"      >&6      if     test
"${ac_cv_search_res_query+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_func_search_save_LIBS=$LIBS  ac_cv_search_res_query=no   cat
>conftest.$ac_ext   <<_ACEOF   #line   $LINENO   "configure"   /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char res_query (); int main () { res_query ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_res_query="none required" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

fi rm -f conftest.$ac_objext conftest$ac_exeext  conftest.$ac_ext
if test "$ac_cv_search_res_query" = no; then
  for ac_lib in resolv; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat  >conftest.$ac_ext  <<_ACEOF #line $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char res_query (); int main () { res_query ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5

"${ECHO_T}$ac_cv_search_res_query"       >&6       if        test
"$ac_cv_search_res_query" != no; then
  test    "$ac_cv_search_res_query"    =   "none   required"   ||
LIBS="$ac_cv_search_res_query $LIBS"

fi

                echo "$as_me:$LINENO: checking for  library  con-
taining  dn_expand"  >&5  echo $ECHO_N "checking for library con-
taining dn_expand... $ECHO_C" >&6 if test  "${ac_cv_search_dn_ex-
pand+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_func_search_save_LIBS=$LIBS   ac_cv_search_dn_expand=no  cat
>conftest.$ac_ext   <<_ACEOF   #line   $LINENO   "configure"   /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dn_expand (); int main () { dn_expand ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_dn_expand="none required" else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

fi  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_dn_expand" = no; then
  for ac_lib in resolv; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF #line $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dn_expand (); int main () { dn_expand ();
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO:
result:         $ac_cv_search_dn_expand"         >&5         echo
"${ECHO_T}$ac_cv_search_dn_expand"        >&6       if       test
"$ac_cv_search_dn_expand" != no; then
  test   "$ac_cv_search_dn_expand"   =   "none    required"    ||
LIBS="$ac_cv_search_dn_expand $LIBS"

fi



for    ac_func   in   _getshort   _getlong   do   as_ac_var=`echo
"ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking
for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C"
>&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /*  end  confdefs.h.   */  /*  System
header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */  #ifdef
__STDC__  #  include <limits.h> #else # include <assert.h> #endif
/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef __cplusplus extern "C" { #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char $ac_func (); /* The GNU C library defines this for functions
which it implements
    to always fail with  ENOSYS.   Some  functions  are  actually
named
    something  starting  with __ and the normal name is an alias.
*/ #if defined (__stub_$ac_func) ||  defined  (__stub___$ac_func)
choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus
} #endif

int main () { return f != $ac_func;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5

fi done

                echo "$as_me:$LINENO: checking for HEADER.ad" >&5
echo $ECHO_N "checking for  HEADER.ad...  $ECHO_C"  >&6  if  test
"${ac_cv_member_HEADER_ad+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext  <<_ACEOF  /*  end  confdefs.h.   */  #include
/dev/null    ;     then                                     echo
"$as_me:$LINENO:   result:   yes"  >&5  echo  "${ECHO_T}yes"  >&6
                                cat >>confdefs.h <<_ACEOF @%:@de-
fine GSSAPI 1 _ACEOF

                                k5confopts=gssapi
                        else                                 echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
                                k5confopts=""
                        fi
                        K5CFLAGS="`$KRB5CONF   --cflags   $k5con-
fopts`"                         K5LIBS="`$KRB5CONF --libs $k5con-
fopts`"                          CPPFLAGS="$CPPFLAGS   $K5CFLAGS"
                        echo "$as_me:$LINENO: checking whether we
are using Heimdal" >&5 echo $ECHO_N "checking whether we are  us-
ing  Heimdal...  $ECHO_C"  >&6                          cat >con-
ftest.$ac_ext <<_ACEOF #line $LINENO "configure"  /*  confdefs.h.
*/   _ACEOF   cat   confdefs.h   >>conftest.$ac_ext   cat  >>con-
ftest.$ac_ext <<_ACEOF /* end confdefs.h.  */
 #include <krb5.h> int main () {
 char *tmp = heimdal_version;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?

ftest.$ac_ext >&5

echo "$as_me:$LINENO: result:  no"  >&5  echo  "${ECHO_T}no"  >&6
                           fi   rm  -f  conftest.$ac_objext  con-
ftest.$ac_ext                  else                          echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
                        CPPFLAGS="$CPPFLAGS     -I${KRB5ROOT}/in-
clude"                                          LDFLAGS="$LDFLAGS
-L${KRB5ROOT}/lib"                         echo  "$as_me:$LINENO:
checking whether we are using Heimdal" >&5 echo $ECHO_N "checking
whether    we    are    using     Heimdal...     $ECHO_C"     >&6
                        cat   >conftest.$ac_ext   <<_ACEOF  #line
$LINENO "configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h
>>conftest.$ac_ext   cat   >>conftest.$ac_ext   <<_ACEOF  /*  end
confdefs.h.  */
 #include <krb5.h> int main () {
 char *tmp = heimdal_version;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6
                                         cat >>confdefs.h <<_ACE-
OF @%:@define HEIMDAL 1 _ACEOF

                                           K5LIBS="-lkrb5   -ldes
-lcom_err -lasn1 -lroken"                                  else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

 echo  "$as_me:$LINENO:  result:  no"  >&5 echo "${ECHO_T}no" >&6
                                         K5LIBS="-lkrb5 -lk5cryp-
to           -lcom_err"
                          fi  rm  -f   conftest.$ac_objext   con-
ftest.$ac_ext                            echo    "$as_me:$LINENO:
checking for  library  containing  dn_expand"  >&5  echo  $ECHO_N
"checking  for  library  containing  dn_expand... $ECHO_C" >&6 if
test "${ac_cv_search_dn_expand+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_func_search_save_LIBS=$LIBS  ac_cv_search_dn_expand=no   cat
>conftest.$ac_ext   <<_ACEOF   #line   $LINENO   "configure"   /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_dn_expand="none required" else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

fi rm -f conftest.$ac_objext conftest$ac_exeext  conftest.$ac_ext
if test "$ac_cv_search_dn_expand" = no; then
  for ac_lib in resolv; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat  >conftest.$ac_ext  <<_ACEOF #line $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dn_expand (); int main () { dn_expand ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_dn_expand="-l$ac_lib" break else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO:
result:         $ac_cv_search_dn_expand"         >&5         echo
"${ECHO_T}$ac_cv_search_dn_expand"       >&6       if        test
"$ac_cv_search_dn_expand" != no; then
  test    "$ac_cv_search_dn_expand"    =   "none   required"   ||
LIBS="$ac_cv_search_dn_expand $LIBS"

fi


                        echo   "$as_me:$LINENO:   checking    for
gss_init_sec_context  in -lgssapi" >&5 echo $ECHO_N "checking for
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_gssapi_gss_init_sec_context=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_cv_lib_gssapi_gss_init_sec_context=no   fi    rm    -f    con-
ftest.$ac_objext        conftest$ac_exeext       conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS  fi  echo  "$as_me:$LINENO:  result:
$ac_cv_lib_gssapi_gss_init_sec_context"          >&5         echo
"${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context"  >&6  if   test
$ac_cv_lib_gssapi_gss_init_sec_context = yes; then
   cat >>confdefs.h <<_ACEOF @%:@define GSSAPI 1 _ACEOF

                                  K5LIBS="-lgssapi $K5LIBS" else
   echo  "$as_me:$LINENO:  checking  for  gss_init_sec_context in
-lgssapi_krb5" >&5 echo $ECHO_N "checking  for  gss_init_sec_con-
text  in  -lgssapi_krb5... $ECHO_C" >&6 if test "${ac_cv_lib_gss-
api_krb5_gss_init_sec_context+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_check_lib_save_LIBS=$LIBS LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gss_init_sec_context (); int main () {  gss_init_sec_context
();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5

                                            K5LIBS="-lgssapi_krb5
$K5LIBS" else
  {  echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-
api library - build may fail" >&5 echo "$as_me:  WARNING:  Cannot
find any suitable gss-api library - build may fail" >&2;} fi

                                 fi

                                                      if     test
"${ac_cv_header_gssapi_h+set}" = set; then
  echo "$as_me:$LINENO: checking for gssapi.h" >&5  echo  $ECHO_N
"checking  for  gssapi.h...  $ECHO_C"  >&6 if test "${ac_cv_head-
er_gssapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6  fi  echo  "$as_me:$LINENO:
result:  $ac_cv_header_gssapi_h"  >&5 echo "${ECHO_T}$ac_cv_head-
er_gssapi_h" >&6 else
  # Is the header  compilable?   echo  "$as_me:$LINENO:  checking
gssapi.h  usability" >&5 echo $ECHO_N "checking gssapi.h usabili-
ty... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF  #line  $LINENO
"configure"  /*  confdefs.h.   */  _ACEOF  cat  confdefs.h >>con-
ftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end  confdefs.h.
*/  $ac_includes_default @%:@include <gssapi.h> _ACEOF rm -f con-
ftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_header_compiler=no   fi   rm   -f   conftest.$ac_objext   con-
ftest.$ac_ext echo "$as_me:$LINENO: result:  $ac_header_compiler"
>&5 echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?  echo "$as_me:$LINENO: checking gssapi.h
presence"  >&5  echo  $ECHO_N  "checking   gssapi.h   presence...
$ECHO_C"  >&6  cat >conftest.$ac_ext <<_ACEOF #line $LINENO "con-
figure"  /*  confdefs.h.   */  _ACEOF   cat   confdefs.h   >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/ @%:@include <gssapi.h> _ACEOF if { (eval echo "$as_me:$LINENO:
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1

echo   "$as_me:$LINENO:   result:  $ac_header_preproc"  >&5  echo
"${ECHO_T}$ac_header_preproc" >&6

#  So?   What  about  this   header?    case   $ac_header_compil-
er:$ac_header_preproc in
  yes:no )
    {  echo  "$as_me:$LINENO:  WARNING: gssapi.h: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me:  WARN-
ING:  gssapi.h:  accepted  by  the compiler, rejected by the pre-
processor!" >&2;}
    { echo "$as_me:$LINENO: WARNING:  gssapi.h:  proceeding  with
the  preprocessor's  result" >&5 echo "$as_me: WARNING: gssapi.h:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot
be  compiled"  >&5  echo  "$as_me: WARNING: gssapi.h: present but
cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: gssapi.h: check for  missing
prerequisite headers?" >&5 echo "$as_me: WARNING: gssapi.h: check
for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING:  gssapi.h:  proceeding  with
the  preprocessor's  result" >&5 echo "$as_me: WARNING: gssapi.h:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;; esac echo "$as_me:$LINENO: checking for gssapi.h" >&5 echo
$ECHO_N   "checking   for   gssapi.h...   $ECHO_C"  >&6  if  test
"${ac_cv_header_gssapi_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_cv_header_gssapi_h=$ac_header_preproc        fi         echo
"$as_me:$LINENO:   result:   $ac_cv_header_gssapi_h"   >&5   echo
"${ECHO_T}$ac_cv_header_gssapi_h" >&6

fi if test $ac_cv_header_gssapi_h = yes; then
  : else
   unset  ac_cv_header_gssapi_h
CPPFLAGS="$CPPFLAGS                 -I${KRB5ROOT}/include/gssapi"
                                 for  ac_header  in  gssapi.h  do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval
"test
  echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_header_compiler=no   fi   rm   -f   conftest.$ac_objext   con-
ftest.$ac_ext echo "$as_me:$LINENO: result:  $ac_header_compiler"
>&5 echo "${ECHO_T}$ac_header_compiler" >&6

#   Is   the  header  present?   echo  "$as_me:$LINENO:  checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header  pres-
ence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO
"configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h  >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/   @%:@include   <$ac_header>   _ACEOF   if   {   (eval    echo
"$as_me:$LINENO:
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

  ac_header_preproc=no fi  rm  -f  conftest.err  conftest.$ac_ext
echo   "$as_me:$LINENO:   result:  $ac_header_preproc"  >&5  echo
"${ECHO_T}$ac_header_preproc" >&6

#  So?   What  about  this   header?    case   $ac_header_compil-
er:$ac_header_preproc in
  yes:no )
    {  echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the
compiler, rejected by the preprocessor!" >&5 echo "$as_me:  WARN-
ING:  $ac_header:  accepted by the compiler, rejected by the pre-
processor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding  with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding  with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;; esac echo "$as_me:$LINENO: checking  for  $ac_header"  >&5
echo  $ECHO_N  "checking  for  $ac_header... $ECHO_C" >&6 if eval
"test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  eval      "$as_ac_Header=$ac_header_preproc"      fi       echo
"$as_me:$LINENO:  result:  `eval  echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header"  |
$as_tr_cpp` 1 _ACEOF

else
  {  echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-
api header - build may fail" >&5 echo  "$as_me:  WARNING:  Cannot
find  any  suitable  gss-api  header  -  build  may  fail"  >&2;}
                                 fi

done

                                                          fi



                        oldCPP="$CPPFLAGS"
                        CPPFLAGS="$CPPFLAGS     -I${KRB5ROOT}/in-
clude/gssapi"                          if   test   "${ac_cv_head-
er_gssapi_krb5_h+set}" = set; then
  echo  "$as_me:$LINENO:  checking  for  gssapi_krb5.h"  >&5 echo
$ECHO_N "checking  for  gssapi_krb5.h...  $ECHO_C"  >&6  if  test
"${ac_cv_header_gssapi_krb5_h+set}" = set; then
  echo  $ECHO_N  "(cached)  $ECHO_C" >&6 fi echo "$as_me:$LINENO:
result:       $ac_cv_header_gssapi_krb5_h"        >&5        echo
"${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 else
  #  Is  the  header  compilable?  echo "$as_me:$LINENO: checking
gssapi_krb5.h usability" >&5 echo $ECHO_N "checking gssapi_krb5.h
usability...  $ECHO_C"  >&6  cat >conftest.$ac_ext <<_ACEOF #line
$LINENO "configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h
>>conftest.$ac_ext   cat   >>conftest.$ac_ext   <<_ACEOF  /*  end
confdefs.h.  */ $ac_includes_default @%:@include  <gssapi_krb5.h>
_ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5

ftest.$ac_ext echo "$as_me:$LINENO: result:  $ac_header_compiler"
>&5 echo "${ECHO_T}$ac_header_compiler" >&6

#  Is  the  header  present?  echo "$as_me:$LINENO: checking gss-
api_krb5.h presence" >&5  echo  $ECHO_N  "checking  gssapi_krb5.h
presence...  $ECHO_C"  >&6  cat  >conftest.$ac_ext <<_ACEOF #line
$LINENO "configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h
>>conftest.$ac_ext   cat   >>conftest.$ac_ext   <<_ACEOF  /*  end
confdefs.h.  */ @%:@include <gssapi_krb5.h>  _ACEOF  if  {  (eval
echo "$as_me:$LINENO:
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

  ac_header_preproc=no fi  rm  -f  conftest.err  conftest.$ac_ext
echo   "$as_me:$LINENO:   result:  $ac_header_preproc"  >&5  echo
"${ECHO_T}$ac_header_preproc" >&6

#  So?   What  about  this   header?    case   $ac_header_compil-
er:$ac_header_preproc in
  yes:no )
    {  echo  "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by
the compiler, rejected by the preprocessor!"  >&5  echo  "$as_me:
WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the
preprocessor!" >&2;}
    { echo "$as_me:$LINENO:  WARNING:  gssapi_krb5.h:  proceeding
with  the  preprocessor's result" >&5 echo "$as_me: WARNING: gss-
api_krb5.h: proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h:  present  but
cannot  be  compiled"  >&5  echo "$as_me: WARNING: gssapi_krb5.h:
present but cannot be compiled" >&2;}
"${ac_cv_header_gssapi_krb5_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_cv_header_gssapi_krb5_h=$ac_header_preproc      fi      echo
"$as_me:$LINENO:  result:  $ac_cv_header_gssapi_krb5_h"  >&5 echo
"${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6

fi if test $ac_cv_header_gssapi_krb5_h = yes; then
  : else
   CPPFLAGS="$oldCPP" fi



                fi                 if test ! -z "$need_dash_r"  ;
then                         LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
                fi                 if test  !  -z  "$blibpath"  ;
then                         blibpath="$blibpath:${KRB5ROOT}/lib"
                fi         fi



for ac_header in gssapi.h gssapi/gssapi.h  do  as_ac_Header=`echo
"ac_cv_header_$ac_header" | $as_tr_sh` if eval "test
  echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N
"checking for $ac_header... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6  fi  echo  "$as_me:$LINENO:
result:    `eval    echo    '${'$as_ac_Header'}'`"    >&5    echo
"${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else
  # Is the header  compilable?   echo  "$as_me:$LINENO:  checking
$ac_header  usability"  >&5 echo $ECHO_N "checking $ac_header us-
ability... $ECHO_C"  >&6  cat  >conftest.$ac_ext  <<_ACEOF  #line
$LINENO  "configure"  /*  confdefs.h.   */  _ACEOF cat confdefs.h
>>conftest.$ac_ext  cat  >>conftest.$ac_ext   <<_ACEOF   /*   end
confdefs.h.   */  $ac_includes_default  @%:@include  <$ac_header>
_ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_header_compiler=no   fi   rm   -f   conftest.$ac_objext   con-
ftest.$ac_ext  echo "$as_me:$LINENO: result: $ac_header_compiler"
>&5 echo "${ECHO_T}$ac_header_compiler" >&6

  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

  ac_header_preproc=no  fi  rm  -f  conftest.err conftest.$ac_ext
echo  "$as_me:$LINENO:  result:  $ac_header_preproc"   >&5   echo
"${ECHO_T}$ac_header_preproc" >&6

#   So?    What   about  this  header?   case  $ac_header_compil-
er:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by  the
compiler,  rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by  the  pre-
processor!" >&2;}
    {  echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat  <<_ASBOX @%:@@%:@ ------------------------------------
@%:@@%:@ @%:@@%:@ Report this to  bug-autoconf@gnu.org.  @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not be compiled" >&5 echo "$as_me: WARNING:  $ac_header:  present
but cannot be compiled" >&2;}
    {  echo "$as_me:$LINENO: WARNING: $ac_header: check for miss-
ing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header:
check for missing prerequisite headers?" >&2;}
    {  echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat  <<_ASBOX @%:@@%:@ ------------------------------------
@%:@@%:@ @%:@@%:@ Report this to  bug-autoconf@gnu.org.  @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;  esac  echo  "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header...  $ECHO_C"  >&6  if  eval
"test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  eval       "$as_ac_Header=$ac_header_preproc"      fi      echo

as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval
"test
  echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N
"checking for $ac_header... $ECHO_C" >&6 if eval "test
  echo  $ECHO_N  "(cached)  $ECHO_C" >&6 fi echo "$as_me:$LINENO:
result:    `eval    echo    '${'$as_ac_Header'}'`"    >&5    echo
"${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else
  #  Is  the  header  compilable?  echo "$as_me:$LINENO: checking
$ac_header usability" >&5 echo $ECHO_N "checking  $ac_header  us-
ability...  $ECHO_C"  >&6  cat  >conftest.$ac_ext  <<_ACEOF #line
$LINENO "configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h
>>conftest.$ac_ext   cat   >>conftest.$ac_ext   <<_ACEOF  /*  end
confdefs.h.   */  $ac_includes_default  @%:@include  <$ac_header>
_ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

ac_header_compiler=no   fi   rm   -f   conftest.$ac_objext   con-
ftest.$ac_ext echo "$as_me:$LINENO: result:  $ac_header_compiler"
>&5 echo "${ECHO_T}$ac_header_compiler" >&6

#   Is   the  header  present?   echo  "$as_me:$LINENO:  checking
$ac_header presence" >&5 echo $ECHO_N "checking $ac_header  pres-
ence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO
"configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h  >>con-
ftest.$ac_ext  cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h.
*/   @%:@include   <$ac_header>   _ACEOF   if   {   (eval    echo
"$as_me:$LINENO:
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then

processor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding  with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but can-
not  be  compiled" >&5 echo "$as_me: WARNING: $ac_header: present
but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for  miss-
ing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header:
check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding  with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat <<_ASBOX @%:@@%:@  ------------------------------------
@%:@@%:@  @%:@@%:@  Report this to bug-autoconf@gnu.org. @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;; esac echo "$as_me:$LINENO: checking  for  $ac_header"  >&5
echo  $ECHO_N  "checking  for  $ac_header... $ECHO_C" >&6 if eval
"test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  eval      "$as_ac_Header=$ac_header_preproc"      fi       echo
"$as_me:$LINENO:  result:  `eval  echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header"  |
$as_tr_cpp` 1 _ACEOF

fi

done



for  ac_header  in  gssapi_generic.h  gssapi/gssapi_generic.h  do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval
"test
  echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N
"checking for $ac_header... $ECHO_C" >&6 if eval "test
  echo $ECHO_N "(cached) $ECHO_C" >&6  fi  echo  "$as_me:$LINENO:
result:    `eval    echo    '${'$as_ac_Header'}'`"    >&5    echo
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

ac_header_compiler=no   fi   rm   -f   conftest.$ac_objext   con-
ftest.$ac_ext  echo "$as_me:$LINENO: result: $ac_header_compiler"
>&5 echo "${ECHO_T}$ac_header_compiler" >&6

#  Is  the  header  present?   echo   "$as_me:$LINENO:   checking
$ac_header  presence" >&5 echo $ECHO_N "checking $ac_header pres-
ence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO
"configure"  /*  confdefs.h.   */  _ACEOF  cat  confdefs.h >>con-
ftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end  confdefs.h.
*/    @%:@include   <$ac_header>   _ACEOF   if   {   (eval   echo
"$as_me:$LINENO:
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi else
  ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

  ac_header_preproc=no  fi  rm  -f  conftest.err conftest.$ac_ext
echo  "$as_me:$LINENO:  result:  $ac_header_preproc"   >&5   echo
"${ECHO_T}$ac_header_preproc" >&6

#   So?    What   about  this  header?   case  $ac_header_compil-
er:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by  the
compiler,  rejected by the preprocessor!" >&5 echo "$as_me: WARN-
ING: $ac_header: accepted by the compiler, rejected by  the  pre-
processor!" >&2;}
    {  echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with
the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header:
proceeding with the preprocessor's result" >&2;}
    (
      cat  <<_ASBOX @%:@@%:@ ------------------------------------

proceeding with the preprocessor's result" >&2;}
    (
      cat  <<_ASBOX @%:@@%:@ ------------------------------------
@%:@@%:@ @%:@@%:@ Report this to  bug-autoconf@gnu.org.  @%:@@%:@
@%:@@%:@ ------------------------------------ @%:@@%:@ _ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;  esac  echo  "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header...  $ECHO_C"  >&6  if  eval
"test
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  eval       "$as_ac_Header=$ac_header_preproc"      fi      echo
"$as_me:$LINENO: result: `eval  echo  '${'$as_ac_Header'}'`"  >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat  >>confdefs.h <<_ACEOF @%:@define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1 _ACEOF

fi

done


        LIBS="$LIBS $K5LIBS"         echo "$as_me:$LINENO: check-
ing  for  library containing k_hasafs" >&5 echo $ECHO_N "checking
for  library  containing  k_hasafs...  $ECHO_C"   >&6   if   test
"${ac_cv_search_k_hasafs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_func_search_save_LIBS=$LIBS   ac_cv_search_k_hasafs=no   cat
>conftest.$ac_ext   <<_ACEOF   #line   $LINENO   "configure"   /*
confdefs.h.   */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid  an  error.   */
#ifdef  __cplusplus  extern "C" #endif /* We use char because int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char k_hasafs (); int main () { k_hasafs ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then

might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char k_hasafs (); int main () { k_hasafs ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_k_hasafs="-l$ac_lib" break else
  echo "$as_me: failed program  was:"  >&5  sed  's/^/|  /'  con-
ftest.$ac_ext >&5

fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO:
result:         $ac_cv_search_k_hasafs"         >&5          echo
"${ECHO_T}$ac_cv_search_k_hasafs"        >&6        if       test
"$ac_cv_search_k_hasafs" != no; then
  test   "$ac_cv_search_k_hasafs"   =    "none    required"    ||
LIBS="$ac_cv_search_k_hasafs $LIBS"
  cat >>confdefs.h <<_ACEOF @%:@define USE_AFS 1 _ACEOF

fi

        echo  "$as_me:$LINENO:  checking  for  library containing
krb5_init_ets" >&5 echo $ECHO_N "checking for library  containing
krb5_init_ets...        $ECHO_C"        >&6        if        test
"${ac_cv_search_krb5_init_ets+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  ac_func_search_save_LIBS=$LIBS    ac_cv_search_krb5_init_ets=no
cat  >conftest.$ac_ext  <<_ACEOF  #line  $LINENO  "configure"  /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char krb5_init_ets (); int main () { krb5_init_ets ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat  >conftest.$ac_ext  <<_ACEOF #line $LINENO "configure" /*
confdefs.h.  */  _ACEOF  cat  confdefs.h  >>conftest.$ac_ext  cat
>>conftest.$ac_ext <<_ACEOF /* end confdefs.h.  */

/*  Override  any  gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus extern "C" #endif /* We use char  because  int
might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char krb5_init_ets (); int main () { krb5_init_ets ();
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_krb5_init_ets="-l$ac_lib" break else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5

fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO:
result:        $ac_cv_search_krb5_init_ets"        >&5       echo
"${ECHO_T}$ac_cv_search_krb5_init_ets"      >&6      if      test
"$ac_cv_search_krb5_init_ets" != no; then
  test   "$ac_cv_search_krb5_init_ets"   =   "none  required"  ||
LIBS="$ac_cv_search_krb5_init_ets $LIBS"
  cat >>confdefs.h <<_ACEOF @%:@define KRB5_INIT_ETS 1 _ACEOF

fi



fi;

# Looking for programs, paths and files

PRIVSEP_PATH=/var/empty

# Check whether --with-privsep-path or --without-privsep-path was
given.  if test "${with_privsep_path+set}" = set; then
  withval="$with_privsep_path"

                if    test    "x$withval"   !=   "$no"   ;   then
                        PRIVSEP_PATH=$withval                  fi

                TestPath="$PATH"                            Test-
Path="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
                TestPath="${TestPath}${PATH_SEPARA-
TOR}/usr/bin/X11"                               TestPath="${Test-
Path}${PATH_SEPARATOR}/usr/X11R6/bin"                       Test-
Path="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
                # Extract the first word of "xauth", so it can be
a  program  name  with  args.   set  dummy xauth; ac_word=$2 echo
"$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N  "check-
ing      for     $ac_word...     $ECHO_C"     >&6     if     test
"${ac_cv_path_xauth_path+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $xauth_path in
  [\/]* | ?:[\/]*)
  ac_cv_path_xauth_path="$xauth_path" # Let the user override the
test with a path.
  ;;
  *)
  as_save_IFS=$IFS;  IFS=$PATH_SEPARATOR  for as_dir in $TestPath
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  ;; esac fi xauth_path=$ac_cv_path_xauth_path

if test -n "$xauth_path"; then
  echo    "$as_me:$LINENO:    result:   $xauth_path"   >&5   echo
"${ECHO_T}$xauth_path" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

                if   (test   !   -z   "$xauth_path"  &&  test  -x
"/usr/openwin/bin/xauth")                 ;                  then
                        xauth_path="/usr/openwin/bin/xauth"
                fi

fi;

STRIP_OPT=-s # Check whether  --enable-strip  or  --disable-strip
was given.  if test "${enable_strip+set}" = set; then
  enableval="$enable_strip"

                if    test   "x$enableval"   =   "xno"   ;   then
                        STRIP_OPT=                 fi

fi;

if  test  -z "$no_dev_ptmx" ; then         if test "x$disable_pt-
mx_check" != "xyes" ; then                 echo  "$as_me:$LINENO:
checking    for    echo    $ECHO_N    "checking   for   if   test
"${ac_cv_file___dev_ptmx_+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  test "$cross_compiling" = yes &&
  { { echo "$as_me:$LINENO: error: cannot check  for  file  exis-
tence when cross compiling" >&5 echo "$as_me: error: cannot check
for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; } if test -r ""/dev/ptmx""; then
  ac_cv_file___dev_ptmx_=yes else
  ac_cv_file___dev_ptmx_=no fi fi echo  "$as_me:$LINENO:  result:
$ac_cv_file___dev_ptmx_" >&5 echo "${ECHO_T}$ac_cv_file___dev_pt-
mx_" >&6 if test $ac_cv_file___dev_ptmx_ = yes; then

                                cat >>confdefs.h <<_ACEOF @%:@de-
fine HAVE_DEV_PTMX 1 _ACEOF

                                have_dev_ptmx=1
                                          fi

        fi fi echo "$as_me:$LINENO:  checking  for  echo  $ECHO_N
"checking for if test "${ac_cv_file___dev_ptc_+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  test "$cross_compiling" = yes &&
  {  {  echo  "$as_me:$LINENO: error: cannot check for file exis-
tence when cross compiling" >&5 echo "$as_me: error: cannot check
for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; } if test -r ""/dev/ptc""; then
  ac_cv_file___dev_ptc_=yes else
  ac_cv_file___dev_ptc_=no  fi  fi  echo "$as_me:$LINENO: result:
$ac_cv_file___dev_ptc_"                 >&5                  echo
"${ECHO_T}$ac_cv_file___dev_ptc_"        >&6        if       test
$ac_cv_file___dev_ptc_ = yes; then

                cat     >>confdefs.h     <<_ACEOF      @%:@define
HAVE_DEV_PTS_AND_PTC 1 _ACEOF

                have_dev_ptc=1

fi


#  Options  from  here  on.  Some of these are preset by platform
above

# Check whether --with-mantype or  --without-mantype  was  given.
if test "${with_mantype+set}" = set; then
  withval="$with_mantype"

                case  "$withval"  in                 man|cat|doc)
                        MANTYPE=$withval

"${ac_cv_path_NROFF+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  case $NROFF in
  [\/]* | ?:[\/]*)
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with
a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir  in  $TestPath
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi done done

  ;; esac fi NROFF=$ac_cv_path_NROFF

if test -n "$NROFF"; then
  echo    "$as_me:$LINENO:    result:    $NROFF"     >&5     echo
"${ECHO_T}$NROFF" >&6 else
  echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi

  test  -n  "$NROFF"  &&  break  done   test   -n   "$NROFF"   ||
NROFF="/bin/false"

        if  ${NROFF}  -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
                MANTYPE=doc          elif  ${NROFF}  -man   ${sr-
cdir}/ssh.1  >/dev/null  2>&1;  then                  MANTYPE=man
        else                 MANTYPE=cat         fi fi

if test "$MANTYPE"  =  "doc";  then          mansubdir=man;  else
        mansubdir=$MANTYPE; fi


# Check whether to enable MD5 passwords MD5_MSG="no"

#  Check  whether --with-md5-passwords or --without-md5-passwords
was given.  if test "${with_md5_passwords+set}" = set; then
  withval="$with_md5_passwords"

                if   test   "x$withval"   !=   "xno"    ;    then
                        cat   >>confdefs.h   <<_ACEOF  @%:@define
HAVE_MD5_PASSWORDS 1 _ACEOF

                        MD5_MSG="yes"                 fi

fi;


if test -z "$disable_shadow" ; then         echo "$as_me:$LINENO:
checking if the systems has expire shadow information"  >&5  echo
$ECHO_N "checking if the systems has expire shadow information...
$ECHO_C" >&6         cat >conftest.$ac_ext <<_ACEOF #line $LINENO
"configure"  /*  confdefs.h.   */  _ACEOF  cat  confdefs.h >>con-
ftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end  confdefs.h.
*/

#include  <sys/types.h>  #include  <shadow.h>         struct spwd
sp;          int main () {
 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
  ;
  return 0; } _ACEOF rm -f conftest.$ac_objext if  {  (eval  echo
"$as_me:$LINENO:
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   sp_expire_available=yes else
  echo  "$as_me:  failed  program  was:"  >&5  sed 's/^/| /' con-
ftest.$ac_ext >&5


         fi rm -f conftest.$ac_objext conftest.$ac_ext

        if  test  "x$sp_expire_available"   =   "xyes"   ;   then
                echo   "$as_me:$LINENO:  result:  yes"  >&5  echo
"${ECHO_T}yes"  >&6                  cat  >>confdefs.h   <<_ACEOF
@%:@define HAS_SHADOW_EXPIRE 1 _ACEOF

        else                  echo  "$as_me:$LINENO:  result: no"
>&5 echo "${ECHO_T}no" >&6         fi fi

# Use ip address instead of hostname in $DISPLAY  if  test  !  -z
"$IPADDR_IN_DISPLAY"    ;   then           DISPLAY_HACK_MSG="yes"
        cat >>confdefs.h <<_ACEOF @%:@define IPADDR_IN_DISPLAY  1
_ACEOF

else           DISPLAY_HACK_MSG="no"            #  Check  whether
--with-ipaddr-display or --without-ipaddr-display was given.   if
test "${with_ipaddr_display+set}" = set; then
  withval="$with_ipaddr_display"

                        if  test "x$withval" != "xno" ; then
                                cat >>confdefs.h <<_ACEOF @%:@de-

  echo $ECHO_N "(cached) $ECHO_C" >&6 else
  test "$cross_compiling" = yes &&
  { { echo "$as_me:$LINENO: error: cannot check  for  file  exis-
tence when cross compiling" >&5 echo "$as_me: error: cannot check
for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; } if  test  -r  ""/etc/default/login"";
then
  ac_cv_file___etc_default_login_=yes else
  ac_cv_file___etc_default_login_=no  fi fi echo "$as_me:$LINENO:
result:      $ac_cv_file___etc_default_login_"      >&5      echo
"${ECHO_T}$ac_cv_file___etc_default_login_"     >&6    if    test
$ac_cv_file___etc_default_login_ = yes; then
   external_path_file=/etc/default/login fi


if  test  "x$external_path_file"  =  "x/etc/default/login";  then
        cat >>confdefs.h <<_ACEOF @%:@define HAVE_ETC_DEFAULT_LO-
GIN 1 _ACEOF

fi

fi;

if    test    $ac_cv_func_login_getcapbool     =     "yes"     -a
        $ac_cv_header_login_cap_h  =  "yes" ; then         exter-
nal_path_file=/etc/login.conf fi

# Whether to mess with  the  default  path  SERVER_PATH_MSG="(de-
fault)"

# Check whether --with-default-path or --without-default-path was
given.  if test "${with_default_path+set}" = set; then
  withval="$with_default_path"

                if  test  "x$external_path_file"   =   "x/etc/lo-
gin.conf"  ; then                         { echo "$as_me:$LINENO:
WARNING: --with-default-path=PATH has no effect on  this  system.
Edit /etc/login.conf instead." >&5 echo "$as_me: WARNING: --with-
default-path=PATH has no effect on this  system.   Edit  /etc/lo-
gin.conf instead." >&2;}                 elif test "x$withval" !=
"xno" ; then                             if test  !  -z  "$exter-
nal_path_file"   ;  then                                  {  echo
"$as_me:$LINENO: WARNING: --with-default-path=PATH will  only  be
used  if  PATH  is not defined in $external_path_file ." >&5 echo
"$as_me: WARNING: --with-default-path=PATH will only be  used  if
PATH   is   not   defined   in   $external_path_file   ."   >&2;}
                        fi                                    us-
er_path="$withval"                                          SERV-
ER_PATH_MSG="$withval"                 fi          else
   if test "x$external_path_file"  =  "x/etc/login.conf"  ;  then
                {  echo  "$as_me:$LINENO:  WARNING: Make sure the
path to scp is in /etc/login.conf"  >&5  echo  "$as_me:  WARNING:
/*  find  out  what  STDPATH  is  */  #include  <stdio.h>  #ifdef
HAVE_PATHS_H # include <paths.h> #endif #ifndef  _PATH_STDPATH  #
ifdef   _PATH_USERPATH /*   Irix   */   #   define  _PATH_STDPATH
_PATH_USERPATH     #     else     #      define     _PATH_STDPATH
"/usr/bin:/bin:/usr/sbin:/sbin"    #    endif   #endif   #include
exit(1);
                  if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
                exit(1);

        exit(0); }                  _ACEOF rm -f conftest$ac_exe-
ext if { (eval echo "$as_me:$LINENO:
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO:
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO:  = $ac_status" >&5
  (exit $ac_status); }; }; then
   user_path=`cat conftest.stdpath` else
  echo  "$as_me:  program exited with status $ac_status" >&5 echo
"$as_me: failed program was:" >&5 sed 's/^/| /'  conftest.$ac_ext
>&5

( exit $ac_status )
 user_path="/usr/bin:/bin:/usr/sbin:/sbin"  fi  rm -f core core.*
*.core  gmon.out  bb.out  conftest$ac_exeext  conftest.$ac_objext
conftest.$ac_ext  fi  #  make sure $bindir is in USER_PATH so scp
will   work                   t_bindir=`eval   echo    ${bindir}`
                case $t_bindir in                         NONE/*)
t_bindir=`echo   $t_bindir   |    sed    "s~NONE~$prefix~"`    ;;
                esac                     case     $t_bindir    in
                        NONE/*) t_bindir=`echo  $t_bindir  |  sed
"s~NONE~$ac_default_prefix~"`       ;;                       esac
                echo $user_path | grep ":$t_bindir"  >  /dev/null
2>&1                    if    test    $?    -ne    0     ;   then
                        echo $user_path |  grep  "^$t_bindir"   >
/dev/null  2>&1                          if test $? -ne 0  ; then
                                user_path=$user_path:$t_bindir
                                echo   "$as_me:$LINENO:   result:
Adding  $t_bindir  to  USER_PATH  so  scp  will  work"  >&5  echo
"${ECHO_T}Adding  $t_bindir  to  USER_PATH  so scp will work" >&6
                        fi                 fi         fi

fi; if test "x$external_path_file" != "x/etc/login.conf"  ;  then
        cat  >>confdefs.h  <<_ACEOF  @%:@define  USER_PATH  "$us-
er_path" _ACEOF
                fi

fi;


echo "$as_me:$LINENO: checking if we  need  to  convert  IPv4  in
IPv6-mapped  addresses"  >&5 echo $ECHO_N "checking if we need to
convert   IPv4   in   IPv6-mapped   addresses...   $ECHO_C"   >&6
IPV4_IN6_HACK_MSG="no"

# Check whether --with-4in6 or --without-4in6 was given.  if test
"${with_4in6+set}" = set; then
  withval="$with_4in6"

                if   test   "x$withval"   !=   "xno"    ;    then
                        echo  "$as_me:$LINENO:  result:  yes" >&5
echo "${ECHO_T}yes" >&6                         cat  >>confdefs.h
<<_ACEOF @%:@define IPV4_IN_IPV6 1 _ACEOF

                        IPV4_IN6_HACK_MSG="yes"
                else                                         echo
"$as_me:$LINENO:   result:   no"   >&5   echo  "${ECHO_T}no"  >&6
                fi          else

                if test  "x$inet6_default_4in6"  =  "xyes";  then
                        echo  "$as_me:$LINENO:  result:  yes (de-
fault)"     >&5     echo     "${ECHO_T}yes     (default)"     >&6
                        cat   >>confdefs.h   <<_ACEOF  @%:@define
IPV4_IN_IPV6 1 _ACEOF

                        IPV4_IN6_HACK_MSG="yes"
                else                                         echo
"$as_me:$LINENO: result: no (default)" >&5 echo "${ECHO_T}no (de-
fault)" >&6                 fi

fi;

# Whether to enable BSD auth support BSD_AUTH_MSG=no

#  Check whether --with-bsd-auth or --without-bsd-auth was given.
if test "${with_bsd_auth+set}" = set; then
  withval="$with_bsd_auth"

                if  test  "x$withval"  !=   "xno"   ;   then
                        cat   >>confdefs.h   <<_ACEOF  @%:@define
BSD_AUTH 1 _ACEOF

                        BSD_AUTH_MSG=yes                       fi


fi;

                        {  echo  "$as_me:$LINENO:  WARNING: ** no
$piddir directory on this system **" >&5 echo  "$as_me:  WARNING:
**    no   $piddir   directory   on   this   system   **"   >&2;}
                        fi                 fi

fi;

cat >>confdefs.h <<_ACEOF @%:@define  _PATH_SSH_PIDDIR  "$piddir"
_ACEOF



#  Check whether --enable-lastlog or --disable-lastlog was given.
if test "${enable_lastlog+set}" = set; then
  enableval="$enable_lastlog"

                if   test   "x$enableval"   =   "xno"   ;    then
                        cat >>confdefs.h <<_ACEOF @%:@define DIS-
ABLE_LASTLOG 1 _ACEOF

                fi

fi; # Check whether --enable-utmp or  --disable-utmp  was  given.
if test "${enable_utmp+set}" = set; then
  enableval="$enable_utmp"

                if    test   "x$enableval"   =   "xno"   ;   then
                        cat >>confdefs.h <<_ACEOF @%:@define DIS-
ABLE_UTMP 1 _ACEOF

                fi

fi;  # Check whether --enable-utmpx or --disable-utmpx was given.
if test "${enable_utmpx+set}" = set; then
  enableval="$enable_utmpx"

                if   test   "x$enableval"   =   "xno"   ;    then
                        cat >>confdefs.h <<_ACEOF @%:@define DIS-
ABLE_UTMPX 1 _ACEOF

                fi

fi; # Check whether --enable-wtmp or  --disable-wtmp  was  given.
if test "${enable_wtmp+set}" = set; then
  enableval="$enable_wtmp"

                if    test   "x$enableval"   =   "xno"   ;   then
                        cat >>confdefs.h <<_ACEOF @%:@define DIS-
ABLE_WTMP 1 _ACEOF

                fi

                if    test   "x$enableval"   =   "xno"   ;   then
                        cat >>confdefs.h <<_ACEOF @%:@define DIS-
ABLE_LOGIN 1 _ACEOF

                fi

fi; # Check whether --enable-pututline or --disable-pututline was
given.  if test "${enable_pututline+set}" = set; then
  enableval="$enable_pututline"

                if   test   "x$enableval"   =   "xno"   ;    then
                        cat >>confdefs.h <<_ACEOF @%:@define DIS-
ABLE_PUTUTLINE 1 _ACEOF

                fi

fi; # Check whether --enable-pututxline  or  --disable-pututxline
was given.  if test "${enable_pututxline+set}" = set; then
  enableval="$enable_pututxline"

                if    test   "x$enableval"   =   "xno"   ;   then
                        cat >>confdefs.h <<_ACEOF @%:@define DIS-
ABLE_PUTUTXLINE 1 _ACEOF

                fi

fi;

#  Check  whether  --with-lastlog or --without-lastlog was given.
if test "${with_lastlog+set}" = set; then
  withval="$with_lastlog"

                if  test  "x$withval"  =   "xno"   ;   then
                        cat >>confdefs.h <<_ACEOF @%:@define DIS-
ABLE_LASTLOG 1 _ACEOF

                else                           conf_lastlog_loca-
tion=$withval                 fi

fi;


echo  "$as_me:$LINENO:  checking  if  your  system  defines LAST-
LOG_FILE" >&5 echo $ECHO_N "checking if your system defines LAST-
LOG_FILE...  $ECHO_C"  >&6  cat  >conftest.$ac_ext <<_ACEOF #line
$LINENO "configure" /*  confdefs.h.   */  _ACEOF  cat  confdefs.h
>>conftest.$ac_ext   cat   >>conftest.$ac_ext   <<_ACEOF  /*  end
confdefs.h.  */

#include <sys/types.h> #include <utmp.h> #ifdef HAVE_LASTLOG_H  #
include   <lastlog.h>   #endif  #ifdef  HAVE_PATHS_H  #   include
/dev/null 2>&1; then
  as_unset=unset else
  as_unset=false fi


# Work around bugs in pre-3.0 UWIN ksh.  $as_unset ENV MAIL MAIL-
PATH PS1='$ ' PS2='> ' PS4='+ '

# NLS nuisances.  for as_var in   LANG LANGUAGE LC_ADDRESS LC_ALL
LC_COLLATE  LC_CTYPE  LC_IDENTIFICATION    LC_MEASUREMENT LC_MES-
SAGES  LC_MONETARY  LC_NAME  LC_NUMERIC  LC_PAPER    LC_TELEPHONE
LC_TIME do
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`");
then
    eval $as_var=C; export $as_var

# Name of the executable.  as_me=`$as_basename "$0"  ||  $as_expr
X/"$0"  : '.*//][^/]*/*$'       X"$0" : 'X$'    X"$0" : 'X$'    .
: '' 2>/dev/null || echo X/"$0" |
    sed '/^.*/][^/]**$/{ s//1/; q; }
          /^X$/{ s//1/; q; }
          /^X.*/{ s//1/; q; }
          s/.*/./; q'`


# PATH needs CR, and LINENO needs CR and PATH.  # Avoid depending
upon   Character  Ranges.   as_cr_letters='abcdefghijklmnopqrstu-
vwxyz'   as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'    as_cr_Let-
ters=$as_cr_letters$as_cr_LETTERS       as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.  if test  "${PATH_SEPARATOR+set}"  !=
set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  #  Find  who we are.  Look in the path if we contain no path at
all
  # relative or not.
  case $0 in
    *[\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in  $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done

       ;;
  esac
  #  We  did not find ourselves, most probably we were run as `sh
COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  ')  2>/dev/null;  then
              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set
|| { BASH_ENV=; export BASH_ENV; }              $as_unset ENV  ||
test  "${ENV+set}"  !=  set  ||  {  ENV=;  export ENV; }
CONFIG_SHELL=$as_dir/$as_base                export  CONFIG_SHELL
              exec "$CONFIG_SHELL" "$0" ${1+"$@"}            fi;;
         esac
       done done ;;
  esac

  # Create $as_me.lineno  as  a  copy  of  $as_myself,  but  with
$LINENO
  #  uniformly  replaced by the line number.  The first 'sed' in-
serts a
  # line-number line before each line; the second 'sed' does  the
real
  #  work.   The  second script uses 'N' to pair each line-number
line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special  case  at  line
end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's  syntax.
:-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^$as_cr_digits']*[$]LINENO'$as_cr_alnum'_],1213,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*0,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno;
rerun with a POSIX shell" >&5 echo "$as_me: error: cannot  create
$as_me.lineno; rerun with a POSIX shell" >&2;}
   { (exit 1); exit 1; }; }

  #  Don't  try  to  exec as it changes $[0], causing all sort of
problems
  # (the dirname of $[0] is not the place where we might find the
  #  original  and  so  on.   Autoconf  is especially sensible to
this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit }
  # and c) will remain valid once DJGPP supports symlinks  (DJGPP
2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln else
  as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=: else
  as_mkdir_p=false fi

as_executable_p="test -f"

#  Sed  expression  to  map  a  string  onto  a  valid  CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_al-
num]%_%g"

#  Sed  expression  to  map  a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"


# IFS # We need space, tab and new line, in precisely that order.
as_nl=' IFS="   $as_nl"

# CDPATH.  $as_unset CDPATH

exec 6>&1

# Open the log real soon, to keep  and so on meaningful, and to #
report actual input values of CONFIG_FILES etc. instead of  their
#  values  after options handling.  Logging --version etc. is OK.
exec 5>>config.log {
  echo
  sed  'h;s/./-/g;s/^.../@%:@@%:@  /;s/...$/   @%:@@%:@/;p;x;p;x'
<<_ASBOX  @%:@@%:@  Running $as_me. @%:@@%:@ _ASBOX } >&5 cat >&5
<<_CSEOF

This file was extended by $as_me, which was generated by GNU  Au-
toconf 2.57.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

_CSEOF  echo  "on  `(hostname || uname -n) 2>/dev/null | sed 1q`"
>&5 echo >&5 _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF

ac_cs_usage="`$as_me' instantiates files from templates according
to the current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -q, --quiet      do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by  reconfiguring  in  the  same
conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files: $config_files

Configuration headers: $config_headers

Report bugs to <bug-autoconf@gnu.org>."  _ACEOF

cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\ config.status con-
figured by $0, generated by GNU Autoconf 2.57,
  with    options    \"`echo    "$ac_configure_args"    |     sed
's/[\""`/\\&/g'`\"

Copyright  1992,  1993,  1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.  This config.status script is free
software; the Free Software Foundation gives unlimited permission
to copy, distribute and modify it."  srcdir=$srcdir INSTALL="$IN-
STALL" _ACEOF

cat  >>$CONFIG_STATUS  <<_ACEOF # If no file are specified by the
user, then we need to provide default # value.   By  we  need  to
know  if  files  were  specified by the user.  ac_need_defaults=:
while test $# != 0 do
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x=]*='`
    ac_optarg=`expr "x$1" : 'x[^=]*='`
    ac_shift=:
    ;;
  -*)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  *) # This is not an option, so the user has probably given  ex-
plicit
    # Conflict between --help and --header
    { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try `$0
--help' for more information." >&5 echo "$as_me: error: ambiguous
option: $1 Try `$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    ac_need_defaults=false;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q   | -silent
| --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) { { echo "$as_me:$LINENO: error:  unrecognized  option:  $1
Try  `$0  --help' for more information." >&5 echo "$as_me: error:
unrecognized option: $1 Try `$0 --help'  for  more  information."
>&2;}
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1" ;;

  esac
  shift done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent" fi

_ACEOF cat >>$CONFIG_STATUS <<_ACEOF if c_cs_recheck; then
  echo  "running  $SHELL  $0 " $ac_configure_args c_configure_ex-
tra_args " --no-create --no-recursion" >&6
  exec $SHELL $0 $ac_configure_args c_configure_extra_args  --no-
create --no-recursion fi

_ACEOF





cat  >>$CONFIG_STATUS  <<_ACEOF  for ac_config_target in $ac_con-
  esac done

#  If  the user did not use the arguments to specify the items to
instantiate, # then the envvar interface is used.  Set only those
that  are not.  # We use the long form for the default assignment
because of an  extremely  #  bizarre  bug  on  SunOS  4.1.3.   if
$ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test  "${CONFIG_HEADERS+set}"  =  set  ||  CONFIG_HEADERS=$con-
fig_headers fi

# Have a temporary directory for convenience.   Make  it  in  the
build  tree  #  simply because there is no reason to put it here,
and in addition, # creating and moving files from /tmp can  some-
times  cause  problems.  # Create a temporary directory, and hook
for its removal unless debugging.  $debug || {
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15 }

# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask   077   &&   mktemp   -d   -q   "./confstatXXXXXX")
2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp" }  || {
  tmp=./confstat$$-$RANDOM
  (umask 077 && mkdir $tmp) } || {
   echo "$me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; } }

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF

# # CONFIG_FILES section.  #

#  No  need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h if test
-n "ONFIG_FILES"; then
  #  Protect  against  being  on the right side of a sed subst in
config.status.
  sed 's/,@/@@/; s/@,/@@/; s/,;t t@;t t/; /@;t ts/[\\&,]/\\&/g;
   s/@@/,@/;  s/@@/@,/;  s/@;t  t,;t  t/'  >mp/subs.sed   <<\CEOF
s,@SHELL@,$SHELL,;t   t  s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t  t
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t  t   s,@PACKAGE_TARNAME@,$PACK-
AGE_TARNAME,;t    t   s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t   t
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t     t     s,@PACKAGE_BUGRE-
PORT@,$PACKAGE_BUGREPORT,;t  t  s,@exec_prefix@,$exec_prefix,;t t
s,@prefix@,$prefix,;t     t      s,@program_transform_name@,$pro-
gram_transform_name,;t       t       s,@bindir@,$bindir,;t      t
s,@sbindir@,$sbindir,;t   t    s,@libexecdir@,$libexecdir,;t    t
s,@datadir@,$datadir,;t    t    s,@sysconfdir@,$sysconfdir,;t   t
s,@host_os@,$host_os,;t t  s,@AWK@,$AWK,;t  t  s,@CPP@,$CPP,;t  t
s,@RANLIB@,$RANLIB,;t   t   s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t   t
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$IN-
STALL_SCRIPT,;t     t     s,@INSTALL_DATA@,$INSTALL_DATA,;t     t
s,@AR@,$AR,;t   t   s,@PERL@,$PERL,;t   t    s,@SED@,$SED,;t    t
s,@ENT@,$ENT,;t   t   s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t   t
s,@SH@,$SH,;t  t  s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALL-
BACK,;t     t     s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t     t
s,@LD@,$LD,;t t s,@EGREP@,$EGREP,;t t  s,@LIBWRAP@,$LIBWRAP,;t  t
s,@LIBPAM@,$LIBPAM,;t      t     s,@INSTALL_SSH_RAND_HELPER@,$IN-
STALL_SSH_RAND_HELPER,;t t  s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_US-
ER,;t  t  s,@PROG_LS@,$PROG_LS,;t  t  s,@PROG_NETSTAT@,$PROG_NET-
STAT,;t t s,@PROG_ARP@,$PROG_ARP,;t t s,@PROG_IFCONFIG@,$PROG_IF-
CONFIG,;t         t        s,@PROG_JSTAT@,$PROG_JSTAT,;t        t
s,@PROG_PS@,$PROG_PS,;t     t     s,@PROG_SAR@,$PROG_SAR,;t     t
s,@PROG_W@,$PROG_W,;t      t      s,@PROG_WHO@,$PROG_WHO,;t     t
s,@PROG_LAST@,$PROG_LAST,;t t s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
s,@PROG_DF@,$PROG_DF,;t   t   s,@PROG_VMSTAT@,$PROG_VMSTAT,;t   t
s,@PROG_UPTIME@,$PROG_UPTIME,;t t  s,@PROG_IPCS@,$PROG_IPCS,;t  t
s,@PROG_TAIL@,$PROG_TAIL,;t    t   s,@INSTALL_SSH_PRNG_CMDS@,$IN-
STALL_SSH_PRNG_CMDS,;t  t  s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t  t
s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t s,@xauth_path@,$xauth_path,;t
t s,@STRIP_OPT@,$STRIP_OPT,;t t  s,@XAUTH_PATH@,$XAUTH_PATH,;t  t
s,@NROFF@,$NROFF,;t   t   s,@MANTYPE@,$MANTYPE,;t   t  s,@mansub-
dir@,$mansubdir,;t  t   s,@user_path@,$user_path,;t   t   s,@pid-
dir@,$piddir,;t  t  s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t s,@LTLIBOB-
JS@,$LTLIBOBJS,;t t CEOF

_ACEOF

  cat >>$CONFIG_STATUS <<_ACEOF
  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines  #  Line  after  last line for current
file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed      "1,${ac_beg}d;      ${ac_end}q"      $tmp/subs.sed
>$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      #  The  purpose of the label and of the branching condition
is to
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi fi # test -n "$CONFIG_FILES"

_ACEOF  cat  >>$CONFIG_STATUS  <<_ACEOF  for  ac_file  in : $CON-
FIG_FILES; do test "x$ac_file" = x: && continue
  #  Support   "outfile[:infile[:infile...]]",   defaulting   in-
file="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirecto-
ries.
  ac_dir=`(dirname   "$ac_file")    2>/dev/null    ||    $as_expr
X"$ac_file"  :  'X[^/]//*[^/][^/]*/*$'             X"$ac_file"  :
'X[^/]'           X"$ac_file" : 'X$'           X"$ac_file" : 'X'
.     : '' 2>/dev/null || echo X"$ac_file" |
    sed '/^X[^/]*[^/][^/]**$/{ s//1/; q; }
          /^X[^/].*/{ s//1/; q; }
          /^X$/{ s//1/; q; }
          /^X.*/{ s//1/; q; }
          s/.*/./; q'`
  { if $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname   "$as_dir")   2>/dev/null   ||   $as_expr
X"$as_dir"  :  'X[^/]//*[^/][^/]*/*$'              X"$as_dir"   :
'X[^/]'             X"$as_dir" : 'X$'           X"$as_dir" : 'X'
.     : '' 2>/dev/null || echo X"$as_dir" |
    sed '/^X[^/]*[^/][^/]**$/{ s//1/; q; }
          /^X[^/].*/{ s//1/; q; }
          /^X$/{ s//1/; q; }
          /^X.*/{ s//1/; q; }
          s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create  directory
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\/]* | ?:[\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Don't blindly
perform  a  `cd  "$ac_dir"/$ac_foo && pwd` since $ac_foo can be #
absolute.  ac_abs_builddir=`cd "$ac_dir" &&  cd  $ac_builddir  &&
pwd`  ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd` ac_abs_srcdir=`cd "$ac_dir"  &&  cd  $ac_srcdir  &&  pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`


  case $INSTALL in
  [\/$]* | ?:[\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  esac

  if test x"$ac_file" != x-; then
    {  echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me:
creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend  it  is  `configure'  which  instantiates
(i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    configure_input=
  else
    configure_input="$ac_file.  "
  fi
  configure_input=$configure_input"Generated      from      `echo
$ac_file_in |
                                     sed  's,.*/,,'`  by  config-
ure."

  #  First  look for the input files in the build tree, otherwise
in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
           { { echo "$as_me:$LINENO:  error:  cannot  find  input
file:  $f"  >&5  echo "$as_me: error: cannot find input file: $f"
>&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }  _ACEOF  cat  >>$CONFIG_STATUS
<<_ACEOF
  sed  "$ac_vpsub  $extrasub _ACEOF cat >>$CONFIG_STATUS <<_ACEOF
:t   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b    s,@configure_input@,$config-
ure_input,;t     t    s,@srcdir@,$ac_srcdir,;t    t    s,@abs_sr-
cdir@,$ac_abs_srcdir,;t  t   s,@top_srcdir@,$ac_top_srcdir,;t   t
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t        t       s,@build-
dir@,$ac_builddir,;t  t  s,@abs_builddir@,$ac_abs_builddir,;t   t
s,@top_builddir@,$ac_top_builddir,;t      t     s,@abs_top_build-
dir@,$ac_abs_top_builddir,;t  t  s,@INSTALL@,$ac_INSTALL,;t  t  "
$ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

done _ACEOF cat >>$CONFIG_STATUS <<_ACEOF

# # CONFIG_HEADER section.  #

#  These sed commands are passed to sed as "A NAME B NAME C VALUE
D", where # NAME is the cpp macro being defined and VALUE is  the
value  it  is  being  given.  # # ac_d sets the value in "#define
NAME VALUE"  lines.   ac_dA='s,^      ]*#     ]*define[        ][
     ]*'  ac_dB='[         ].*$,1#2' ac_dC=' ' ac_dD=',;t' # ac_u
turns "#undef NAME" without trailing blanks  into  "#define  NAME
VALUE".         ac_uA='s,^      ]*#     ]*undef ][            ]*'
ac_uB='$,1#2define3' ac_uC=' ' ac_uD=',;t'

for ac_file in : $CONFIG_HEADERS; do test  "x$ac_file"  =  x:  &&
continue
  #   Support   "outfile[:infile[:infile...]]",   defaulting  in-
file="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:$LINENO:  error:  cannot  find  input
file:  $f"  >&5  echo "$as_me: error: cannot find input file: $f"
>&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in

_ACEOF

# Transform confdefs.h into two sed  scripts,  `conftest.defines'
and  # `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h.  The first handles `#define' #
templates,  and the second `#undef' templates.  # And first: Pro-
tect against being on the right side of a sed  subst  in  #  con-
fig.status.  Protect against being in an unquoted here document #
in config.status.  rm -f conftest.defines conftest.undefs # Using
a  here  document  instead of a string reduces the quoting night-
mare.  # Putting comments in sed scripts is not  portable.   #  #
`end'  is  used  to avoid that the second main sed command (meant
for # 0-ary CPP macros) applies to n-ary  macro  definitions.   #
See the Autoconf documentation for `clear'.  cat >confdef2sed.sed
<<_ACEOF s/[\&,]/\&/g s,[\$`],\&,g t clear : clear  s,^[     ]*#[
   ]*define[          ][          ]*         (][^       (]*^)]*)[
      ]*$,${ac_dA}1${ac_dB}12${ac_dC}3${ac_dD},gp  t   end   s,^[
   ]*#[          ]*define[         ][       ]*       ][^      ]*[
    ]*$,${ac_dA}1${ac_dB}1${ac_dC}2${ac_dD},gp : end _ACEOF #  If
some  macros  were  called  several  times there might be several
times # the same #defines, which is  useless.   Nevertheless,  we
may  not  want to # sort them, since we want the *last* AC-DEFINE
to be honored.  uniq confdefs.h | sed -n -f confdef2sed.sed >con-
ftest.defines  sed 's/ac_d/ac_u/g' conftest.defines >conftest.un-
defs rm -f confdef2sed.sed

# This sed command replaces #undef with comments.  This is neces-
sary,  for # example, in the case of _POSIX_SOURCE, which is pre-
defined and required # on some systems where configure  will  not
decide to define it.  cat >>conftest.undefs <<_ACEOF s,^[    ]*#[
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  rm -f conftest.defines
  mv conftest.tail conftest.defines done rm  -f  conftest.defines
echo '  fi # grep' >>$CONFIG_STATUS echo >>$CONFIG_STATUS

#  Break  up  conftest.undefs because some shells have a limit on
the size # of here documents, and old seds have small limits  too
(100  cmds).   echo '  # Handle all the #undef templates' >>$CON-
FIG_STATUS rm  -f  conftest.tail  while  grep  .  conftest.undefs
>/dev/null do
  # Write a limited-size here document to $tmp/undefs.sed.
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#undef'
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  rm -f conftest.undefs
  mv conftest.tail conftest.undefs done rm -f conftest.undefs

cat >>$CONFIG_STATUS <<_ACEOF
  #  Let's  still  pretend  it  is `configure' which instantiates
(i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated by configure.  */" >$tmp/config.h
  else
    echo "/* $ac_file.  Generated by configure.   */"  >$tmp/con-
fig.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
      {  echo  "$as_me:$LINENO:  $ac_file  is unchanged" >&5 echo
"$as_me: $ac_file is unchanged" >&6;}
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname   "$as_dir")   2>/dev/null   ||   $as_expr
X"$as_dir"  :  'X[^/]//*[^/][^/]*/*$'              X"$as_dir"   :
'X[^/]'             X"$as_dir" : 'X$'           X"$as_dir" : 'X'
.     : '' 2>/dev/null || echo X"$as_dir" |
    sed '/^X[^/]*[^/][^/]**$/{ s//1/; q; }
          /^X[^/].*/{ s//1/; q; }
          /^X$/{ s//1/; q; }
          /^X.*/{ s//1/; q; }
          s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create  directory
echo "$as_me: error: cannot create directory
   { (exit 1); exit 1; }; }; }

      rm -f $ac_file
      mv $tmp/config.h $ac_file
    fi
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
  fi done _ACEOF

cat >>$CONFIG_STATUS <<_ACEOF

{   (exit   0);   exit   0;  }  _ACEOF  chmod  +x  $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save


# configure is writing to config.log, and then calls  config.sta-
tus.  # config.status does its own redirection, appending to con-
fig.log.  # Unfortunately, on DOS this fails,  as  config.log  is
still kept open # by configure, so config.status won't be able to
write to it; its # output is simply discarded.  So we exec the FD
to  /dev/null,  #  effectively  closing  config.log, so it can be
properly (re)opened and # appended  to  by  config.status.   When
coming  back  to  configure,  we  # need to make the FD available
again.  if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL  $CONFIG_STATUS  $ac_config_status_args  ||   ac_cs_suc-
cess=false
  exec 5>>config.log
  #  Use  ||,  not  &&, to avoid exiting from the if with $? = 1,
which
  # would make configure fail if this is the last instruction.

echo "" echo "OpenSSH has been configured with the following  op-
tions:"  echo  "                      User  binaries:  $B" echo "
System binaries: $C" echo  "                Configuration  files:
$D"   echo   "                    Askpass  program:  $E"  echo  "
Manual pages: $F" echo "                          PID  file:  $G"
echo  "   Privilege separation chroot path: $H" if test "x$exter-
nal_path_file" = "x/etc/login.conf" ; then echo "    At  runtime,
sshd  will  use  the  path defined in $external_path_file" echo "
Make sure the path to scp is  present,  otherwise  scp  will  not
work"   else  echo  "             sshd  default  user  PATH:  $I"
        if test ! -z "$external_path_file";  then  echo  "    (If
PATH  is  set in $external_path_file it will be used instead. If"
echo "   used, ensure the path to scp is present,  otherwise  scp
will  not work.)"          fi fi if test ! -z "$superuser_path" ;
then echo "          sshd superuser user  PATH:  $J"  fi  echo  "
Manpage  format:  $MANTYPE" echo "                       PAM sup-
port:  $PAM_MSG"  echo   "                   KerberosV   support:
$KRB5_MSG"  echo "                 Smartcard support: $SCARD_MSG"
echo  "                      S/KEY  support:  $SKEY_MSG"  echo  "
TCP Wrappers support: $TCPW_MSG" echo "              MD5 password
support: $MD5_MSG" echo "       IP address in ISPLAY hack:  $DIS-
PLAY_HACK_MSG"   echo   "            Translate  v4  in  v6  hack:
$IPV4_IN6_HACK_MSG" echo  "                   BSD  Auth  support:
$BSD_AUTH_MSG"   echo   "                Random   number  source:
$RAND_MSG" if test ! -z "$USE_RAND_HELPER" ; then echo "     ssh-
rand-helper collects from: $RAND_HELPER_MSG" fi

echo ""

echo  "               Host:  ${host}"  echo  "          Compiler:
${CC}" echo "    Compiler flags:  ${CFLAGS}"  echo  "Preprocessor
flags:  ${CPPFLAGS}" echo "      Linker flags: ${LDFLAGS}" echo "
Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"

echo ""

if test "x$PAM_MSG" = "xyes" ; then         echo "PAM is enabled.
You  may  need  to install a PAM control file "         echo "for
sshd, otherwise password authentication may fail. "          echo
"Example  PAM  control  files  can  be  found  in  the contrib/ "
        echo "subdirectory"         echo "" fi

if test ! -z "$RAND_HELPER_CMDHASH" ; then         echo "WARNING:
you are using the builtin random number collection "         echo
"service. Please read WARNING.RNG and  request  that  your  OS  "
        echo  "vendor includes kernel-based random number collec-
tion  in  "          echo   "future   versions   of   your   OS."
        echo "" fi




Man(1) output converted with man2html