diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-04-24 18:15:29 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-04-24 18:15:29 +0200 |
commit | b73acb4c71698a764763ae8dad94c1e8a2b8d7a3 (patch) | |
tree | 1c97e385dfce786fd2b344deee70e4c7392df245 /configure.ac | |
parent | f9e64d16390ef558ca2865d9ea450eb3510ec6da (diff) |
GtkTsmTerminal is a Gtk+-3.0 widget using libtsm. It provides a generic
terminal-widget that can be easily used to create any kinds of
terminal-emulators.
The GtkTsm program is a small example that shows how to use GtkTsm.
Note that all this is optional and only meant as example. Maybe at some
point we will install GtkTsmTerminal as shared object. However, it will
never be mandatory!
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 63cac17..091a6c3 100644 --- a/configure.ac +++ b/configure.ac @@ -69,6 +69,39 @@ AC_SUBST(CHECK_LIBS) AM_CONDITIONAL([BUILD_HAVE_CHECK], [test "x$have_check" = "xyes"]) # +# Optionally, look for gtk+-3 and friends for our gtktsm example. +# This is linux-only as it uses epoll and friends. Therefore, it's disabled by +# default. +# + +AC_MSG_CHECKING([whether to build gtktsm]) +AC_ARG_ENABLE([gtktsm], + [AS_HELP_STRING([--enable-gtktsm], + [whether to build gtktsm])]) +if test "x$enable_gtktsm" = "x" ; then + enable_gtktsm="no (default)" +fi +AC_MSG_RESULT([$enable_gtktsm]) + +PKG_CHECK_MODULES([GTKTSM], [gtk+-3.0 cairo pango pangocairo xkbcommon], + [have_gtktsm=yes], [have_gtktsm=no]) +AC_SUBST(GTKTSM_CFLAGS) +AC_SUBST(GTKTSM_LIBS) + +if test ! "x$have_gtktsm" = "xyes" ; then + if test "x$enable_gtktsm" = "xyes" ; then + AC_ERROR([GtkTsm dependencies not found]) + else + enable_gtktsm="no" + fi +elif test "x${enable_gtktsm% *}" = "xyes" ; then + enable_gtktsm="yes" +else + enable_gtktsm="no" +fi +AM_CONDITIONAL([BUILD_ENABLE_GTKTSM], [test "x$enable_gtktsm" = "xyes"]) + +# # debug mode # If --enable-debug is given, we enable several non-standard debug options. We # enable a lot of debug options by default, so this option is really only for @@ -159,6 +192,7 @@ AC_MSG_NOTICE([Build configuration: host-os: $host_os Miscellaneous Options: + gtktsm: $enable_gtktsm debug: $enable_debug optimizations: $enable_optimizations building tests: $have_check |