]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Build: Allow sandbox to be configured for just xzdec.
authorJia Tan <jiat0218@gmail.com>
Wed, 20 Dec 2023 14:43:44 +0000 (22:43 +0800)
committerJia Tan <jiat0218@gmail.com>
Wed, 20 Dec 2023 14:43:44 +0000 (22:43 +0800)
If xz is disabled, then xzdec can still use the sandbox.

configure.ac

index cdd72a9ffd1cfc6b39af91b5509022c9a505a27b..a4ef57a54dad39f6984fe251c214472ef727a81a 100644 (file)
@@ -523,15 +523,15 @@ AC_ARG_ENABLE([sandbox], [AS_HELP_STRING([--enable-sandbox=METHOD],
                The default is 'auto' which enables sandboxing if
                a supported sandboxing method is found.])],
        [], [enable_sandbox=auto])
-case $enable_xz-$enable_sandbox in
-       no-*)
+case $enable_xzdec-$enable_xz-$enable_sandbox in
+       no-no-*)
                enable_sandbox=no
-               AC_MSG_RESULT([no, --disable-xz was used])
+               AC_MSG_RESULT([no, --disable-xz and --disable-xzdec was used])
                ;;
-       *-auto)
+       *-*-auto)
                AC_MSG_RESULT([maybe (autodetect)])
                ;;
-       *-no | *-capsicum | *-pledge | *-landlock)
+       *-*-no | *-*-capsicum | *-*-pledge | *-*-landlock)
                AC_MSG_RESULT([$enable_sandbox])
                ;;
        *)