More complex configure script