1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Build: Allow sandbox to be configured for just xzdec.

If xz is disabled, then xzdec can still use the sandbox.
This commit is contained in:
Jia Tan 2023-12-20 22:43:44 +08:00
parent d74fb5f060
commit 5feb09266f

View file

@ -523,15 +523,15 @@ AC_ARG_ENABLE([sandbox], [AS_HELP_STRING([--enable-sandbox=METHOD],
The default is 'auto' which enables sandboxing if The default is 'auto' which enables sandboxing if
a supported sandboxing method is found.])], a supported sandboxing method is found.])],
[], [enable_sandbox=auto]) [], [enable_sandbox=auto])
case $enable_xz-$enable_sandbox in case $enable_xzdec-$enable_xz-$enable_sandbox in
no-*) no-no-*)
enable_sandbox=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)]) AC_MSG_RESULT([maybe (autodetect)])
;; ;;
*-no | *-capsicum | *-pledge | *-landlock) *-*-no | *-*-capsicum | *-*-pledge | *-*-landlock)
AC_MSG_RESULT([$enable_sandbox]) AC_MSG_RESULT([$enable_sandbox])
;; ;;
*) *)