Don't compile the VV Config plugin unless VV is actually enabled

Sat, 22 Aug 2009 04:44:11 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Sat, 22 Aug 2009 04:44:11 +0000
changeset 28334
b2cb15afea3b
parent 28333
f63e5c1222f3
child 28335
cb33e499db04

Don't compile the VV Config plugin unless VV is actually enabled

configure.ac file | annotate | diff | comparison | revisions
pidgin/plugins/Makefile.am file | annotate | diff | comparison | revisions
--- a/configure.ac	Sat Aug 22 04:03:09 2009 +0000
+++ b/configure.ac	Sat Aug 22 04:44:11 2009 +0000
@@ -810,6 +810,7 @@
 		fi
 	fi
 fi
+AM_CONDITIONAL(USE_VV, test "x$enable_gstreamer" != "xno" -a "x$enable_gstinterfaces" != "xno" -a "x$enable_farsight" != "xno")
 
 AC_ARG_ENABLE(idn,
 	[AC_HELP_STRING([--disable-idn], [compile without IDN support])],
--- a/pidgin/plugins/Makefile.am	Sat Aug 22 04:03:09 2009 +0000
+++ b/pidgin/plugins/Makefile.am	Sat Aug 22 04:44:11 2009 +0000
@@ -67,9 +67,12 @@
 	themeedit.la         \
 	timestamp.la        \
 	timestamp_format.la \
-	vvconfig.la         \
 	xmppconsole.la
 
+if USE_VV
+plugin_LTLIBRARIES +=	vvconfig.la
+endif
+
 noinst_LTLIBRARIES = \
 	contact_priority.la \
 	gtk_signals_test.la
@@ -109,7 +112,7 @@
 themeedit_la_LIBADD         = $(GTK_LIBS)
 timestamp_la_LIBADD         = $(GTK_LIBS)
 timestamp_format_la_LIBADD  = $(GTK_LIBS)
-vvconfig_la_LIBADD          = $(GTK_LIBS)
+vvconfig_la_LIBADD          = $(GTK_LIBS) $(GSTREAMER_LIBS)
 xmppconsole_la_LIBADD       = $(GTK_LIBS)
 
 endif # PLUGINS

mercurial