configure.ac: report an error if LLVM shared libs are disabled and CL is enabled
authorMarek Olšák <marek.olsak@amd.com>
Mon, 7 Oct 2013 11:03:34 +0000 (13:03 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 8 Oct 2013 14:23:52 +0000 (16:23 +0200)
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
configure.ac

index 954616318d08e05c6b2138c8269de132029fc3e8..0d082d213b6923eb4b626514b3904f273573cf87 100644 (file)
@@ -1532,8 +1532,9 @@ AC_ARG_WITH([llvm-shared-libs],
     [with_llvm_shared_libs=no])
 AS_IF([test x$enable_opencl = xyes],
     [
-        AC_MSG_WARN([OpenCL required, forcing LLVM shared libraries])
-        with_llvm_shared_libs=yes
+        if test "x$with_llvm_shared_libs" != xyes; then
+            AC_MSG_ERROR([OpenCL requires LLVM shared libraries])
+        fi
     ])
 
 AC_ARG_WITH([llvm-prefix],