On 19:35 Tue 09 Aug , Jean-Christophe PLAGNIOL-VILLARD wrote: > tested in buildroot any comments?
Best Regards, J. > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagn...@jcrosoft.com> > --- > configure.in | 7 +++++-- > 1 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/configure.in b/configure.in > index dfa1e8f..cfe2218 100644 > --- a/configure.in > +++ b/configure.in > @@ -1046,8 +1046,11 @@ build_usb=no > if test $build_jlink = yes -o $build_vsllink = yes -o $build_usbprog = yes > -o \ > $build_rlink = yes -o $build_ulink = yes -o $build_armjtagew = yes > then > - AC_CHECK_HEADERS([usb.h],[], > - [AC_MSG_ERROR([usb.h is required to build some OpenOCD driver(s)])]) > + dnl check for libusb > + PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.11) > + CFLAGS="$CFLAGS $LIBUSB_CFLAGS" > + LDFLAGS="$LFFLAGS $LIBUSB_LDFLAGS" > + LIBS="$LIBS $LIBUSB_LIBS" > build_usb=yes > fi > > -- > 1.7.5.4 _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development