diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-11 18:02:28 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-11 18:02:28 +0200 |
commit | 15bec9c12fac932ab58bca4b9290739adfbad2d4 (patch) | |
tree | 101816e08a9eb174006f2e11eef551096a6d496f /m4 | |
parent | 7f681f2a62b500846ff337d5e75e915507d1751f (diff) | |
parent | 926542d8abcb138208a175ca09ef12e6a9f468f4 (diff) | |
download | xine-lib-15bec9c12fac932ab58bca4b9290739adfbad2d4.tar.gz xine-lib-15bec9c12fac932ab58bca4b9290739adfbad2d4.tar.bz2 |
Merge changes from 1.1 branch (where they still make sense).
Diffstat (limited to 'm4')
-rw-r--r-- | m4/pthreads.m4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/m4/pthreads.m4 b/m4/pthreads.m4 index 28d72dd4f..35193370d 100644 --- a/m4/pthreads.m4 +++ b/m4/pthreads.m4 @@ -36,11 +36,15 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [ [ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $cc_cv_werror $PTHREAD_CFLAGS" + LIBS="$LIBS $PTHREAD_LIBS" - AC_COMPILE_IFELSE( + AC_LINK_IFELSE( [AC_LANG_PROGRAM( - [[#include <pthread.h>]], - [[pthread_create(NULL, NULL, NULL, NULL);]] + [[#include <pthread.h> + void *fakethread(void *arg) { } + pthread_t fakevariable; + ]], + [[pthread_create(&fakevariable, NULL, &fakethread, NULL);]] )], [cc_cv_pthreads=yes], [cc_cv_pthreads=no]) |