Whamcloud - gitweb
LU-16969 build: check that pkg-config is installed 16/51716/3
authorTimothy Day <timday@amazon.com>
Wed, 19 Jul 2023 17:23:24 +0000 (17:23 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 1 Aug 2023 06:15:34 +0000 (06:15 +0000)
commit94a32720c9977787dba929b522638fd9de3b10b1
tree0fc636fab0fec27a7909dcd8fa9bf38d5dfda8e8
parent8f2c1592c3bbd0351ab3984a88a3eed7075690c8
LU-16969 build: check that pkg-config is installed

PKG_CHECK_MODULES macro fails in very annoying to debug ways.
Often, this will fail with:

 syntax error near unexpected token `LIBNL3,'
 ` PKG_CHECK_MODULES(LIBNL3, libnl-genl-3.0 >= 3.1)'

and provide no indication that the real error is that
pkg-config is not installed. Adding an explicit check
for pkg-config will make the error more self-evident.

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Change-Id: Ic2ee8e4c3ec3fa2e03c5ece03e6a9ce335133578
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51716
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
configure.ac
lnet/autoconf/lustre-lnet.m4