find lib hidapi on modern openSUSE
There are now two flavors of hidapi and you need to use a different name to get one. Autoconf syntax is... insane. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b6df353752
commit
15d092277f
@ -126,6 +126,12 @@ AS_IF([test "x$with_hidapi" != "xno"], [
|
|||||||
AS_IF([test "x$have_hidapi" = "xyes"], [
|
AS_IF([test "x$have_hidapi" = "xyes"], [
|
||||||
AC_DEFINE([HAVE_HIDAPI], [1], [hidapi library])
|
AC_DEFINE([HAVE_HIDAPI], [1], [hidapi library])
|
||||||
DEPENDENCIES="$DEPENDENCIES hidapi"
|
DEPENDENCIES="$DEPENDENCIES hidapi"
|
||||||
|
], [
|
||||||
|
PKG_CHECK_MODULES([HIDAPI], [hidapi-libusb], [have_hidapi=yes], [have_hidapi=no])
|
||||||
|
AS_IF([test "x$have_hidapi" = "xyes"], [
|
||||||
|
AC_DEFINE([HAVE_HIDAPI], [1], [hidapi library])
|
||||||
|
DEPENDENCIES="$DEPENDENCIES hidapi"
|
||||||
|
])
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user