Update configure.ac

Fixing configure.ac to work with automake 1.13 and higher