aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac19
1 files changed, 13 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 784698f94..8a37cac72 100644
--- a/configure.ac
+++ b/configure.ac
@@ -178,12 +178,19 @@ if ! test "${with_only_libndpi+set}" = set; then :
JSONC_LIBS=""
JSONC_CFLAGS=""
])
- AX_PTHREAD([],[
- AC_MSG_WARN([POSIX Threads not available. Building library only.])
- JSONC_LIBS=""
- JSONC_CFLAGS=""
- EXTRA_TARGETS=""
- ])
+ dnl> AX_PTHREAD test does not work along with MingW/MSYS anymore
+ case "$host" in
+ *-*-mingw32*|*-*-msys)
+ ;;
+ *)
+ AX_PTHREAD([],[
+ AC_MSG_WARN([POSIX Threads not available. Building library only.])
+ JSONC_LIBS=""
+ JSONC_CFLAGS=""
+ EXTRA_TARGETS=""
+ ])
+ ;;
+ esac
fi
AM_CONDITIONAL([BUILD_UNITTESTS], [test "x$build_unittests" = "xyes"])