summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-11-26 19:51:15 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-11-26 19:51:15 +0100
commitebafa74dc01fc4be6087e36bcd139b01d5a9a9e4 (patch)
tree50d0156f4deed59de335f0993461dcb75bc013e8
parent6726351d3bfb6624669f37a849984f6aeccac0b0 (diff)
downloadtdemultimedia-ebafa74dc01fc4be6087e36bcd139b01d5a9a9e4.tar.gz
tdemultimedia-ebafa74dc01fc4be6087e36bcd139b01d5a9a9e4.zip
Enable pthread support in mpeglib on openbsd
Signed-off-by: François Andriot <francois.andriot@free.fr>
-rw-r--r--mpeglib/configure.in.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/mpeglib/configure.in.in b/mpeglib/configure.in.in
index 28a57cf0..e90b7539 100644
--- a/mpeglib/configure.in.in
+++ b/mpeglib/configure.in.in
@@ -158,6 +158,9 @@ case "$OS_TYPE" in
NetBSD)
kde_mpeglib_compiles=yes
;;
+ OpenBSD)
+ kde_mpeglib_compiles=yes
+ ;;
Linux)
kde_mpeglib_compiles=yes
;;
@@ -188,6 +191,12 @@ case "$OS_TYPE" in
AC_DEFINE(OS_Linux,1,[Define if you have linux pthread])
;;
+ OpenBSD)
+ OS_TYPE="BSD"
+ AC_CHECK_LIB(c_r, pthread_create, [LIBPTHREAD="-pthread"])
+ AC_DEFINE(OS_BSD,1,[Define if you have BSD pthread])
+ ;;
+
FreeBSD | DragonFly)
OS_TYPE="BSD"
AC_DEFINE(OS_BSD,1,[Define if you have BSD pthread])