Add missing checks in m4/ and update configure.ac.