configure: Modernize autotools setup a bit