1 AC_INIT(matita/matitaTypes.ml)
3 # Distribution settings
4 # (i.e. settings (automatically) manipulated before a release)
6 DEFAULT_DBHOST="mysql://mowgli.cs.unibo.it"
7 RT_BASE_DIR_DEFAULT="`pwd`/matita"
8 MATITA_VERSION="0.99.4"
9 DISTRIBUTED="yes" # "yes" for distributed tarballs
10 # End of distribution settings
13 AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
14 if test $HAVE_OCAMLC = "no"; then
15 AC_MSG_ERROR(could not find ocamlc)
17 AC_CHECK_PROG(HAVE_OCAMLOPT, ocamlopt, yes, no)
18 if test $HAVE_OCAMLOPT = "no"; then
19 AC_MSG_WARN(could not find ocamlopt: native code compilation disabled)
21 AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
22 if test $HAVE_OCAMLFIND = "yes"; then
25 AC_MSG_ERROR(could not find ocamlfind)
27 AC_CHECK_PROG(HAVE_LABLGLADECC, lablgladecc3, yes, no)
28 if test $HAVE_LABLGLADECC = "yes"; then
29 LABLGLADECC="lablgladecc3"
31 AC_MSG_ERROR(could not find lablgladecc3)
33 AC_CHECK_PROG(HAVE_CAMLP5O, camlp5o, yes, no)
34 if test $HAVE_CAMLP5O = "yes"; then
37 AC_MSG_ERROR(could not find camlp5o)
42 LIBSPATH="`pwd`/components"
43 OCAMLPATHL="$LIBSPATH/METAS"
44 OCAMLPATH="$OCAMLPATHL:$OCAMLPATH"
48 echo -n "creating METAs ... "
49 for f in $OCAMLPATHL/meta.*.src; do
50 basename=`basename $f`
51 metaname=`echo $basename | sed 's/meta\.\(.*\)\.src/\1/'`
52 dirname=`echo $metaname | sed 's/^helm-//'`
53 metafile="$OCAMLPATHL/META.$metaname"
55 echo "directory=\"$LIBSPATH/$dirname\"" >> $metafile
59 # (libs) findlib requisites
63 FINDLIB_LIBSREQUIRES="\
70 lablgtk3-sourceview3 \
76 # (Matita) findlib requisites
79 FINDLIB_COMREQUIRES="\
83 helm-ng_disambiguation \
87 helm-ng_paramodulation \
91 $FINDLIB_COMREQUIRES \
95 lablgtk3-sourceview3 \
98 for r in $FINDLIB_LIBSREQUIRES $FINDLIB_REQUIRES
100 AC_MSG_CHECKING(for $r ocaml library)
101 if OCAMLPATH=$OCAMLPATH $OCAMLFIND query $r &> /dev/null; then
104 AC_MSG_ERROR(could not find $r ocaml library)
108 OCAMLFIND_COMMANDS=""
109 # AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no)
110 # if test $HAVE_OCAMLC_OPT = "yes"; then
111 # if test "$OCAMLFIND_COMMANDS" = ""; then
112 # OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt"
114 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt"
117 # AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no)
118 # if test $HAVE_OCAMLOPT_OPT = "yes"; then
119 # if test "$OCAMLFIND_COMMANDS" = ""; then
120 # OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt"
122 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt"
125 if test "$OCAMLFIND_COMMANDS" != ""; then
126 OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND"
129 AC_MSG_CHECKING(--enable-debug argument)
131 [ --enable-debug Turn on debugging],
133 case "${enableval}" in
136 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
138 [GIVEN="no"; DEBUG="$DEBUG_DEFAULT"])
140 if test "$DEBUG" = "true"; then
141 MSG="$MSG, debugging enabled."
143 MSG="$MSG, debugging disabled."
147 AC_MSG_CHECKING(--enable-annot argument)
149 [ --enable-annot Turn on -dtypes compilation option],
151 case "${enableval}" in
154 *) AC_MSG_ERROR(bad value ${enableval} for --enable-annot) ;;
156 [GIVEN="no"; ANNOT="false"])
158 if test "$ANNOT" = "true"; then
159 MSG="$MSG, type annotation enabled."
161 MSG="$MSG, type annotation disabled."
166 AC_MSG_CHECKING(--with-runtime-dir argument)
167 AC_ARG_WITH(runtime-dir,
168 [ --with-runtime-dir Runtime directory (current working directory if not given)],
169 [ RT_BASE_DIR="${withval}" ],
170 [ RT_BASE_DIR="$RT_BASE_DIR_DEFAULT" ])
172 if test "yes" = "$RT_BASE_DIR"; then
175 ** empty --with-runtime-dir argument, please use --with-runtime-dir=value **"
179 AC_MSG_CHECKING(--with-dbhost argument)
181 [ --with-dbhost SQL database hostname],
182 [ DBHOST="${withval}" ],
183 [ DBHOST="$DEFAULT_DBHOST" ])
185 if test "yes" = "$DBHOST"; then
188 ** empty --with-dbhost argument, please use --with-dbhost=value **"
196 AC_SUBST(DISTRIBUTED)
197 AC_SUBST(FINDLIB_CREQUIRES)
198 AC_SUBST(FINDLIB_REQUIRES)
199 AC_SUBST(HAVE_OCAMLOPT)
200 AC_SUBST(LABLGLADECC)
201 AC_SUBST(MATITA_VERSION)
204 AC_SUBST(RT_BASE_DIR)
206 AC_SUBST(TRANSFORMER_MODULE)
209 components/extlib/componentsConf.ml
210 matita/matita.conf.xml
211 matita/buildTimeConf.ml
212 matita/help/C/version.txt