[PATCH] Export GStreamer version in pkgconfig variable

David Woodhouse dwmw2 at infradead.org
Thu Mar 12 11:48:58 EDT 2015


On Thu, 2015-03-12 at 14:41 +0000, David Woodhouse wrote:
> Some plugins like pidgin-sipe want to know which version of GStreamer
> we're built against. It currently assumes that libpurple-3 will be using
> gstreamer-1.0 and libpurple-2 will be using gstreamer-0.10.
> 
> That isn't strictly true since libpurple-3 *can* be built against
> gstreamer-0.10. And it gets even less true when we allow libpurple-2 to
> be built against gstreamer-1.0 (qv).
> 
> This exports the information so that it's available by running
>         pkg-config --variable=gstreamer purple-3
> and we don't have to guess.

The corresponding patch to siplcs.git looks like this:

diff --git a/configure.ac b/configure.ac
index 1129a18..bbd7371 100644
--- a/configure.ac
+++ b/configure.ac
@@ -346,7 +346,11 @@ AS_IF([test "x$enable_purple" != xno],
 		 dnl check whether enable voice and video support
 		 AS_IF([test "x$with_vv" = xno], [], dnl disabled by user
 		       [test "x$with_vv" = xcheck],  dnl autodetect
-			 [AC_MSG_CHECKING(for purple voice and video support)
+			 [dnl Let purple pkgconfig correct our assumptions about GStreamer
+			  purple_gst=`$PKG_CONFIG --variable=gstreamer $purple_pkgconfig`
+			  AS_IF([test "x$purple_gst" != "x"],
+				[gstreamer_pkgconfig=gstreamer-$purple_gst])
+			  AC_MSG_CHECKING(for purple voice and video support)
 			  AC_RUN_IFELSE(
 				[AC_LANG_PROGRAM([[
 #include <media.h>


-- 
dwmw2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5745 bytes
Desc: not available
URL: <https://pidgin.im/pipermail/devel/attachments/20150312/af64b733/attachment.bin>


More information about the Devel mailing list