I have downloaded a macro from Autoconf Archive, and I want to use it. What do I have to put in my configure.ac file to make use this macro?
As an alternative to Idav1s' solution (which is absolutely correct), you can install the macro in a location where aclocal
will find it (use aclocal --print
to see where aclocal
is looking for .m4
files). Each approach has pros and cons. If you install the .m4
files in $(aclocal --print)
, you can use the macro in all of your projects without doing anything else. The primary drawback is that each developer who works on the project will have to install the macro on their box, and that requires each developer to have a reasonable understanding of the autotools.