[build] Add some more checks to configure.ac (using autoscan)