Browse Source

Merge commit 'bf495ac' into bfgminer

Luke Dashjr 12 years ago
parent
commit
472e21db4b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      configure.ac

+ 5 - 1
configure.ac

@@ -936,7 +936,11 @@ AM_CONDITIONAL([HAS_METABANK], [test x$metabank = xyes])
 
 
 if test "x$need_lowl_vcom" != "xno"; then
 if test "x$need_lowl_vcom" != "xno"; then
 	# Lowlevel VCOM doesn't need libusb, but it can take advantage of it to reattach drivers
 	# Lowlevel VCOM doesn't need libusb, but it can take advantage of it to reattach drivers
-	need_lowl_usb=yes
+	if test "x$libusb" != xno; then
+		need_lowl_usb=yes
+	elif test "x$libusb$want_libusb" = xnoyes; then
+		AC_MSG_ERROR([Could not find libusb, which you specifically requested])
+	fi
 fi
 fi
 
 
 if test "x$need_lowl_usb" = "xno"; then
 if test "x$need_lowl_usb" = "xno"; then