configure: Explicitly disable w32threads if the test for it fails
authorDiego Biurrun <diego@biurrun.de>
Mon, 23 Dec 2013 03:24:52 +0000 (04:24 +0100)
committerDiego Biurrun <diego@biurrun.de>
Wed, 25 Dec 2013 12:00:49 +0000 (13:00 +0100)
This avoids false positive enabling of w32threads if explicitly
requested on the command line, but dependencies are missing.

configure

index 69bdefc..8cf25ab 100755 (executable)
--- a/configure
+++ b/configure
@@ -3850,7 +3850,8 @@ check_header windows.h
 check_header X11/extensions/XvMClib.h
 
 if ! disabled w32threads && ! enabled pthreads; then
-    check_func_headers "windows.h process.h" _beginthreadex && enable w32threads
+    check_func_headers "windows.h process.h" _beginthreadex &&
+        enable w32threads || disable w32threads
 fi
 
 # check for some common methods of building with pthread support