commit 0b0cae7206334b14b68d6c22686efd6e21e9815e
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Wed Nov 4 07:35:18 2015 +0100
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Wed Nov 4 07:35:18 2015 +0100
autoconf: Call AC_CANONICAL_HOST before querying the host variable
Also, get the querying right to prevent false positives, from libvirt.
---
configure.ac | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 673ddde7..2f2689c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,6 +9,7 @@ PACKAGE_URL="http://www.chocolate-doom.org/"
PACKAGE_ISSUES="https://github.com/chocolate-doom/chocolate-doom/issues"
AC_CONFIG_AUX_DIR(autotools)
+AC_CANONICAL_HOST
orig_CFLAGS="$CFLAGS"
@@ -124,8 +125,8 @@ AC_ARG_WITH([bashcompletiondir],
[bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)],
[bashcompletiondir=${datadir}/bash-completion/completions])])
-case $host in
- *cygwin* | *mingw* )
+case "$host" in
+ *-*-mingw* | *-*-cygwin* | *-*-msvc* )
AC_CHECK_TOOL(WINDRES, windres, )
;;
*)