GNU Autoconf, Automake, and Libtool
by Gary V. Vaughan, Ben Elliston, Tom Tromey, Ian Lance Taylor
22.3.3. Output from Macros
Users who run 'configure' expect a certain style of output as tests are performed. As such, you should use the well-defined interface to the existing Autoconf macros for generating output. Your tests should not arbitrarily echo messages to the standard output.
Autoconf provides the following macros to output the messages for you in a consistent way (see Chapter 2, "How to Run Configure, and The Most Useful Standard Makefile Targets" ). They are introduced here with a brief description of their purpose and are documented in more detail in in Appendix D, "Autoconf Macro Reference." Typically, a test starts by invoking AC_MSG_CHECKING to describe to the user what the test is doing and AC_MSG_RESULT is invoked to output ...
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