X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=configure.ac;h=87f95d5dd19486d23940bdfc087e94f51d53d9eb;hp=95c3eb246b9d24442d276e90ebdbce62be09a8ea;hb=80d01ca975b3e00e9aba0089a4d0a5c7d8e3f2e0;hpb=0b5bd6b01e247496ec89a6ecd882269161a1a1fe diff --git a/configure.ac b/configure.ac index 95c3eb246b..87f95d5dd1 100644 --- a/configure.ac +++ b/configure.ac @@ -1128,7 +1128,8 @@ if test $build_ft2232_libftdi = yes -o $build_usb_blaster_libftdi = yes -o \ ], [ AC_MSG_ERROR([Cannot build & run test program using libftdi]) ], [ - AC_MSG_RESULT([Skipping as we are cross-compiling]) + AC_MSG_RESULT([Skipping as we are cross-compiling, trying build only]) + AC_SEARCH_LIBS([ftdi_new], [], [], [AC_MSG_ERROR([Cannot link with libftdi])]) ]) AC_MSG_CHECKING([for libftdi highspeed device support]) @@ -1199,10 +1200,10 @@ fi use_libusb1=no if test $need_usb = yes -o $need_usb_ng = yes; then AC_CHECK_HEADER([libusb-1.0/libusb.h], [ - AC_DEFINE(HAVE_LIBUSB1, 1, [Define if you have libusb-1.x]) + AC_DEFINE([HAVE_LIBUSB1], [1], [Define if you have libusb-1.x]) use_libusb1=yes AC_SEARCH_LIBS([libusb_error_name], [usb-1.0], - [AC_DEFINE(HAVE_LIBUSB_ERROR_NAME, 1, [Define if your libusb has libusb_error_name()])], + [AC_DEFINE([HAVE_LIBUSB_ERROR_NAME], [1], [Define if your libusb has libusb_error_name()])], [AC_MSG_WARN([libusb-1.x older than 1.0.9 detected, consider updating])]) ], [ if test $need_usb_ng = yes; then