configure: add --enable-builtin-codecparsers [default="yes"] option.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 14 Jun 2013 09:32:36 +0000 (11:32 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 14 Jun 2013 09:45:11 +0000 (11:45 +0200)
Add flag to have all codecparsers built-in, thus ensuring that the
resulting binaries have all the necessary bug fixes and this is what
the QA has been testing anyway.

Of course, for a completely up-to-date Linux distribution, you could
also opt for --disable-builtin-codecparsers and use the system ones.
Though, some core fixes could be missing, and those cannot be tested
for with API checks.

configure.ac

index b93165c..be45f77 100644 (file)
@@ -89,6 +89,11 @@ dnl Initialize libtool
 LT_PREREQ([2.2])
 LT_INIT
 
+AC_ARG_ENABLE(builtin_codecparsers,
+    AS_HELP_STRING([--enable-builtin-codecparsers],
+                   [enable built-in codecparsers @<:@default=yes@:>@]),
+    [], [enable_builtin_codecparsers="yes"])
+
 AC_ARG_ENABLE(drm,
     AS_HELP_STRING([--enable-drm],
                    [enable DRM backend @<:@default=yes@:>@]),
@@ -288,6 +293,11 @@ PKG_CHECK_MODULES([GST_BASEVIDEO],
     [gstreamer-basevideo-$GST_API_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED])
 
 dnl ... bitstream parsers
+if test "$enable_builtin_codecparsers" = "yes"; then
+    ac_cv_have_gst_mpeg2_parser="no"
+    ac_cv_have_gst_h264_parser="no"
+    ac_cv_have_gst_jpeg_parser="no"
+fi
 PKG_CHECK_MODULES([GST_CODEC_PARSERS],
     [gstreamer-codecparsers-$GST_API_VERSION >= $GST_PLUGINS_BAD_VERSION_REQUIRED])