We already use pkg-config in configure for the fist part
Attach a file by drag & drop or click to upload