shithub: choc

Download patch

ref: 0b0cae7206334b14b68d6c22686efd6e21e9815e
parent: ff61aa8695321e21b349583b4b43f19084d870c4
author: Fabian Greffrath <fabian@greffrath.com>
date: Wed Nov 4 02:35:18 EST 2015

autoconf: Call AC_CANONICAL_HOST before querying the host variable

Also, get the querying right to prevent false positives, from libvirt.

--- a/configure.ac
+++ b/configure.ac
@@ -9,6 +9,7 @@
 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 @@
         [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, )
     ;;
   *)