I think what really needed is a transformation of config.h which
prepends, say CDIO_ to a number of the defines like the PACKAGE* defines
and other defines like _FILE_OFFSET_BITS, _LARGEFILE_SOURCE and
WORDS_BIGENDIAN. With this, such a modified header can be included safely
in other programs that want to test or or present the features of the
libcdio that gets used.
It turns out this is basically changing one line: a "cat" to "sed" in
include/cdio/Makefile.am. A patch is attached to the pbatard trunk.
(I haven't applied it.)
I tried to do this in the main branch, but because cdio_config.h is needed
by cdio.h it fails miserably.