At this time, we lack a way for a pcp client program to fetch
the version of the -lpcp etc. headers & libraries. (PMAPI_VERSION
is not it - it's been fixed at "2" for seven years, whereas new
PMAPI functions have blossomed in the interim.)
That makes it necessary for an app to use autoconf-type tricks to
detect the presence of new features they may wish to use. It would
be nice if they had the choice to use something like linux:
#if PCP_VERSION_CODE >= PCP_VERSION(3,9,10)
...
#else
...
#endif
It could fit fairly naturally into the pcp/config*h generated files.
For bonus marks, it may be nice if the pmapi proper had a function
that returned the run-time libpcp version (which could naturally
be newer/larger than the compile-time PCP_VERSION_CODE).