Browse Source

Bugfix: configure: We need DLOPEN_FLAGS for lowlevel hid too

Luke Dashjr 12 years ago
parent
commit
9684782938
1 changed files with 4 additions and 2 deletions
  1. 4 2
      configure.ac

+ 4 - 2
configure.ac

@@ -223,8 +223,6 @@ AC_ARG_ENABLE([opencl],
 	)
 if test "x$opencl" = xyes; then
 	AC_DEFINE([HAVE_OPENCL], [1], [Defined to 1 if OpenCL support is wanted])
-else
-	DLOPEN_FLAGS=""
 fi
 AM_CONDITIONAL([HAVE_OPENCL], [test x$opencl = xyes])
 
@@ -789,6 +787,10 @@ if test x$need_fpgautils = xyes; then
 	fi
 fi
 
+if test "x$opencl$need_lowl_hid" = xnono; then
+	DLOPEN_FLAGS=""
+fi
+
 if test x$need_lowl_hid = xyes; then
 	AC_DEFINE([NEED_BFG_LOWL_HID], [1], [Defined to 1 if lowlevel hid drivers are being used])
 	need_lowlevel=yes