When Autoconf-generated configure scripts run, a file called config.log is constantly updated in the working directory. When something goes wrong with the configuration process, the first thing to do is refer to the bottom of this file to see what was happening at the time of the error and why that step failed. Debugging the actual script is more difficult. Interested readers should refer to Chapter 8, Maintaining and Extending the Build System for more information on this particular topic.