aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2014-12-18 14:20:28 +0100
committerXavier Leroy <xavier.leroy@inria.fr>2014-12-18 14:20:28 +0100
commite11388aac1f4f635e3c32d9b3200de16d779c630 (patch)
tree8700978af99d3c8d3674b216f1652e8fc73b7c8a /configure
parent04292034ef23e8cfdab593b7d248368085631881 (diff)
downloadcompcert-e11388aac1f4f635e3c32d9b3200de16d779c630.tar.gz
compcert-e11388aac1f4f635e3c32d9b3200de16d779c630.zip
No longer include a pre-generated Parser.v in the distribution.
Assorted updates to configure and Makefile.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 9 insertions, 10 deletions
diff --git a/configure b/configure
index 730534df..18c7ca19 100755
--- a/configure
+++ b/configure
@@ -230,7 +230,7 @@ esac
echo "Testing OCaml... " | tr -d '\n'
ocaml_ver=`ocamlopt -version 2>/dev/null`
case "$ocaml_ver" in
- [4-9].*)
+ 4.*)
echo "version $ocaml_ver -- good!";;
?.*)
echo "version $ocaml_ver -- UNSUPPORTED"
@@ -255,12 +255,14 @@ fi
echo "Testing Menhir... " | tr -d '\n'
menhir_ver=`menhir --version 2>/dev/null | sed -n -e 's/^.*version \([0-9]*\).*$/\1/p'`
case "$menhir_ver" in
- 201[4-9]*|20[2-9]*)
- echo "version $menhir_ver -- good!";;
- ?*)
- echo "version $menhir_ver -- UNSUPPORTED"
- echo "Error: CompCert requires Menhir version 20140422 or later."
- missingtools=true;;
+ 20[0-9][0-9][0-9][0-9][0-9][0-9])
+ if test "$menhir_ver" -ge 20140422; then
+ echo "version $menhir_ver -- good!"
+ else
+ echo "version $menhir_ver -- UNSUPPORTED"
+ echo "Error: CompCert requires Menhir version 20140422 or later."
+ missingtools=true
+ fi;;
*)
echo "NOT FOUND"
echo "Error: make sure Menhir version 20140422 or later is installed."
@@ -400,9 +402,6 @@ EOF
fi
-# Avoid re-building cparser/Parser.v on the first run
-touch cparser/Parser.v
-
# Summarize configuration
if test "$target" = "manual"; then