Add requirement checking in configure.ac