summaryrefslogtreecommitdiffstats
path: root/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in.in')
-rw-r--r--configure.in.in35
1 files changed, 21 insertions, 14 deletions
diff --git a/configure.in.in b/configure.in.in
index 78b4d5f..5fe5704 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -132,32 +132,39 @@ if test "$build_gstreamer" != "no"; then
dnl Now we're ready to ask for gstreamer libs and cflags
dnl And we can also ask for the right version of gstreamer
- GST_MAJORMINOR=0.10
- GST_REQ=0.10.0
-
- PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ,
- have_gst=yes,have_gst=no)
-
- PKG_CHECK_MODULES(GST_PLUGINS, gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ, \
- have_gst_plugins=yes,have_gst_plugins=no)
LIB_GST=""
CFLAGS_GST=""
LIB_GST_PLUGINS=""
- dnl Give error if we don't have gstreamer
+ LIB_GST_OVERLAY=""
+
+ PKG_CHECK_MODULES(GST_1, gstreamer-1.0, have_gst=yes, have_gst=no)
+ PKG_CHECK_MODULES(GST_1_PLUGINS, gstreamer-plugins-base-1.0, have_gst_plugins=yes, have_gst_plugins=no)
if test "x$have_gst" = "xyes"; then
- AC_SUBST(GST_MAJORMINOR)
- AC_DEFINE(HAVE_GSTREAMER, 1, [have GStreamer])
- LIB_GST=$GST_LIBS
- CFLAGS_GST=$GST_CFLAGS
- LIB_GST_PLUGINS=$GST_INTERFACES_LIBS
+ dnl We have GStreamer 1.0
+ LIB_GST=$GST_1_LIBS
+ CFLAGS_GST=$GST_1_CFLAGS
+ LIB_GST_PLUGINS=$GST_1_PLUGINS_LIBS
+ LIB_GST_OVERLAY="-lgstvideo-1.0"
+ else
+ PKG_CHECK_MODULES(GST, gstreamer-0.10, have_gst=yes, have_gst=no)
+ PKG_CHECK_MODULES(GST_PLUGINS, gstreamer-plugins-base-0.10, have_gst_plugins=yes, have_gst_plugins=no)
+ if test "x$have_gst" = "xyes"; then
+ dnl We have GStreamer 0.10
+ LIB_GST=$GST_LIBS
+ CFLAGS_GST=$GST_CFLAGS
+ LIB_GST_PLUGINS=$GST_PLUGINS_LIBS
+ LIB_GST_OVERLAY="-lgstinterfaces-0.10"
+ fi
fi
AC_SUBST(LIB_GST)
AC_SUBST(CFLAGS_GST)
AC_SUBST(LIB_GST_PLUGINS)
+ AC_SUBST(LIB_GST_OVERLAY)
fi
fi
AC_MSG_CHECKING([if kgstplayer can be compiled])
if test "x$have_gst" = "xyes" && test "x$have_gst_plugins" = "xyes"; then
+ AC_DEFINE(HAVE_GSTREAMER, 1, [have GStreamer])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)