Mesa (master): configure: Require LLVM 3.1.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed May 14 10:06:05 UTC 2014


Module: Mesa
Branch: master
Commit: ecef2da0b2035b1043441ffd322802cfa4a9f36f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecef2da0b2035b1043441ffd322802cfa4a9f36f

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon May 12 16:30:51 2014 +0100

configure: Require LLVM 3.1.

Reviewed-by: Roland Scheidegger <sroland at vmware.com>

---

 configure.ac |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index 99a761a..b4a1606 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1624,6 +1624,12 @@ if test "x$enable_gallium_llvm" = xyes; then
             LLVM_VERSION_INT=`echo $LLVM_VERSION | sed -e 's/\([[0-9]]\)\.\([[0-9]]\)/\10\2/g'`
         fi
 
+        LLVM_REQUIRED_VERSION_MAJOR="3"
+        LLVM_REQUIRED_VERSION_MINOR="1"
+        if test "$LLVM_VERSION_INT" -lt "${LLVM_REQUIRED_VERSION_MAJOR}0${LLVM_REQUIRED_VERSION_MINOR}"; then
+            AC_MSG_ERROR([LLVM $LLVM_REQUIRED_VERSION_MAJOR.$LLVM_REQUIRED_VERSION_MINOR or newer is required])
+        fi
+
         LLVM_COMPONENTS="engine bitwriter"
         if $LLVM_CONFIG --components | grep -qw 'mcjit'; then
             LLVM_COMPONENTS="${LLVM_COMPONENTS} mcjit"




More information about the mesa-commit mailing list