summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
-rw-r--r--src/Makefile_Eolian.am13
2 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0d7e4646fb..0b0dac3ded 100644
--- a/configure.ac
+++ b/configure.ac
@@ -330,6 +330,11 @@ fi
330 330
331AM_CONDITIONAL([EFL_ENABLE_COVERAGE], [test "${want_coverage}" = "yes"]) 331AM_CONDITIONAL([EFL_ENABLE_COVERAGE], [test "${want_coverage}" = "yes"])
332 332
333# ragel
334
335AC_CHECK_PROG([have_ragel], [ragel], [yes], [no])
336AM_CONDITIONAL([EFL_HAVE_RAGEL], [test "${have_ragel}" = "yes"])
337
333#### Checks for libraries 338#### Checks for libraries
334 339
335# check unit testing library 340# check unit testing library
diff --git a/src/Makefile_Eolian.am b/src/Makefile_Eolian.am
index 871ffffb2f..6807557b52 100644
--- a/src/Makefile_Eolian.am
+++ b/src/Makefile_Eolian.am
@@ -42,3 +42,16 @@ bin_eolian_eolian_gen_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@
42include Makefile_Eolian_Helper.am 42include Makefile_Eolian_Helper.am
43 43
44EXTRA_DIST += lib/eolian/eo_lexer.rl 44EXTRA_DIST += lib/eolian/eo_lexer.rl
45
46if EFL_HAVE_RAGEL
47SUFFIXES += .rl
48
49AM_V_RAGEL = $(am__v_RAGEL_@AM_V@)
50am__v_RAGEL_ = $(am__v_RAGEL_@AM_DEFAULT_V@)
51am__v_RAGEL_0 = @echo " RAGEL " $@;
52
53.rl.c:
54 $(AM_V_RAGEL) ragel -o $@ $<
55
56lib/eolian/eo_lexer.c: lib/eolian/eo_lexer.rl
57endif