diff options
author | Laszlo Boros <[email protected]> | 2013-08-15 20:05:00 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-17 11:52:07 +0200 |
commit | 7a364394044201fbd23a9fc5e152f512d24fd876 (patch) | |
tree | 4689a1bbda6da48d294de8a3d5bbed2d985665b9 /configure.ac | |
parent | 599a9ae6f6ba80c58cf35132818c3622fe3e1cb2 (diff) | |
download | eom-7a364394044201fbd23a9fc5e152f512d24fd876.tar.bz2 eom-7a364394044201fbd23a9fc5e152f512d24fd876.tar.xz |
Add GTK3 support in configure.ac
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7857154..fddff03 100644 --- a/configure.ac +++ b/configure.ac @@ -85,6 +85,26 @@ YELP_HELP_INIT # ********** GTK_REQUIRED=2.18.0 + +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 + GTK_REQUIRED=2.18.0 + ;; + 3.0) GTK_API_VERSION=3.0 + GTK_REQUIRED=3.0.0 + ;; +esac + GLIB_REQUIRED=2.25.9 GIO_REQUIRED=2.25.9 MATE_DESKTOP_REQUIRED=1.5.0 @@ -95,7 +115,7 @@ SHARED_MIME_INFO_REQUIRED=0.20 EXEMPI_REQUIRED=1.99.5 PKG_CHECK_MODULES(GMODULE, gmodule-2.0, [GMODULE_ADD="gmodule-2.0"],[GMODULE_ADD=""]) -EOM_MODULES="gtk+-2.0 >= $GTK_REQUIRED \ +EOM_MODULES="gtk+-$GTK_API_VERSION >= $GTK_REQUIRED \ glib-2.0 >= $GLIB_REQUIRED \ $GMODULE_ADD \ gio-2.0 >= $GLIB_REQUIRED \ |