- Detect RSAref

This commit is contained in:
Damien Miller 2000-03-11 11:37:00 +11:00
parent 8f975b6a18
commit b85dcad762
2 changed files with 59 additions and 41 deletions

View File

@ -1,3 +1,6 @@
20000311
- Detect RSAref
20000309 20000309
- OpenBSD CVS updates to v1.2.3 - OpenBSD CVS updates to v1.2.3
[ssh.h atomicio.c] [ssh.h atomicio.c]

View File

@ -151,13 +151,20 @@ fi
AC_MSG_CHECKING([for OpenSSL/SSLeay directory]) AC_MSG_CHECKING([for OpenSSL/SSLeay directory])
for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do for ssldir in "" $tryssldir /usr /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 "$ssldir" ; then
LIBS="$saved_LIBS -L$ssldir" LIBS="$saved_LIBS -L$ssldir -lcrypto"
CFLAGS="$CFLAGS -I$ssldir/include" CFLAGS="$CFLAGS -I$ssldir/include"
if test "x$need_dash_r" = "x1" ; then if test "x$need_dash_r" = "x1" ; then
LIBS="$LIBS -R$ssldir/lib" LIBS="$LIBS -R$ssldir/lib"
fi fi
else
LIBS="$saved_LIBS -lcrypto"
fi
for WANTS_RSAREF in "" 1 ; do
if test ! -z "$WANTS_RSAREF" ; then
LIBS="$LIBS -lRSAglue -lrsaref"
fi fi
LIBS="$LIBS -lcrypto"
AC_TRY_RUN( AC_TRY_RUN(
[ [
@ -193,6 +200,11 @@ for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl /usr/local/
) )
done done
if test ! -z "$found_crypto" ; then
break;
fi
done
if test -z "$found_crypto" ; then if test -z "$found_crypto" ; then
AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install]) AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install])
fi fi
@ -206,6 +218,9 @@ else
fi fi
fi fi
LIBS="$saved_LIBS -lcrypto" LIBS="$saved_LIBS -lcrypto"
if test ! -z $WANTS_RSAREF ; then
LIBS="$LIBS -lRSAglue -lrsaref"
fi
AC_MSG_RESULT($ssldir) AC_MSG_RESULT($ssldir)
# Checks for data types # Checks for data types
@ -448,7 +463,7 @@ AC_TRY_LINK([],
AC_ARG_WITH(rsh, AC_ARG_WITH(rsh,
[ --with-rsh=PATH Specify path to remote shell program ], [ --with-rsh=PATH Specify path to remote shell program ],
[ [
if test "x$withval" != "$xno" ; then if test "x$withval" != "$no" ; then
AC_DEFINE_UNQUOTED(RSH_PATH, "$withval") AC_DEFINE_UNQUOTED(RSH_PATH, "$withval")
fi fi
], ],
@ -549,7 +564,7 @@ AC_MSG_CHECKING([whether to build GNOME ssh-askpass])
AC_ARG_WITH(gnome-askpass, AC_ARG_WITH(gnome-askpass,
[ --with-gnome-askpass Build the GNOME passphrase requester (default=no)], [ --with-gnome-askpass Build the GNOME passphrase requester (default=no)],
[ [
if test x$withval = xno ; then if test "x$withval" = "xno" ; then
GNOME_ASKPASS=""; GNOME_ASKPASS="";
else else
GNOME_ASKPASS="gnome-ssh-askpass"; GNOME_ASKPASS="gnome-ssh-askpass";
@ -621,7 +636,7 @@ AC_SUBST(mansubdir)
AC_ARG_WITH(kerberos4, AC_ARG_WITH(kerberos4,
[ --with-kerberos4=PATH Enable Kerberos 4 support], [ --with-kerberos4=PATH Enable Kerberos 4 support],
[ [
if test "x$withval" != "$xno" ; then if test "x$withval" != "xno" ; then
if test "x$withval" != "$xyes" ; then if test "x$withval" != "$xyes" ; then
CFLAGS="$CFLAGS -I${withval}/include" CFLAGS="$CFLAGS -I${withval}/include"
@ -653,7 +668,7 @@ AC_ARG_WITH(kerberos4,
AC_ARG_WITH(afs, AC_ARG_WITH(afs,
[ --with-afs=PATH Enable AFS support], [ --with-afs=PATH Enable AFS support],
[ [
if test "x$withval" != "$xno" ; then if test "x$withval" != "xno" ; then
if test "x$withval" != "$xyes" ; then if test "x$withval" != "$xyes" ; then
CFLAGS="$CFLAGS -I${withval}/include" CFLAGS="$CFLAGS -I${withval}/include"
@ -678,7 +693,7 @@ LIBS="$LIBS $KLIBS"
AC_ARG_WITH(skey, AC_ARG_WITH(skey,
[ --with-skey Enable S/Key support], [ --with-skey Enable S/Key support],
[ [
if test "x$withval" != "$xno" ; then if test "x$withval" != "xno" ; then
AC_DEFINE(SKEY) AC_DEFINE(SKEY)
LIBS="$LIBS -lskey" LIBS="$LIBS -lskey"
fi fi
@ -689,7 +704,7 @@ AC_ARG_WITH(skey,
AC_ARG_WITH(tcp-wrappers, AC_ARG_WITH(tcp-wrappers,
[ --with-tcp-wrappers Enable tcpwrappers support], [ --with-tcp-wrappers Enable tcpwrappers support],
[ [
if test "x$withval" != "$xno" ; then if test "x$withval" != "xno" ; then
saved_LIBS="$LIBS" saved_LIBS="$LIBS"
LIBS="$LIBS -lwrap" LIBS="$LIBS -lwrap"
AC_MSG_CHECKING(for libwrap) AC_MSG_CHECKING(for libwrap)
@ -717,7 +732,7 @@ AC_ARG_WITH(tcp-wrappers,
AC_ARG_WITH(md5-passwords, AC_ARG_WITH(md5-passwords,
[ --with-md5-passwords Enable use of MD5 passwords], [ --with-md5-passwords Enable use of MD5 passwords],
[ [
if test "x$withval" != "$xno" ; then if test "x$withval" != "xno" ; then
AC_DEFINE(HAVE_MD5_PASSWORDS) AC_DEFINE(HAVE_MD5_PASSWORDS)
fi fi
] ]