Modified configure.ac to fix issue with configure script being called from make file