opensaml2, pkg-config on wheezy and PKG_CHECK_VAR macro

Ferenc Wágner wferi at
Mon Oct 17 16:46:24 UTC 2016

Etienne Dysli-Metref <etienne.dysli-metref at> writes:

> While trying to compile opensaml2 for wheezy, I hit another macro that
> isn't supported by the old pkg-config: PKG_CHECK_VAR.

Indeed, that was introduced in pkg-config 0.28 only. :(

> Is there an equivalent alternative that we could use with pkg-config
> 0.26?

Well, you can try replacing it with something like the following (based
on pkg.m4 in jessie, untested):

# manual expansion of PKG_CHECK_VAR([DX_INCLUDE], [xmltooling], [includedir])
# for pkg-config < 0.28:
AC_ARG_VAR([DX_INCLUDE], [value of includedir for xmltooling, overriding pkg-config])
_PKG_CONFIG([DX_INCLUDE], [variable="includedir"], [xmltooling])

More information about the Pkg-shibboleth-devel mailing list