From a5c87c74a6e8f1590130b95720e19e82d48d86e4 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 22 Mar 2011 17:10:49 +0000 Subject: [PATCH] build: Use AC_CANONICAL_HOST Since we're checking the value of the $host variable, it's a good idea to use the canonicalization support in autoconf. --- configure.ac | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 66718a3b8..f7b469686 100644 --- a/configure.ac +++ b/configure.ac @@ -79,16 +79,17 @@ CLUTTER_LT_AGE=lt_age CLUTTER_LT_VERSION="$CLUTTER_LT_CURRENT:$CLUTTER_LT_REV:$CLUTTER_LT_AGE" CLUTTER_LT_LDFLAGS="-version-info $CLUTTER_LT_VERSION" +AC_CANONICAL_HOST AC_MSG_CHECKING([if building for some Win32 platform]) -case "$host" in - *-*-mingw*|*-*-cygwin*) - CLUTTER_LT_LDFLAGS="$CLUTTER_LT_LDFLAGS -no-undefined" - platform_win32=yes - ;; - *) - platform_win32=no - ;; -esac +AS_CASE([$host], + [*-*-mingw*|*-*-cygwin*], + [ + CLUTTER_LT_LDFLAGS="$CLUTTER_LT_LDFLAGS -no-undefined" + platform_win32=yes + ], + + [platform_win32=no] +) AC_MSG_RESULT([$platform_win32]) AC_SUBST(CLUTTER_LT_VERSION)