3 PACKAGE=lablgtkmathview
5 LABLGTKMATHVIEW_MAJOR_VERSION=0
6 LABLGTKMATHVIEW_MINOR_VERSION=3
7 LABLGTKMATHVIEW_MICRO_VERSION=0
8 LABLGTKMATHVIEW_VERSION=$LABLGTKMATHVIEW_MAJOR_VERSION.$LABLGTKMATHVIEW_MINOR_VERSION.$LABLGTKMATHVIEW_MICRO_VERSION
9 VERSION=$LABLGTKMATHVIEW_VERSION
11 AC_CHECK_PROG(HAVE_GTKMATHVIEW, gtkmathview-config, yes, no)
12 if test $HAVE_GTKMATHVIEW = "no"; then
13 AC_MSG_ERROR(could not find gtkmathview configuration script, please make sure gtkmathview is installed)
16 AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
17 if test $HAVE_OCAMLC = "no"; then
18 AC_MSG_ERROR(could not find ocamlc in PATH, please make sure ocaml is installed)
21 AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
22 if test $HAVE_OCAMLFIND = "no"; then
23 AC_MSG_ERROR(could not find ocamlfind in PATH, please make sure findlib is installed)
26 AC_MSG_CHECKING("for gdome")
27 ocamlfind query gdome ||
28 AC_MSG_ERROR(gdome not installed (according to findlib))
30 AC_MSG_CHECKING("for lablgtk")
31 ocamlfind query lablgtk ||
32 AC_MSG_ERROR(lablgtk not installed (according to findlib))
34 AC_MSG_CHECKING("for the ocaml library dir")
35 OCAML_LIB_DIR=`ocamlc -where`
36 AC_MSG_RESULT($OCAML_LIB_DIR)
38 AC_CHECK_FILE(/usr/include/caml/mlvalues.h,
39 OCAML_INCLUDE_DIR=/usr/include/caml,
40 OCAML_INCLUDE_DIR=$OCAML_LIB_DIR/caml
45 AC_SUBST(OCAML_INCLUDE_DIR)