Skip to content
Snippets Groups Projects
Commit f745f95d authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[configure] simplify checking of zarith

parent 5bf88930
No related branches found
No related tags found
No related merge requests found
...@@ -272,34 +272,13 @@ esac ...@@ -272,34 +272,13 @@ esac
# zarith # zarith
######## ########
AC_ARG_ENABLE( AC_MSG_CHECKING(for zarith)
zarith,
[ --enable-zarith=<dir> use ZArith library], ZARITH=$($OCAMLFIND query zarith -format %v)
ZARITH_PATH=$enableval,) if test -z "$ZARITH" ; then
AC_MSG_ERROR(Cannot find zarith via ocamlfind.)
AC_MSG_CHECKING(for Zarith)
if test -z "$ZARITH_PATH"; then
# standard installation procedure of zarith diverges according to
# ocamlfind installation (see zarith's README)
ZARITH_PATH=$($OCAMLFIND query zarith 2>/dev/null | tr -d '\r\n')
if test -z "$ZARITH_PATH"; then
HAS_ZARITH="no";
else
HAS_ZARITH="yes";
fi;
if test "$HAS_ZARITH" = "no"; then
AC_MSG_ERROR(Zarith not found but required by Frama-C)
else
AC_MSG_RESULT(found)
fi
else else
AC_CHECK_FILE($ZARITH_PATH/zarith.$LIB_SUFFIX,HAS_ZARITH=yes,HAS_ZARITH=no) AC_MSG_RESULT(found)
if test "$HAS_ZARITH" = "no"; then
AC_MSG_ERROR(Zarith: file $ZARITH_PATH/zarith.$LIB_SUFFIX not found.)
else
AC_MSG_RESULT(found)
fi
fi fi
# apron # apron
......
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