diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/Makefile.am | 6 |
2 files changed, 7 insertions, 1 deletions
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) |