Add configure option to disable checking for libusb and hidapi
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
55a44a73bb
commit
28f8cf6e19
@ -74,18 +74,24 @@ AC_MSG_RESULT([$os_win32])
|
||||
AM_CONDITIONAL([OS_WIN32], [test "$os_win32" = "yes"])
|
||||
|
||||
# Checks for USB support.
|
||||
AC_ARG_ENABLE([libusb], AS_HELP_STRING([--disable-libusb], [Do not look for libusb]))
|
||||
AS_IF([test "x$enable_libusb" != "xno"], [
|
||||
PKG_CHECK_MODULES([LIBUSB], [libusb-1.0], [have_libusb=yes], [have_libusb=no])
|
||||
if test "$have_libusb" = "yes"; then
|
||||
AC_DEFINE([HAVE_LIBUSB], [1], [libusb support])
|
||||
AC_SUBST([DEPENDENCIES], [libusb-1.0])
|
||||
fi
|
||||
])
|
||||
|
||||
# Checks for hidapi support.
|
||||
AC_ARG_ENABLE([hidapi], AS_HELP_STRING([--disable-hidapi], [Do not look for hidapi]))
|
||||
AS_IF([test "x$enable_hidapi" != "xno"], [
|
||||
PKG_CHECK_MODULES([HIDAPI], [hidapi], [have_hidapi=yes], [have_hidapi=no])
|
||||
if test "$have_hidapi" = "yes"; then
|
||||
AC_DEFINE([HAVE_HIDAPI], [1], [hidapi support])
|
||||
AC_SUBST([DEPENDENCIES], [hidapi])
|
||||
fi
|
||||
])
|
||||
|
||||
# Checks for IrDA support.
|
||||
AC_CHECK_HEADERS([winsock2.h af_irda.h], [irda_win32=yes], [irda_win32=no], [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user