1 From dbb578450974db5decc24560da4aeaed838849a1 Mon Sep 17 00:00:00 2001
2 From: Samuel Martin <s.martin49@gmail.com>
3 Date: Thu, 2 Jan 2014 14:03:07 +0100
4 Subject: [PATCH 2/2] configure: make wmgui build optional
6 So, make gtk-2 and glib2 dependencies optional (only needed by wmgui)
8 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
11 configure.ac | 17 +++++++++++++----
12 2 files changed, 14 insertions(+), 5 deletions(-)
14 diff --git a/Makefile.in b/Makefile.in
15 index 6d3ac98..3d2fb45 100644
19 include @top_builddir@/defs.mak
22 -BIN_DIRS = wmgui wminput lswm
23 +BIN_DIRS = @WMGUI@ wminput lswm
27 diff --git a/configure.ac b/configure.ac
28 index 82ca3e1..d146cb6 100644
31 @@ -15,6 +15,11 @@ if test "$YACC" != "bison -y"; then
32 AC_MSG_ERROR([bison not found])
37 + [AS_HELP_STRING([--disable-wmgui],[Do not build wmgui binary (also drop the gtk-2/glib2 dependency)])],
38 + [ENABLE_WMGUI="$enableval"],[ENABLE_WMGUI=yes])
42 [AS_HELP_STRING([--without-python],[compile without python support])],
43 @@ -98,10 +103,14 @@ else
47 -pkg_modules="gtk+-2.0 >= 2.0.0 gthread-2.0"
48 -PKG_CHECK_MODULES([GTK], [$pkg_modules])
52 + [test "x$ENABLE_WMGUI" = xyes],
53 + [pkg_modules="gtk+-2.0 >= 2.0.0 gthread-2.0" ;
54 + PKG_CHECK_MODULES([GTK], [$pkg_modules])
55 + AC_SUBST(GTK_CFLAGS)
57 + AC_SUBST(WMGUI, wmgui)]