converting Makefile to auto tools