Use pkg-config where possible.

See
https://www.flameeyes.eu/autotools-mythbuster/pkgconfig/pkg_check_modules.html
Well, now use pkgconfig.

See
https://www.flameeyes.eu/autotools-mythbuster/pkgconfig/pkg_check_modules.html
Merge remote-tracking branch 'origin/pkgconfig' into pkgconfig