switch to configure.ac instead of multiple Makevars