Check for pthread_yield() as not all platforms have that.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1044 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2006-06-20 14:22:34 +00:00
parent 6ca46f4d7a
commit 3b2835843e

View file

@ -174,6 +174,17 @@ if test "x$acx_pthread_ok" = xyes; then
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
fi
AC_MSG_CHECKING([if pthread_yield is available])
flag=no
AC_TRY_LINK([#include <pthread.h>],
[pthread_yield();],
[flag=yes])
AC_MSG_RESULT(${flag})
if test "x$flag" != xno; then
AC_DEFINE(HAVE_PTHREAD_YIELD, 1,
[Define to 1 if you have the 'pthread_yield' function.])
fi
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"