Re: how to add this function to the aclole.m4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Ralph,

please don't top-post, it makes threads hard to read; thank you.

* Ralph Blach wrote on Thu, May 20, 2010 at 08:27:02PM CEST:
> Eric Blake wrote:
> >On 05/19/2010 05:21 PM, Ralph Blach wrote:
> >>I want to add this function to the aclocal.m4
> >>
> >>How do I do it.
> >Are you using automake?  If so, just stick the function in a file in the
> >same directory as where you tell 'aclocal -I dir' to look.  If not, just
> >paste it in.
[...]
> I am quite happy with aclocal, but and the default macros,
> 
> Is there anyway I can add a directory, and still have aclocal use new macro.

Yes, as Eric indicated: you can do it like this:

- create a m4/ subdirectory of your top source directory,
- create a file m4/mymacro.m4 with the macro(s) contents,
- add the line
    ACLOCAL_AMFLAGS = -I m4
  to the toplevel Makefile.am file,
- optionally also add the line
    AC_CONFIG_MACRO_DIR([m4])
  to the configure.ac file

and rerun 'autoreconf -v'.  If your configure.ac file uses the macro,
then it should now be picked up from the file in the m4 directory.

Have fun,
Ralf

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux