added m4/pkg.m4 since PKG_CHECK_VAR is only available in pkg-config >= 0.28 which is currently not widely used (debian)