summaryrefslogtreecommitdiff
path: root/libraries/base/configure.ac
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2013-02-13 23:25:24 +0300
committerSimon Marlow <marlowsd@gmail.com>2013-02-14 10:50:11 +0000
commit9d604f8d79a7862cd764eaa6e3e1bfbd15814ed1 (patch)
treee8b87d2258e3a5c69134525e5de903e95c6c0226 /libraries/base/configure.ac
parent6e04f053753c212f7f3c96d8ba3aec79e8f5880c (diff)
downloadhaskell-9d604f8d79a7862cd764eaa6e3e1bfbd15814ed1.tar.gz
base: use --host as target, not uname
Fixed bootstrap failure on linux for --target=mingw32 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'libraries/base/configure.ac')
-rw-r--r--libraries/base/configure.ac10
1 files changed, 8 insertions, 2 deletions
diff --git a/libraries/base/configure.ac b/libraries/base/configure.ac
index b6795205bd..7553a7a97b 100644
--- a/libraries/base/configure.ac
+++ b/libraries/base/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])