recent changes to search for gcc/clang on freebsd and this fixes #14381

This commit is contained in:
Dave Huseby 2015-07-28 21:23:19 -07:00
parent 68fc2d98d5
commit 40eb53c409

6
configure vendored
View file

@ -1005,11 +1005,9 @@ then
(''|*clang)
CFG_CLANG_REPORTED_VERSION=$($CFG_CC --version | grep version)
if [[ $CFG_CLANG_REPORTED_VERSION == *"(based on LLVM "* ]]
then
if echo $CFG_CLANG_REPORTED_VERSION | grep -q "(based on LLVM "; then
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*(based on LLVM \(.*\))/\1/')
elif [[ $CFG_CLANG_REPORTED_VERSION == "Apple LLVM"* ]]
then
elif echo $CFG_CLANG_REPORTED_VERSION | grep -q "Apple LLVM"; then
CFG_OSX_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')
else
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')