[MPlayer-dev-eng] [PATCH] configure: align mak_enable with FFmpeg.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Jan 25 23:35:25 EET 2021


Instead of X=no it generates !X=yes definitions.
Also add _EXTERNAL and _INLINE definitions for
CPU extensions.
---
 configure | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 4ae27fb31..d1ebdae8f 100755
--- a/configure
+++ b/configure
@@ -8482,11 +8482,13 @@ mak_enable () {
 list=$(echo $1 | toupper)
 item=$(echo $2 | toupper)
 nprefix=$3;
+suffix=$4
 for part in $list; do
+  name="${nprefix}_${part}$suffix"
   if $(echo $item | grep -q -E "(^| )$part($| )"); then
-    echo "${nprefix}_$part = yes"
+    echo "$name = yes"
   else
-    echo "${nprefix}_$part = no"
+    echo "!$name = yes"
   fi
 done
 }
@@ -8555,6 +8557,8 @@ ARCH = $arch
 $(mak_enable "$arch_all"    "$arch"    ARCH)
 $(mak_enable "$subarch_all" "$subarch" ARCH)
 $(mak_enable "$cpuexts_all" "$cpuexts" HAVE)
+$(mak_enable "$cpuexts_all" "$cpuexts_external" HAVE _EXTERNAL)
+$(mak_enable "$cpuexts_all" "$cpuexts" HAVE _INLINE)

 MENCODER = $_mencoder
 MPLAYER  = $_mplayer
--
2.30.0



More information about the MPlayer-dev-eng mailing list