Commit d178ec51 authored by Guillaume Melquiond's avatar Guillaume Melquiond

Check for menhir's version.

Older versions of menhir fail to compile rules mixing inlined definitions
(e.g. ioption) with unnamed arguments (e.g. $2).
parent 9c3456a3
......@@ -280,6 +280,12 @@ if test "$MENHIR" = no ; then
AC_MSG_ERROR(Cannot find menhir.)
MENHIRVERSION=`$MENHIR --version | sed -n -e 's,.*version* *\(.*\)$,\1,p'`
AC_MSG_ERROR(You need Menhir 20150629 or higher.);;
## Where are the library we need
# we look for ocamlfind; if not present, we just don't use it to find
# libraries
......@@ -45,7 +45,7 @@ build-doc: [
depends: [
"menhir" {>= 20150629}
depopts: [
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment