aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorXavier Leroy <xavierleroy@users.noreply.github.com>2020-07-15 09:49:40 +0200
committerGitHub <noreply@github.com>2020-07-15 09:49:40 +0200
commit13e0566dbdd8bf845d7c2a65ffefaaf460381e70 (patch)
tree90a8dc86e3bb584ea3218dd3587c85e8efafad54 /configure
parent72be849e2a9bbe7e8a8438bf561c5a677a35c9e0 (diff)
downloadcompcert-kvx-13e0566dbdd8bf845d7c2a65ffefaaf460381e70.tar.gz
compcert-kvx-13e0566dbdd8bf845d7c2a65ffefaaf460381e70.zip
Revised detection of menhirLib directory, continued (#365)
This is a follow-up to commit 3b1f3dd5, which was wrong in that errors in a shell pipeline were not correctly detected. Fixes: #363
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index d38deeec..0919f34e 100755
--- a/configure
+++ b/configure
@@ -592,11 +592,10 @@ case "$menhir_ver" in
20[0-9][0-9][0-9][0-9][0-9][0-9])
if test "$menhir_ver" -ge $MENHIR_REQUIRED; then
echo "version $menhir_ver -- good!"
- menhir_dir=$(ocamlfind query menhirLib 2>/dev/null \
- | tr -d '\r' | tr '\\' '/') || \
- menhir_dir=$(menhir --suggest-menhirLib \
- | tr -d '\r' | tr '\\' '/') || \
+ menhir_dir=$(ocamlfind query menhirLib 2>/dev/null) || \
+ menhir_dir=$(menhir --suggest-menhirLib) || \
menhir_dir=""
+ menhir_dir=$(echo "$menhir_dir" | tr -d '\r' | tr '\\' '/')
if test ! -d "$menhir_dir"; then
echo "Error: cannot determine the location of the Menhir API library."
echo "This can be due to an incorrect Menhir package."
@@ -852,6 +851,7 @@ CompCert configuration:
Linker needs '-no-pie'........ $clinker_needs_no_pie
Math library.................. $libmath
Build command to use.......... $make
+ Menhir API library............ $menhir_dir
Binaries installed in......... $bindirexp
Runtime library provided...... $has_runtime_lib
Library files installed in.... $libdirexp