Commit d0bcf715 authored by Sebastian Pölsterl's avatar Sebastian Pölsterl

Check if required gstreamer modules are available in configure step

parent 032fbb31
......@@ -59,6 +59,11 @@ PKG_CHECK_MODULES(GNOME_DVB_DAEMON, glib-2.0 >= $GLIB_REQUIRED
AC_SUBST(GNOME_DVB_DAEMON_CFLAGS)
AC_SUBST(GNOME_DVB_DAEMON_LIBS)
AG_GST_CHECK_GST_INSPECT
AG_GST_CHECK_MODULE_BAD([mpegtsparse])
AG_GST_CHECK_MODULE_BAD([dvbbasebin])
AG_GST_CHECK_MODULE_BAD([dvbsrc])
dnl **************
dnl * Expansions
dnl **************
......
dnl Checks for gstreamer modules (code from Totem)
dnl AG_GST_CHECK_GST_INSPECT
dnl check for gst-inspect-0.10
dnl
dnl AG_GST_CHECK_MODULE_BAD([MODULE])
dnl check for module from gst-plugins-bad
AC_DEFUN([AG_GST_CHECK_GST_INSPECT],
[
gst010_toolsdir=`$PKG_CONFIG --variable=toolsdir gstreamer-0.10`
GST_INSPECT="$gst010_toolsdir/gst-inspect-0.10"
dnl Give error and exit if we don't have the gst_inspect tool
AC_MSG_CHECKING([GStreamer 0.10 inspection tool])
if test -r "$GST_INSPECT"; then
AC_MSG_RESULT([yes])
AC_SUBST(GST_INSPECT)
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([
Cannot find required GStreamer-0.10 tool 'gst-inspect-0.10'.
It should be part of gstreamer-0_10-utils. Please install it.
])
fi
])
AC_DEFUN([AG_GST_CHECK_MODULE_BAD],
[
base_element="[$1]"
AC_MSG_CHECKING([GStreamer 0.10 $base_element plugin])
if $GST_INSPECT $base_element >/dev/null 2>/dev/null; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([
Cannot find required GStreamer-0.10 plugin '$base_element'.
It should be part of gst-plugins-bad. Please install it.
])
fi
])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment