- Configure caching and cleanup patch from Andre Lucas'

<andre.lucas@dial.pipex.com>
This commit is contained in:
Damien Miller 2000-05-08 20:49:37 +10:00
parent 6d48871faf
commit 61e50f10c2
3 changed files with 268 additions and 240 deletions

View File

@ -9,6 +9,9 @@
- interop w/ SecureFX - interop w/ SecureFX
- Release 2.0.0beta2 - Release 2.0.0beta2
- Configure caching and cleanup patch from Andre Lucas'
<andre.lucas@dial.pipex.com>
20000507 20000507
- Remove references to SSLeay. - Remove references to SSLeay.
- Big OpenBSD CVS update - Big OpenBSD CVS update

40
aclocal.m4 vendored
View File

@ -1,15 +1,45 @@
dnl $Id: aclocal.m4,v 1.1 2000/05/01 23:57:51 damien Exp $ dnl $Id: aclocal.m4,v 1.2 2000/05/08 10:49:37 damien Exp $
dnl dnl
dnl OpenSSH-specific autoconf macros dnl OpenSSH-specific autoconf macros
dnl dnl
dnl AC_PATH_ENTROPY_PROG(variablename, command):
dnl OSSH_CHECK_HEADER_FOR_FIELD(field, header, symbol)
dnl Does AC_EGREP_HEADER on 'header' for the string 'field'
dnl If found, set 'symbol' to be defined. Cache the result.
dnl TODO: This is not foolproof, better to compile and read from there
AC_DEFUN(OSSH_CHECK_HEADER_FOR_FIELD, [
# look for field '$1' in header '$2'
dnl This strips characters illegal to m4 from the header filename
ossh_safe=`echo "$2" | sed 'y%./+-%__p_%'`
dnl
ossh_varname="ossh_cv_$ossh_safe""_has_"$1
AC_MSG_CHECKING(for $1 field in $2)
AC_CACHE_VAL($ossh_varname, [
AC_EGREP_HEADER($1, $2, [ dnl
eval "$ossh_varname=yes" dnl
], [ dnl
eval "$ossh_varname=no" dnl
]) dnl
])
ossh_result=`eval "echo "$"$ossh_varname"`
if test -n "`echo $ossh_varname`"; then
AC_MSG_RESULT($ossh_result)
if test "x$ossh_result" = "xyes"; then
AC_DEFINE($3)
fi
else
AC_MSG_RESULT(no)
fi
])
dnl OSSH_PATH_ENTROPY_PROG(variablename, command):
dnl Tidiness function, sets 'undef' if not found, and does the AC_SUBST dnl Tidiness function, sets 'undef' if not found, and does the AC_SUBST
AC_DEFUN(AC_PATH_ENTROPY_PROG, [ AC_DEFUN(OSSH_PATH_ENTROPY_PROG, [
AC_PATH_PROG([$1], [$2]) AC_PATH_PROG($1, $2)
if test -z "[$]$1" ; then if test -z "[$]$1" ; then
$1="undef" $1="undef"
fi fi
AC_SUBST([$1]) AC_SUBST($1)
]) ])

View File

@ -196,28 +196,29 @@ saved_CFLAGS="$CFLAGS"
if test "x$prefix" != "xNONE" ; then if test "x$prefix" != "xNONE" ; then
tryssldir="$tryssldir $prefix" tryssldir="$tryssldir $prefix"
fi fi
AC_MSG_CHECKING([for OpenSSL directory]) AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
for ssldir in "" $tryssldir /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
if test ! -z "$ssldir" ; then
LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
CFLAGS="$saved_CFLAGS -I$ssldir/include"
if test ! -z "$need_dash_r" ; then
LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
fi
else
LDFLAGS="$saved_LDFLAGS"
fi
for WANTS_RSAREF in "" 1 ; do for ssldir in "" $tryssldir /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
if test ! -z "$ssldir" ; then
if test -z "$WANTS_RSAREF" ; then LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
LIBS="$saved_LIBS -lcrypto" CFLAGS="$saved_CFLAGS -I$ssldir/include"
if test ! -z "$need_dash_r" ; then
LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
fi
else else
LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref" LDFLAGS="$saved_LDFLAGS"
fi fi
AC_TRY_RUN( for WANTS_RSAREF in "" 1 ; do
[
if test -z "$WANTS_RSAREF" ; then
LIBS="$saved_LIBS -lcrypto"
else
LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
fi
AC_TRY_RUN(
[
#include <string.h> #include <string.h>
#include <openssl/rand.h> #include <openssl/rand.h>
#include <openssl/rsa.h> #include <openssl/rsa.h>
@ -232,26 +233,33 @@ int main(void)
if (key==NULL) return(1); if (key==NULL) return(1);
return(-1==RSA_private_decrypt(RSA_size(key),a,b,key,RSA_NO_PADDING)); return(-1==RSA_private_decrypt(RSA_size(key),a,b,key,RSA_NO_PADDING));
} }
], ],
[ [
AC_DEFINE(HAVE_OPENSSL) found_crypto=1
found_crypto=1 break;
break; ], []
], [] )
) done
if test ! -z "$found_crypto" ; then
break;
fi
done done
if test ! -z "$found_crypto" ; then if test -z "$found_crypto" ; then
break; AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install])
fi
if test -z "$ssldir" ; then
ssldir="(system)"
fi fi
done
if test -z "$found_crypto" ; then ac_cv_openssldir=$ssldir
AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install]) ])
fi
if test -z "$ssldir" ; then if test ! -z "$ac_cv_openssldir" -a ! "x$ac_cv_openssldir" = "x(system)" ; then
ssldir="(system)" AC_DEFINE(HAVE_OPENSSL)
else dnl Need to recover ssldir - test above runs in subshell
ssldir=$ac_cv_openssldir
CFLAGS="$saved_CFLAGS -I$ssldir/include" CFLAGS="$saved_CFLAGS -I$ssldir/include"
LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir" LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
if test ! -z "$need_dash_r" ; then if test ! -z "$need_dash_r" ; then
@ -266,7 +274,7 @@ if test -z "$WANTS_RSAREF" ; then
else else
LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref" LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
fi fi
AC_MSG_RESULT($ssldir)
# Checks for data types # Checks for data types
AC_CHECK_SIZEOF(char, 1) AC_CHECK_SIZEOF(char, 1)
@ -276,36 +284,41 @@ AC_CHECK_SIZEOF(long int, 4)
AC_CHECK_SIZEOF(long long int, 8) AC_CHECK_SIZEOF(long long int, 8)
# More checks for data types # More checks for data types
AC_MSG_CHECKING([for intXX_t types]) AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <sys/types.h>], [ #include <sys/types.h> ],
[int8_t a; int16_t b; int32_t c; a = b = c = 1;], [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
[ [ ac_cv_have_intxx_t="yes" ],
AC_DEFINE(HAVE_INTXX_T) [ ac_cv_have_intxx_t="no" ]
AC_MSG_RESULT(yes) )
have_intxx_t=1 ])
], if test "x$ac_cv_have_intxx_t" = "xyes" ; then
[AC_MSG_RESULT(no)] AC_DEFINE(HAVE_INTXX_T)
) have_intxx_t=1
fi
AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
AC_TRY_COMPILE(
[ #include <sys/types.h> ],
[ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
[ ac_cv_have_u_intxx_t="yes" ],
[ ac_cv_have_u_intxx_t="no" ]
)
])
if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
AC_DEFINE(HAVE_U_INTXX_T)
have_u_intxx_t=1
fi
AC_MSG_CHECKING([for u_intXX_t types])
AC_TRY_COMPILE(
[#include <sys/types.h>],
[u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
[
AC_DEFINE(HAVE_U_INTXX_T)
AC_MSG_RESULT(yes)
have_u_intxx_t=1
],
[AC_MSG_RESULT(no)]
)
if test -z "$have_u_intxx_t" -o -z "$have_intxx_t" -a \ if test -z "$have_u_intxx_t" -o -z "$have_intxx_t" -a \
"x$ac_cv_header_sys_bitypes_h" = "xyes" "x$ac_cv_header_sys_bitypes_h" = "xyes"
then then
AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h]) AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <sys/bitypes.h>], [
#include <sys/bitypes.h>
],
[ [
int8_t a; int16_t b; int32_t c; int8_t a; int16_t b; int32_t c;
u_int8_t e; u_int16_t f; u_int32_t g; u_int8_t e; u_int16_t f; u_int32_t g;
@ -321,189 +334,171 @@ then
fi fi
if test -z "$have_u_intxx_t" ; then if test -z "$have_u_intxx_t" ; then
AC_MSG_CHECKING([for uintXX_t types]) AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <sys/types.h>], [
[uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;], #include <sys/types.h>
[ ],
AC_DEFINE(HAVE_UINTXX_T) [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ],
AC_MSG_RESULT(yes) [ ac_cv_have_uintxx_t="yes" ],
], [ ac_cv_have_uintxx_t="no" ]
[AC_MSG_RESULT(no)] )
) ])
if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
AC_DEFINE(HAVE_UINTXX_T)
fi
fi fi
AC_MSG_CHECKING([for socklen_t]) AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [
AC_TRY_COMPILE( AC_TRY_COMPILE(
[ [
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
], ],
[socklen_t foo; foo = 1235;], [socklen_t foo; foo = 1235;],
[ [ ac_cv_have_socklen_t="yes" ],
AC_DEFINE(HAVE_SOCKLEN_T) [ ac_cv_have_socklen_t="no" ]
AC_MSG_RESULT(yes) )
], ])
[AC_MSG_RESULT(no)] if test "x$ac_cv_have_socklen_t" = "xyes" ; then
) AC_DEFINE(HAVE_SOCKLEN_T)
fi
AC_MSG_CHECKING([for size_t]) AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <sys/types.h>], [
[size_t foo; foo = 1235;], #include <sys/types.h>
[ ],
AC_DEFINE(HAVE_SIZE_T) [ size_t foo; foo = 1235; ],
AC_MSG_RESULT(yes) [ ac_cv_have_size_t="yes" ],
], [ ac_cv_have_size_t="no" ]
[AC_MSG_RESULT(no)] )
) ])
if test "x$ac_cv_have_size_t" = "xyes" ; then
AC_DEFINE(HAVE_SIZE_T)
fi
AC_MSG_CHECKING([for struct sockaddr_storage])
AC_TRY_COMPILE( AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [
[ AC_TRY_COMPILE(
[
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
], ],
[struct sockaddr_storage s;], [ struct sockaddr_storage s; ],
[ [ ac_cv_have_struct_sockaddr_storage="yes" ],
AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE) [ ac_cv_have_struct_sockaddr_storage="no" ]
AC_MSG_RESULT(yes) )
], ])
[AC_MSG_RESULT(no)] if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
) AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE)
fi
AC_MSG_CHECKING([for struct sockaddr_in6]) AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <netinet/in.h>], [
[struct sockaddr_in6 s; s.sin6_family = 0;], #include <netinet/in.h>
[ ],
AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6) [ struct sockaddr_in6 s; s.sin6_family = 0; ],
AC_MSG_RESULT(yes) [ ac_cv_have_struct_sockaddr_in6="yes" ],
], [ ac_cv_have_struct_sockaddr_in6="no" ]
[AC_MSG_RESULT(no)] )
) ])
if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6)
fi
AC_MSG_CHECKING([for struct in6_addr]) AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <netinet/in.h>], [
[struct in6_addr s; s.s6_addr[0] = 0;], #include <netinet/in.h>
[ ],
AC_DEFINE(HAVE_STRUCT_IN6_ADDR) [ struct in6_addr s; s.s6_addr[0] = 0; ],
AC_MSG_RESULT(yes) [ ac_cv_have_struct_in6_addr="yes" ],
], [ ac_cv_have_struct_in6_addr="no" ]
[AC_MSG_RESULT(no)] )
) ])
if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
AC_DEFINE(HAVE_STRUCT_IN6_ADDR)
fi
AC_MSG_CHECKING([for struct addrinfo]) AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [
AC_TRY_COMPILE( AC_TRY_COMPILE(
[ [
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
], ],
[struct addrinfo s; s.ai_flags = AI_PASSIVE;], [ struct addrinfo s; s.ai_flags = AI_PASSIVE; ],
[ [ ac_cv_have_struct_addrinfo="yes" ],
AC_DEFINE(HAVE_STRUCT_ADDRINFO) [ ac_cv_have_struct_addrinfo="no" ]
AC_MSG_RESULT(yes) )
], ])
[AC_MSG_RESULT(no)] if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
) AC_DEFINE(HAVE_STRUCT_ADDRINFO)
fi
# Checks for structure members # Checks for structure members
AC_MSG_CHECKING([whether utmp.h has ut_host field])
AC_EGREP_HEADER(ut_host, utmp.h,
[AC_DEFINE(HAVE_HOST_IN_UTMP) AC_MSG_RESULT(yes); ],
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING([whether utmpx.h has ut_host field])
AC_EGREP_HEADER(ut_host, utmpx.h,
[AC_DEFINE(HAVE_HOST_IN_UTMPX) AC_MSG_RESULT(yes); ],
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING([whether utmpx.h has syslen field])
AC_EGREP_HEADER(syslen, utmpx.h,
[AC_DEFINE(HAVE_SYSLEN_IN_UTMPX) AC_MSG_RESULT(yes); ],
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING([whether utmp.h has ut_pid field])
AC_EGREP_HEADER(ut_pid, utmp.h,
[AC_DEFINE(HAVE_PID_IN_UTMP) AC_MSG_RESULT(yes); ],
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING([whether utmp.h has ut_type field])
AC_EGREP_HEADER(ut_type, utmp.h,
[AC_DEFINE(HAVE_TYPE_IN_UTMP) AC_MSG_RESULT(yes); ],
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING([whether utmp.h has ut_tv field])
AC_EGREP_HEADER(ut_tv, utmp.h,
[AC_DEFINE(HAVE_TV_IN_UTMP) AC_MSG_RESULT(yes); ],
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING([whether utmp.h has ut_id field])
AC_EGREP_HEADER(ut_id, utmp.h,
[AC_DEFINE(HAVE_ID_IN_UTMP) AC_MSG_RESULT(yes); ],
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING([whether utmp.h has ut_addr field])
AC_EGREP_HEADER(ut_addr, utmp.h,
[AC_DEFINE(HAVE_ADDR_IN_UTMP) AC_MSG_RESULT(yes); ],
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING([whether utmpx.h has ut_addr field])
AC_EGREP_HEADER(ut_addr, utmpx.h,
[AC_DEFINE(HAVE_ADDR_IN_UTMPX) AC_MSG_RESULT(yes); ],
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING([whether utmp.h has ut_addr_v6 field])
AC_EGREP_HEADER(ut_addr_v6, utmp.h,
[AC_DEFINE(HAVE_ADDR_V6_IN_UTMP) AC_MSG_RESULT(yes); ],
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING([whether utmpx.h has ut_addr_v6 field])
AC_EGREP_HEADER(ut_addr_v6, utmpx.h,
[AC_DEFINE(HAVE_ADDR_V6_IN_UTMPX) AC_MSG_RESULT(yes); ],
[AC_MSG_RESULT(no)]
)
AC_MSG_CHECKING([whether struct sockaddr_storage has ss_family field]) OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP)
AC_TRY_COMPILE( OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
[ OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX)
OSSH_CHECK_HEADER_FOR_FIELD(ut_pid, utmp.h, HAVE_PID_IN_UTMP)
OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmp.h, HAVE_TYPE_IN_UTMP)
OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmp.h, HAVE_TV_IN_UTMP)
OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmp.h, HAVE_ID_IN_UTMP)
OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmp.h, HAVE_ADDR_IN_UTMP)
OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmpx.h, HAVE_ADDR_IN_UTMPX)
OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmp.h, HAVE_ADDR_V6_IN_UTMP)
OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmpx.h, HAVE_ADDR_V6_IN_UTMPX)
AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
ac_cv_have_ss_family_in_struct_ss, [
AC_TRY_COMPILE(
[
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
], ],
[struct sockaddr_storage s; s.ss_family = 1;], [ struct sockaddr_storage s; s.ss_family = 1; ],
[ [ ac_cv_have_ss_family_in_struct_ss="yes" ],
AC_DEFINE(HAVE_SS_FAMILY_IN_SS) [ ac_cv_have_ss_family_in_struct_ss="no" ],
AC_MSG_RESULT(yes) )
], ])
[AC_MSG_RESULT(no)] if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
) AC_DEFINE(HAVE_SS_FAMILY_IN_SS)
AC_MSG_CHECKING([whether struct sockaddr_storage has __ss_family field]) fi
AC_TRY_COMPILE(
[
AC_CACHE_CHECK([for __ss_family field in struct sockaddr_storage],
ac_cv_have___ss_family_in_struct_ss, [
AC_TRY_COMPILE(
[
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
], ],
[struct sockaddr_storage s; s.__ss_family = 1;], [ struct sockaddr_storage s; s.__ss_family = 1; ],
[ [ ac_cv_have___ss_family_in_struct_ss="yes" ],
AC_DEFINE(HAVE___SS_FAMILY_IN_SS) [ ac_cv_have___ss_family_in_struct_ss="no" ]
AC_MSG_RESULT(yes) )
], ])
[AC_MSG_RESULT(no)] if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
) AC_DEFINE(HAVE___SS_FAMILY_IN_SS)
fi
AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [
AC_TRY_LINK([],
[ extern char *__progname; printf("%s", __progname); ],
[ ac_cv_libc_defines___progname="yes" ],
[ ac_cv_libc_defines___progname="no" ]
)
])
if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
AC_DEFINE(HAVE___PROGNAME)
fi
AC_MSG_CHECKING([whether libc defines __progname])
AC_TRY_LINK([],
[extern char *__progname; printf("%s", __progname);],
[
AC_DEFINE(HAVE___PROGNAME)
AC_MSG_RESULT(yes)
],
[
AC_MSG_RESULT(no)
]
)
# Looking for programs, paths and files # Looking for programs, paths and files
AC_ARG_WITH(rsh, AC_ARG_WITH(rsh,
@ -642,21 +637,21 @@ INSTALL_SSH_PRNG_CMDS=""
rm -f prng_commands rm -f prng_commands
if test -z "$RANDOM_POOL" -a -z "$EGD_SOCKET" ; then if test -z "$RANDOM_POOL" -a -z "$EGD_SOCKET" ; then
# Use these commands to collect entropy # Use these commands to collect entropy
AC_PATH_ENTROPY_PROG(PROG_LS, ls) OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
AC_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat) OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat)
AC_PATH_ENTROPY_PROG(PROG_ARP, arp) OSSH_PATH_ENTROPY_PROG(PROG_ARP, arp)
AC_PATH_ENTROPY_PROG(PROG_IFCONFIG, ifconfig) OSSH_PATH_ENTROPY_PROG(PROG_IFCONFIG, ifconfig)
AC_PATH_ENTROPY_PROG(PROG_PS, ps) OSSH_PATH_ENTROPY_PROG(PROG_PS, ps)
AC_PATH_ENTROPY_PROG(PROG_W, w) OSSH_PATH_ENTROPY_PROG(PROG_W, w)
AC_PATH_ENTROPY_PROG(PROG_WHO, who) OSSH_PATH_ENTROPY_PROG(PROG_WHO, who)
AC_PATH_ENTROPY_PROG(PROG_LAST, last) OSSH_PATH_ENTROPY_PROG(PROG_LAST, last)
AC_PATH_ENTROPY_PROG(PROG_LASTLOG, lastlog) OSSH_PATH_ENTROPY_PROG(PROG_LASTLOG, lastlog)
AC_PATH_ENTROPY_PROG(PROG_DF, df) OSSH_PATH_ENTROPY_PROG(PROG_DF, df)
AC_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat) OSSH_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat)
AC_PATH_ENTROPY_PROG(PROG_UPTIME, uptime) OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime)
AC_PATH_ENTROPY_PROG(PROG_IPCS, ipcs) OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs)
AC_PATH_ENTROPY_PROG(PROG_TAIL, tail) OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail)
AC_PATH_ENTROPY_PROG(PROG_LS, ls) OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
INSTALL_SSH_PRNG_CMDS="yes" INSTALL_SSH_PRNG_CMDS="yes"
fi fi
@ -844,7 +839,7 @@ AC_ARG_WITH(ipv4-default,
] ]
) )
AC_MSG_CHECKING([to convert IPv4 in IPv6-mapped addresses]) AC_MSG_CHECKING([if we need to convert IPv4 in IPv6-mapped addresses])
AC_ARG_WITH(4in6, AC_ARG_WITH(4in6,
[ --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses], [ --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses],
[ [