On the ppc64 architecture, the libpfm library is used to get perf_events encodings for events, so the configure script checks for the availability of that library when building for ppc64. If the library is missing, the configure error message is:
checking for perfmon/pfmlib.h... no
configure: error: pfmlib.h not found; usually provided in papi devel package
However, some newer distros (like Fedora 19) are now delivering separate packages for libpfm and papi, instead of bundling them together. The configure message should be updated to reflect that change in packaging.