Initialization and Package Information

Now let's turn our attention back to the contents of the configure.ac file in Example 3-11. The first section contains Autoconf initialization macros. These are required for all projects. Let's consider each of these macros individually, because they're all important.

AC_PREREQ

The AC_PREREQ macro simply defines the earliest version of Autoconf that may be used to successfully process this configure.ac file:

AC_PREREQ(version)

The GNU Autoconf Manual indicates that AC_PREREQ is the only macro that may be used before AC_INIT. This is because it's good to ensure you're using a new enough version of Autoconf before you begin processing any other macros, which may be version dependent.

AC_INIT

The AC_INIT macro, as ...

Get Autotools 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.