Commit 73d193d1 authored by James Almer's avatar James Almer

Merge commit '25c2a27c'

* commit '25c2a27c':
  configure: Make require_cc() and require_cpp_condition() functions consistent
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 41cd5af3 25c2a27c
...@@ -1484,8 +1484,7 @@ require(){ ...@@ -1484,8 +1484,7 @@ require(){
require_cc(){ require_cc(){
log require_cc "$@" log require_cc "$@"
name="$1" name="$1"
shift check_cc "$@" || die "ERROR: $name failed"
test_code cc "$@" || die "ERROR: $name failed"
} }
require_cpp(){ require_cpp(){
...@@ -1504,8 +1503,8 @@ require_header(){ ...@@ -1504,8 +1503,8 @@ require_header(){
require_cpp_condition(){ require_cpp_condition(){
log require_cpp_condition "$@" log require_cpp_condition "$@"
condition="$2" condition="$3"
test_cpp_condition "$@" || die "ERROR: $condition not satisfied" check_cpp_condition "$@" || die "ERROR: $condition not satisfied"
} }
require_pkg_config(){ require_pkg_config(){
...@@ -6161,10 +6160,10 @@ enabled libwebp && { ...@@ -6161,10 +6160,10 @@ enabled libwebp && {
enabled libx264 && { check_pkg_config libx264 x264 "stdint.h x264.h" x264_encoder_encode || enabled libx264 && { check_pkg_config libx264 x264 "stdint.h x264.h" x264_encoder_encode ||
{ require libx264 "stdint.h x264.h" x264_encoder_encode "-lx264 $pthreads_extralibs $libm_extralibs" && { require libx264 "stdint.h x264.h" x264_encoder_encode "-lx264 $pthreads_extralibs $libm_extralibs" &&
warn "using libx264 without pkg-config"; } } && warn "using libx264 without pkg-config"; } } &&
require_cpp_condition x264.h "X264_BUILD >= 118" && require_cpp_condition libx264 x264.h "X264_BUILD >= 118" &&
check_cpp_condition libx262 x264.h "X264_MPEG2" check_cpp_condition libx262 x264.h "X264_MPEG2"
enabled libx265 && require_pkg_config libx265 x265 x265.h x265_api_get && enabled libx265 && require_pkg_config libx265 x265 x265.h x265_api_get &&
require_cpp_condition x265.h "X265_BUILD >= 68" require_cpp_condition libx265 x265.h "X265_BUILD >= 68"
enabled libxavs && require libxavs "stdint.h xavs.h" xavs_encoder_encode "-lxavs $pthreads_extralibs $libm_extralibs" enabled libxavs && require libxavs "stdint.h xavs.h" xavs_encoder_encode "-lxavs $pthreads_extralibs $libm_extralibs"
enabled libxvid && require libxvid xvid.h xvid_global -lxvidcore enabled libxvid && require libxvid xvid.h xvid_global -lxvidcore
enabled libzimg && require_pkg_config libzimg "zimg >= 2.7.0" zimg.h zimg_get_api_version enabled libzimg && require_pkg_config libzimg "zimg >= 2.7.0" zimg.h zimg_get_api_version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment