Mercurial > mplayer.hg
comparison configure @ 36358:d53606fdb693
Autodetect if pthread_cancel is available.
Necessary for properly working reception of streams
via UDP, e.g. via FFmpeg's RTSP-over-UDP implementation.
author | reimar |
---|---|
date | Sat, 21 Sep 2013 16:39:24 +0000 |
parents | 4593e5141d8e |
children | 416614dd856b |
comparison
equal
deleted
inserted
replaced
36357:7dca7d4d4e54 | 36358:d53606fdb693 |
---|---|
3841 _nas=no ; _tv_v4l1=no ; _tv_v4l2=no | 3841 _nas=no ; _tv_v4l1=no ; _tv_v4l2=no |
3842 mingw32 || _win32dll=no | 3842 mingw32 || _win32dll=no |
3843 fi | 3843 fi |
3844 echores "$_pthreads" | 3844 echores "$_pthreads" |
3845 | 3845 |
3846 pthread_cancel=no | |
3847 if test "$_pthreads" = yes ; then | |
3848 echocheck "pthread_cancel" | |
3849 cat > $TMPC << EOF | |
3850 #include <pthread.h> | |
3851 int main(void) { pthread_t t; return pthread_cancel(t); } | |
3852 EOF | |
3853 cc_check $ld_pthread && pthread_cancel=yes | |
3854 echores "$pthread_cancel" | |
3855 fi | |
3856 if test "$pthread_cancel" = yes ; then | |
3857 def_pthread_cancel='#define HAVE_PTHREAD_CANCEL 1' | |
3858 else | |
3859 def_pthread_cancel='#define HAVE_PTHREAD_CANCEL 0' | |
3860 fi | |
3861 | |
3846 if cygwin ; then | 3862 if cygwin ; then |
3847 if test "$_pthreads" = yes ; then | 3863 if test "$_pthreads" = yes ; then |
3848 def_pthread_cache="#define PTHREAD_CACHE 1" | 3864 def_pthread_cache="#define PTHREAD_CACHE 1" |
3849 else | 3865 else |
3850 _stream_cache=no | 3866 _stream_cache=no |
9036 $def_local_aligned_8 | 9052 $def_local_aligned_8 |
9037 $def_local_aligned_16 | 9053 $def_local_aligned_16 |
9038 $def_os2threads | 9054 $def_os2threads |
9039 $def_pic | 9055 $def_pic |
9040 $def_pthreads | 9056 $def_pthreads |
9057 $def_pthread_cancel | |
9041 $def_socklen_t | 9058 $def_socklen_t |
9042 $def_struct_addrinfo | 9059 $def_struct_addrinfo |
9043 $def_struct_ipv6_mreq | 9060 $def_struct_ipv6_mreq |
9044 $def_struct_sockaddr_in6 | 9061 $def_struct_sockaddr_in6 |
9045 $def_struct_sockaddr_sa_len | 9062 $def_struct_sockaddr_sa_len |
9122 #define HAVE_LOCALTIME_R 0 | 9139 #define HAVE_LOCALTIME_R 0 |
9123 #define HAVE_MAPVIEWOFFILE 0 | 9140 #define HAVE_MAPVIEWOFFILE 0 |
9124 #define HAVE_MIPSDSPR1 0 | 9141 #define HAVE_MIPSDSPR1 0 |
9125 #define HAVE_MIPSFPU 0 | 9142 #define HAVE_MIPSFPU 0 |
9126 #define HAVE_MM_EMPTY 0 | 9143 #define HAVE_MM_EMPTY 0 |
9127 #define HAVE_PTHREAD_CANCEL 0 | |
9128 #define HAVE_PPC4XX 0 | 9144 #define HAVE_PPC4XX 0 |
9129 #define HAVE_RDTSC 0 | 9145 #define HAVE_RDTSC 0 |
9130 #define HAVE_STRERROR_R 0 | 9146 #define HAVE_STRERROR_R 0 |
9131 #define HAVE_STRPTIME 0 | 9147 #define HAVE_STRPTIME 0 |
9132 #define HAVE_STRUCT_POLLFD 0 | 9148 #define HAVE_STRUCT_POLLFD 0 |