aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2014-06-23 20:13:09 -0400
committerJason Woodward2014-06-23 20:40:45 -0400
commit3e8ae9e41ac6932252a837da5df045156d278203 (patch)
tree876eec0db940bcae2c512ef5d2777fcbd6aa7c06
parentf9374fd76c674ad8c75bc08a45dcd60806d54bdd (diff)
downloadgslapt-3e8ae9e41ac6932252a837da5df045156d278203.tar.gz
add gtk3 configure option
-rw-r--r--configure.in16
1 files changed, 14 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 45a7613..de98f8f 100644
--- a/configure.in
+++ b/configure.in
@@ -50,8 +50,20 @@ glib_modules="glib-2.0 gthread-2.0 gmodule-2.0 gmodule-export-2.0"
PKG_CHECK_MODULES(GLIB, [$glib_modules])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
-gtk_modules="gtk+-2.0 >= 2.4.0"
-PKG_CHECK_MODULES(GTK, [$gtk_modules])
+gtk2_modules="gtk+-2.0 >= 2.24.0"
+gtk3_modules="gtk+-3.0 >= 3.4.0"
+AM_CONDITIONAL(GTK3, false)
+AM_CONDITIONAL(GTK2, true)
+AC_ARG_ENABLE(gtk3,
+ [ --enable-gtk3 Build with GTK3 support],
+ [enable_gtk3=$enableval], [enable_gtk3=no])
+if test x"$enable_gtk3" = x"yes"; then
+ PKG_CHECK_MODULES(GTK, [$gtk3_modules])
+ AM_CONDITIONAL(GTK3, true)
+ AM_CONDITIONAL(GTK2, false)
+else
+ PKG_CHECK_MODULES(GTK, [$gtk2_modules])
+fi
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)