configure.ac: accept also cygwin as Windows

The variable #MSYSTEM_CHOST is taken as the base (/etc/config.site) and
contains now in MSYS x86_64-pc-cygwin resulting in $host_os=cygwin. Not
sure where the variable is defined, anyways...
This commit is contained in:
Martin Pulec
2025-08-11 15:22:12 +02:00
parent 945d307dc0
commit dc9f09f3bd

View File

@@ -126,7 +126,7 @@ if test "$host_vendor" = "apple"; then
AC_DEFINE([HAVE_MACOSX], [1], [This is Mac X OS])
APPEXT=.app
elif expr "x$host_os" : "x.*mingw32.*" > /dev/null ||
expr "x$host_os" : "x.*msys.*" > /dev/null; then
expr "x$host_os" : "x.*msys.*" > /dev/null || test "$host_os" = cygwin; then
system=Windows
APPEXT=.exe
AC_DEFINE([WIN32], [1], [This is an Windows OS])