converting to autotools