On Darwin, should not build readline if there is brewed readline

This commit is contained in:
Yamashita Yuu 2013-12-16 16:27:45 +09:00
parent db141f66a4
commit aa76fd2f9c

View File

@ -920,8 +920,7 @@ use_homebrew_yaml() {
}
has_broken_mac_readline() {
if [ "$(uname -s)" = "Darwin" ]; then
use_homebrew_readline || {
if [ "$(uname -s)" = "Darwin" ] && ! use_homebrew_readline; then
# MacOSX 10.4 has a broken readline.
# https://github.com/yyuu/pyenv/issues/23
local retval=1
@ -932,7 +931,6 @@ has_broken_mac_readline() {
rm -f "$conftest"
fi
return "$retval"
}
else
return 1
fi