[gupnp-dlna/wip/gst-0.10: 1/2] wip: Search for gst 0.10



commit da3057a797976df8c49154b1cf5d7baab90ecf9a
Author: Jens Georg <mail jensge org>
Date:   Wed Jan 30 15:37:23 2013 +0100

    wip: Search for gst 0.10

 configure.ac |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9866c8e..824c7f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,6 +101,50 @@ else
         AM_CONDITIONAL(GSTREAMER_METADATA_BACKEND_ENABLED, false)
 fi
 
+AC_ARG_ENABLE([legacy-gstreamer-metadata-backend],
+              [AS_HELP_STRING([--enable-legacy-gstreamer-metadata-backend],
+                              [build a GStreamer 0.10 metadata backend @<:@default=auto@:>@])],
+                              ,
+                              [enable_legacy_gstreamer_metadata_backend=auto])
+
+if test "x$enable_legacy_gstreamer_metadata_backend" != 'xno'
+then
+        gstreamer_found='yes'
+        GST_MAJORMINOR=0.10
+        GST_REQ=0.10.36
+        GSTPBU_REQ=0.10.36
+
+        PKG_CHECK_MODULES([GST_010],
+                          [gstreamer-$GST_MAJORMINOR >= $GST_REQ],
+                          ,
+                          [gstreamer_found='no'])
+        PKG_CHECK_MODULES([GST_PBU_010],
+                          [gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ],
+                          ,
+                          [gstreamer_found='no'])
+
+        if test "x$gstreamer_found" = 'xyes'
+        then
+                AC_SUBST(GST_MAJORMINOR)
+
+                GST_CFLAGS="$GST_CFLAGS -DGST_USE_UNSTABLE_API"
+                AC_SUBST(GST_CFLAGS)
+                enable_legacy_gstreamer_metadata_backend='yes'
+        elif test "x$enable_legacy_gstreamer_metadata_backend" = 'xyes'
+        then
+                AC_MSG_ERROR([GStreamer $GST_MAJORMINOR not found.])
+        else
+                enable_legacy_gstreamer_metadata_backend='no'
+        fi
+fi
+
+if test "x$enable_legacy_gstreamer_metadata_backend" = 'xyes'
+then
+        AM_CONDITIONAL(GSTREAMER_010_METADATA_BACKEND_ENABLED, true)
+else
+        AM_CONDITIONAL(GSTREAMER_010_METADATA_BACKEND_ENABLED, false)
+fi
+
 AC_ARG_WITH([default-metadata-backend-dir],
             [AS_HELP_STRING([--with-default-metadata-backend-dir=your_directory],
                             [set a default metadata backend directory @<:@default=$libdir/$PACKAGE_NAME@:>@])])



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