[vlc-devel] commit: Properly detect POSIX threads on OpenBSD. (Brad )

git version control git at videolan.org
Thu Jun 11 22:26:26 CEST 2009


vlc | branch: master | Brad <brad at comstyle.com> | Thu Jun 11 16:09:12 2009 -0400| [bb1d1eb5e7ac1e923ec5654c8b44a372b64b9964] | committer: Rémi Denis-Courmont 

Properly detect POSIX threads on OpenBSD.

The following diff for VLC 1.0.0rc3 corrects the detection of POSIX threads
on OpenBSD.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bb1d1eb5e7ac1e923ec5654c8b44a372b64b9964
---

 configure.ac |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9e5e89d..7ecf0bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -840,6 +840,9 @@ if test "${THREAD_LIB}" = "error"; then
   AC_CHECK_LIB(c_r,main,THREAD_LIB="-lc_r")
 fi
 if test "${THREAD_LIB}" = "error"; then
+  AC_CHECK_LIB(pthread,main,THREAD_LIB="-pthread")
+fi
+if test "${THREAD_LIB}" = "error"; then
   AC_CHECK_FUNCS(pthread_mutex_lock)
   THREAD_LIB=""
 fi




More information about the vlc-devel mailing list