X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=helm%2Fmatita%2Fconfigure.ac;h=cc8d14a1384bc6b953b131fb16576da1a15ebb04;hp=cc0c50349ed1c8b1556e6f68de9f42cb681a8ba5;hb=d651bf2e3d560e194fbe948dd950dd600a40eab6;hpb=c5d4ad1c98c1434b95a8a9b1c8697dd36cf39623 diff --git a/helm/matita/configure.ac b/helm/matita/configure.ac index cc0c50349..cc8d14a13 100644 --- a/helm/matita/configure.ac +++ b/helm/matita/configure.ac @@ -6,14 +6,12 @@ if test $HAVE_OCAMLFIND = "yes"; then 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" @@ -21,9 +19,21 @@ else 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