Add Tom's Grammar work to the build script. Requires libGrammar.a
[SXSI/xpathcomp.git] / configure
index 4e72824..f0540b7 100755 (executable)
--- a/configure
+++ b/configure
@@ -22,6 +22,7 @@ Conf.check "bp" (Conf.absolute) ("%s/../bp/libbp.a") (Sys.file_exists);;
 Conf.check "libcds" (Conf.absolute) ("%s/../libcds/lib/libcds.a") (Sys.file_exists);;
 Conf.check "XMLTree" (Conf.absolute) ("%s/../XMLTree/libXMLTree.a") (Sys.file_exists);;
 Conf.check "TextCollection" (Conf.absolute) ("%s/../TextCollection/libTextCollection.a") (Sys.file_exists);;
+Conf.check "Grammar" (Conf.absolute) ("%s/../Grammar/libGrammar.a") (Sys.file_exists);;
 
 
 let libs_I= [
@@ -29,6 +30,7 @@ let libs_I= [
     Conf.absolute "-I%s/../libcds/includes";
     Conf.absolute "-I%s/../XMLTree";
     Conf.absolute "-I%s/../TextCollection";
+    Conf.absolute "-I%s/../Grammar";
     Conf.absolute "-I%s/..";
      ]
 
@@ -37,15 +39,17 @@ let libs_L = [
     Conf.absolute "-L%s/../libcds/lib";
     Conf.absolute "-L%s/../XMLTree";
     Conf.absolute "-L%s/../TextCollection";
+    Conf.absolute "-L%s/../Grammar";
     Conf.absolute "-L%s/..";
    ]
 
 (* Order is relevant *)
 let libs_l = [
-     "-lXMLTree"
+     "-lGrammar";
+     "-lXMLTree";
      "-lTextCollection";
      "-lbp";
-     "-lcds";
+     "-lcds"
 ]
 
 let _,ocamlI,_ = Conf.exec "ocamlc -where";;