Enable pthread support in mpeglib on openbsd

Signed-off-by: François Andriot <francois.andriot@free.fr>
pull/1/head
François Andriot 10 years ago committed by Slávek Banko
parent 6726351d3b
commit ebafa74dc0

@ -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])

Loading…
Cancel
Save