mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
Revert "configure.ac: Don't use pkg-config to search for libusb-1.0 on FreeBSD"
This reverts commit d0c10b78beadc677d3079a8393db1f9af3d37195. Rollback breakage.
This commit is contained in:
parent
aa72db369e
commit
2696738633
10
configure.ac
10
configure.ac
@ -346,15 +346,7 @@ AM_CONDITIONAL([HAVE_LIBUDEV], [test x$libudev != xno])
|
|||||||
PKG_PROG_PKG_CONFIG()
|
PKG_PROG_PKG_CONFIG()
|
||||||
|
|
||||||
if test "x$ztex" != xno; then
|
if test "x$ztex" != xno; then
|
||||||
case $target in
|
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])])
|
||||||
*-*-freebsd*)
|
|
||||||
LIBUSB_LIBS="-lusb"
|
|
||||||
LIBUSB_CFLAGS=""
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
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])])
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
USB_LIBS="$LIBUSB_LIBS"
|
USB_LIBS="$LIBUSB_LIBS"
|
||||||
USB_FLAGS="$LIBUSB_CFLAGS"
|
USB_FLAGS="$LIBUSB_CFLAGS"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user