diff options
author | Pete Batard <pbatard@gmail.com> | 2010-03-26 18:03:15 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-03-26 18:03:15 +0000 |
commit | fed2c798668a0d2ec3693ae5a314e35d38f05833 (patch) | |
tree | faf6630b588f233d60ec34db415a95eeee2e95c8 | |
parent | 595f4c3ff189205f7bf0a073da232e488f9f2928 (diff) | |
download | libusb-fed2c798668a0d2ec3693ae5a314e35d38f05833.tar.gz |
configure.ac improvements (threads detection, AC_INIT)r228
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a0abae3..fcd6c47 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([libusb], [1.0.6]) +AC_INIT([libusb], [1.0.7], [libusb-devel@lists.sourceforge.net], [libusb], [http://www.libusb.org]) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([libusb/core.c]) AC_CONFIG_MACRO_DIR([m4]) @@ -11,7 +11,6 @@ AC_PROG_LIBTOOL AC_C_INLINE AM_PROG_CC_C_O AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions]) -AC_DEFINE([POSIX_THREADS], [], [Posix Threads]) AC_MSG_CHECKING([operating system]) case $host in @@ -20,6 +19,7 @@ case $host in AC_SUBST(OS_LINUX) AC_MSG_RESULT([Linux]) backend="linux" + AC_DEFINE([POSIX_THREADS], [], [Posix Threads]) threads="posix" AC_CHECK_LIB(rt, clock_gettime) AM_CFLAGS="-pthread -Wshadow" @@ -31,6 +31,7 @@ case $host in AC_DEFINE(USBI_OS_HANDLES_TIMEOUT, [], [Backend handles timeout]) AC_MSG_RESULT([Darwin/MacOS X]) backend="darwin" + AC_DEFINE([POSIX_THREADS], [], [Posix Threads]) threads="posix" AM_CFLAGS="-pthread -Wshadow" AM_LDFLAGS="-Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind -no-undefined" @@ -51,6 +52,7 @@ case $host in AC_SUBST(OS_WINDOWS) AC_MSG_RESULT([Windows]) backend="windows" + AC_DEFINE([POSIX_THREADS], [], [Posix Threads]) threads="posix" LIBS="-lpthread -lsetupapi -lole32" AM_CFLAGS="" |