]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mlminidom/configure.in
- Check for ocamlfind added.
[helm.git] / helm / DEVEL / mlminidom / configure.in
index bf6dcdcb148da1bda326ec79df7d9ae2d1c89890..61d7770f407537f77dae75b5b2c7fa79c863e742 100644 (file)
@@ -23,8 +23,13 @@ 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_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 the ocaml library dir")
-OCAML_LIB_DIR=`ocamlc -v | grep "^Standard" | sed 's/^.*: *//'`
+OCAML_LIB_DIR=`ocamlc -where`
 AC_MSG_RESULT($OCAML_LIB_DIR)
 
 AC_CHECK_FILE(/usr/include/caml/mlvalues.h,