Make sure we're using clang >=3.0svn.

This commit is contained in:
Erick Tryzelaar 2011-05-18 21:41:40 -07:00 committed by Graydon Hoare
parent 134b61a317
commit 7341055b84
1 changed files with 17 additions and 0 deletions

17
configure vendored
View File

@ -274,6 +274,23 @@ case $CFG_LLVM_VERSION in
;;
esac
if [ ! -z "$CFG_CLANG" ]
then
CFG_CLANG_VERSION=$("$CFG_CLANG" \
--version \
| grep version \
| cut -d ' ' -f 3)
case $CFG_CLANG_VERSION in
(3.0svn | 3.0)
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
;;
(*)
err "bad CLANG version: $CFG_CLANG_VERSION, need >=3.0svn"
;;
esac
fi
putvar CFG_LLVM_ROOT
putvar CFG_LLVM_INCDIR
putvar CFG_LLVM_BINDIR