Modified configure script