VERSION = @VERSION@
INCLUDEDIR = @OCAML_INCLUDE_DIR@
PROPCC = @OCAML_LIB_DIR@/lablgtk2/propcc
+NATIVE = @HAVE_OCAMLOPT@
PREFIX =
OBJECTS_C = ml_gtk_mathview.o
OBJECTS = gtkMathViewProps.cmo ogtkMathViewProps.cmo gtk_mathview.cmo gtkMathView.cmo gMathView.cmo gMathViewAux.cmo
TMPDIR = .test
TMPPKGDIR = $(TMPDIR)/$(PACKAGE)
+ifeq ($(NATIVE),yes)
+world: all opt
+else
+world: all
+endif
+
all: $(ARCHIVE).cma lib$(ARCHIVE).a $(DLL)
opt: $(ARCHIVE).cmxa $(ARCHIVE).a
test: $(TESTDIR)/test
test.opt: $(TESTDIR)/test.opt
-world: all opt
dist:
rm -rf $(DIST_DIR)/
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)
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)