Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charles Southerland
frama-c
Commits
00184197
Commit
00184197
authored
4 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/wp/configure.ac
+12
-8
12 additions, 8 deletions
src/plugins/wp/configure.ac
with
12 additions
and
8 deletions
src/plugins/wp/configure.ac
+
12
−
8
View file @
00184197
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment