From 556eb032efb204bf155fa6cc7661a90ea195b4ab Mon Sep 17 00:00:00 2001
From: Joerg Wunsch <j@uriah.heep.sax.de>
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/avrdude@480 81a1dc3b-b13d-400b-aceb-764788c761c2
---
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 62f1550b..bb4c604d 100644
--- a/configure.ac
+++ b/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