From a7a510a1791c7139bbb9fa18c5a9e1ed9aa3226d Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Fri, 26 Aug 2011 21:05:53 +0000 Subject: [PATCH] Add -lusb as "other libraries" when checking for libftdi. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@993 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 5 +++++ configure.ac | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd457e2b..b099a8e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-08-26 Joerg Wunsch + + * configure.ac: add -lusb as "other libraries" when checking + for libftdi. + 2011-08-26 Joerg Wunsch Submitted by Juergen Weigert: diff --git a/configure.ac b/configure.ac index 8a03792c..e6e4a39a 100644 --- a/configure.ac +++ b/configure.ac @@ -105,9 +105,9 @@ fi AC_SUBST(LIBUSB_1_0, $LIBUSB_1_0) AH_TEMPLATE([HAVE_LIBFTDI], [Define if FTDI support is enabled via libftdi]) -AC_CHECK_LIB([ftdi], [ftdi_init], [have_libftdi=yes]) +AC_CHECK_LIB([ftdi], [ftdi_init], [have_libftdi=yes], [], [-lusb]) if test x$have_libftdi = xyes; then - LIBFTDI="-lftdi" + LIBFTDI="-lftdi -lusb" AC_DEFINE([HAVE_LIBFTDI]) fi AC_SUBST(LIBFTDI, $LIBFTDI)