[FFmpeg-devel] [PATCH 2/2] configure: removed redundant condition check

shivraj.patil at imgtec.com shivraj.patil at imgtec.com
Thu Mar 3 14:56:57 CET 2016


From: Shivraj Patil <shivraj.patil at imgtec.com>

Signed-off-by: Shivraj Patil <shivraj.patil at imgtec.com>
---
 configure |   15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/configure b/configure
index 45d527a..3de6dcf 100755
--- a/configure
+++ b/configure
@@ -5091,15 +5091,13 @@ elif enabled mips; then
             add_asflags "-mips64r6" &&
             check_inline_asm mips64r6 '"dlsa $0, $0, $0, 1"' ||
             disable mips64r6
-        fi
-        if disabled mips64r6 && enabled mips64r2; then
+        elif enabled mips64r2; then
             check_ldflags "-mips64r2" &&
             add_cflags "-mips64r2" &&
             add_asflags "-mips64r2" &&
             check_inline_asm mips64r2 '"dext $0, $0, 0, 1"' ||
             disable mips64r2
-        fi
-        if disabled mips64r6 && disabled mips64r2; then
+        else
             check_ldflags "-mips64" &&
             add_cflags "-mips64" &&
             add_asflags "-mips64" &&
@@ -5113,22 +5111,19 @@ elif enabled mips; then
             add_asflags "-mips32r6" &&
             check_inline_asm mips32r6 '"aui $0, $0, 0"' ||
             disable mips32r6
-        fi
-        if disabled mips32r6 && enabled mips32r5; then
+        elif enabled mips32r5; then
             check_ldflags "-mips32r5" &&
             add_cflags "-mips32r5" &&
             add_asflags "-mips32r5" &&
             check_inline_asm mips32r5 '"eretnc"' ||
             disable mips32r5
-        fi
-        if disabled mips32r6 && disabled mips32r5 && enabled mips32r2; then
+        elif enabled mips32r2; then
             check_ldflags "-mips32r2" &&
             add_cflags "-mips32r2" &&
             add_asflags "-mips32r2" &&
             check_inline_asm mips32r2 '"ext $0, $0, 0, 1"' ||
             disable mips32r2
-        fi
-        if disabled mips32r6 && disabled mips32r5 && disabled mips32r2; then
+        else
             check_ldflags "-mips32" &&
             add_cflags "-mips32" &&
             add_asflags "-mips32" &&
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list