Skip to content
Snippets Groups Projects
Commit 00184197 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[wp][config] don't check why3 version if why3 not installed

parent 7b52e77f
No related branches found
No related tags found
No related merge requests found
...@@ -50,15 +50,19 @@ plugin_use(wp,gui) ...@@ -50,15 +50,19 @@ plugin_use(wp,gui)
###################### ######################
configure_pkg(why3,[package why3 not found]) configure_pkg(why3,[package why3 not found])
plugin_require_external(wp,why3)
plugin_require_pkg(wp,why3)
check_plugin_dependencies
if test "$HAS_OCAML_WHY3" = "yes"; then
AC_MSG_CHECKING(why3 version)
WHY3VERSION=`ocamlfind query -format %v why3 | tr -d '\\r\\n'` WHY3VERSION=`ocamlfind query -format %v why3 | tr -d '\\r\\n'`
if test "$WHY3VERSION" == "" ; case $WHY3VERSION in
then "")
plugin_disable(wp,[why3 not found]) AC_MSG_RESULT([not found!])
else plugin_disable(wp,[why3 not found])
AC_MSG_CHECKING(why3 version) ;;
case $WHY3VERSION in
0.* | 1.[[012]].* | 1.3.0) 0.* | 1.[[012]].* | 1.3.0)
AC_MSG_RESULT([found $WHY3VERSION: requires 1.3.1+]) AC_MSG_RESULT([found $WHY3VERSION: requires 1.3.1+])
plugin_disable(wp,[non-supported why3 $WHY3VERSION]) plugin_disable(wp,[non-supported why3 $WHY3VERSION])
...@@ -69,7 +73,7 @@ else ...@@ -69,7 +73,7 @@ else
*) *)
AC_MSG_RESULT([found $WHY3VERSION: might work (should be 1.3.1+)]) AC_MSG_RESULT([found $WHY3VERSION: might work (should be 1.3.1+)])
;; ;;
esac esac
fi fi
# Nb: this would deserve to use plugin_requires mechanism # Nb: this would deserve to use plugin_requires mechanism
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment