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_DEPREQUIRES="\
35 helm-cic_disambiguation \
38 FINDLIB_CLEANREQUIRES="$FINDLIB_DEPREQUIRES"
40 $FINDLIB_CLEANREQUIRES \
54 for r in $FINDLIB_REQUIRES
56 AC_MSG_CHECKING(for $r ocaml library)
57 if OCAMLPATH=../ocaml/METAS $OCAMLFIND query $r &> /dev/null; then
60 AC_MSG_ERROR(could not find $r ocaml library)
65 AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no)
66 if test $HAVE_OCAMLC_OPT = "yes"; then
67 if test "$OCAMLFIND_COMMANDS" = ""; then
68 OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt"
70 OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt"
73 AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no)
74 if test $HAVE_OCAMLOPT_OPT = "yes"; then
75 if test "$OCAMLFIND_COMMANDS" = ""; then
76 OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt"
78 OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt"
81 if test "$OCAMLFIND_COMMANDS" != ""; then
82 OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND"
85 [ --enable-debug Turn on debugging],
86 [case "${enableval}" in
89 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
92 if test "$DEBUG" = "true"; then
93 echo "debugging enabled"
97 USER_HOME=`pwd` #should be `echo $HOME`
98 USER_NAME=`echo $USER`
102 AC_SUBST(TRANSFORMER_MODULE)
103 AC_SUBST(FINDLIB_REQUIRES)
104 AC_SUBST(FINDLIB_CREQUIRES)
105 AC_SUBST(FINDLIB_DEPREQUIRES)
106 AC_SUBST(FINDLIB_CLEANREQUIRES)
107 AC_SUBST(HAVE_OCAMLOPT)
108 AC_SUBST(LABLGLADECC)
110 AC_SUBST(RT_BASE_DIR)
115 matita.conf.xml.sample
118 gtkmathview.matita.conf.xml