added automake support