diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-24 13:45:40 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-24 13:45:40 +0100 |
commit | 945fe4ba74e07befe1ef300949773270db87d0ef (patch) | |
tree | 2a90c83bfeccf31796e76be1d795fc36bca8297f | |
parent | 04caf5f569533871e975aca51164a4fa6065b27f (diff) | |
download | marco-945fe4ba74e07befe1ef300949773270db87d0ef.tar.bz2 marco-945fe4ba74e07befe1ef300949773270db87d0ef.tar.xz |
Build marco-theme-viewer only with GTK2
-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) |