X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=3a4364c91011322ca6255eaa14c8d99e046720ef;hb=46ecb1bbad177434199bba07e7eda0f59785e16c;hp=5611efdf52df997dcfce8ba2be4c447d55e7d1a5;hpb=28c8862dc3d26a9a3735d0c2eb22ceb04be632c8;p=projects%2Fchimara%2Fchimara.git diff --git a/configure.ac b/configure.ac index 5611efd..3a4364c 100644 --- a/configure.ac +++ b/configure.ac @@ -114,7 +114,7 @@ AC_ARG_WITH([gstreamer], SOUND_MODULE= AS_IF([$TEST "x$with_gstreamer" != xno], [AC_DEFINE([GSTREAMER_SOUND], [1], [Define to enable sound support with GStreamer]) - SOUND_MODULE="gstreamer-0.10 >= 0.10.12 gstreamer-plugins-base-0.10 gstreamer-plugins-bad-0.10"]) + SOUND_MODULE="gstreamer-0.10 >= 0.10.12"]) ### CHECK FOR LIBRARIES ####################################################### @@ -135,6 +135,25 @@ PKG_CHECK_MODULES([TEST], [ gmodule-2.0 >= $GLIB_REQUIRED_VERSION ]) +# GStreamer plugins needed to run library +AS_IF([$TEST "x$with_gstreamer" != xno], [ + m4_defun([AX_GST_REQUIRE_ELEMENT], + [AM_GST_ELEMENT_CHECK([$1], + [], + [AC_MSG_ERROR([GStreamer element $1 not found. You need to install gstreamer-plugins-m4_default([$2], [base]).])] + )] + ) + AX_GST_REQUIRE_ELEMENT([giostreamsrc]) + AX_GST_REQUIRE_ELEMENT([typefind]) + AX_GST_REQUIRE_ELEMENT([audioconvert]) + AX_GST_REQUIRE_ELEMENT([volume]) + AX_GST_REQUIRE_ELEMENT([oggdemux]) + AX_GST_REQUIRE_ELEMENT([vorbisdec]) + AX_GST_REQUIRE_ELEMENT([autoaudiosink], [good]) + AX_GST_REQUIRE_ELEMENT([aiffparse], [bad]) + AX_GST_REQUIRE_ELEMENT([modplug], [bad]) +]) + # Plugin flags; include '-module' in each Makefile.am, because AC_SUBSTed # variables are black boxes to Automake, so it has to know about it being a # module in the makefile itself.