mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-26 23:34:55 +02:00
Find suitable OpenSSL version.
Check the installed OpenSSL versions for a suitable one, and if there isn't (and we don't have a specific version configured) then build without OpenSSL.
This commit is contained in:
parent
021ea5c286
commit
b308c636f5
15
.github/configs
vendored
15
.github/configs
vendored
@ -296,13 +296,22 @@ case "`./config.guess`" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# If we have a local openssl/libressl, use that.
|
# Unless specifically configured, search for a suitable version of OpenSSL,
|
||||||
|
# otherwise build without it.
|
||||||
if [ -z "${LIBCRYPTOFLAGS}" ]; then
|
if [ -z "${LIBCRYPTOFLAGS}" ]; then
|
||||||
|
LIBCRYPTOFLAGS="--without-openssl"
|
||||||
# last-match
|
# last-match
|
||||||
for i in /usr/local /usr/local/ssl /usr/local/opt/openssl; do
|
for i in /usr /usr/local /usr/local/ssl /usr/local/opt/openssl; do
|
||||||
|
ver="none"
|
||||||
if [ -x ${i}/bin/openssl ]; then
|
if [ -x ${i}/bin/openssl ]; then
|
||||||
LIBCRYPTOFLAGS="--with-ssl-dir=${i}"
|
ver="$(${i}/bin/openssl version)"
|
||||||
fi
|
fi
|
||||||
|
case "$ver" in
|
||||||
|
none) ;;
|
||||||
|
"OpenSSL 0."*|"OpenSSL 1.0."*|"OpenSSL 1.1.0"*) ;;
|
||||||
|
"LibreSSL 2."*|"LibreSSL 3.0."*) ;;
|
||||||
|
*) LIBCRYPTOFLAGS="--with-ssl-dir=${i}" ;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user