GNU Autoconf, Automake, and Libtool
by Gary V. Vaughan, Ben Elliston, Tom Tromey, Ian Lance Taylor
20.2. How GNU Autotools Uses M4
The GNU Autotools may all appear to use M4, but in actual fact, it all boils down to autoconf, which invokes m4 to generate your 'configure' script. You might be surprised to learn that the shell code in 'configure' does not use m4 to generate a final 'Makefile' from 'Makefile.in'. Instead, it uses sed, because that is more likely to be present on an end-user's system and thereby removes the dependency on m4.
Automake and Libtool include a lot of M4 input files. These are macros provided with each package that you can use directly (or indirectly) from your 'configure.in'. These packages don't invoke m4 themselves.
If you have already installed Autoconf on your system, you may have encountered problems resulting ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access