From 1e65c6c293a0f7917e87438330e2583bd38758dd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 4 Jan 2008 16:25:24 +0000 Subject: Make extlib an optional dependency. * Makefile.in, README, configure.ac, examples/Makefile.in, libvirt/Makefile.in, mlvirtmanager/Makefile.in: Much code doesn't really need extlib, so make it optional. Bail earlier in configure step if we don't have ocamlfind. --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8e4c9c9..1fa9361 100644 --- a/configure.ac +++ b/configure.ac @@ -65,18 +65,18 @@ AC_CHECK_LIB(ncurses,initscr) dnl Check for basic OCaml environment & findlib. AC_PROG_OCAML AC_PROG_FINDLIB +if test "x$OCAMLFIND" = "x"; then + AC_MSG_ERROR([Cannot find required program 'ocamlfind' (part of findlib)]) +fi dnl Check for required OCaml packages. AC_CHECK_OCAML_PKG(unix) if test "x$pkg_unix" != "xyes"; then AC_MSG_ERROR([Cannot find required OCaml package 'unix']) fi -AC_CHECK_OCAML_PKG(extlib) -if test "x$pkg_extlib" != "xyes"; then - AC_MSG_ERROR([Cannot find required OCaml package 'extlib']) -fi dnl Check for optional OCaml packages. +AC_CHECK_OCAML_PKG(extlib) AC_CHECK_OCAML_PKG(lablgtk2) AC_CHECK_OCAML_PKG(curses) AC_CHECK_OCAML_PKG(gettext) -- cgit