autoconf: Call AC_CANONICAL_HOST before querying the host variable

Also, get the querying right to prevent false positives, from libvirt.
This commit is contained in:
Fabian Greffrath 2015-11-04 07:35:18 +01:00
parent ff61aa8695
commit 0b0cae7206

View file

@ -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, )
;;
*)