mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Build: Add configure option --disable-microlzma.
MicroLZMA was made for EROFS and used by erofs-utils. It might be used by something else in the future but those wanting a smaller build for specific situations can now disable this rarely-needed feature.
This commit is contained in:
parent
054ccd6d14
commit
59c4d6e139
1 changed files with 22 additions and 0 deletions
22
configure.ac
22
configure.ac
|
@ -294,6 +294,28 @@ else
|
|||
fi
|
||||
|
||||
|
||||
#############
|
||||
# MicroLZMA #
|
||||
#############
|
||||
|
||||
AC_MSG_CHECKING([if MicroLZMA support should be built])
|
||||
AC_ARG_ENABLE([microlzma], AS_HELP_STRING([--disable-microlzma],
|
||||
[Do not build MicroLZMA encoder and decoder.
|
||||
It is needed by specific applications only,
|
||||
for example, erofs-utils.]),
|
||||
[], [enable_microlzma=yes])
|
||||
case $enable_microlzma in
|
||||
yes | no)
|
||||
AC_MSG_RESULT([$enable_microlzma])
|
||||
;;
|
||||
*)
|
||||
AC_MSG_RESULT([])
|
||||
AC_MSG_ERROR([--enable-microlzma accepts only `yes' or `no'.])
|
||||
;;
|
||||
esac
|
||||
AM_CONDITIONAL(COND_MICROLZMA, test "x$enable_microlzma" = xyes)
|
||||
|
||||
|
||||
###########################
|
||||
# Assembler optimizations #
|
||||
###########################
|
||||
|
|
Loading…
Reference in a new issue