Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Suppressing libusb warnings.

  • Loading branch information...
commit 59f68c146774c30c2ad0e01019bbabeaceac8902 1 parent 6015158
@jrcutler authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 configure.ac
View
5 configure.ac
@@ -45,7 +45,10 @@ AC_SUBST(LT_AGE, 0)
## check for libraries
AS_IF([test "x$LINUX" = "xyes" ],
- [PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0)])
+ [PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0)
+ # suppress libusb header warnings (as needed)
+ AS_IF([test "x$enable_warnings" = "xyes"],
+ [LIBUSB_CFLAGS=$(echo "${LIBUSB_CFLAGS}" | sed -e 's|-I/|-isystem/|')])])
## checks for header files
AC_CHECK_HEADERS([getopt.h limits.h])
Please sign in to comment.
Something went wrong with that request. Please try again.