this code needs automake 1.11