+# Checks for packages.
+case $want_gstdecode in
+ yes | whatever)
+ PKG_CHECK_MODULES([GSTREAMER], [gstreamer-0.10],
+ [have_gstreamer=yes], [have_gstreamer=no])
+ PKG_CHECK_MODULES([GSTREAMER_PLUGINS_BASE],
+ [gstreamer-plugins-base-0.10],
+ [have_gst_plugins_base=yes], [have_gst_plugins_base=no])
+ ;;
+esac
+case $want_gstdecode,$have_gstreamer,$have_gst_plugins_base in
+ whatever,yes,yes | yes,yes,yes) want_gstdecode=yes ;;
+ whatever,*) want_gstdecode=no ;;
+ yes,*)
+ case $have_gstreamer in
+ no) missing_libraries="$missing_libraries gstreamer-0.10" ;;
+ esac
+ case $have_gst_plugins_base in
+ no) missing_libraries="$missing_libraries gstreamer-plugins-base-0.10" ;;
+ esac
+esac
+
+mdw_SAVE_CFLAGS=$CFLAGS
+mdw_SAVE_LIBS=$LIBS
+CFLAGS="$CFLAGS $GSTREAMER_CFLAGS $GSTREAMER_PLUGINS_BASE_CFLAGS"
+LIBS="$LIBS \
+ $GSTREAMER_LIBS $GSTREAMER_PLUGINS_BASE_LIBS
+ -lgstaudio-0.10 -lgstapp-0.10"
+AC_CHECK_FUNCS([gst_audio_info_from_caps])
+CFLAGS=$mdw_SAVE_CFLAGS
+LIBS=$mdw_SAVE_LIBS
+