Add pkg-config to deps

Without pkg-config installed, the `PKG_CHECK_MODULES` macro (which is
suggested as a replacement for `AM_PATH_CHECK`) in `configure.ac` does
not work.
Add autocrap stuff suggested by current versions

Also add a 'test' target, which is the same as 'check'.
Ignore generated m4 stuff from autotools
Replace symlink w/generated script