From Asmodai:
The patch is threefold:
- Get rid of unused GOBJECT_CFLAGS and convert them to the proper
GLIB_CFLAGS. They're required, since the files in those directories
include glib includes.
- Get rid of end-of-file CFLAGS override. You were overriding the CFLAGS
with GLIB_CFLAGS, which causes duplicate GLIB_CFLAGS later on in some
cases. This way CFLAGS remains very pristine, reflecting only what the
user or OS has passed along.
- Temporarily add GLIB_CFLAGS and GLIB_LIBS to CFLAGS and LIBS, after
storing them in scratch variables. Restore them after testing.
- Add checks for /usr/local for CUnit. I seriously wonder if either
autotools is just too stupid to automatically check /usr/local or whether
I am missing something. (Also note that CUnit linking will break if CUnit
was built with curses support, since we don't link to libcurses.) I get
this on compilation at one point though:
xmlroff/cunit/test-fo-doc.c:88: undefined reference to `fo_doc_gp_get_type'
It survives a clean build on my FreeBSD system (except for the CUnit stuff).