update configure script and Makevars.in