an API-driven pkg-config replacement