3 AC_CHECK_PROG(HAVE_OCAMLFIND, ocamlfind, yes, no)
4 if test $HAVE_OCAMLFIND = "yes"; then
7 AC_MSG_ERROR(could not find ocamlfind)
10 AC_CHECK_PROG(HAVE_OCAMLC_OPT, ocamlc.opt, yes, no)
11 if test $HAVE_OCAMLC_OPT = "yes"; then
12 if test "$OCAMLFIND_COMMANDS" = ""; then
13 OCAMLFIND_COMMANDS="ocamlc=ocamlc.opt"
15 OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlc=ocamlc.opt"
18 AC_CHECK_PROG(HAVE_OCAMLOPT_OPT, ocamlopt.opt, yes, no)
19 if test $HAVE_OCAMLOPT_OPT = "yes"; then
20 if test "$OCAMLFIND_COMMANDS" = ""; then
21 OCAMLFIND_COMMANDS="ocamlopt=ocamlopt.opt"
23 OCAMLFIND_COMMANDS="$OCAMLFIND_COMMANDS ocamlopt=ocamlopt.opt"
26 if test "$OCAMLFIND_COMMANDS" != ""; then
27 OCAMLFIND="OCAMLFIND_COMMANDS='$OCAMLFIND_COMMANDS' $OCAMLFIND"
31 AC_ARG_WITH(term-editor,
32 AS_HELP_STRING([--with-term-editor=(tex|textual)],
33 [choose term editor (default is tex)]),
34 [TERM_EDITOR=$withval], [TERM_EDITOR=textual])
35 if test $TERM_EDITOR = "tex"; then
36 CHOSEN_TERM_EDITOR="include TexTermEditor"
38 if test $TERM_EDITOR = "textual"; then
39 CHOSEN_TERM_EDITOR="include TermEditor"
41 AC_MSG_ERROR(unknwon term editor $TERM_EDITOR)
45 AC_ARG_WITH(term-parser,
46 AS_HELP_STRING([--with-term-parser=(cscTex|cscTextual|new)],
47 [choose term parser (default is new)]),
48 [TERM_PARSER=$withval], [TERM_PARSER=new])
49 if test $TERM_PARSER = "cscTex"; then
50 CHOSEN_TERM_PARSER="include CSCTexDisambiguatingParser"
52 if test $TERM_PARSER = "cscTextual"; then
53 CHOSEN_TERM_PARSER="include CSCTextualDisambiguatingParser"
55 if test $TERM_PARSER = "new"; then
56 CHOSEN_TERM_PARSER="include AndreaAndZackDisambiguatingParser"
58 AC_MSG_ERROR(unknwon term parser $TERM_PARSER)
63 if test $TERM_EDITOR = "tex"; then
64 CHOSEN_TERM_EDITOR="include TexTermEditor"
66 if test $TERM_EDITOR = "textual"; then
67 CHOSEN_TERM_EDITOR="include TermEditor"
69 AC_MSG_ERROR(unknwon term editor $TERM_EDITOR)
74 AC_SUBST(CHOSEN_TERM_EDITOR)
75 AC_SUBST(CHOSEN_TERM_PARSER)
79 disambiguatingParser.ml