[MPlayer-cvslog] r36454 - trunk/configure
reimar
subversion at mplayerhq.hu
Sat Sep 21 18:39:24 CEST 2013
Author: reimar
Date: Sat Sep 21 18:39:24 2013
New Revision: 36454
Log:
Autodetect if pthread_cancel is available.
Necessary for properly working reception of streams
via UDP, e.g. via FFmpeg's RTSP-over-UDP implementation.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure Sat Sep 21 17:55:28 2013 (r36453)
+++ trunk/configure Sat Sep 21 18:39:24 2013 (r36454)
@@ -3843,6 +3843,22 @@ else
fi
echores "$_pthreads"
+pthread_cancel=no
+if test "$_pthreads" = yes ; then
+ echocheck "pthread_cancel"
+cat > $TMPC << EOF
+#include <pthread.h>
+int main(void) { pthread_t t; return pthread_cancel(t); }
+EOF
+ cc_check $ld_pthread && pthread_cancel=yes
+ echores "$pthread_cancel"
+fi
+if test "$pthread_cancel" = yes ; then
+ def_pthread_cancel='#define HAVE_PTHREAD_CANCEL 1'
+else
+ def_pthread_cancel='#define HAVE_PTHREAD_CANCEL 0'
+fi
+
if cygwin ; then
if test "$_pthreads" = yes ; then
def_pthread_cache="#define PTHREAD_CACHE 1"
@@ -9038,6 +9054,7 @@ $def_local_aligned_16
$def_os2threads
$def_pic
$def_pthreads
+$def_pthread_cancel
$def_socklen_t
$def_struct_addrinfo
$def_struct_ipv6_mreq
@@ -9124,7 +9141,6 @@ $def_truncf
#define HAVE_MIPSDSPR1 0
#define HAVE_MIPSFPU 0
#define HAVE_MM_EMPTY 0
-#define HAVE_PTHREAD_CANCEL 0
#define HAVE_PPC4XX 0
#define HAVE_RDTSC 0
#define HAVE_STRERROR_R 0
More information about the MPlayer-cvslog
mailing list