Created attachment 139513 [details] [review]
Patch addressing the issue
There are various implementation of pkg-config and they don't always use the same binary, hence there is the variable $PKG_CONFIG, which points to the correct one.
Use this variable instead of calling pkg-config directly, as that binary might not be available.
The attached patch fixes this issue.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/538.