libaacs | branch: master | npzacs <[email protected]> | Sun Feb 24 13:18:27 2013 
+0200| [5e3c27248d64f696624a158ae9ff5270724a16dd] | committer: npzacs

configure: updated pthread test

> http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=5e3c27248d64f696624a158ae9ff5270724a16dd
---

 configure.ac |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index f116418..2a97c7e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -121,12 +121,15 @@ AC_CHECK_FUNC([snprintf],, 
[AC_MSG_ERROR($function_not_found)])
 
 AC_CHECK_FUNC([realpath],[AC_DEFINE([HAVE_REALPATH],[1],[realpath])])
 
+dnl required libraries
+
 dnl pthread check (not on win32)
-if test "${SYS}" != "mingw32" ; then
-  AC_CHECK_HEADERS([pthread.h])
-  AC_CHECK_LIB([pthread], [pthread_mutex_init],,
-    [AC_MSG_ERROR($library_not_found)])
-fi
+AS_IF([test "${SYS}" != "mingw32"], [
+  AC_CHECK_HEADERS([pthread.h], ,
+    [AC_MSG_ERROR([pthread required])])
+  AC_SEARCH_LIBS([pthread_create], [pthread], ,
+    [AC_MSG_ERROR([pthread required])])
+])
 
 dnl gcrypt check
 

_______________________________________________
libaacs-devel mailing list
[email protected]
http://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to