File: configure.in

package info (click to toggle)
lablgtkmathview 0.7.8-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 332 kB
  • sloc: ml: 777; ansic: 177; makefile: 139; xml: 132
file content (60 lines) | stat: -rw-r--r-- 1,682 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
AC_INIT(gMathView.ml)

PACKAGE=lablgtkmathview

LABLGTKMATHVIEW_MAJOR_VERSION=0
LABLGTKMATHVIEW_MINOR_VERSION=7
LABLGTKMATHVIEW_MICRO_VERSION=8
LABLGTKMATHVIEW_VERSION=$LABLGTKMATHVIEW_MAJOR_VERSION.$LABLGTKMATHVIEW_MINOR_VERSION.$LABLGTKMATHVIEW_MICRO_VERSION
VERSION=$LABLGTKMATHVIEW_VERSION

PKG_CHECK_MODULES(GDOME, gdome2 >= 0.7.0,, AC_MSG_ERROR(could not find Gdome2))
AC_SUBST(GDOME_CFLAGS)
AC_SUBST(GDOME_LIBS)

PKG_CHECK_MODULES(GTKMATHVIEW, gtkmathview-gmetadom >= 0.6.2,, AC_MSG_ERROR(could not find gtkmathview-gmetadom))
AC_SUBST(GTKMATHVIEW_CFLAGS)
AC_SUBST(GTKMATHVIEW_LIBS)

AC_CHECK_PROG(HAVE_OCAMLC, ocamlc, yes, no)
if test $HAVE_OCAMLC = "no"; then
  AC_MSG_ERROR(could not find ocamlc in PATH, please make sure ocaml is installed)
fi

AC_CHECK_PROG(HAVE_OCAMLOPT, ocamlopt, yes, no)

AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
if test $HAVE_OCAMLFIND = "no"; then
  AC_MSG_ERROR(could not find ocamlfind in PATH, please make sure findlib is installed)
fi

AC_MSG_CHECKING("for gdome2")
ocamlfind query gdome2 ||
  AC_MSG_ERROR(gdome2 not installed (according to findlib))

AC_MSG_CHECKING("for lablgtk2")
ocamlfind query lablgtk2 ||
  AC_MSG_ERROR(lablgtk2 not installed (according to findlib))

AC_MSG_CHECKING("for the ocaml library dir")
OCAML_LIB_DIR=`ocamlc -where`
OCAML_STUB_DIR="$OCAML_LIB_DIR/stublibs"
AC_MSG_RESULT($OCAML_LIB_DIR)

AC_CHECK_FILE(/usr/include/caml/mlvalues.h,
	OCAML_INCLUDE_DIR=/usr/include/caml,
	OCAML_INCLUDE_DIR=$OCAML_LIB_DIR/caml
)

AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(HAVE_OCAMLOPT)
AC_SUBST(OCAML_INCLUDE_DIR)
AC_SUBST(OCAML_LIB_DIR)
AC_SUBST(OCAML_STUB_DIR)

AC_OUTPUT([
  test/Makefile
  Makefile
  META
])