From: Diego Biurrun Date: Fri, 20 Oct 2017 01:43:58 +0000 (+0200) Subject: configure: Add check_ld() helper function to simplify some expressions X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=18dc1ff0fb4572b1d50a44905aa1e76bc3bbb0ad;p=ffmpeg configure: Add check_ld() helper function to simplify some expressions --- diff --git a/configure b/configure index 499d98f1bad..5e350983dd8 100755 --- a/configure +++ b/configure @@ -850,6 +850,14 @@ test_ld(){ test_cmd $ld $LDFLAGS $flags $(ld_o $TMPE) $TMPO $libs $extralibs } +check_ld(){ + log check_ld "$@" + name=$1 + shift + disable $name + test_ld $@ && enable $name +} + print_include(){ hdr=$1 test "${hdr%.h}" = "${hdr}" && @@ -4267,8 +4275,8 @@ elif enabled arm; then : elif ! test_cpp_condition stddef.h "defined __ARM_PCS || defined __SOFTFP__" && [ $target_os != darwin ]; then case "${cross_prefix:-$cc}" in - *hardfloat*) enable vfp_args; fpabi=vfp ;; - *) test_ld <