]> wimlib.net Git - wimlib/blobdiff - configure.ac
Use native Windows threads on Windows
[wimlib] / configure.ac
index afeffd8ce86772cb36c628e95ebe424a8afc5716..3028f88df1e360f16545c4a20fb87a3c691a0529 100644 (file)
@@ -106,7 +106,9 @@ AC_CHECK_DECL([__NR_getrandom],
 ###############################################################################
 
 # ------------------------------ pthreads -------------------------------------
-AX_PTHREAD([], [AC_MSG_ERROR(["cannot find pthreads library"])])
+if test "$WINDOWS_NATIVE_BUILD" != "yes"; then
+       AX_PTHREAD([], [AC_MSG_ERROR(["cannot find pthreads library"])])
+fi
 
 # ------------------------------ libxml2 --------------------------------------
 PKG_CHECK_MODULES([LIBXML2], [libxml-2.0])