From bcabfcc08b80f5d42920336266e95919c2e4b507 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Fri, 14 Jun 2013 11:32:36 +0200 Subject: [PATCH] configure: add --enable-builtin-codecparsers [default="yes"] option. 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index b93165c0f1..be45f77602 100644 --- a/configure.ac +++ b/configure.ac @@ -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])