build: reconfigure automatically if configure.ac changes