diff -r b9c6012bccdb -r 957b55b3f630 maemo-ui/configure.ac --- a/maemo-ui/configure.ac Fri Oct 06 16:13:28 2006 +0100 +++ b/maemo-ui/configure.ac Mon Oct 30 22:55:19 2006 +0000 @@ -179,10 +179,36 @@ AC_SUBST(GSTBASE_CFLAGS) AC_SUBST(GSTBASE_LIBS) - # make GST_MAJORMINOR available in Makefile.am AC_SUBST(GST_MAJORMINOR) + +# check for gstreamer-base plugins (xoverlay interface) +GSTPLUGINSBASE_REQUIRED=0.10 +GSTPLUGINSBASE_MAJORMINOR=0.10 +PKG_CHECK_MODULES(GSTPLUGINSBASE, \ + gstreamer-plugins-base-$GSTPLUGINSBASE_MAJORMINOR >= $GSTPLUGINSBASE_REQUIRED, + HAVE_GSTPLUGINSBASE=yes, HAVE_GSTPLUGINSBASE=no) + +# Give error and exit if we don't have gstreamer base libraries +if test "x$HAVE_GSTPLUGINSBASE" = "xno"; then + AC_MSG_ERROR(you need gstreamer plugins base development packages installed !) +fi + +# make GSTPLUGINSBASE_CFLAGS and GSTPLUGINSBASE_LIBS available +AC_SUBST(GSTPLUGINSBASE_CFLAGS) +AC_SUBST(GSTPLUGINSBASE_LIBS) + +# check for gstreamer-interfaces (xoverlay interface) +AC_CHECK_FUNC( gst_x_overlay_get_type, + HAVE_GSTINTERFACES=yes, HAVE_GSTINTERFACES=no ) + +# Give error and exit if we don't have gstreamer base libraries +if test "x$HAVE_GSTINTERFACES" = "xno"; then + AC_MSG_NOTICE(you need gstreamer interfaces development packages installed !) + CFLAGS="$CFLAGS -lgstinterfaces-$GSTPLUGINSBASE_MAJORMINOR" +fi + # # mysql libraries #