summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2016-09-02 08:35:25 +0100
committerSergei Trofimovich <siarheit@google.com>2016-09-02 08:36:38 +0100
commit0cc3931bd7831fa8d042f968a5a9114534a656e4 (patch)
tree638087558a830e783fb3525a9ce419f85101a321
parente5ecb2010514405ac1b9b1285a8a65c00a5fd4e0 (diff)
downloadhaskell-0cc3931bd7831fa8d042f968a5a9114534a656e4.tar.gz
configure.ac: fix --host= handling
The following command fails as: $ ./configure --prefix=/usr \ --build=x86_64-pc-linux-gnu \ --host=x86_64-pc-linux-gnu \ --target=x86_64-pc-linux-gnu configure: error: You've selected: BUILD: x86_64-unknown-linux HOST: x86_64-unknown-linux TARGET: x86_64-unknown-linux BUILD must equal HOST; 18f06878ed5d8cb0cf366a876f2bfea29647e5f0 changed native configure $build/$host/$target checks to ghc-mangled ones, but not completely. Signed-off-by: Sergei Trofimovich <siarheit@google.com> Reviewers: rwbarton, erikd, austin, hvr, bgamari, Phyx Reviewed By: Phyx Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2508 GHC Trac Issues: #12487
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ea3ba4efc8..0fceb16e06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -417,7 +417,7 @@ if test "$TargetPlatform" != "$HostPlatform" ; then
# configure: error: cannot run C compiled programs.
# If you meant to cross compile, use `--host'.
fi
-if test "$BuildPlatform" != "$host" ; then
+if test "$BuildPlatform" != "$HostPlatform" ; then
AC_MSG_ERROR([
You've selected: