Add autoconf infrastructure, license, and macro files.
[tatoo.git] / configure.ac
1 AC_INIT(tatoo,0.01)
2 AM_INIT_AUTOMAKE
3 AC_CONFIG_MACRO_DIR([m4])
4
5
6 AC_PROG_OCAML
7 if test "$OCAMLC" = "no"; then
8   AC_MSG_ERROR([Please install the OCaml compiler])
9 fi
10
11 AC_PROG_FINDLIB
12 if test "$OCAMLFIND" = "no"; then
13   AC_MSG_ERROR([Please install OCaml findlib (the ocamlfind command)])
14 fi
15
16 AC_CHECK_OCAML_PKG([ulex])
17 if test "$OCAML_PKG_ulex" = "no"; then
18   AC_MSG_ERROR([Please install OCaml findlib module 'ulex'.])
19 fi
20
21 AC_CHECK_OCAML_PKG([expat])
22 if test "$OCAML_PKG_expat" = "no"; then
23   AC_MSG_ERROR([Please install OCaml findlib module 'expat'.])
24 fi
25
26 AC_CONFIG_FILES([Makefile])
27
28 AC_OUTPUT