From 21b946baa51899ec8713e5dd91bc3e1915b52c99 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Mon, 20 Jun 2005 18:15:13 +0000 Subject: [PATCH] Change the check for libusb from using usb_open() to usb_get_string_simple() as the latter is only found in recent enough versions of libusb. That way, silently build without USB support unless a recent version is available. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@480 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/avrdude/configure.ac b/avrdude/configure.ac index 62f1550b..bb4c604d 100644 --- a/avrdude/configure.ac +++ b/avrdude/configure.ac @@ -44,7 +44,9 @@ AM_PROG_LEX AC_CHECK_LIB([termcap], [tputs]) AC_CHECK_LIB([ncurses], [tputs]) AC_CHECK_LIB([readline], [readline]) -AC_CHECK_LIB([usb], [usb_open]) +# usb_get_string_simple is only available in recent enough +# versions of libusb, so use that as a decision base. +AC_CHECK_LIB([usb], [usb_get_string_simple]) # Checks for header files. AC_HEADER_STDC