[PATCH] configure: Replace PKG_CONFIG calls with PKG_CHECK_VAR