Previous: , Up: Frequent Autoconf Questions, with answers   [Contents][Index]


20.9 Debugging configure scripts

While in general, configure scripts generated by Autoconf strive to be fairly portable to various systems, compilers, shells, and other tools, it may still be necessary to debug a failing test, broken script or makefile, or fix or override an incomplete, faulty, or erroneous test, especially during macro development. Failures can occur at all levels, in M4 syntax or semantics, shell script issues, or due to bugs in the test or the tools invoked by configure. Together with the rather arcane error message that m4 and make may produce when their input contains syntax errors, this can make debugging rather painful.

Nevertheless, here is a list of hints and strategies that may help:

Conversely, as macro author, you can make it easier for users of your macro:


Previous: Expanded Before Required, Up: Frequent Autoconf Questions, with answers   [Contents][Index]