diff options
author | Toni <matzeton@googlemail.com> | 2024-03-07 13:09:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 13:09:01 +0100 |
commit | 1fb4719e594026db87fc06f38524d05f9ec0bb43 (patch) | |
tree | 8a64dc93dfd8d7c0ca0dfb95119bdf2914c6db9a | |
parent | e2949048e0c5b2390a0a0f22e44ed29448f32dfe (diff) |
Disable `AX_PTHREAD` for MingW/MSYS builds. (#2338)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r-- | configure.ac | 19 |
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"]) |