]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mlminidom/configure.in
*** empty log message ***
[helm.git] / helm / DEVEL / mlminidom / configure.in
index 44f00d854a67eb694be5aa0750dafe0f395a73ce..be862e2569336922f23789c8844862b402cf7951 100644 (file)
@@ -24,11 +24,20 @@ if test $HAVE_OCAMLC = "no"; then
 fi
 
 AC_MSG_CHECKING("for the ocaml library dir")
-OCAML_ROOT=`ocamlc -v | grep "^Standard" | sed 's/^.*: *//'`
-AC_MSG_RESULT($OCAML_ROOT)
+OCAML_LIB_DIR=`ocamlc -v | grep "^Standard" | sed 's/^.*: *//'`
+AC_MSG_RESULT($OCAML_LIB_DIR)
+
+AC_CHECK_FILE(/usr/include/caml/mlvalues.h,
+       OCAML_INCLUDE_DIR=/usr/include/caml,
+       OCAML_INCLUDE_DIR=$OCAML_LIB_DIR/caml
+)
 
 AC_SUBST(PACKAGE)
 AC_SUBST(VERSION)
-AC_SUBST(OCAML_ROOT)
+AC_SUBST(OCAML_INCLUDE_DIR)
+AC_SUBST(OCAML_LIB_DIR)
 
-AC_OUTPUT([Makefile])
+AC_OUTPUT([
+  Makefile
+  mlminidom.spec
+])