summaryrefslogtreecommitdiff
path: root/configure.ac
AgeCommit message (Collapse)AuthorFilesLines
2012-06-08Windows: Enable MinGW and MSVC DLL interchangeabilityPete Batard1-0/+2
* Because we use the WINAPI calling convention, the def file MUST have the @n aliases. There is no way around this as MinGW's .o use decoration always for __stdcall, which can't be turned off. * dlltool must therefore be invoked to create a proper import lib from the .def, using the --kill-at option. * To do that, a CREATE_IMPORT_LIB autotools variable is introduced. * Note: the .def file is currently maintained manually.
2012-06-07Windows: Fix possible crash when using longjmp and gcc 4.6Pete Batard1-1/+2
* With gcc-4.6 the option -fomit-frame-pointer is turned on per default even for the win32 target. This results in segfaults for any application using setjmp/longjmp and MSVCRT.dll on WinXP. See http://gcc.gnu.org/ml/gcc/2011-10/msg00351.html * Issue reported by Lars Kanis
2012-06-05Autotools: Fix versioning regression in configure.acPete Batard1-1/+1
* Because of missing [], "LIBUSB_MICROLIBUSB_RC" was being displayed in lieu of version number * Regression introduced with c9d41fe5f0324d969f758f42843e1fd05859f438
2012-06-04Core: Add toggleable debug loggingPete Batard1-2/+2
* Also fix a missing space in debug log messages introduced with the previous timestamp logging update
2012-06-04Autotools: Apply autoupdate 2.68 recommendationsLudovic Rousseau1-4/+4
* Not applied: AC_PREREQ([2.68]) as this doesn't seem necessary and 2.68 was released less than 2 years ago.
2012-05-06Core: Add a timestamping and thread ID to loggingPeter Stuge1-0/+1
2012-04-19BSD: add NetBSD experimental supportPete Batard1-26/+43
* also improve OS/backend selection in configure.ac * original libusb patches from Peter Stuge and Xiaofan Chen
2012-03-30Autotools: Fix package name and URLs in configure.acPete Batard1-1/+1
2012-03-28autotools: LT_LANG([Windows Resource]) makes windres check redundantPete Batard1-1/+0
2012-01-30OpenBSD backendMartin Pieuchot1-0/+12
2012-01-13configure.ac: Darwin: Move -lobjc from LIBS to PC_LIBS_PRIVATEXiaofan Chen1-2/+1
Since commit 40327cd134718475f6cec8935b856d4fdff2099c it is neccessary to explicitly include -lobjc not only when linking libusb itself, but also for programs linking statically against libusb. References #63. See also http://marc.info/?m=132505900202378
2011-10-17configure.ac: Enable libtool support for Windows Resource languagePeter Stuge1-0/+1
2011-10-17Support release candidate versions in configure.ac and libusb-1.0.rcPeter Stuge1-1/+5
2011-07-24configure.ac: Fix #97 clang warning about -fgnu89-inlineSean McBride1-7/+1
Remove the test that sets the flag since GNU89 inline semantics are not required by libusb. [stuge: Also remove reference to the test result]
2011-06-13Darwin: Fix #63 error when apps use Objective-C garbage collectionSean McBride1-0/+1
2011-06-13Move library version number from configure.ac to libusb/version.hPeter Stuge1-8/+12
This is neccessary to support native MS builds. The Windows resource file libusb/libusb-1.0.rc must include the release version, which was previously only available after configure had run and had substituted the numbers into a generated libusb/libusb-1.0.rc file. The version atoms are now stored as CPP style #defines in libusb/version.h so that the .rc no longer needs to be generated but can simply include the header file and access the version information directly. The m4 macro LU_DEFINE_VERSION_ATOM() was added to configure.ac to get version atoms from libusb/version.h for use in AC_INIT(). The macro handles C and C++ style comments in version.h, but can easily be made to fail by obscuring the file. Please don't do that. Tested with MinGW using autoconf, and manual compile of libusb-1.0.rc using RC.EXE Version 5.2.3690.0 from Visual C++ 2005 Express Edition.
2011-06-13Windows: Remove SetupAPI, AdvAPI32 and OLE32 link-time dependenciesPete Batard1-1/+1
* this ensures that libusb dependent applications only need to explicitly link against libusb on Windows The run-time dependency on Cfgmgr32.dll, OLE32.dll and SetupAPI.dll remains.
2011-06-13configure.ac: Refactor Windows backend settings into one occurencePeter Stuge1-12/+8
The Windows backend is used both with MinGW and Cygwin, and since most settings are identical they can be set in one place.
2011-06-13configure.ac: Rename AM_LDFLAGS to LTLDFLAGS and actually use themPeter Stuge1-8/+7
The new variable name tries to clarify that libtool is being used. Linker flags must thus always be specified with -Wl. Factor out the libtool flag -no-undefined from host specific cases. The flag is required to build a Windows DLL, but is correct also for the other supported systems. Also, start actually using LTLDFLAGS in libusb/Makefile.am, so that libtool will see the options set by configure.
2011-06-13configure.ac: Clean up PC_LIBS_PRIVATE and AM_LDFLAGSPeter Stuge1-2/+4
Move linker options for when linking the library itself from PC_LIBS_PRIVATE into AM_LDFLAGS. PC_LIBS_PRIVATE should only contain flags needed to link applications statically against libusb. Fixes #72.
2011-06-13configure.ac: Call AC_CONFIG_FILES() for each output filePeter Stuge1-1/+7
This avoids a problem with Windows line endings.
2011-06-13configure.ac: Whitespace changes and trivial reorderingPeter Stuge1-7/+4
2011-06-13configure.ac: Quote AC_COMPILE_IFELSE() inputPeter Stuge1-3/+3
2011-06-13configure.ac: Define booleans to 1 when set, instead of an empty stringPeter Stuge1-6/+6
This makes the generated config.h look a lot nicer.
2011-06-13configure.ac: Clean up redundancy and fix LIBS on LinuxPeter Stuge1-15/+9
LIBS, AM_LDFLAGS, OS_ conditionals and THREADS_POSIX had a bit of redundancy throughout the file, and on Linux LIBS ended up missing the -pthread flag.
2011-06-13configure.ac: Touch up Darwin and Cygwin OS messagesPeter Stuge1-2/+2
2011-06-13configure.ac: Do not use -pthread on DarwinPeter Stuge1-2/+1
It's not needed because Darwin has POSIX Threads in libc. Fixes #96.
2011-06-13configure.ac: Check for poll.h, and for nfds_t on DarwinPeter Stuge1-0/+9
On Linux, assume nfds_t is always available. On Darwin, fall back to unsigned int when poll() exists but there is no nfds_t, such as on Mac OS X before 10.4. On Windows (both MinGW and Cygwin), always use unsigned int instead of nfds_t, and don't check for poll.h because we use our own poll() implementation.
2010-11-26Remove USBI_OS_HANDLES_TIMEOUT and fix int/isoc timeouts on DarwinNathan Hjelm1-1/+0
Backends set USBI_TRANSFER_OS_HANDLES_TIMEOUT for transfers instead. Darwin only handles timeouts for bulk and control transfers, so the backend now sets that flag accordingly, making libusb core handle timeouts for interrupt and isochronous transfers. Fixes #31. Signed-off-by: Nathan Hjelm <hjelmn@me.com> [stuge: rework libusb_get_next_timeout() and enum usbi_transfer_flags] [stuge: fix typo; set USBI_TRANSFER_TIMED_OUT flag correctly]
2010-10-04Fix libtool version settingDaniel Drake1-6/+6
This was being set too early to take effect.
2010-10-04Populate the pkg-config Libs.private fieldMike Frysinger1-5/+12
2010-10-04Update libtool version infoDaniel Drake1-8/+11
With input from various people on the mailing list, update the libtool versioning info and start to update this on every release. The next libusb release will not need a change here. All following ones will.
2010-09-19MinGW: Use --add-stdcall-alias linker optionDaniel Drake1-1/+1
Naming of symbols inside the library is inconsistent on Windows: http://wyw.dcweb.cn/stdcall.htm Use this linker option to add aliases which add compatibility with the "MSVC DLL" platform when a DEF file is used. It also better matches the appearance of the Windows API itself.
2010-08-23Introduced calling convention (for Windows)Pete Batard1-2/+2
Under Windows, a variety of compilers and configurations are available, meaning that the manner of parameter passing (e.g. registers vs stack) can vary. Match the Windows API calling convention and document this appropriately. This calling convention will be used regardless of the configuration of the user's development platform. The only user-level complication is that all functions used as libusb callbacks must use the same calling convention as libusb. The LIBUSB_CALL macro is provided to make this easy. Signed-off-by: Michael Plante <michael.plante@gmail.com> Signed-off-by: Pete Batard <pbatard@gmail.com> [dsd: slight change of strategy, add documentation]
2010-08-06removed trailing whitespacesPete Batard1-1/+1
2010-07-27Add Windows supportPete Batard1-3/+40
Via Cygwin/MinGW, libusb now has windows support. Thanks to contributors: Michael Plante, Orin Eman, Peter Stuge, Stephan Meyer, Xiaofan Chen.
2010-07-22Only compile dpfp examples when sigaction is availableDaniel Drake1-0/+4
It's not available on MinGW.
2010-07-05configure.ac: fix bashismsAurelien Jarno1-3/+3
2010-06-25Only include sys/time.h on appropriate platformsDaniel Drake1-0/+3
This header doesn't exist on windows. For libusb, determine at configure-time if the header is available. For libusb.h, use gcc predefined macros to only include the header on platforms that need it.
2010-06-10add AM_MAINTAINER_MODELudovic Rousseau1-0/+2
2010-05-12Add internal abstraction for POSIX ThreadsPeter Stuge1-0/+7
This prepares for a Windows backend without dependency on pthreads-w32. pthread_* is renamed to usbi_* and PTHREAD_* to USBI_*. A usbi_mutex_static_t and usbi_mutex_static_lock() and _unlock() are introduced for statically initialized mutexes, since they may be implemented using other types when pthreads mutexes aren't used. Move -pthread from libusb/Makefile.am to host-specific THREAD_CFLAGS in configure.ac. This will enable optional use of -lpthread for cygwin. [dsd: minor tweaks, and roll in a change based on patches from Pete Batard to only build dpfp_threaded example when we're using pthreads]
2010-05-04v1.0.8 releaseDaniel Drake1-1/+1
2010-04-19v1.0.7 releaseDaniel Drake1-1/+1
2009-11-22v1.0.6 releaseDaniel Drake1-1/+1
2009-11-21Refine timerfd header check (#18)Daniel Drake1-3/+7
Require glibc-2.9 for the working timerfd support.
2009-11-15v1.0.5 releaseDaniel Drake1-1/+1
2009-11-07Use timerfd for timeout handlingDaniel Drake1-0/+24
Use a new file descriptor from the timerfd system calls to handle timeouts. On supported systems, this means that there is less hassle figuring out when the poll() timeout should be, since libusb_get_next_timeout() will always return 0 and the timeout events will be triggered as regular activity on the file descriptor set. Add API function libusb_pollfds_handle_timeouts() to detect whether you're on a platform with the timing headache, and flesh out the surrounding documentation.
2009-11-07Use AM_SILENT_RULES for buildingDaniel Drake1-0/+1
2009-11-06v1.0.4 releaseDaniel Drake1-1/+1
2009-08-27v1.0.3 releaseDaniel Drake1-1/+1