mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
configure: put pthread_create() check back
Unbreaks freebsd, broken since f058f384a0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
be2312aa8f
commit
749eb46d64
10
configure
vendored
10
configure
vendored
@ -4254,17 +4254,17 @@ fi
|
||||
# do this before the optional library checks as some of them require pthreads
|
||||
if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then
|
||||
enable pthreads
|
||||
if check_func pthread_join; then
|
||||
if check_func pthread_join && check_func pthread_create; then
|
||||
:
|
||||
elif check_func pthread_join -pthread; then
|
||||
elif check_func pthread_join -pthread && check_func pthread_create -pthread; then
|
||||
add_cflags -pthread
|
||||
add_extralibs -pthread
|
||||
elif check_func pthread_join -pthreads; then
|
||||
elif check_func pthread_join -pthreads && check_func pthread_create -pthreads; then
|
||||
add_cflags -pthreads
|
||||
add_extralibs -pthreads
|
||||
elif check_func pthread_join -lpthreadGC2; then
|
||||
elif check_func pthread_join -lpthreadGC2 && check_func pthread_create -lpthreadGC2; then
|
||||
add_extralibs -lpthreadGC2
|
||||
elif ! check_lib pthread.h pthread_join -lpthread; then
|
||||
elif ! check_lib pthread.h pthread_join -lpthread && ! check_lib pthread.h pthread_create -lpthread; then
|
||||
disable pthreads
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user