somewhere in that big heap of output is a line pointing to a config.log. in thet log there's the full error and the code of the test program configure tries to build. ususally that helps to track down the missing file. check for "fail" in config log, around that line lives the interesting part.