Check that pkg-config exists before trying to use it