O'Reilly logo

Autotools by John Calcote

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required