envconfig: use $PKG_CONFIG for pkg-config find_program as well as pkgconfig
It looks like internally we use pkgconfig, even though the installed
name is pkg-config. This fixes `tests cases/common/44 pkgconfig-gen`,
which will ignore PKG_CONFIG and select the wrong pkg-config binary if
you have $PKG_CONFIG set.
@@ -120,6 +120,7 @@ ENV_VAR_PROG_MAP: T.Mapping[str, str] = {
'cmake': 'CMAKE',
'qmake': 'QMAKE',
'pkgconfig': 'PKG_CONFIG',
+ 'pkg-config': 'PKG_CONFIG',
'make': 'MAKE',
'vapigen': 'VAPIGEN',
}
