[FFmpeg-cvslog] configure: add check for w32threads to enable it automatically

Janne Grunau git at videolan.org
Sat Nov 19 02:09:45 CET 2011


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Tue Nov  1 20:41:43 2011 +0100| [ff3755cbde9bdd2a4dc50e4432f72ddeef1a85ac] | committer: Janne Grunau

configure: add check for w32threads to enable it automatically

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ff3755cbde9bdd2a4dc50e4432f72ddeef1a85ac
---

 configure |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 6e4259f..61bb4df 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



More information about the ffmpeg-cvslog mailing list