fix removing autoconfig.h on distclean (issue #7439, casper)