summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2012-05-14 16:32:25 +0200
committerVincent Untz <vuntz@gnome.org>2012-05-14 16:32:25 +0200
commitf94e313de21a7907bd9cf18b3300f27f21991e20 (patch)
tree3a4d8a64bc821bfc26f415cf15c0e83d7f18dd0a
parent9d510e29d822f78cb0a0e6b5c0095f3f1ebfe00c (diff)
downloadlibwnck-f94e313de21a7907bd9cf18b3300f27f21991e20.tar.gz
build: Add --enable-tools to enable/disable installation of tools
This helps make libwnck 2.x and 3.x be parallel-installable since they conflict for wnckprop and wnck-urgency-monitor. https://bugzilla.gnome.org/show_bug.cgi?id=671558
-rw-r--r--configure.ac7
-rw-r--r--libwnck/Makefile.am14
2 files changed, 18 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 91fe661..e0007b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,6 +85,12 @@ if test "x$enable_deprecation_flags" = "xyes"; then
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
fi
+AC_ARG_ENABLE(tools,
+ [AC_HELP_STRING([--enable-tools],
+ [install wnck-based tools @<:@default=no@:>@])],,
+ [enable_tools=no])
+AM_CONDITIONAL(ENABLE_TOOLS, test "x$enable_tools" != "xno")
+
GETTEXT_PACKAGE=libwnck
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Package name])
@@ -221,5 +227,6 @@ echo "
XRes support: ${have_xres}
Build introspection support: ${found_introspection}
Build gtk-doc documentation: ${enable_gtk_doc}
+ Install wnck-based tools: ${enable_tools}
"
diff --git a/libwnck/Makefile.am b/libwnck/Makefile.am
index c4f82c9..d0aa195 100644
--- a/libwnck/Makefile.am
+++ b/libwnck/Makefile.am
@@ -1,7 +1,5 @@
lib_LTLIBRARIES = libwnck-1.la
-bin_PROGRAMS = \
- wnckprop \
- wnck-urgency-monitor
+bin_PROGRAMS =
noinst_PROGRAMS = \
test-pager \
test-wnck \
@@ -9,6 +7,16 @@ noinst_PROGRAMS = \
test-tasklist \
test-urgent
+if ENABLE_TOOLS
+bin_PROGRAMS += \
+ wnckprop \
+ wnck-urgency-monitor
+else
+noinst_PROGRAMS += \
+ wnckprop \
+ wnck-urgency-monitor
+endif
+
AM_CPPFLAGS = \
$(LIBWNCK_CFLAGS) \
-I$(top_srcdir) \