Thanks for the bug report. This area of 'configure.ac' has been a source of trouble recently. I rewrote it, installed the attached patch into the master branch, and am marking the bug as done.