Clean up configure.ac checks