mirror of
https://github.com/X11Libre/xf86-input-joystick.git
synced 2026-04-14 11:54:23 +00:00
Fix check for BSD dev/usb/usbhid.h (needs dev/usb/usb.h).
This commit is contained in:
@@ -89,7 +89,12 @@ if test "x$linux_backend" = xyes; then
|
||||
fi
|
||||
|
||||
bsd_backend=yes
|
||||
AC_CHECK_HEADERS([usbhid.h dev/usb/usb.h dev/usb/usbhid.h],, [bsd_backend=no])
|
||||
AC_CHECK_HEADERS([dev/usb/usb.h])
|
||||
AC_CHECK_HEADERS([usbhid.h dev/usb/usbhid.h],, [bsd_backend=no],
|
||||
[[#if HAVE_DEV_USB_USB_H
|
||||
#include <dev/usb/usb.h>
|
||||
#endif
|
||||
]])
|
||||
AC_CHECK_LIB([usbhid],[hid_get_item],, [bsd_backend=no])
|
||||
AM_CONDITIONAL(BSD_BACKEND, [test "x$bsd_backend" = xyes])
|
||||
if test "x$bsd_backend" = xyes; then
|
||||
|
||||
Reference in New Issue
Block a user