change configure.ac to fit 4 ams