Modernize the configure script a bit.