Browse Source

Merge branch 'uniscan2' into bfgminer

Luke Dashjr 12 years ago
parent
commit
59bdf03eb8
2 changed files with 19 additions and 3 deletions
  1. 3 0
      README
  2. 16 3
      configure.ac

+ 3 - 0
README

@@ -159,6 +159,9 @@ BFGMiner specific configuration options:
 	--without-curses        Compile support for curses TUI (default enabled)
 	--without-curses        Compile support for curses TUI (default enabled)
 	--without-libmicrohttpd Compile support for libmicrohttpd getwork server
 	--without-libmicrohttpd Compile support for libmicrohttpd getwork server
 	                        (default enabled)
 	                        (default enabled)
+	--without-libevent      Compile support for libevent stratum server (default
+	                        enabled)
+	--without-libusb        Compile using libusb (default enabled)
 	--without-libudev       Autodetect FPGAs using libudev (default enabled)
 	--without-libudev       Autodetect FPGAs using libudev (default enabled)
 
 
 Basic *nix build instructions:
 Basic *nix build instructions:

+ 16 - 3
configure.ac

@@ -503,6 +503,12 @@ PKG_PROG_PKG_CONFIG()
 
 
 libusb=no
 libusb=no
 libusb_include_path=""
 libusb_include_path=""
+AC_ARG_WITH([libusb],
+	[AC_HELP_STRING([--without-libusb],[Compile using libusb (default enabled)])],
+	[want_libusb=$withval],
+	[want_libusb=yes]
+	)
+if test "x$want_libusb" = "xyes"; then
 PKG_CHECK_MODULES([LIBUSB], [libusb-1.0],[
 PKG_CHECK_MODULES([LIBUSB], [libusb-1.0],[
 	libusb=yes
 	libusb=yes
 ],[
 ],[
@@ -529,6 +535,7 @@ PKG_CHECK_MODULES([LIBUSB], [libusb-1.0],[
 			],[#include <libusb.h>])
 			],[#include <libusb.h>])
 	fi
 	fi
 ])
 ])
+fi
 
 
 driverlist="$driverlist klondike"
 driverlist="$driverlist klondike"
 AC_ARG_ENABLE([klondike],
 AC_ARG_ENABLE([klondike],
@@ -536,7 +543,9 @@ AC_ARG_ENABLE([klondike],
 	[klondike=$enableval],
 	[klondike=$enableval],
 	[klondike=auto]
 	[klondike=auto]
 	)
 	)
-if test "x$klondike$libusb" = xyesno; then
+if test "x$klondike$want_libusb" = xyesno; then
+	AC_MSG_ERROR([You disabled libusb, required for Klondike support])
+elif test "x$klondike$libusb" = xyesno; then
 	AC_MSG_ERROR([Could not find libusb, required for Klondike support])
 	AC_MSG_ERROR([Could not find libusb, required for Klondike support])
 elif test "x$klondike" = xauto; then
 elif test "x$klondike" = xauto; then
 	klondike="$libusb"
 	klondike="$libusb"
@@ -559,7 +568,9 @@ AC_ARG_ENABLE([x6500],
 	[x6500=$enableval],
 	[x6500=$enableval],
 	[x6500=auto]
 	[x6500=auto]
 	)
 	)
-if test "x$x6500$libusb" = xyesno; then
+if test "x$x6500$want_libusb" = xyesno; then
+	AC_MSG_ERROR([You disabled libusb, required for X6500 support])
+elif test "x$x6500$libusb" = xyesno; then
 	AC_MSG_ERROR([Could not find libusb, required for X6500 support])
 	AC_MSG_ERROR([Could not find libusb, required for X6500 support])
 elif test "x$x6500" = xauto; then
 elif test "x$x6500" = xauto; then
 	x6500="$libusb"
 	x6500="$libusb"
@@ -583,7 +594,9 @@ AC_ARG_ENABLE([ztex],
 	[ztex=$enableval],
 	[ztex=$enableval],
 	[ztex=auto]
 	[ztex=auto]
 	)
 	)
-if test "x$ztex$libusb" = xyesno; then
+if test "x$ztex$want_libusb" = xyesno; then
+	AC_MSG_ERROR([You disabled libusb, required for ZTEX support])
+elif test "x$ztex$libusb" = xyesno; then
 	AC_MSG_ERROR([Could not find libusb, required for ZTEX support])
 	AC_MSG_ERROR([Could not find libusb, required for ZTEX support])
 elif test "x$ztex" = xauto; then
 elif test "x$ztex" = xauto; then
 	ztex="$libusb"
 	ztex="$libusb"