From c141780c99e0aee7a50734d4a56e2adf6f16c909 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 9 Mar 2010 16:59:06 -0800 Subject: [PATCH] configure: Check for glib-genmarshal program at configure time. 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. --- configure.ac | 6 ++++++ src/ui/gui/automake.mk | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 8f4ca63ba0..a3a07a87e0 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,12 @@ AM_CONDITIONAL([HAVE_GUI], 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 diff --git a/src/ui/gui/automake.mk b/src/ui/gui/automake.mk index 5485d88623..003437bf2d 100644 --- a/src/ui/gui/automake.mk +++ b/src/ui/gui/automake.mk @@ -256,10 +256,10 @@ AM_CPPFLAGS += -Isrc src/ui/gui/psppire-marshal.c: src/ui/gui/marshaller-list echo '#include ' > $@ - 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: -- 2.30.2