summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-07-08 09:47:12 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2017-07-08 09:47:12 +0100
commitc2303dff95aa174021a1950656fdf9a1cf983959 (patch)
tree991402b680b624a1ef439a7d83f809434bee521e /aclocal.m4
parentbd4fdc6aa34a85268f3e9a2bd3f4142a97724ce4 (diff)
downloadhaskell-c2303dff95aa174021a1950656fdf9a1cf983959.tar.gz
aclocal.m4: allow arbitrary <vendor> string in toolchain triplets
Canonical triplets have a form of <arch>-<vendor>-<os>[-<abi>] Checking for vendor is almost never correct as it's an arbitrary string. It's useful to have multiple "vendors" to denote otherwise the same (WRT <arch>, <os>, <abi>) target: --target=x86_64-pc-linux-gnu --target=x86_64-unknown-linux-gnu --target=x86_64-ghc80-linux-gnu --target=x86_64-ghchead-linux-gnu Do not fail unknown vendors. Only emit a warning. Ideally configure checks should never use "vendor". Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m43
1 files changed, 1 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 001f813dfc..1d9c09b0cd 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -230,8 +230,7 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS],
dec|none|unknown|hp|apple|next|sun|sgi|ibm|montavista|portbld)
;;
*)
- echo "Unknown vendor [$]1"
- exit 1
+ AC_MSG_WARN([Unknown vendor [$]1])
;;
esac
}