]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Configure: Make it possible to disable deflate_quick and deflate_medium
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 21 Jul 2023 17:32:19 +0000 (19:32 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 24 Jul 2023 11:40:56 +0000 (13:40 +0200)
also on non-x86 architectures.

configure

index 29a64badfdba14ddb5afe6e1f54f63ba672223d2..53aa012a99838288f2257d2baf998a13df6a18d5 100755 (executable)
--- a/configure
+++ b/configure
@@ -1525,20 +1525,11 @@ EOF
     fi
 }
 
-case "${ARCH}" in
-    i386 | i486 | i586 | i686 | x86_64)
-        # Enable deflate_medium at level 1
-        if test $without_new_strategies -eq 1; then
-            CFLAGS="${CFLAGS} -DNO_QUICK_STRATEGY"
-            SFLAGS="${SFLAGS} -DNO_QUICK_STRATEGY"
-        fi
-        # Enable deflate_medium at level 4-6
-        if test $without_new_strategies -eq 1; then
-            CFLAGS="${CFLAGS} -DNO_MEDIUM_STRATEGY"
-            SFLAGS="${SFLAGS} -DNO_MEDIUM_STRATEGY"
-        fi
-        ;;
-esac
+# Check whether to disable deflate_medium and deflate_quick
+if test $without_new_strategies -eq 1; then
+    CFLAGS="${CFLAGS} -DNO_QUICK_STRATEGY -DNO_MEDIUM_STRATEGY"
+    SFLAGS="${SFLAGS} -DNO_QUICK_STRATEGY -DNO_MEDIUM_STRATEGY"
+fi
 
 ARCHDIR='arch/generic'
 ARCH_STATIC_OBJS=''