Commit db3e43ae by SHIBATA Hiroshi Committed by GitHub

Merge pull request #1104 from rbenv/openssl-check

Improve check for openssl on macOS
parents 762b6551 ae9886af
......@@ -980,11 +980,9 @@ use_homebrew_readline() {
}
has_broken_mac_openssl() {
is_mac &&
[[
"$(/usr/bin/openssl version 2>/dev/null || true)" = "OpenSSL 0.9.8"?* ||
"$(/usr/bin/openssl version 2>/dev/null || true)" = "LibreSSL 2.2.7"
]] &&
is_mac || return 1
local openssl_version="$(/usr/bin/openssl version 2>/dev/null || true)"
[[ $openssl_version = "OpenSSL 0.9.8"?* || $openssl_version = "LibreSSL"* ]] &&
[[ "$RUBY_CONFIGURE_OPTS" != *--with-openssl-dir=* ]] &&
! use_homebrew_openssl
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment