I Am the Cure!
If you encounter such an error during the configure state of a package:
./configure: line foo: syntax error near unexpected token `something,'
./configure: line bar: `PKG_CHECK_MODULES(something, libsomething)'
that means pkg-config is not installed.