OCAMLFIND = @OCAMLFIND@
CAMLP4O = @CAMLP4O@
LABLGLADECC = @LABLGLADECC@
+REQUIRES = @FINDLIB_REQUIRES@
-REQUIRES = lablgtk2.glade helm-registry
OCAML_FLAGS = -package "$(REQUIRES)" -pp $(CAMLP4O)
OCAML_THREADS_FLAGS = -thread
OCAML_DEBUG_FLAGS =
else
AC_MSG_ERROR(could not find ocamlfind)
fi
-
AC_CHECK_PROG(HAVE_LABLGLADECC, lablgladecc2, yes, no)
if test $HAVE_LABLGLADECC = "yes"; then
LABLGLADECC="lablgladecc2"
else
AC_MSG_ERROR(could not find lablgladecc2)
fi
-
AC_CHECK_PROG(HAVE_CAMLP4O, camlp4o, yes, no)
if test $HAVE_CAMLP4O = "yes"; then
CAMLP4O="camlp4o"
AC_MSG_ERROR(could not find camlp4o)
fi
+FINDLIB_REQUIRES="lablgtk2.glade helm-registry"
+for r in $FINDLIB_REQUIRES
+do
+ AC_MSG_CHECKING(for $r ocaml library)
+ if $OCAMLFIND query $r &> /dev/null; then
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_ERROR(could not find $r ocaml library)
+ fi
+done
+
AC_SUBST(OCAMLFIND)
AC_SUBST(CAMLP4O)
AC_SUBST(LABLGLADECC)
+AC_SUBST(FINDLIB_REQUIRES)
AC_OUTPUT([
buildTimeConf.ml