1 AC_INIT(matita/matitaTypes.ml)
3 # Distribution settings
4 # (i.e. settings (automatically) manipulated before a release)
6 DEFAULT_DBHOST="mowgli.cs.unibo.it"
7 RT_BASE_DIR_DEFAULT="`pwd`/matita"
9 DISTRIBUTED="no" # "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, lablgladecc2, yes, no)
28 if test $HAVE_LABLGLADECC = "yes"; then
29 LABLGLADECC="lablgladecc2"
31 AC_MSG_ERROR(could not find lablgladecc2)
33 AC_CHECK_PROG(HAVE_CAMLP4O, camlp4o, yes, no)
34 if test $HAVE_CAMLP4O = "yes"; then
37 AC_MSG_ERROR(could not find camlp4o)
42 LIBSPATH="`pwd`/components"
43 OCAMLPATH="$LIBSPATH/METAS"
47 echo -n "creating METAs ... "
48 for f in $OCAMLPATH/meta.*.src; do
49 basename=`basename $f`
50 metaname=`echo $basename | sed 's/meta\.\(.*\)\.src/\1/'`
51 dirname=`echo $metaname | sed 's/^helm-//'`
52 metafile="$OCAMLPATH/META.$metaname"
54 echo "directory=\"$LIBSPATH/$dirname\"" >> $metafile
58 # (libs) findlib requisites
60 FINDLIB_LIBSREQUIRES="\
73 # (Matita) findlib requisites
75 FINDLIB_COMREQUIRES="\
76 helm-cic_disambiguation \
84 $FINDLIB_COMREQUIRES \
93 for r in $FINDLIB_LIBSREQUIRES $FINDLIB_REQUIRES
95 AC_MSG_CHECKING(for $r ocaml library)
96 if OCAMLPATH=$OCAMLPATH $OCAMLFIND query $r &> /dev/null; then
99 AC_MSG_ERROR(could not find $r ocaml library)
103 OCAMLFIND_COMMANDS=""
104 # AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no)
105 # if test $HAVE_OCAMLC_OPT = "yes"; then
106 # if test "$OCAMLFIND_COMMANDS" = ""; then
107 # OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt"
109 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt"
112 # AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no)
113 # if test $HAVE_OCAMLOPT_OPT = "yes"; then
114 # if test "$OCAMLFIND_COMMANDS" = ""; then
115 # OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt"
117 # OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt"
120 if test "$OCAMLFIND_COMMANDS" != ""; then
121 OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND"
124 AC_MSG_CHECKING(--enable-debug argument)
126 [ --enable-debug Turn on debugging],
128 case "${enableval}" in
131 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
133 [GIVEN="no"; DEBUG="$DEBUG_DEFAULT"])
135 if test "$DEBUG" = "true"; then
136 MSG="$MSG, debugging enabled."
138 MSG="$MSG, debugging disabled."
142 AC_MSG_CHECKING(--with-runtime-dir argument)
143 AC_ARG_WITH(runtime-dir,
144 [ --with-runtime-dir Runtime directory (current working directory if not given)],
145 [ RT_BASE_DIR="${withval}" ],
146 [ RT_BASE_DIR="$RT_BASE_DIR_DEFAULT" ])
147 AC_MSG_RESULT($RT_BASE_DIR)
149 AC_MSG_CHECKING(--with-dbhost argument)
151 [ --with-dbhost SQL database hostname],
152 [ DBHOST="${withval}" ],
153 [ DBHOST="$DEFAULT_DBHOST" ])
154 AC_MSG_RESULT($DBHOST)
159 AC_SUBST(DISTRIBUTED)
160 AC_SUBST(FINDLIB_CREQUIRES)
161 AC_SUBST(FINDLIB_REQUIRES)
162 AC_SUBST(HAVE_OCAMLOPT)
163 AC_SUBST(LABLGLADECC)
164 AC_SUBST(MATITA_VERSION)
167 AC_SUBST(RT_BASE_DIR)
169 AC_SUBST(TRANSFORMER_MODULE)
172 components/extlib/componentsConf.ml
173 matita/matita.conf.xml.devel
174 matita/matita.conf.xml.user
175 matita/matita.conf.xml.build
176 matita/buildTimeConf.ml
177 matita/gtkmathview.matita.conf.xml
178 matita/help/C/version.txt