]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/lablgtkmathview/configure.in
last update was a fake update!!!
[helm.git] / helm / DEVEL / lablgtkmathview / configure.in
index c1403adea00fdebbc6d92ce0ee1f8794caa3a7d7..d5284b28a8b3b2b83c3077a81de00c93e993aefb 100644 (file)
@@ -16,19 +16,19 @@ 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)
 
-RES="yes"
-AC_CHECK_FILE($OCAML_ROOT/lablgtk/gtk.ml,
-  LABLGTK_LIB_DIR=$OCAML_ROOT/lablgtk,
+AC_CHECK_FILE($OCAML_LIB_DIR/lablgtk/gtk.ml,
+  RES="yes"
+  LABLGTK_LIB_DIR=$OCAML_LIB_DIR/lablgtk,
   RES="no"
 )
 
 if test $RES = "no"; then
   RES=""
   AC_CACHE_VAL(lablgtkmathview_cv_LABLGTK_LIB_DIR,
-    echo "In which directory can I find the lablgtk library? (I haven't found it in the usual location $OCAML_ROOT/lablgtk)"
+    echo "In which directory can I find the lablgtk library? (I haven't found it in the usual location $OCAML_LIB_DIR/lablgtk)"
     read lablgtkmathview_cv_LABLGTK_LIB_DIR
     RES="Asked"
   )
@@ -39,16 +39,16 @@ if test $RES = "no"; then
   AC_CACHE_SAVE
 fi
 
-RES="yes"
-AC_CHECK_FILE($OCAML_ROOT/mlminidom/minidom.mli,
-  MLMINIDOM_LIB_DIR=$OCAML_ROOT/mlminidom,
+AC_CHECK_FILE($OCAML_LIB_DIR/mlminidom/minidom.mli,
+  RES="yes"
+  MLMINIDOM_LIB_DIR=$OCAML_LIB_DIR/mlminidom,
   RES="no"
 )
 
 if test $RES = "no"; then
   RES=""
   AC_CACHE_VAL(lablgtkmathview_cv_MLMINIDOM_LIB_DIR,
-    echo "In which directory can I find the mlminidom library? (I haven't found it in the usual location $OCAML_ROOT/mlminidom)"
+    echo "In which directory can I find the mlminidom library? (I haven't found it in the usual location $OCAML_LIB_DIR/mlminidom)"
     read lablgtkmathview_cv_MLMINIDOM_LIB_DIR
     RES="Asked"
   )
@@ -60,8 +60,10 @@ if test $RES = "no"; then
 fi
 
 AC_SUBST(LABLGTKMATHVIEW_VERSION)
-AC_SUBST(OCAML_ROOT)
+AC_SUBST(OCAML_LIB_DIR)
 AC_SUBST(LABLGTK_LIB_DIR)
 AC_SUBST(MLMINIDOM_LIB_DIR)
 
-AC_OUTPUT([Makefile])
+AC_OUTPUT([
+  Makefile
+])