From 4a17dbdd2aa2f5967a8ab4213cb0d1aee39aca09 Mon Sep 17 00:00:00 2001 From: joerg_wunsch Date: Thu, 17 Aug 2006 22:44:34 +0000 Subject: [PATCH] (AC_CHECK_LIB[usb]) Fix the generation of HAVE_LIBUSB in ac_cfg.h. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@612 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 2 ++ configure.ac | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 90de0718..986c59fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ * stk500v2.c: unreverse the argument order for CMD_CHIP_ERASE_HVSP; Atmel says AVR068 is right, and stk500.exe is wrong. + * configure.ac (AC_CHECK_LIB[usb]): Fix the generation + of HAVE_LIBUSB in ac_cfg.h. 2006-08-17 Joerg Wunsch diff --git a/configure.ac b/configure.ac index 6145959a..fe17d7e9 100644 --- a/configure.ac +++ b/configure.ac @@ -47,7 +47,10 @@ AC_CHECK_LIB([readline], [readline]) # 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], - [LIBUSB=-lusb], + [LIBUSB=-lusb + AC_DEFINE([HAVE_LIBUSB], + [1], + [Define to 1 if libusb is available.])], [LIBUSB=]) AC_SUBST(LIBUSB, $LIBUSB)