Support automake 1.12 & 1.13