maemo-ui/configure.ac
branchtrunk
changeset 211 8ba1ddedfa22
parent 26 b9c6012bccdb
child 413 5c9b6b51eb56
     1.1 --- a/maemo-ui/configure.ac	Fri Oct 06 16:13:28 2006 +0100
     1.2 +++ b/maemo-ui/configure.ac	Wed Dec 06 21:50:34 2006 +0000
     1.3 @@ -179,10 +179,36 @@
     1.4  AC_SUBST(GSTBASE_CFLAGS)
     1.5  AC_SUBST(GSTBASE_LIBS)
     1.6  
     1.7 -
     1.8  # make GST_MAJORMINOR available in Makefile.am
     1.9  AC_SUBST(GST_MAJORMINOR)
    1.10  
    1.11 +
    1.12 +# check for gstreamer-base plugins (xoverlay interface)
    1.13 +GSTPLUGINSBASE_REQUIRED=0.10
    1.14 +GSTPLUGINSBASE_MAJORMINOR=0.10
    1.15 +PKG_CHECK_MODULES(GSTPLUGINSBASE, \
    1.16 +  gstreamer-plugins-base-$GSTPLUGINSBASE_MAJORMINOR >= $GSTPLUGINSBASE_REQUIRED,
    1.17 +  HAVE_GSTPLUGINSBASE=yes, HAVE_GSTPLUGINSBASE=no)
    1.18 +
    1.19 +# Give error and exit if we don't have gstreamer base libraries
    1.20 +if test "x$HAVE_GSTPLUGINSBASE" = "xno"; then
    1.21 +  AC_MSG_ERROR(you need gstreamer plugins base development packages installed !)
    1.22 +fi
    1.23 +
    1.24 +# make GSTPLUGINSBASE_CFLAGS and GSTPLUGINSBASE_LIBS available
    1.25 +AC_SUBST(GSTPLUGINSBASE_CFLAGS)
    1.26 +AC_SUBST(GSTPLUGINSBASE_LIBS)
    1.27 +
    1.28 +# check for gstreamer-interfaces (xoverlay interface)
    1.29 +AC_CHECK_FUNC( gst_x_overlay_get_type,
    1.30 +  HAVE_GSTINTERFACES=yes, HAVE_GSTINTERFACES=no )
    1.31 +
    1.32 +# Give error and exit if we don't have gstreamer base libraries
    1.33 +if test "x$HAVE_GSTINTERFACES" = "xno"; then
    1.34 +  AC_MSG_NOTICE(you need gstreamer interfaces development packages installed !)
    1.35 +  CFLAGS="$CFLAGS -lgstinterfaces-$GSTPLUGINSBASE_MAJORMINOR"
    1.36 +fi
    1.37 +
    1.38  #
    1.39  # mysql libraries
    1.40  #