Strip LLVM svn rev from `llvm-config --version` output.
authorojab <ojab@ojab.ru>
Thu, 5 Jan 2012 10:18:34 +0000 (14:18 +0400)
committerVinson Lee <vlee@freedesktop.org>
Fri, 6 Jan 2012 06:44:16 +0000 (22:44 -0800)
Reviewed-by: Vinson Lee <vlee@freedesktop.org>
configure.ac

index 9cf3fdcc948132e0a75532c92052e848e6ef274f..cc139ada577f65591c76ddeb79fe73f5cab5a0f4 100644 (file)
@@ -1773,7 +1773,7 @@ if test "x$enable_gallium_llvm" = xyes; then
     AC_PATH_PROG([LLVM_CONFIG], [llvm-config], [no])
 
     if test "x$LLVM_CONFIG" != xno; then
-       LLVM_VERSION=`$LLVM_CONFIG --version`
+       LLVM_VERSION=`$LLVM_CONFIG --version | sed 's/svn.*//g'`
        LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed -e 's/-DNDEBUG\>//g' -e 's/-pedantic//g'`
        LLVM_LIBS="`$LLVM_CONFIG --libs`"