Re: Implementing a plugin-like module

2011-08-04 Thread Stefano Lattarini
Hello Sam. On Thursday 04 August 2011, Sam Varshavchik wrote: > I'm looking for a way to implement an optional plugin-like facility in > automake. > > Basically, take a stock distro installation of automake, then augment it > somehow so that automake would add my stuff into each Makefile.in fi

Re: Implementing a plugin-like module

2011-08-04 Thread Sam Varshavchik
Stefano Lattarini writes: A quick workaround to obtain this behaviour is to write your custom/rules defintion in a `.am' fragment in your source tree, and then include it from all the Makefile.am files that need it: $ cat my-rules.am my_variable = ... .ctpl.c: # rules to create a

Re: Implementing a plugin-like module

2011-08-04 Thread Stefano Lattarini
On Thursday 04 August 2011, Sam Varshavchik wrote: > > [SNIP] > > I also came up with a different solution last night. I install something > like this into /usr/share/aclocal: > > AC_DEFUN([LIBX_INIT],[ > PKG_PROG_PKG_CONFIG > PKG_CHECK_EXISTS([libx],[:],[AC_MSG_ERROR([libx not found])]) > > li