configure.ac: add llvm inteljitevents component if enabled
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 21 Jul 2016 23:34:37 +0000 (18:34 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 27 Sep 2016 17:56:47 +0000 (12:56 -0500)
Needed to successfully link llvmpipe or swr when using shared llvm libs
built with inteljitevents enabled.

v2: Make adding inteljitevents component global rather than just
llvmpipe/swr, since libgallium will have a symbol dependency.

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
configure.ac

index 0604ad9ad20efc2953b8439802b111caf5c39a74..b9e6000a3d56cae090469657a86e222e13836215 100644 (file)
@@ -2196,6 +2196,10 @@ if test "x$enable_gallium_llvm" = xyes; then
 
         LLVM_COMPONENTS="engine bitwriter mcjit mcdisassembler"
 
+        if $LLVM_CONFIG --components | grep -q inteljitevents ; then
+            LLVM_COMPONENTS="${LLVM_COMPONENTS} inteljitevents"
+        fi
+
         if test "x$enable_opencl" = xyes; then
             llvm_check_version_for "3" "6" "0" "opencl"