[ragel-users] Autoconf/automake spport for Ragel

Diego E. 'Flameeyes' Pettenò flameeyes at gmail.com
Thu Mar 12 11:11:39 UTC 2009

Hi everybody,

since I wrote these for a project I'm working on, I thought they might
be useful to others too; they should be pretty generic and well suited
for being integrated in other projects.

There are two macros, CHECK_RAGEL and CHECK_RAGEL_AM, the latter will
enable the HAVE_RAGEL conditional, while the former will just do the
autoconf check.

The macros both accept a single parameter, the relative path to a source
file generated by Ragel (i.e.: the .c file not the .rl file) that can be
checked to be present or not.

The make rule uses RAGELFLAGS to pass extra options to Ragel so the user
is able to choose a different FSM implementation rather than the default

Diego "Flameeyes" Pettenò

-------------- next part --------------
# -*- Makefile -*-


	$(RAGEL) $(RAGELFLAGS) -C $< -o $@
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ragel.m4
Type: application/x-m4
Size: 1386 bytes
Desc: not available
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20090312/832b4d51/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20090312/832b4d51/attachment-0001.sig>

More information about the ragel-users mailing list