diff options
| author | Gabor Greif <ggreif@gmail.com> | 2019-12-21 13:43:50 -0500 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2019-12-21 20:10:10 +0100 |
| commit | 78ce1b412e300f1fde0781d0b3cc912e4e56b543 (patch) | |
| tree | 86b3b2b5359cbf395cc0a4d377f6e70ea1c8360c | |
| parent | 70e56b272492b65e41a149ec39a939e794fea66b (diff) | |
| download | haskell-78ce1b412e300f1fde0781d0b3cc912e4e56b543.tar.gz | |
suppress popup dialog about missing Xcode at configure
tested with `bash` and `zsh`.
| -rw-r--r-- | aclocal.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 54b1672548..9d449d07ae 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -2126,7 +2126,7 @@ AC_DEFUN([XCODE_VERSION],[ if test "$TargetVendor_CPP" = "apple" then AC_MSG_CHECKING(XCode version) - XCodeVersion=`xcodebuild -version | grep Xcode | sed "s/Xcode //"` + XCodeVersion=`(xcode-select -p >& /dev/null && xcodebuild -version) | grep Xcode | sed "s/Xcode //"` # Old XCode versions don't actually give the XCode version if test "$XCodeVersion" = "" then |
