summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-08-04 15:54:08 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-08-05 09:21:49 +0100
commit59534b8022acf97e9f475cde14b85cd0d74088ac (patch)
tree3692956f264f1b6d51348fff57e6294522f58ef5 /aclocal.m4
parent8feb2813f129532b81be3ae3749af0e5acc40dae (diff)
downloadhaskell-59534b8022acf97e9f475cde14b85cd0d74088ac.tar.gz
Update to work with Alex 3.0: basically disabling Alex's new Unicode
support because we have our own, and defining alexGetByte instead of alexGetChar (actually we also define alexGetChar, for backwards compatibility).
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index d798eb5063..68d36006e1 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -517,9 +517,12 @@ if test ! -f compiler/cmm/CmmLex.hs || test ! -f compiler/parser/Lexer.hs
then
FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[2.1.0],
[AC_MSG_ERROR([Alex version 2.1.0 or later is required to compile GHC.])])[]
+ FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-ge],[3.0],
+ [Alex3=YES],[Alex3=NO])
fi
AlexVersion=$fptools_cv_alex_version;
AC_SUBST(AlexVersion)
+AC_SUBST(Alex3)
])