aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@openbsd.org>2012-01-30 09:59:30 +0100
committerPeter Stuge <peter@stuge.se>2012-01-30 10:43:46 +0100
commitc56828857eb7ba6fb4f7701693dbb3fe4e75d5f6 (patch)
tree41d76c9acab7bdac4bdd6cecb8b5e9de739d8a51 /configure.ac
parentd2285744c7fa4007bb411be354268209d350b0f2 (diff)
downloadandroid_external_libusbx-c56828857eb7ba6fb4f7701693dbb3fe4e75d5f6.tar.gz
android_external_libusbx-c56828857eb7ba6fb4f7701693dbb3fe4e75d5f6.tar.bz2
android_external_libusbx-c56828857eb7ba6fb4f7701693dbb3fe4e75d5f6.zip
OpenBSD backend
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8830582..ebbc107 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,6 +72,17 @@ case $host in
[AC_DEFINE([POLL_NFDS_TYPE],[unsigned int],[type of second poll() argument])],
[#include <poll.h>])
;;
+*-openbsd*)
+ AC_DEFINE(OS_OPENBSD, 1, [OpenBSD backend])
+ AC_SUBST(OS_OPENBSD)
+ AC_MSG_RESULT([OpenBSD])
+ backend="openbsd"
+ threads="posix"
+ THREAD_CFLAGS="-pthread"
+ PC_LIBS_PRIVATE="-pthread"
+ AC_CHECK_HEADERS([poll.h])
+ AC_DEFINE([POLL_NFDS_TYPE],[nfds_t],[type of second poll() argument])
+ ;;
*-mingw*)
AC_MSG_RESULT([Windows])
backend="windows"
@@ -98,6 +109,7 @@ LIBS="${LIBS} ${PC_LIBS_PRIVATE}"
AM_CONDITIONAL(OS_LINUX, test "x$backend" = xlinux)
AM_CONDITIONAL(OS_DARWIN, test "x$backend" = xdarwin)
+AM_CONDITIONAL(OS_OPENBSD, test "x$backend" = xopenbsd)
AM_CONDITIONAL(OS_WINDOWS, test "x$backend" = xwindows)
AM_CONDITIONAL(THREADS_POSIX, test "x$threads" = xposix)
if test "$threads" = posix; then