[gedit-plugins/gnome-3-2] Added configure check for vte (terminal plugin)



commit 14189efb43967b9ce7d31a33b8ed40a3bc8e71b4
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Jan 15 15:14:06 2012 +0100

    Added configure check for vte (terminal plugin)

 configure.ac |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2677449..2bf84bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -246,6 +246,27 @@ then
 	fi
 fi
 
+# ================================================================
+# Terminal (vte)
+# ================================================================
+plugin_defined terminal
+
+if test "$?" = 1
+then
+    AC_CHECK_LIB([vte], [vte_terminal_new], [have_vte=yes], [have_vte=no])
+
+	if test "x$have_vte" = "xno"; then
+		plugin_defined_explicit terminal
+		if test "$?" = 1
+		then
+			AC_MSG_ERROR([vte could not be found, needed for terminal plugin])
+		else
+			AC_MSG_WARN([vte could not be found, terminal plugin will be disabled])
+			undef_plugin terminal "vte not found"
+		fi
+	fi
+fi
+
 if test -z "$disabled_plugins"
 then
 	disabled_plugins="none"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]