GNU Autotools: Difference between revisions
No edit summary |
|||
| Line 6: | Line 6: | ||
==Local macros== | ==Local macros== | ||
Put them in <tt>acinclude.m4</tt>, *not* <tt>aclocal.m4</tt>. The latter is blown away by <tt>autoreconf</tt>. The former is properly included along with <tt>aclocal.m4</tt> (which ought be automatically generated by <tt>aclocal</tt>) by autotools. | Put them in <tt>acinclude.m4</tt>, *not* <tt>aclocal.m4</tt>. The latter is blown away by <tt>autoreconf</tt>. The former is properly included along with <tt>aclocal.m4</tt> (which ought be automatically generated by <tt>aclocal</tt>) by autotools. | ||
Alternatively, you can use multiple files in a subdirectory, and then use <tt>AC_CONFIG_MACRO_DIR([dirname])</tt> (and <tt>ACLOCAL_AMFLAGS=-I dirname</tt> in <tt>Makefile.am</tt>). | |||