clover: Fix linkage of libOpenCL
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>
Wed, 7 Aug 2013 15:48:48 +0000 (17:48 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 16 Aug 2013 23:52:31 +0000 (16:52 -0700)
Clover needs the option component of llvm.

Reviewed-by: Tom Stellard <tom@stellard.net>
Signed-off-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
configure.ac

index 62d06e0..0dcd2a5 100644 (file)
@@ -1617,6 +1617,10 @@ if test "x$enable_gallium_llvm" = xyes; then
             if $LLVM_CONFIG --components | grep -qw 'irreader'; then
                 LLVM_COMPONENTS="${LLVM_COMPONENTS} irreader"
             fi
+            # LLVM 3.4 requires Option
+            if $LLVM_CONFIG --components | grep -qw 'option'; then
+                LLVM_COMPONENTS="${LLVM_COMPONENTS} option"
+            fi
         fi
         DEFINES="${DEFINES} -DHAVE_LLVM=0x0$LLVM_VERSION_INT"
         MESA_LLVM=1