Add initial automake support. Not working yet.