AC_INIT(ragel/main.cpp)
AC_CONFIG_HEADER(common/config.h)
-dnl Set true if build system should generate parsers from flex, bison, and
-dnl gperf sources. Set false if generated files are included and not to be
+dnl Set to true if build system should generate parsers from ragel, kelbt, and
+dnl gperf sources. Set to false if generated files are included and not to be
dnl built (production).
AC_SUBST(BUILD_PARSERS,true)
if test $BUILD_PARSERS = true; then
-dnl Check for flex
-AC_CHECK_PROG(FLEX, flex, flex)
-if test -z "$FLEX"; then
+dnl Check for Ragel
+AC_CHECK_PROG(RAGEL, ragel, ragel)
+if test -z "$RAGEL"; then
echo
- echo "error: flex is required to compile ragel"
+ echo "error: ragel is required to build the parsers"
echo
exit 1
fi
AC_CHECK_PROG(GPERF, gperf, gperf)
if test -z "$GPERF"; then
echo
- echo "error: gperf is required to compile ragel"
+ echo "error: gperf is required to build the parsers"
echo
exit 1
fi
-dnl Check for bison
-AC_CHECK_PROG(BISON, bison, bison)
-if test -z "$BISON"; then
+dnl Check for Kelbt
+AC_CHECK_PROG(KELBT, kelbt, kelbt)
+if test -z "$KELBT"; then
echo
- echo "error: bison is required to compile ragel"
- echo
- exit 1
-fi
-
-dnl Sorry, Ragel will not compile with bison++.
-if "$BISON" --version | grep 'bison++'; then
- echo
- echo "error: sorry, ragel cannot be compiled with bison++"
+ echo "error: kelbt is required to build the parsers"
echo
exit 1
fi
fi
dnl write output files
-AC_OUTPUT(Makefile common/Makefile ragel/Makefile rlcodegen/Makefile doc/Makefile test/Makefile)
+AC_OUTPUT(Makefile common/Makefile ragel/Makefile redfsm/Makefile rlcodegen/Makefile doc/Makefile test/Makefile)
echo "configuration of ragel complete"