aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorJason Woodward2019-07-14 20:59:19 -0400
committerJason Woodward2019-07-14 20:59:19 -0400
commit5d2122e89c15fe0a5611d2bf6166627f248cc977 (patch)
tree3e6fb337e1566a7da5a6b6b76f581d0ec6cb9eac /configure.ac
parent3b48c1a3eae7a56e629471cd1320e1cb5d268fd2 (diff)
downloadgslapt-5d2122e89c15fe0a5611d2bf6166627f248cc977.tar.gz
switch to gtk3 by default, switch back to gtk2 with --enable-gtk
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 11 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index a6849eb..36b57d5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,17 +52,22 @@ AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
gtk2_modules="gtk+-2.0 >= 2.24.0"
gtk3_modules="gtk+-3.0 >= 3.4.0"
-AM_CONDITIONAL(GTK3, false)
-AM_CONDITIONAL(GTK2, true)
+AM_CONDITIONAL(GTK3, true)
+AM_CONDITIONAL(GTK2, false)
AC_ARG_ENABLE(gtk3,
[ --enable-gtk3 Build with GTK3 support],
- [enable_gtk3=$enableval], [enable_gtk3=no])
-if test x"$enable_gtk3" = x"yes"; then
+ [enable_gtk3=$enableval], [enable_gtk3=yes])
+AC_ARG_ENABLE(gtk2,
+ [ --enable-gtk2 Build with GTK2 support],
+ [enable_gtk2=$enableval], [enable_gtk2=no])
+if test x"$enable_gtk2" = x"yes"; then
+ PKG_CHECK_MODULES(GTK, [$gtk2_modules])
+ AM_CONDITIONAL(GTK3, false)
+ AM_CONDITIONAL(GTK2, true)
+else
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)