configure: allow builds against GStreamer git (1.5.x).
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Mon, 28 Jul 2014 12:54:46 +0000 (15:54 +0300)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 28 Jul 2014 13:09:58 +0000 (15:09 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=733688

configure.ac

index b41d483..1327806 100644 (file)
@@ -15,6 +15,7 @@ m4_define([gst0_vaapi_lt_current_bias], [0])
 m4_define([gst1_vaapi_lt_current_bias], [2])
 m4_define([gst2_vaapi_lt_current_bias], [4])
 m4_define([gst4_vaapi_lt_current_bias], [5])
+m4_define([gst6_vaapi_lt_current_bias], [5])
 m4_define([gst_vaapi_lt_revision],      [0])
 m4_define([gst_vaapi_lt_age],           [0])
 
@@ -35,6 +36,9 @@ m4_define([gst12_plugins_bad_version],  [1.1.0])
 m4_define([gst14_version],              [1.2.90])
 m4_define([gst14_plugins_base_version], [1.3.0])
 m4_define([gst14_plugins_bad_version],  [1.3.0])
+m4_define([gst16_version],              [1.5.0])
+m4_define([gst16_plugins_base_version], [1.5.0])
+m4_define([gst16_plugins_bad_version],  [1.5.0])
 
 # Wayland minimum version number
 m4_define([wayland_api_version], [1.0.0])
@@ -225,6 +229,11 @@ case $GST_API_VERSION in
     GST_PLUGINS_BASE_VERSION_REQUIRED=gst14_plugins_base_version
     GST_PLUGINS_BAD_VERSION_REQUIRED=gst14_plugins_bad_version
     ;;
+1.5)
+    GST_VERSION_REQUIRED=gst16_version
+    GST_PLUGINS_BASE_VERSION_REQUIRED=gst16_plugins_base_version
+    GST_PLUGINS_BAD_VERSION_REQUIRED=gst16_plugins_bad_version
+    ;;
 *)
     AC_MSG_ERROR([unsupported GStreamer API version $GST_API_VERSION])
     ;;
@@ -474,6 +483,7 @@ case $GST_API_VERSION in
 1.0)    lt_bias=gst1_vaapi_lt_current_bias;;
 1.2)    lt_bias=gst2_vaapi_lt_current_bias;;
 1.[[3-4]]) lt_bias=gst4_vaapi_lt_current_bias;;
+1.5)    lt_bias=gst6_vaapi_lt_current_bias;;
 esac
 GST_VAAPI_MAJOR_VERSION=`expr gst_vaapi_lt_current - "$lt_bias"`
 AC_SUBST(GST_VAAPI_MAJOR_VERSION)