+if test "$build_target" = "mingw"
+then
+ bluetooth=1
+fi
+
+# check for libpulse(audio) library
+pulse=0
+AC_CHECK_LIB(pulse,pa_stream_peek,
+ [AC_CHECK_HEADER([pulse/simple.h],pulse=1)])
+if test "$pulse" = 1
+then
+ AC_DEFINE([HAVE_PULSE],[1],[Have libpulse(audio) library])
+fi
+if test "$build_target" = "mingw"
+then
+ pulse=0
+fi
+
+# check for libopus(audio) library
+opus=0
+AC_CHECK_LIB(opus,opus_decode_float,
+ [AC_CHECK_HEADER([opus/opus.h],
+ [AC_CHECK_DECL([OPUS_SET_GAIN],[opus=1],[],[[#include <opus/opus.h>]]
+ )]
+ )]
+)
+if test "$opus" = 1
+then
+ AC_DEFINE([HAVE_OPUS],[1],[Have libopus library])
+fi
+
+# libogg
+AC_CHECK_LIB(ogg, ogg_stream_flush_fill,
+ [AC_CHECK_HEADERS([ogg/ogg.h],
+ AM_CONDITIONAL(HAVE_OGG, true)
+ ogg=1
+ AC_DEFINE(HAVE_OGG,1,[Have ogg]),
+ AM_CONDITIONAL(HAVE_OGG, false)
+ ogg=0
+ AC_DEFINE(HAVE_OGG,0,[lacking ogg]))],
+ AM_CONDITIONAL(HAVE_OGG, false)
+ ogg=0)
+
+
+
+gst=0
+PKG_CHECK_MODULES(
+ [GST],
+ [glib-2.0 gobject-2.0 gstreamer-1.0 gstreamer-app-1.0 gstreamer-audio-1.0],
+ [
+ gst=1
+ AC_MSG_RESULT(ok)
+ ], [
+ gst=0
+ AC_MSG_RESULT(not found)
+ ])