Commit 5118c425 by Chulki Lee

print when using homebrew packages

parent 0788db1c
...@@ -912,6 +912,7 @@ needs_yaml() { ...@@ -912,6 +912,7 @@ needs_yaml() {
use_homebrew_yaml() { use_homebrew_yaml() {
local libdir="$(brew --prefix libyaml 2>/dev/null || true)" local libdir="$(brew --prefix libyaml 2>/dev/null || true)"
if [ -d "$libdir" ]; then if [ -d "$libdir" ]; then
echo "ruby-build: use libyaml from homebrew"
package_option ruby configure --with-libyaml-dir="$libdir" package_option ruby configure --with-libyaml-dir="$libdir"
else else
return 1 return 1
...@@ -922,6 +923,7 @@ use_homebrew_readline() { ...@@ -922,6 +923,7 @@ use_homebrew_readline() {
if [[ "$RUBY_CONFIGURE_OPTS" != *--with-readline-dir=* ]]; then if [[ "$RUBY_CONFIGURE_OPTS" != *--with-readline-dir=* ]]; then
local libdir="$(brew --prefix readline 2>/dev/null || true)" local libdir="$(brew --prefix readline 2>/dev/null || true)"
if [ -d "$libdir" ]; then if [ -d "$libdir" ]; then
echo "ruby-build: use readline from homebrew"
package_option ruby configure --with-readline-dir="$libdir" package_option ruby configure --with-readline-dir="$libdir"
else else
return 1 return 1
...@@ -939,6 +941,7 @@ has_broken_mac_openssl() { ...@@ -939,6 +941,7 @@ has_broken_mac_openssl() {
use_homebrew_openssl() { use_homebrew_openssl() {
local ssldir="$(brew --prefix openssl 2>/dev/null || true)" local ssldir="$(brew --prefix openssl 2>/dev/null || true)"
if [ -d "$ssldir" ]; then if [ -d "$ssldir" ]; then
echo "ruby-build: use openssl from homebrew"
package_option ruby configure --with-openssl-dir="$ssldir" package_option ruby configure --with-openssl-dir="$ssldir"
else else
return 1 return 1
......
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