[easytag/wip/easytag-next: 3/4] Avoid use of AC_CYGWIN and AC_MINGW32



commit f68b92d1c46754610a4e70af45951b368413a0a9
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]