22.1. Autoconf Preliminaries

In a small package that uses only Autoconf, your own macros are placed in the 'aclocal.m4' file—this includes macros that you may have obtained from third parties, such as the Autoconf macro archive (see Section 22.5.1, "Autoconf Macro Archive" ). If your package additionally uses Automake, these macros should be placed in 'acinclude.m4'. The aclocal program from Automake reads in macro definitions from 'acinclude.m4' when generating 'aclocal.m4'. When using Automake, for instance, 'aclocal.m4' includes the definitions of AM_ macros needed by Automake.

In larger projects, it is advisable to keep your custom macros in a more organized structure. Autoconf version 2.15 will introduce a new facility to explicitly include ...

Get GNU Autoconf, Automake, and Libtool now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.