Commit 8d93a81c authored by Andrei Paskevich's avatar Andrei Paskevich

configure: add checks for sqlite3

parent f8f4110c
......@@ -253,8 +253,10 @@ MNGCMX = $(addsuffix .cmx, $(MNGMODULES))
$(MNGCMO) $(MNGCMX): INCLUDES = -I src/manager -I +sqlite3
ifeq (@enable_proof_manager@,yes)
byte: bin/manager.byte
opt: bin/manager.opt
endif
bin/manager.opt bin/manager.byte: INCLUDES = -I +sqlite3
......@@ -503,13 +505,13 @@ DOC = doc/manual.pdf doc/manual.html
doc: $(DOC)
doc/manual.pdf: doc/manual.tex doc/version.tex
make -C doc manual.pdf
$(MAKE) -C doc manual.pdf
doc/manual.html: doc/manual.tex doc/version.tex
make -C doc manual.html
$(MAKE) -C doc manual.html
clean::
make -C doc clean
$(MAKE) -C doc clean
##########
# API DOC
......@@ -646,7 +648,7 @@ dep: depend
# export-www:
# echo "<#def version>$(VERSION)</#def>" > /users/demons/filliatr/www/why/version.prehtml
# echo "<#def cversion>$(CVERSION)</#def>" >> /users/demons/filliatr/www/why/version.prehtml
# make -C /users/demons/filliatr/www/why install
# $(MAKE) -C /users/demons/filliatr/www/why install
#
# source: export/$(NAME).tar.gz
# cp CHANGES CHANGES.caduceus export/$(NAME).tar.gz $(FTP)
......@@ -659,19 +661,19 @@ dep: depend
# cd export; tar cf $(NAME).tar $(NAME); gzip -f --best $(NAME).tar
#
# tarball-for-framac:
# make tarball
# $(MAKE) tarball
# cp export/$(NAME).tar.gz export/why-for-framac.tar.gz
#
# tarball:
# mkdir -p export
# cd export; rm -rf $(NAME) $(NAME).tar.gz
# make export/$(NAME).tar.gz
# $(MAKE) export/$(NAME).tar.gz
#
# EXFILES = lib/coq*/*.v examples/*/*.v examples/*/*.mlw
#
# export-examples:
# cp --parents $(EXFILES) $(WWW)
# make -C $(WWW)/examples clean depend
# $(MAKE) -C $(WWW)/examples clean depend
# echo "*** faire make all dans $(WWW)/examples ***"
#
# export-examples-c:
......
......@@ -36,14 +36,14 @@
# the script generated by autoconf from this input will set the following
# variables:
# OCAMLC "ocamlc" if present in the path, or a failure
# or "ocamlc.opt" if present with same version number as ocamlc
# OCAMLC "ocamlc" if present in the path, or a failure, or
# "ocamlc.opt" if present with same version number as ocamlc
# OCAMLOPT "ocamlopt" (or "ocamlopt.opt" if present), or "no"
# OCAMLBEST either "byte" if no native compiler was found,
# or "opt" otherwise
# OCAMLDEP "ocamldep"
# OCAMLLEX "ocamllex"
# OCAMLYACC "ocamlyac"
# OCAMLBEST "opt" if a native compiler was found; "byte" otherwise
# OCAMLDEP "ocamldep" or "ocamldep.opt"
# OCAMLLEX "ocamllex" or "ocamllex.opt"
# OCAMLYACC "ocamlyacc"
# OCAMLDOC "ocamldoc" or "ocamldoc.opt"
# OCAMLLIB the path to the ocaml standard library
# OCAMLVERSION the ocaml version number
# OCAMLWEB "ocamlweb" (not mandatory)
......@@ -53,25 +53,31 @@
# ADAPT THE FOLLOWING LINE TO YOUR SOURCES!
AC_INIT(src/)
# verbosemake feature
# verbosemake
AC_ARG_ENABLE(verbose-make,
[ --enable-verbose-make verbose makefile commands],,
enable_verbose_make=no)
# IDE feature
# proof manager
AC_ARG_ENABLE(proof-manager,
[ --enable-proof-manager enable Why3 proof manager],,
enable_proof_manager=yes)
# IDE
AC_ARG_ENABLE(ide,
[ --enable-ide enable Why IDE],,
[ --enable-ide enable Why3 IDE],,
enable_ide=yes)
# dynlink feature
# dynlink
AC_ARG_ENABLE(plugins,
[ --enable-plugins enable Why3 plugins],,
enable_plugins=yes)
# Coq plugin feature
# Coq plugin
AC_ARG_ENABLE(coq-support,
[ --enable-coq-support enable Coq support],,
......@@ -205,6 +211,11 @@ else
fi
fi
# checking for sqlite3
if test "$enable_proof_manager" = yes ; then
AC_CHECK_FILE($OCAMLLIB/sqlite3/sqlite3.cma,,enable_proof_manager=no)
fi
# checking for lablgtk2
if test "$enable_ide" = yes ; then
AC_CHECK_FILE($OCAMLLIB/lablgtk2/lablgtk.cma,,enable_ide=no)
......@@ -304,6 +315,7 @@ echo "OCaml library path : $OCAMLLIB"
echo "Verbose make : $enable_verbose_make"
echo "Why IDE : $enable_ide"
echo "Why plugins : $enable_plugins"
echo "Why proof manager : $enable_proof_manager"
echo "Coq support : $enable_coq_support"
if test "$enable_coq_support" = "yes" ; then
echo " Version : $COQVERSION"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment