[Aptitude-devel] [PATCH] Only check for VTE when building the GTK+ frontend

Sven Joachim svenjoac at gmx.de
Sat Feb 11 11:56:35 UTC 2012


The VTE library is not needed in the curses fontend, do not fail to
configure if it is unavailable and GTK+ is disabled.
---
 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7504ba4..33e4201 100644
--- a/configure.ac
+++ b/configure.ac
@@ -285,8 +285,6 @@ PKG_CHECK_MODULES(SIGC, sigc++-2.0)
 
 PKG_CHECK_MODULES(CWIDGET, cwidget)
 
-PKG_CHECK_MODULES(VTE, vte)
-
 dnl Check for Boost headers.  Place each one on a line by itself and
 dnl write "dnl" at the end: the "dnl" deletes the newline, and without
 dnl it you'll get an error when you run the configure script.
@@ -553,6 +551,8 @@ then
   PKG_CHECK_MODULES(GTHREAD, gthread-2.0,,[HAVE_GTK=])
   PKG_CHECK_MODULES(GTKMM, gtkmm-2.4,,[HAVE_GTK=])
   PKG_CHECK_MODULES(LIBGLADEMM, libglademm-2.4,,[HAVE_GTK=])
+  PKG_CHECK_MODULES(VTE, vte,,[HAVE_GTK=])
+
 else
   AC_MSG_NOTICE([Disabling the GTK+ frontend at your request (--disable-gtk).])
 fi
-- 
1.7.9




More information about the Aptitude-devel mailing list