avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] libusb 1.0 on FreeBSD: please check other systems


From: Joerg Wunsch
Subject: [avrdude-dev] libusb 1.0 on FreeBSD: please check other systems
Date: Thu, 25 Aug 2011 20:48:52 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

A few months ago, Nils Springob added some logic to configure.ac to
detect the presence of a libusb-1.0 (in order to use it in the
AVRDoper code).

Now, FreeBSD 8 (and above) ships with a native (i.e., OS-supplied)
libusb which is compatible to both APIs, libusb-1.0 as well as
libusb-0.1.  All this is contained in a single library libusb.{a,so},
so only -lusb is needed.  (The 1.0 API is deliberately using
completely different library names, so both libs can coexist on the
same system.  Consequently, it's also simple to ship them within the
same physical library.)

I just added code to configure.ac to detect this situation, and
checked it works on FreeBSD.  The (expected) result there is:

checking for usb_get_string_simple in -lusb... yes
checking for libusb_init in -lusb-1.0... no
checking for libusb_init in -lusb... yes

Please check that all other systems that have a libusb-1.0 installed
still work.  The expected configure output there would be:

checking for usb_get_string_simple in -lusb... yes
checking for libusb_init in -lusb-1.0... yes
checking for libusb_init in -lusb... no

In both cases, the macro HAVE_LIBUSB_1_0 must be defined in ac_cfg.h
afterwards.
-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]