From 945fe4ba74e07befe1ef300949773270db87d0ef Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Fri, 24 Jan 2014 13:45:40 +0100 Subject: Build marco-theme-viewer only with GTK2 --- configure.ac | 2 ++ src/Makefile.am | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5ae9b9f5..2cdee949 100644 --- a/configure.ac +++ b/configure.ac @@ -126,6 +126,8 @@ case "$with_gtk" in CANBERRA_GTK=libcanberra-gtk3 ;; esac +AM_CONDITIONAL([HAVE_GTK2], [test "x$with_gtk" = "x2.0"]) +AM_CONDITIONAL([HAVE_GTK3], [test "x$with_gtk" = "x3.0"]) GIO_MIN_VERSION=2.25.10 MARCO_PC_MODULES="gtk+-$GTK_API_VERSION >= $GTK_MIN_VERSION gio-2.0 >= $GIO_MIN_VERSION pango >= 1.2.0 $CANBERRA_GTK" diff --git a/src/Makefile.am b/src/Makefile.am index e91cb338..89f5770d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -144,7 +144,11 @@ libmarcoinclude_HEADERS = \ marco_theme_viewer_SOURCES= \ ui/theme-viewer.c -bin_PROGRAMS=marco marco-theme-viewer +bin_PROGRAMS=marco + +if HAVE_GTK2 +bin_PROGRAMS += marco-theme-viewer +endif EFENCE= marco_LDADD=@MARCO_LIBS@ $(EFENCE) -- cgit v1.2.1