Originally committed as revision 23733 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård authored on 2010/06/23 11:13:54... | ... |
@@ -91,7 +91,7 @@ Configuration options: |
91 | 91 |
--enable-postproc enable GPLed postprocessing support [no] |
92 | 92 |
--disable-avfilter disable video filter support [no] |
93 | 93 |
--enable-avfilter-lavf video filters dependent on avformat [no] |
94 |
- --enable-pthreads use pthreads [no] |
|
94 |
+ --disable-pthreads disable pthreads [auto] |
|
95 | 95 |
--enable-w32threads use Win32 threads [no] |
96 | 96 |
--enable-x11grab enable X11 grabbing [no] |
97 | 97 |
--disable-network disable network support [no] |
... | ... |
@@ -2522,7 +2522,8 @@ disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib |
2522 | 2522 |
|
2523 | 2523 |
# check for some common methods of building with pthread support |
2524 | 2524 |
# do this before the optional library checks as some of them require pthreads |
2525 |
-if enabled pthreads; then |
|
2525 |
+if ! disabled pthreads && ! enabled w32threads; then |
|
2526 |
+ enable pthreads |
|
2526 | 2527 |
if check_func pthread_create; then |
2527 | 2528 |
: |
2528 | 2529 |
elif check_func pthread_create -pthread; then |
... | ... |
@@ -2534,7 +2535,7 @@ if enabled pthreads; then |
2534 | 2534 |
elif check_func pthread_create -lpthreadGC2; then |
2535 | 2535 |
add_extralibs -lpthreadGC2 |
2536 | 2536 |
elif ! check_lib pthread.h pthread_create -lpthread; then |
2537 |
- die "ERROR: can't find pthreads library" |
|
2537 |
+ disable pthreads |
|
2538 | 2538 |
fi |
2539 | 2539 |
fi |
2540 | 2540 |
|