AC_MSG_ERROR([Could not find usb library - please install libusb]))
*-*-freebsd*)
AC_DEFINE([HAVE_LIBUSB], [1], [Defined to 1 if libusb is wanted])
LIBUSB_LIBS="-lusb"
USB_LIBS="-lusb-1.0"
LIBUSB_CFLAGS=""
USB_FLAGS=""
AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])
;;
*)
PKG_CHECK_MODULES(LIBUSB, libusb-1.0, [AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have libusb-1.0])], [AC_MSG_ERROR([Could not find usb library - please install libusb-1.0])])
;;
esac
fi
fi
AC_SUBST(LIBUSB_LIBS)
PKG_PROG_PKG_CONFIG()
AC_SUBST(LIBUSB_CFLAGS)
PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.18.2], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.18.2])])
PKG_CHECK_MODULES([LIBCURL], [libcurl >= 7.18.2], ,[AC_MSG_ERROR([Missing required libcurl dev >= 7.18.2])])