From 2129c4f64a54b570dd43293bc5a758457c8dca69 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sun, 15 Feb 2026 03:39:18 +0300 Subject: [PATCH] Fix Windows detection in configure.ac - check both host_os and host --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a61460cf8..205e0ea05 100644 --- a/configure.ac +++ b/configure.ac @@ -34,7 +34,15 @@ case $host_os in os_windows=yes ;; *) - os_windows=no + # Also check $host for cross-compilation case + case $host in + *mingw* | *msys* | *cygwin* | *win*) + os_windows=yes + ;; + *) + os_windows=no + ;; + esac ;; esac AC_MSG_RESULT([$os_windows])