[PATCH] base: use --target as target, not uname
Sergei Trofimovich
slyich at gmail.com
Wed Feb 13 08:38:18 CET 2013
From: Sergei Trofimovich <slyfox at gentoo.org>
Fixed bootstrap failure on linux for --target=mingw32
Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>
---
configure.ac | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index b679520..7553a7a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,17 +5,23 @@ AC_CONFIG_SRCDIR([include/HsBase.h])
AC_CONFIG_HEADERS([include/HsBaseConfig.h include/EventConfig.h])
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
+
AC_ARG_WITH([cc],
[C compiler],
[CC=$withval])
AC_PROG_CC()
-case `uname -s` in
- MINGW*|CYGWIN*)
+AC_MSG_CHECKING(for WINDOWS platform)
+case $host in
+ *mingw32*|*cygwin*)
WINDOWS=YES;;
*)
WINDOWS=NO;;
esac
+AC_MSG_RESULT($WINDOWS)
# do we have long longs?
AC_CHECK_TYPES([long long])
--
1.8.1.2
More information about the ghc-devs
mailing list