configure: check if pkg-config is installed
authorDmitry Fomichev <dmitry.fomichev@wdc.com>
Tue, 4 Aug 2020 01:38:26 +0000 (10:38 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Aug 2020 16:42:40 +0000 (10:42 -0600)
commit162f8c2a96ae181d7e4099af8e9f39b5eac6886e
tree1e7f4686c060fe0b74b23397c8736108a805de79
parent38551c04b740949c8a0f5a7235b9842d155e5dfb
configure: check if pkg-config is installed

A few libraries need to be newer than a specific version in order to be
supported by fio and pkg-config utility is used to verify the versions
of the installed libraries. Since this step may fail because pkg-config
is not installed, verify pkg-config presence and warn the user if it
could not be found.

To avoid code duplication, add a common helper function to perform
these checks.

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure