X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fconfigure.ac;h=ec6498a7b1756ac0c5604894b5a30ef8c73274f3;hb=5104e38ee747fd1052ce21f3f9f2ecc778d590ba;hp=8f368b0f9eead01a3d4749b695a3bb16aa5f5c8a;hpb=43791584692853e980f96b58f36fdfb9c316728f;p=helm.git diff --git a/helm/ocaml/configure.ac b/helm/ocaml/configure.ac index 8f368b0f9..ec6498a7b 100644 --- a/helm/ocaml/configure.ac +++ b/helm/ocaml/configure.ac @@ -8,21 +8,45 @@ fi AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no) if test $HAVE_OCAMLFIND = "no"; then AC_MSG_ERROR(could not find ocamlfind in PATH, please make sure findlib is installed) +else + OCAMLFIND=ocamlfind fi -AC_MSG_CHECKING("where to install the library") -OCAMLFIND_DEST_DIR="/public/sacerdot/prova" -AC_MSG_RESULT($OCAMLFIND_DEST_DIR) +OCAMLFIND_COMMANDS="" +AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no) +if test $HAVE_OCAMLC_OPT = "yes"; then + if test "$OCAMLFIND_COMMANDS" = ""; then + OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt" + else + OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt" + fi +fi +AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no) +if test $HAVE_OCAMLOPT_OPT = "yes"; then + if test "$OCAMLFIND_COMMANDS" = ""; then + OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt" + else + OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt" + fi +fi +AC_CHECK_PROG(HAVE_OCAMLDEP_OPT, ocamldep.opt, yes, no) +if test $HAVE_OCAMLDEP_OPT = "yes"; then + if test "$OCAMLFIND_COMMANDS" = ""; then + OCAMLFIND_COMMANDS="ocamldep=ocamldep.opt" + else + OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamldep=ocamldep.opt" + fi +fi +if test "$OCAMLFIND_COMMANDS" != ""; then + OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND" +fi AC_MSG_CHECKING("where to install the META files") -OCAMLFIND_META_DIR="/public/sacerdot/prova/META" +OCAMLFIND_META_DIR=`pwd`/METAS AC_MSG_RESULT($OCAMLFIND_META_DIR) -AC_SUBST(OCAMLFIND_DEST_DIR) +AC_SUBST(OCAMLFIND) AC_SUBST(OCAMLFIND_META_DIR) -AC_SUBST(CHOSEN_TERM_EDITOR) -AC_SUBST(CHOSEN_TERM_PARSER) -AC_SUBST(CHOSEN_TRANSFORMER) AC_OUTPUT([ Makefile