configure.ac: Improve a libusb-1.0 related check.
Don't rely on the "heuristic" that 'libusb_CFLAGS' will be non-empty if libusb-1.0 was found, but rather use the proper method of checking the variable 'have_libusb1_0' which pkg-config will set to "yes"/"no" depending on whether it finds the library.
This commit is contained in:
parent
3fd1d0ee1c
commit
ccf35720c0
|
@ -228,7 +228,7 @@ case "$build" in
|
||||||
LA_ZEROPLUS_LOGIC_CUBE="no"])
|
LA_ZEROPLUS_LOGIC_CUBE="no"])
|
||||||
|
|
||||||
# Define HAVE_LIBUSB_1_0 in config.h if we found libusb-1.0.
|
# Define HAVE_LIBUSB_1_0 in config.h if we found libusb-1.0.
|
||||||
if test "x$libusb_CFLAGS" != "x"; then
|
if test "x$have_libusb1_0" != "xno"; then
|
||||||
AC_DEFINE_UNQUOTED(HAVE_LIBUSB_1_0, [1],
|
AC_DEFINE_UNQUOTED(HAVE_LIBUSB_1_0, [1],
|
||||||
[Specifies whether we have a libusb.h header.])
|
[Specifies whether we have a libusb.h header.])
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue