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.
This commit is contained in:
parent
1de13713ae
commit
a5c87c74a6
19
configure.ac
19
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_VERSION="$CLUTTER_LT_CURRENT:$CLUTTER_LT_REV:$CLUTTER_LT_AGE"
|
||||||
CLUTTER_LT_LDFLAGS="-version-info $CLUTTER_LT_VERSION"
|
CLUTTER_LT_LDFLAGS="-version-info $CLUTTER_LT_VERSION"
|
||||||
|
|
||||||
|
AC_CANONICAL_HOST
|
||||||
AC_MSG_CHECKING([if building for some Win32 platform])
|
AC_MSG_CHECKING([if building for some Win32 platform])
|
||||||
case "$host" in
|
AS_CASE([$host],
|
||||||
*-*-mingw*|*-*-cygwin*)
|
[*-*-mingw*|*-*-cygwin*],
|
||||||
CLUTTER_LT_LDFLAGS="$CLUTTER_LT_LDFLAGS -no-undefined"
|
[
|
||||||
platform_win32=yes
|
CLUTTER_LT_LDFLAGS="$CLUTTER_LT_LDFLAGS -no-undefined"
|
||||||
;;
|
platform_win32=yes
|
||||||
*)
|
],
|
||||||
platform_win32=no
|
|
||||||
;;
|
[platform_win32=no]
|
||||||
esac
|
)
|
||||||
AC_MSG_RESULT([$platform_win32])
|
AC_MSG_RESULT([$platform_win32])
|
||||||
|
|
||||||
AC_SUBST(CLUTTER_LT_VERSION)
|
AC_SUBST(CLUTTER_LT_VERSION)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user