5 MLMINIDOM_MAJOR_VERSION=0
6 MLMINIDOM_MINOR_VERSION=2
7 MLMINIDOM_MICRO_VERSION=2
8 MLMINIDOM_VERSION=$MLMINIDOM_MAJOR_VERSION.$MLMINIDOM_MINOR_VERSION.$MLMINIDOM_MICRO_VERSION
9 VERSION=$MLMINIDOM_VERSION
11 AC_CHECK_PROG(HAVE_GLIB, glib-config, yes, no)
12 if test $HAVE_GLIB = "no"; then
13 AC_MSG_ERROR(could not font glib configuration script, please make sure glib (dev) is installed)
16 AC_CHECK_PROG(HAVE_MINIDOM, minidom-config, yes, no)
17 if test $HAVE_MINIDOM = "no"; then
18 AC_MSG_ERROR(could not find minidom configuration script, please make sure minidom is installed)
21 AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
22 if test $HAVE_OCAMLC = "no"; then
23 AC_MSG_ERROR(could not find ocamlc in PATH, please make sure ocaml is installed)
26 AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
27 if test $HAVE_OCAMLFIND = "no"; then
28 AC_MSG_ERROR(could not find ocamlfind in PATH, please make sure findlib is installed)
31 AC_MSG_CHECKING("for the ocaml library dir")
32 OCAML_LIB_DIR=`ocamlc -where`
33 AC_MSG_RESULT($OCAML_LIB_DIR)
35 AC_CHECK_FILE(/usr/include/caml/mlvalues.h,
36 OCAML_INCLUDE_DIR=/usr/include/caml,
37 OCAML_INCLUDE_DIR=$OCAML_LIB_DIR/caml
42 AC_SUBST(OCAML_INCLUDE_DIR)
43 AC_SUBST(OCAML_LIB_DIR)