summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-02 11:11:08 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-02 11:11:56 +0100
commit749eb46d643a440892ae1d0f36f2a9d0b003d78b (patch)
tree044b48c258963d7881129d24807802238a795803 /configure
parentbe2312aa8f05a301ccc90c60a6671c33b371e370 (diff)
configure: put pthread_create() check back
Unbreaks freebsd, broken since f058f384a0d76bfd125f4738dceab7c890186432 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index b9104bb517..c5c58cfe30 100755
--- a/configure
+++ b/configure
@@ -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