We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68fc2d9 commit 40eb53cCopy full SHA for 40eb53c
configure
@@ -1005,11 +1005,9 @@ then
1005
(''|*clang)
1006
CFG_CLANG_REPORTED_VERSION=$($CFG_CC --version | grep version)
1007
1008
- if [[ $CFG_CLANG_REPORTED_VERSION == *"(based on LLVM "* ]]
1009
- then
+ if echo $CFG_CLANG_REPORTED_VERSION | grep -q "(based on LLVM "; then
1010
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*(based on LLVM \(.*\))/\1/')
1011
- elif [[ $CFG_CLANG_REPORTED_VERSION == "Apple LLVM"* ]]
1012
+ elif echo $CFG_CLANG_REPORTED_VERSION | grep -q "Apple LLVM"; then
1013
CFG_OSX_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')
1014
else
1015
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')
0 commit comments