[easytag/wip/easytag-next: 19/19] Avoid use of AC_CYGWIN and AC_MINGW32
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/easytag-next: 19/19] Avoid use of AC_CYGWIN and AC_MINGW32
- Date: Sun, 6 Jan 2013 12:08:19 +0000 (UTC)
commit 888b5a5185504474c8872c323191273b7ae02282
Author: David King <amigadave amigadave com>
Date: Sat Dec 8 12:34:12 2012 +0000
Avoid use of AC_CYGWIN and AC_MINGW32
Use AC_CANONICAL_HOST and AS_CASE instead.
configure.ac | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c347e81..d4bc5b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,11 +34,17 @@ AC_PROG_CXX
AC_PROG_CXXCPP
PKG_PROG_PKG_CONFIG([0.24])
-dnl -------------------------
-dnl Handle mingw32 or cygwin
-dnl -------------------------
-AC_MINGW32
-AC_CYGWIN
+dnl -------------------------------
+dnl Handle cross-compiling with mingw32.
+dnl -------------------------------
+AC_CANONICAL_HOST
+AC_MSG_CHECKING([whether to build with mingw32 for a Windows host])
+AS_CASE([$host_os],
+ [*mingw*], [windows_host=yes],
+ [windows_host=no])
+AC_MSG_RESULT([$windows_host])
+
+AM_CONDITIONAL([WINDOWS_HOST], [test "x$windows_host" = "xyes"])
dnl -------------------------------
dnl Configure switches.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]