Estou construindo o vice da fonte (r33116) no Ubuntu 14.04 e obtenho isso de ./configure
:
INPUT
-----
Joystick support : yes
Mouse support : yes
Lightpen support : yes
Linux style joystick support: yes
BSD style joystick support : no
Digital joystick support : no
USB joystick support : no
Eu vejo esta seção em configure.ac:
dnl NetBSD/FreeBSD USB joystick support
usbhid_header=no
usbhid_lib=no
usb_lib=no
AC_CHECK_LIB(usbhid, hid_get_report_desc, usbhid_lib=yes)
if test x"$usbhid_lib" = "xyes" ; then
AC_CHECK_HEADER(usbhid.h,
[AC_DEFINE(HAVE_USBHID_H,1,
[Define to 1 if you have the <usbhid.h> header file.])
usb_header=yes])
AC_CHECK_HEADER(libusbhid.h,
[AC_DEFINE(HAVE_LIBUSBHID_H,1,
[Define to 1 if you have the <libusbhid.h> header file.])
usb_header=yes])
if test x"$usb_header" = "xyes" ; then
AC_DEFINE(HAS_USB_JOYSTICK,,[Enable emulation for USB joysticks.])
JOY_LIBS="-lusbhid"
HAS_USB_JOYSTICK_SUPPORT="yes"
fi
else
AC_CHECK_LIB(usb, hid_get_report_desc, usb_lib=yes)
if test x"$usb_lib" = "xyes"; then
AC_CHECK_HEADER(usb.h,
[AC_DEFINE(HAVE_USB_H,1,
[Define to 1 if you have the <usb.h> header file.])
usb_header=yes])
AC_CHECK_HEADER(libusb.h,
[AC_DEFINE(HAVE_LIBUSB_H,1,
[Define to 1 if you have the <libusb.h> header file.])
usb_header=yes])
if test x"$usb_header" = "xyes" ; then
AC_DEFINE(HAS_USB_JOYSTICK,,[Enable emulation for USB joysticks.])
JOY_LIBS="-lusb"
HAS_USB_JOYSTICK_SUPPORT="yes"
fi
fi
fi
Eu tenho /usr/include/libusb-1.0/libusb.h
(eu não acho que o Ubuntu tenha pacotes com libusbhid.h ou usbhid.h), não deveria o acima ser encontrado?