Commit da764e5441aabbe02a4b0f1cee6832db5ccb138e

Con Kolivas 2011-09-23T10:04:09

Reset opencl flags if not detected to prevent build failure without opencl.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/configure.ac b/configure.ac
index c5cf3b0..95ce0f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,6 +126,9 @@ if test "x$opencl" != xno; then
 	found_opencl=0])
 	LIBS=$SAVED_LIBS
 	CFLAGS=$SAVED_CFLAGS
+else
+	OPENCL_FLAGS=""
+	OPENCL_LIBS=""
 fi
 
 AC_CHECK_LIB(pthread, pthread_create, ,