[libav-devel] [PATCH] configure: Simplify AMF check with a helper function

Diego Biurrun diego at biurrun.de
Wed Mar 7 13:55:48 CET 2018


On Wed, Mar 07, 2018 at 01:31:28PM +0100, Diego Biurrun wrote:
> --- a/configure
> +++ b/configure
> @@ -4598,11 +4598,7 @@ for func in $MATH_FUNCS; do
>  # these are off by default, so fail if requested and not available
> -
> -enabled amf &&
> -    check_cpp_condition "AMF/core/Version.h" \
> -        "(AMF_VERSION_MAJOR << 48 | AMF_VERSION_MINOR << 32 | AMF_VERSION_RELEASE << 16 | AMF_VERSION_BUILD_NUM) >= 0x0001000400040001" ||
> -    disable amf
> +enabled amf               && require_cpp_condition AMF/core/Version.h "(AMF_VERSION_MAJOR << 48 | AMF_VERSION_MINOR << 32 | AMF_VERSION_RELEASE << 16 | AMF_VERSION_BUILD_NUM) >= 0x0001000400040001"

Log message amended locally to

  configure: Fix logic of AMF external library check

  Fail if AMF is requested but unavailable, as we do for all
  other external libraries that need to be explicitly enabled.

Diego


More information about the libav-devel mailing list