- if test x$libusbok = xyes; then
- if test x$have_libusb1 = xyes; then
- AC_DEFINE(HAVE_LIBUSB_1, [1], [Define if libusb-1.0 found])
- fi
- AC_OUTPUT_COMMANDS([
- case "$CONFIG_OTHER" in
- usrp*)
- outfile=usrp/host/include/usrp/$CONFIG_OTHER
- tmpfile=${outfile}T
- dirname="sed s,^.*/,,g"
+ if test [x]$1 = xyes; then
+ PKG_CHECK_MODULES(USB, libusb-1.0, [have_libusb1=yes], [libusbok=no])
+ else
+ PKG_CHECK_MODULES(USB, libusb, [have_libusb1=no], [libusbok=no])
+ fi
+
+ if test x$libusbok = xyes; then
+ if test x$have_libusb1 = xyes; then
+ AC_DEFINE(HAVE_LIBUSB_1, [1], [Define if libusb-1.0 found])
+ fi
+ AC_OUTPUT_COMMANDS([
+ case "$CONFIG_OTHER" in
+ usrp*)
+ outfile=usrp/host/include/usrp/$CONFIG_OTHER
+ tmpfile=${outfile}T
+ dirname="sed s,^.*/,,g"