[json-glib/json-glib-0-12] build: Use AC_CANONICAL_HOST



commit 7f6a754044e611a2e57fd43a631b9262741af3da
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Wed Mar 23 11:35:28 2011 +0000

    build: Use AC_CANONICAL_HOST
    
    Since we check for the contents of the $host variable to detect
    compilation on/for win32, we should also be using the canonicalization
    facilities from autoconf.
    (cherry picked from commit 311186b08875902f814237b5e7c11921a5166e0e)
    
    Signed-off-by: Emmanuele Bassi <ebassi linux intel com>

 configure.ac |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b016437..2accf7d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,16 +62,18 @@ JSON_LT_AGE=lt_age
 JSON_LT_VERSION="$JSON_LT_CURRENT:$JSON_LT_REVISION:$JSON_LT_AGE"
 JSON_LT_LDFLAGS="-version-info $JSON_LT_VERSION"
 
+AC_CANONICAL_HOST
 AC_MSG_CHECKING([if building for some Win32 platform])
-case "$host" in
-  *-*-mingw*|*-*-cygwin*)
-    JSON_LT_LDFLAGS="$JSON_LT_LDFLAGS -no-undefined"
-    platform_win32=yes
-    ;;
-  *)
-    platform_win32=no
-    ;;
-esac
+AS_CASE([$host],
+
+        [*-*-mingw*|*-*-cygwin*],
+        [
+          JSON_LT_LDFLAGS="$JSON_LT_LDFLAGS -no-undefined"
+          platform_win32=yes
+        ],
+
+        [platform_win32=no]
+)
 AC_MSG_RESULT([$platform_win32])
 
 AC_SUBST(JSON_LT_LDFLAGS)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]