summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2011-11-01 20:41:43 +0100
committerJanne Grunau <janne-libav@jannau.net>2011-11-18 22:36:06 +0100
commitff3755cbde9bdd2a4dc50e4432f72ddeef1a85ac (patch)
tree8033b08a165b044c1ade14393d473d6d862cd8bd /configure
parent704af3e29c3ddbc22ac5c8f40e5a0f860d53ac4c (diff)
configure: add check for w32threads to enable it automatically
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 6e4259f903..61bb4dfb54 100755
--- a/configure
+++ b/configure
@@ -2447,7 +2447,6 @@ case $target_os in
disable network
else
target_os=mingw32
- enable_weak w32threads
fi
LIBTARGET=i386
if enabled x86_64; then
@@ -2852,6 +2851,10 @@ check_struct dxva2api.h DXVA_PictureParameters wDecodedPictureIndex
disabled zlib || check_lib zlib.h zlibVersion -lz || disable zlib
disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib
+if ! disabled w32threads && ! enabled pthreads; then
+ check_func _beginthreadex && enable w32threads
+fi
+
# check for some common methods of building with pthread support
# do this before the optional library checks as some of them require pthreads
if ! disabled pthreads && ! enabled w32threads; then