[systemd-devel] [PATCH] Do not try to compile gtk apps if vala compiler is not present.
Luis Felipe Strano Moraes
lfelipe at profusion.mobi
Fri Sep 17 12:16:13 PDT 2010
---
configure.ac | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index e3c1fdd..381c582 100644
--- a/configure.ac
+++ b/configure.ac
@@ -223,9 +223,13 @@ else
fi
AC_SUBST(AUDIT_LIBS)
+AM_PROG_VALAC([0.9])
+AC_SUBST(VAPIDIR)
+AM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x)
+
have_gtk=no
AC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools]))
-if test "x$enable_gtk" != "xno"; then
+if test "x$enable_gtk" != "xno" -a x"$VALAC" != x; then
PKG_CHECK_MODULES(GTK, [ gtk+-2.0 gio-unix-2.0 libnotify ],
[AC_DEFINE(HAVE_GTK, 1, [Define if GTK is available]) have_gtk=yes], have_gtk=no)
AC_SUBST(GTK_CFLAGS)
@@ -236,9 +240,6 @@ if test "x$enable_gtk" != "xno"; then
fi
AM_CONDITIONAL(HAVE_GTK, [test "$have_gtk" = "yes"])
-AM_PROG_VALAC([0.9])
-AC_SUBST(VAPIDIR)
-AM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x)
AC_PATH_PROG([XSLTPROC], [xsltproc])
AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x)
--
1.7.2.2
More information about the systemd-devel
mailing list