Ok.... in order to get heartbeat compiling with the least amount of effort, two things had to be done.
First, when configuring you have to provide some locations for cluster-glue. In my case, it was something like:
CFLAGS="-L/usr/local/cluster-glue/lib -I/usr/local/cluster-glue/include -I/usr/local/cluster-glue/include/heartbeat/" ./ConfigureMe configure --prefix=/usr/local/heartbeat enable_fatal_warnings=no
Then edit include/config.h and comment out the definitions for:
- HA_HBCONF_DIR (line 390)
- HA_SYSCONFDIR (line 405)
Then make, make install and it's done