Fix Windows detection in configure.ac - check both host_os and host
This commit is contained in:
1 parent
72de980922
commit
2129c4f64a
1 file changed
+9
-1
+9
-1
@@ -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])
|
||||
|
||||
Reference in new issue
Block a user