added and fixed configure.ac for automake