[Ffmpeg-cvslog] r7118 - trunk/configure
mru
subversion
Sat Nov 18 17:16:58 CET 2006
Author: mru
Date: Sat Nov 18 17:16:58 2006
New Revision: 7118
Modified:
trunk/configure
Log:
improved pthreads test
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Sat Nov 18 17:16:58 2006
@@ -1426,11 +1426,17 @@
# check for some common methods of building with pthread support
# do this before the optional library checks as some of them require pthreads
if enabled pthreads; then
- { check_cflags -pthread && check_ldflags -pthread; } ||
- { check_cflags -pthreads && check_ldflags -pthreads; } ||
- check_lib pthread.h pthread_create -lpthread ||
- check_func pthread_create ||
- die "ERROR: can't find pthreads library"
+ if check_func pthread_create; then
+ :
+ elif check_func pthread_create -pthread; then
+ add_cflags -pthread
+ add_ldflags -pthread
+ elif check_func pthread_create -pthreads; then
+ add_cflags -pthreads
+ add_ldflags -pthreads
+ elif ! check_lib pthread.h pthread_create -lpthread; then
+ die "ERROR: can't find pthreads library"
+ fi
fi
# these are off by default, so fail if requested and not available
More information about the ffmpeg-cvslog
mailing list