And define it in our own build.
dnl make DEPRECATED_CFLAGS=''
GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
GST_OPTION_CXXFLAGS="\$(WARNING_CXXFLAGS) \$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
+GST_OPTION_CFLAGS="$GST_OPTION_CFLAGS -DGST_USE_UNSTABLE_API"
+GST_OPTION_CXXFLAGS="$GST_OPTION_CXXFLAGS -DGST_USE_UNSTABLE_API"
AC_SUBST(GST_OPTION_CFLAGS)
AC_SUBST(GST_OPTION_CXXFLAGS)
-I$(top_srcdir) \
-I$(top_builddir) \
-DIN_GOBJECT_INTROSPECTION=1 \
+ -DGST_USE_UNSTABLE_API \
--c-include='gst/gst.h' \
--library=libgstreamer-0.11.la \
--include=GLib-2.0 \
#ifndef __GST_H__
#define __GST_H__
+#ifndef GST_USE_UNSTABLE_API
+#warning "The GStreamer 0.11 API is still unstable and will change in future."
+#warning "Define GST_USE_UNSTABLE_API to avoid this warning."
+#endif
+
#include <glib.h>
#include <gst/glib-compat.h>
$(INTROSPECTION_SCANNER) -v --namespace GstBase \
--nsversion=@GST_MAJORMINOR@ \
--strip-prefix=Gst \
+ -DGST_USE_UNSTABLE_API \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \
$(INTROSPECTION_SCANNER) -v --namespace GstCheck \
--nsversion=@GST_MAJORMINOR@ \
--strip-prefix=Gst \
+ -DGST_USE_UNSTABLE_API \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \
$(INTROSPECTION_SCANNER) -v --namespace GstController \
--nsversion=@GST_MAJORMINOR@ \
--strip-prefix=Gst \
+ -DGST_USE_UNSTABLE_API \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \
$(INTROSPECTION_SCANNER) -v --namespace GstDataprotocol \
--strip-prefix=Gst \
--nsversion=@GST_MAJORMINOR@ \
+ -DGST_USE_UNSTABLE_API \
-I$(top_srcdir) \
-I$(top_builddir) \
$(gir_cincludes) \
$(INTROSPECTION_SCANNER) -v --namespace GstNet \
--strip-prefix=Gst \
--nsversion=@GST_MAJORMINOR@ \
+ -DGST_USE_UNSTABLE_API \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \