# HG changeset patch # User rosfran # Date 1161726495 -3600 # Node ID c04c69f80f33c6e03237c60a247a175d2d76afa9 # Parent 6deb6330eaca0bd4f18c0f1ca03a767c29de47fb [svn r51] Check for the GST interfaces library (gst_x_overlay* functions). diff -r 6deb6330eaca -r c04c69f80f33 maemo-ui/configure.ac --- a/maemo-ui/configure.ac Tue Oct 24 20:05:07 2006 +0100 +++ b/maemo-ui/configure.ac Tue Oct 24 22:48:15 2006 +0100 @@ -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 #