3 LABLGTKMATHVIEW_MAJOR_VERSION=0
4 LABLGTKMATHVIEW_MINOR_VERSION=2
5 LABLGTKMATHVIEW_MICRO_VERSION=2
6 LABLGTKMATHVIEW_VERSION=$LABLGTKMATHVIEW_MAJOR_VERSION.$LABLGTKMATHVIEW_MINOR_VERSION.$LABLGTKMATHVIEW_MICRO_VERSION
8 AC_CHECK_PROG(HAVE_GTKMATHVIEW, gtkmathview-config, yes, no)
9 if test $HAVE_GTKMATHVIEW = "no"; then
10 AC_MSG_ERROR(could not find gtkmathview configuration script, please make sure gtkmathview is installed)
13 AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
14 if test $HAVE_OCAMLC = "no"; then
15 AC_MSG_ERROR(could not find ocamlc in PATH, please make sure ocaml is installed)
18 AC_MSG_CHECKING(for the ocaml library dir)
19 OCAML_ROOT=`ocamlc -v | grep "^Standard" | sed 's/^.*: *//'`
20 AC_MSG_RESULT($OCAML_ROOT)
23 AC_CHECK_FILE($OCAML_ROOT/lablgtk/gtk.ml,
24 LABLGTK_LIB_DIR=$OCAML_ROOT/lablgtk,
28 if test $RES = "no"; then
30 AC_CACHE_VAL(lablgtkmathview_cv_LABLGTK_LIB_DIR,
31 echo "In which directory can I find the lablgtk library? (I haven't found it in the usual location $OCAML_ROOT/lablgtk)"
32 read lablgtkmathview_cv_LABLGTK_LIB_DIR
35 LABLGTK_LIB_DIR=$lablgtkmathview_cv_LABLGTK_LIB_DIR
36 if test "$RES" != "Asked"; then
37 LABLGTK_LIB_DIR=`eval "echo $LABLGTK_LIB_DIR"`
43 AC_CHECK_FILE($OCAML_ROOT/mlminidom/minidom.mli,
44 MLMINIDOM_LIB_DIR=$OCAML_ROOT/mlminidom,
48 if test $RES = "no"; then
50 AC_CACHE_VAL(lablgtkmathview_cv_MLMINIDOM_LIB_DIR,
51 echo "In which directory can I find the mlminidom library? (I haven't found it in the usual location $OCAML_ROOT/mlminidom)"
52 read lablgtkmathview_cv_MLMINIDOM_LIB_DIR
55 MLMINIDOM_LIB_DIR=$lablgtkmathview_cv_MLMINIDOM_LIB_DIR
56 if test "$RES" != "Asked"; then
57 MLMINIDOM_LIB_DIR=`eval "echo $MLMINIDOM_LIB_DIR"`
62 AC_SUBST(LABLGTKMATHVIEW_VERSION)
64 AC_SUBST(LABLGTK_LIB_DIR)
65 AC_SUBST(MLMINIDOM_LIB_DIR)