fix broken string match in has_broken_mac_llvm_gcc()

This commit is contained in:
Yamashita Yuu 2013-07-17 17:02:23 +09:00
parent f9a19e3f24
commit 4c006959fa

View file

@ -771,7 +771,7 @@ has_broken_mac_readline() {
has_broken_mac_llvm_gcc() {
[ "$(uname -s)" = "Darwin" ] &&
[ "$(gcc --version 2>/dev/null || true)" = "llvm-gcc-4.2" ]
[[ "$(gcc --version 2>/dev/null || true)" == *"llvm-gcc-4.2"* ]]
}
# Post-install check for Python 2.5.x