summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorNathan <nathan.huesken@posteo.de>2013-01-23 18:07:19 +0100
committerDavid Terei <davidterei@gmail.com>2013-01-24 22:45:24 -0800
commit3c9d63042da2a1aa6874562e5d3abb4c88fafdb9 (patch)
tree98618385cb05c2da954306e4bbdeb14d3bd2bf11 /aclocal.m4
parent538891939b65d60014aebe7aab6ad5c72825979e (diff)
downloadhaskell-3c9d63042da2a1aa6874562e5d3abb4c88fafdb9.tar.gz
Added support to cross-compile to android
Signed-off-by: David Terei <davidterei@gmail.com>
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 57e35a28de..edbe3897cd 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -251,6 +251,9 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS],
dragonfly|osf1|hpux|linuxaout|freebsd2|cygwin32|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix)
test -z "[$]2" || eval "[$]2=OSUnknown"
;;
+ linux-android)
+ test -z "[$]2" || eval "[$]2=OSAndroid"
+ ;;
*)
echo "Unknown OS '[$]1'"
exit 1
@@ -1821,6 +1824,9 @@ AC_DEFUN([GHC_CONVERT_VENDOR],[
# converts os from gnu to ghc naming, and assigns the result to $target_var
AC_DEFUN([GHC_CONVERT_OS],[
case "$1" in
+ linux-android*)
+ $2="linux-android"
+ ;;
linux-*|linux)
$2="linux"
;;