working on some autotools tweaks

not done yet though