Skip to content

configure script does not check for the presence of glib_genmarshal

I was able to ./autogen.sh and ./configure successfully despite not having the arch linux glib2-devel package installed. My lack of /usr/bin/glib-genmarshal resulted in src/Makefile being emitted with nonsense commands for gs-marshal.c and gs-marshal.h where the @GLIB_GENMARSHAL@ placeholder was replaced with an empty string, e.g. gs-marshal.list --prefix=gs_marshal --body >> gs-marshal.c. This caused make to fail but also an empty gs-marshal.c to be written, so the next invocation of make failed on gs-marshal.h in the same way, and a third invocation of make made it to actually trying to compile something but immediately failing due to undefined symbols that should have been in gs-marshal.h.

I think the configure script should check for the existence of glib-genmarshal before proceeding to try to use it.