The GUI build cannot succeed without glib-genmarshal, so it seems like a
good idea to fail earlier.
Related to bug #28959, reported by Harry Thijssen.
if test "$with_cairo" != no && test "$with_gui" != "no"; then
PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.12], [],
[PSPP_REQUIRED_PREREQ([gtk+ 2.0 version 2.12 or later (or use --without-gui)])])
+
+ AC_ARG_VAR([GLIB_GENMARSHAL])
+ AC_CHECK_PROGS([GLIB_GENMARSHAL], [glib-genmarshal])
+ if test "x$GLIB_GENMARSHAL" = x; then
+ PSPP_REQUIRED_PREREQ([glib-genmarshal (or use --without-gui)])
+ fi
fi
dnl Checks needed for psql reader
src/ui/gui/psppire-marshal.c: src/ui/gui/marshaller-list
echo '#include <config.h>' > $@
- glib-genmarshal --body --prefix=psppire_marshal $? >> $@
+ $(GLIB_GENMARSHAL) --body --prefix=psppire_marshal $? >> $@
src/ui/gui/psppire-marshal.h: src/ui/gui/marshaller-list
- glib-genmarshal --header --prefix=psppire_marshal $? > $@
+ $(GLIB_GENMARSHAL) --header --prefix=psppire_marshal $? > $@
SUFFIXES += .glade .ui
.glade.ui: