X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fconfigure.ac;h=c07a962ae2d12011a9019cc44f15e0cb18235e98;hb=47992200e628aa4c403496bcbe9116b0a4f8cdcd;hp=4f8c991d1082d380e1fd4fe6bdcd089360e5d87e;hpb=6fa89cef6aa8fc1774db065a9fcfc47867579054;p=helm.git diff --git a/helm/matita/configure.ac b/helm/matita/configure.ac index 4f8c991d1..c07a962ae 100644 --- a/helm/matita/configure.ac +++ b/helm/matita/configure.ac @@ -1,5 +1,11 @@ AC_INIT(matitaTypes.ml) +# Distribution settings (i.e. settings to be manipulated before a release) +DEBUG_DEFAULT="true" +RT_BASE_DIR_DEFAULT="`pwd`" +MATITA_VERSION="0.0.1" +# End of distribution settings + AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no) if test $HAVE_OCAMLC = "no"; then AC_MSG_ERROR(could not find ocamlc) @@ -27,14 +33,12 @@ else AC_MSG_ERROR(could not find camlp4o) fi FINDLIB_COMREQUIRES="\ -pcre \ -mysql \ -helm-registry \ -helm-extlib \ -helm-hmysql \ -helm-cic_notation \ -helm-tactics \ helm-cic_disambiguation \ +helm-grafite \ +helm-grafite_engine \ +helm-grafite_parser \ +helm-hgdome \ +helm-tactics \ " FINDLIB_CLEANREQUIRES="$FINDLIB_COMREQUIRES" FINDLIB_DEPREQUIRES="$FINDLIB_COMREQUIRES" @@ -44,7 +48,6 @@ helm-extlib \ " FINDLIB_CREQUIRES=" \ $FINDLIB_COMREQUIRES \ -helm-paramodulation \ " FINDLIB_REQUIRES="\ $FINDLIB_CREQUIRES \ @@ -52,10 +55,6 @@ lablgtk2.glade \ lablgtkmathview \ lablgtksourceview \ helm-xmldiff \ -helm-cic_transformations \ -helm-tactics \ -helm-cic_disambiguation \ -helm-paramodulation \ " for r in $FINDLIB_REQUIRES do @@ -87,21 +86,31 @@ OCAMLFIND_COMMANDS="" if test "$OCAMLFIND_COMMANDS" != ""; then OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND" fi + +AC_MSG_CHECKING(--enable-debug argument) AC_ARG_ENABLE(debug, - [ --enable-debug Turn on debugging], - [case "${enableval}" in + [ --enable-debug Turn on debugging], + [GIVEN="yes"; + case "${enableval}" in yes) DEBUG=true ;; no) DEBUG=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; esac], - [DEBUG=true]) + [GIVEN="no"; DEBUG="$DEBUG_DEFAULT"]) +MSG=$GIVEN if test "$DEBUG" = "true"; then - echo "debugging enabled" + MSG="$MSG, debugging enabled." +else + MSG="$MSG, debugging disabled." fi +AC_MSG_RESULT($MSG) -RT_BASE_DIR=`pwd` -USER_HOME=`pwd` #should be `echo $HOME` -USER_NAME=`echo $USER` +AC_MSG_CHECKING(--with-runtime-dir argument) +AC_ARG_WITH(runtime-dir, + [ --with-runtime-dir Runtime directory (current working directory if not given)], + [ RT_BASE_DIR="${withval}" ], + [ RT_BASE_DIR="$RT_BASE_DIR_DEFAULT" ]) +AC_MSG_RESULT($RT_BASE_DIR) AC_SUBST(CAMLP4O) AC_SUBST(DEBUG) @@ -115,8 +124,7 @@ AC_SUBST(HAVE_OCAMLOPT) AC_SUBST(LABLGLADECC) AC_SUBST(OCAMLFIND) AC_SUBST(RT_BASE_DIR) -AC_SUBST(USER_HOME) -AC_SUBST(USER_NAME) +AC_SUBST(MATITA_VERSION) AC_OUTPUT([ matita.conf.xml.sample