Autotools fixup revisited

Added .gitignore, got rid of acinclude.m4 and fixed a warning.