Browse Source

Fix Windows detection in configure.ac - check both host_os and host

nodeinfo-routing-update
Evgeny 2 months ago
parent
commit
f51705c57d
  1. 8
      configure.ac

8
configure.ac

@ -30,12 +30,20 @@ AM_CONDITIONAL([USE_OPENSSL], [test "x$with_openssl" = "xyes"])
# Detect Windows for TUN implementation
AC_MSG_CHECKING([for Windows])
case $host_os in
*mingw* | *msys* | *cygwin* | *win*)
os_windows=yes
;;
*)
# 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])
AM_CONDITIONAL([OS_WINDOWS], [test "x$os_windows" = "xyes"])

Loading…
Cancel
Save