mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2025-04-21 12:27:27 +03:00
Use pkg-config to detect libusb-1.0.
This commit is contained in:
@@ -49,10 +49,7 @@ AC_CHECK_LIB([usb], [main], [], [
|
||||
echo "Error! You need to have libusb-0.1. \n"
|
||||
echo "Maybe run 'sudo apt-get install libusb-dev' under debian"
|
||||
exit -1 ])
|
||||
AC_CHECK_LIB([usb-1.0], [main], [], [
|
||||
echo "Error! You need to have libusb-1.0. \n"
|
||||
echo "Maybe run 'sudo apt-get install libusb1.0-0-dev' under debian"
|
||||
exit -1 ])
|
||||
PKG_CHECK_MODULES([LIBUSB1], [libusb-1.0])
|
||||
|
||||
AC_ARG_WITH([readline],
|
||||
[AS_HELP_STRING([--with-readline],
|
||||
@@ -73,8 +70,8 @@ AS_IF([test "x$with_readline" != xno],
|
||||
fi
|
||||
], -lncurses)])
|
||||
|
||||
LIBS="$LIBS $USB_LIBS $READLINE_LIBS"
|
||||
CFLAGS="$CFLAGS $USB_CFLAGS"
|
||||
LIBS="$LIBS $USB_LIBS $READLINE_LIBS $LIBUSB1_LIBS"
|
||||
CFLAGS="$CFLAGS $USB_CFLAGS $LIBUSB1_CFLAGS"
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
|
||||
2
jzboot
2
jzboot
Submodule jzboot updated: 8b4338fc90...04ed523633
Reference in New Issue
Block a user