Autotools update

Use the newer configure.ac/Makefile.am style instead of configure.in/Makefile.in
I've done this in order to have "make dist / make distcheck" easier to integrate for Debian