1 AC_INIT(matitaTypes.ml)
3 AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
4 if test $HAVE_OCAMLC = "no"; then
5 AC_MSG_ERROR(could not find ocamlc)
7 AC_CHECK_PROG(HAVE_OCAMLOPT, ocamlopt, yes, no)
8 if test $HAVE_OCAMLOPT = "no"; then
9 AC_MSG_WARN(could not find ocamlopt: native code compilation disabled)
11 AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
12 if test $HAVE_OCAMLFIND = "yes"; then
15 AC_MSG_ERROR(could not find ocamlfind)
17 AC_CHECK_PROG(HAVE_LABLGLADECC, lablgladecc2, yes, no)
18 if test $HAVE_LABLGLADECC = "yes"; then
19 LABLGLADECC="lablgladecc2"
21 AC_MSG_ERROR(could not find lablgladecc2)
23 AC_CHECK_PROG(HAVE_CAMLP4O, camlp4o, yes, no)
24 if test $HAVE_CAMLP4O = "yes"; then
27 AC_MSG_ERROR(could not find camlp4o)
29 FINDLIB_COMREQUIRES="\
37 helm-cic_disambiguation \
39 FINDLIB_CLEANREQUIRES="$FINDLIB_COMREQUIRES"
40 FINDLIB_DEPREQUIRES="$FINDLIB_COMREQUIRES"
41 FINDLIB_MAKEREQUIRES=" \
46 $FINDLIB_COMREQUIRES \
55 helm-cic_transformations \
57 helm-cic_disambiguation \
60 for r in $FINDLIB_REQUIRES
62 AC_MSG_CHECKING(for $r ocaml library)
63 if OCAMLPATH=../ocaml/METAS $OCAMLFIND query $r &> /dev/null; then
66 AC_MSG_ERROR(could not find $r ocaml library)
71 # AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no)
72 # if test $HAVE_OCAMLC_OPT = "yes"; then
73 # if test "$OCAMLFIND_COMMANDS" = ""; then
74 # OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt"
76 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt"
79 # AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no)
80 # if test $HAVE_OCAMLOPT_OPT = "yes"; then
81 # if test "$OCAMLFIND_COMMANDS" = ""; then
82 # OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt"
84 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt"
87 if test "$OCAMLFIND_COMMANDS" != ""; then
88 OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND"
91 [ --enable-debug Turn on debugging],
92 [case "${enableval}" in
95 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
98 if test "$DEBUG" = "true"; then
99 echo "debugging enabled"
103 USER_HOME=`pwd` #should be `echo $HOME`
104 USER_NAME=`echo $USER`
108 AC_SUBST(TRANSFORMER_MODULE)
109 AC_SUBST(FINDLIB_REQUIRES)
110 AC_SUBST(FINDLIB_CREQUIRES)
111 AC_SUBST(FINDLIB_DEPREQUIRES)
112 AC_SUBST(FINDLIB_CLEANREQUIRES)
113 AC_SUBST(FINDLIB_MAKEREQUIRES)
114 AC_SUBST(HAVE_OCAMLOPT)
115 AC_SUBST(LABLGLADECC)
117 AC_SUBST(RT_BASE_DIR)
122 matita.conf.xml.sample
125 gtkmathview.matita.conf.xml