diff options
author | Pete Batard <pbatard@gmail.com> | 2010-01-14 00:30:20 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-01-14 00:30:20 +0000 |
commit | df329ef40549e040d3638e18232ef41f89d47764 (patch) | |
tree | e767269410d10ed5e68e59912b73f90d5ed7b46a /configure.ac | |
parent | d5d7f721bb06a3c2f513826218c89fcbb50af8fd (diff) | |
download | libusb-df329ef40549e040d3638e18232ef41f89d47764.tar.gz |
mirror libusb-winusb git branch from 2009.12.03 part 2 - core files
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8aedfba..088c9ac 100644 --- a/configure.ac +++ b/configure.ac @@ -30,12 +30,22 @@ case $host in backend="darwin" AM_LDFLAGS="-Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind -no-undefined" ;; +*-mingw*) + AC_DEFINE(OS_WINDOWS, [], [Windows backend]) + AC_SUBST(OS_WINDOWS) + AC_DEFINE(USBI_OS_HANDLES_TIMEOUT, [], [Backend handles timeout]) + AC_MSG_RESULT([Windows]) + backend="windows" + LIBS="-lpthread -lsetupapi -lws2_32" + AM_LDFLAGS="" + ;; *) AC_MSG_ERROR([unsupported operating system]) esac AM_CONDITIONAL([OS_LINUX], [test "x$backend" == "xlinux"]) AM_CONDITIONAL([OS_DARWIN], [test "x$backend" == "xdarwin"]) +AM_CONDITIONAL([OS_WINDOWS], [test "x$backend" == "xwindows"]) # Library versioning lt_major="0" |