Changed the cmake script by a configure script with parameters