]> matita.cs.unibo.it Git - helm.git/commitdiff
split configure.ac in two parts: ocaml and gTopLevel
authorStefano Zacchiroli <zack@upsilon.cc>
Fri, 13 Feb 2004 12:29:10 +0000 (12:29 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Fri, 13 Feb 2004 12:29:10 +0000 (12:29 +0000)
helm/gTopLevel/.cvsignore
helm/gTopLevel/configure.ac [new file with mode: 0644]
helm/ocaml/configure.ac

index 09c78cec59b72904f73766196f89480331e23e71..ef9ce66ac88ae3b45f926ba0560bf75fd7984959 100644 (file)
@@ -7,3 +7,6 @@ chosenTermEditor.ml
 chosenTransformer.ml
 disambiguatingParser.ml
 .debug_script
+autom4te.cache
+config.{log,status}
+configure
diff --git a/helm/gTopLevel/configure.ac b/helm/gTopLevel/configure.ac
new file mode 100644 (file)
index 0000000..aaa661e
--- /dev/null
@@ -0,0 +1,58 @@
+AC_INIT(gTopLevel.ml)
+
+AC_ARG_WITH(term-editor,
+             AS_HELP_STRING([--with-term-editor=(tex|textual)],
+                            [choose term editor (default is tex)]),
+             [TERM_EDITOR=$withval], [TERM_EDITOR=textual])
+if test $TERM_EDITOR = "tex"; then
+  CHOSEN_TERM_EDITOR="include TexTermEditor"
+else
+  if test $TERM_EDITOR = "textual"; then
+    CHOSEN_TERM_EDITOR="include TermEditor"
+  else
+    AC_MSG_ERROR(unknwon term editor $TERM_EDITOR)
+  fi
+fi
+
+AC_ARG_WITH(term-parser,
+             AS_HELP_STRING([--with-term-parser=(cscTex|cscTextual|new)],
+                            [choose term parser (default is new)]),
+             [TERM_PARSER=$withval], [TERM_PARSER=new])
+if test $TERM_PARSER = "cscTex"; then
+  CHOSEN_TERM_PARSER="include CSCTexDisambiguatingParser"
+else
+  if test $TERM_PARSER = "cscTextual"; then
+    CHOSEN_TERM_PARSER="include CSCTextualDisambiguatingParser"
+  else
+    if test $TERM_PARSER = "new"; then
+      CHOSEN_TERM_PARSER="include AndreaAndZackDisambiguatingParser"
+    else
+      AC_MSG_ERROR(unknwon term parser $TERM_PARSER)
+    fi
+  fi
+fi
+
+AC_ARG_WITH(transformer,
+             AS_HELP_STRING([--with-transformer=(xslt|ocaml)],
+                            [choose mathml transformer (default is ocaml)]),
+             [TRANSFORMER=$withval], [TRANSFORMER=ocaml])
+if test $TRANSFORMER = "xslt"; then
+  CHOSEN_TRANSFORMER="include ApplyStylesheets"
+else
+  if test $TRANSFORMER = "ocaml"; then
+    CHOSEN_TRANSFORMER="include ApplyTransformation"
+  else
+    AC_MSG_ERROR(unknwon transformer $TRANSFORMER)
+  fi
+fi
+
+AC_SUBST(CHOSEN_TERM_EDITOR)
+AC_SUBST(CHOSEN_TERM_PARSER)
+AC_SUBST(CHOSEN_TRANSFORMER)
+
+AC_OUTPUT([
+  chosenTransformer.ml
+  chosenTermEditor.ml
+  disambiguatingParser.ml
+])
+
index 36bcc703f2ac23c07b053a662af9c619a9863666..8f368b0f9eead01a3d4749b695a3bb16aa5f5c8a 100644 (file)
@@ -10,52 +10,6 @@ if test $HAVE_OCAMLFIND = "no"; then
   AC_MSG_ERROR(could not find ocamlfind in PATH, please make sure findlib is installed)
 fi
 
-AC_ARG_WITH(term-editor,
-             AS_HELP_STRING([--with-term-editor=(tex|textual)],
-                            [choose term editor (default is tex)]),
-             [TERM_EDITOR=$withval], [TERM_EDITOR=textual])
-if test $TERM_EDITOR = "tex"; then
-  CHOSEN_TERM_EDITOR="include TexTermEditor"
-else
-  if test $TERM_EDITOR = "textual"; then
-    CHOSEN_TERM_EDITOR="include TermEditor"
-  else
-    AC_MSG_ERROR(unknwon term editor $TERM_EDITOR)
-  fi
-fi
-
-AC_ARG_WITH(term-parser,
-             AS_HELP_STRING([--with-term-parser=(cscTex|cscTextual|new)],
-                            [choose term parser (default is new)]),
-             [TERM_PARSER=$withval], [TERM_PARSER=new])
-if test $TERM_PARSER = "cscTex"; then
-  CHOSEN_TERM_PARSER="include CSCTexDisambiguatingParser"
-else
-  if test $TERM_PARSER = "cscTextual"; then
-    CHOSEN_TERM_PARSER="include CSCTextualDisambiguatingParser"
-  else
-    if test $TERM_PARSER = "new"; then
-      CHOSEN_TERM_PARSER="include AndreaAndZackDisambiguatingParser"
-    else
-      AC_MSG_ERROR(unknwon term parser $TERM_PARSER)
-    fi
-  fi
-fi
-
-AC_ARG_WITH(transformer,
-             AS_HELP_STRING([--with-transformer=(xslt|ocaml)],
-                            [choose mathml transformer (default is ocaml)]),
-             [TRANSFORMER=$withval], [TRANSFORMER=ocaml])
-if test $TRANSFORMER = "xslt"; then
-  CHOSEN_TRANSFORMER="include ApplyStylesheets"
-else
-  if test $TRANSFORMER = "ocaml"; then
-    CHOSEN_TRANSFORMER="include ApplyTransformation"
-  else
-    AC_MSG_ERROR(unknwon transformer $TRANSFORMER)
-  fi
-fi
-
 AC_MSG_CHECKING("where to install the library")
 OCAMLFIND_DEST_DIR="/public/sacerdot/prova"
 AC_MSG_RESULT($OCAMLFIND_DEST_DIR)
@@ -73,8 +27,5 @@ AC_SUBST(CHOSEN_TRANSFORMER)
 AC_OUTPUT([
   Makefile
   Makefile.common
-  ../gTopLevel/chosenTransformer.ml
-  ../gTopLevel/chosenTermEditor.ml
-  ../gTopLevel/disambiguatingParser.ml
 ])