mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-14 03:23:48 +00:00
- Fix missing checks reported by autoscan (we still do nothing on failure but at least the configure output might be more useful in case of problem);
- Lint configure output when libusb detection methods fallback over and over.
This commit is contained in:
@@ -18,8 +18,6 @@ AC_DEFUN([LIBNFC_CHECK_LIBUSB],
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for libusb)
|
||||
|
||||
# Search using libusb-config
|
||||
if test x"$HAVE_LIBUSB" = "x0"; then
|
||||
AC_PATH_PROG(libusb_CONFIG,libusb-config)
|
||||
@@ -40,10 +38,7 @@ AC_DEFUN([LIBNFC_CHECK_LIBUSB],
|
||||
fi
|
||||
|
||||
if test x"$HAVE_LIBUSB" = "x0"; then
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_ERROR([libusb is mandatory.])
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
fi
|
||||
|
||||
AC_SUBST(libusb_LIBS)
|
||||
|
||||
Reference in New Issue
Block a user