Bz/autoconf

Add basic autoconf support.