diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-15 16:52:24 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-15 16:52:24 +0100 |
commit | 9d05ecd2763d64ee679e5ba350a1e5b70beb14b8 (patch) | |
tree | 2bc1aa85e518613a503f6cc8e239f2ba87881022 | |
parent | 061874d02ec0a7e0e1e7ca44226f06568e3589b4 (diff) | |
download | mate-netbook-9d05ecd2763d64ee679e5ba350a1e5b70beb14b8.tar.bz2 mate-netbook-9d05ecd2763d64ee679e5ba350a1e5b70beb14b8.tar.xz |
Add support for GTK3 in configure
-rw-r--r-- | configure.ac | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 17890e8..5839720 100644 --- a/configure.ac +++ b/configure.ac @@ -32,23 +32,44 @@ AM_GLIB_GNU_GETTEXT AC_SUBST(GCC_FLAGS) +AC_MSG_CHECKING([which gtk+ version to compile against]) +AC_ARG_WITH([gtk], + [AS_HELP_STRING([--with-gtk=2.0|3.0],[which gtk+ version to compile against (default: 2.0)])], + [case "$with_gtk" in + 2.0|3.0) ;; + *) AC_MSG_ERROR([invalid gtk version specified]) ;; + esac], + [with_gtk=2.0]) +AC_MSG_RESULT([$with_gtk]) + +case "$with_gtk" in + 2.0) GTK_API_VERSION=2.0 + LIBWNCK_API_VERSION=1.0 + LIBUNIQUE_API_VERSION=1.0 + ;; + 3.0) GTK_API_VERSION=3.0 + LIBWNCK_API_VERSION=3.0 + LIBUNIQUE_API_VERSION=3.0 + ;; +esac + PKG_CHECK_MODULES(MAXIMUS_DEPS, - gtk+-2.0 + gtk+-$GTK_API_VERSION gio-2.0 - libwnck-1.0 + libwnck-$LIBWNCK_API_VERSION xtst libfakekey - unique-1.0 + unique-$LIBUNIQUE_API_VERSION ) AC_SUBST(MAXIMUS_DEPS_CFLAGS) AC_SUBST(MAXIMUS_DEPS_LIBS) PKG_CHECK_MODULES(MATEWINDOWPICKER_DEPS, libmatepanelapplet-4.0 - gtk+-2.0 + gtk+-$GTK_API_VERSION glib-2.0 gio-2.0 - libwnck-1.0 + libwnck-$LIBWNCK_API_VERSION ) AC_SUBST(MATEWINDOWPICKER_DEPS_CFLAGS) AC_SUBST(MATEWINDOWPICKER_DEPS_LIBS) @@ -61,3 +82,7 @@ maximus/Makefile mate-window-picker-applet/Makefile po/Makefile.in ]) + +echo " + GTK+ API version: ${GTK_API_VERSION} +" |