automatic configure script