mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-10 05:54:21 +00:00
configure.ac: Support FreeBSD libusb which doesn't have libusb-1.0.pc
This commit is contained in:
parent
318ef85a9f
commit
30c5a16679
@ -345,6 +345,11 @@ PKG_PROG_PKG_CONFIG()
|
|||||||
|
|
||||||
if test "x$ztex" != xno; then
|
if test "x$ztex" != xno; then
|
||||||
case $target in
|
case $target in
|
||||||
|
*-*-freebsd*)
|
||||||
|
LIBUSB_LIBS="-lusb"
|
||||||
|
LIBUSB_CFLAGS=""
|
||||||
|
AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
PKG_CHECK_MODULES(LIBUSB, libusb-1.0, [AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])], [AC_MSG_ERROR([Could not find usb library - please install libusb-1.0])])
|
PKG_CHECK_MODULES(LIBUSB, libusb-1.0, [AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])], [AC_MSG_ERROR([Could not find usb library - please install libusb-1.0])])
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user