config FREETZ_PACKAGE_SQUASHFS4_BE
	bool "squashfs-tools 4.3 (AVM-BE)"
	depends on FREETZ_KERNEL_VERSION_2_6_28_MIN
	select FREETZ_LIB_libm        if !FREETZ_PACKAGE_SQUASHFS4_BE_ALL_STAT
	select FREETZ_LIB_libpthread  if !FREETZ_PACKAGE_SQUASHFS4_BE_ALL_STAT
	select FREETZ_LIB_libz        if  FREETZ_PACKAGE_SQUASHFS4_BE_ALL_DYN && FREETZ_PACKAGE_SQUASHFS4_BE_LEGACY
	select FREETZ_LIB_liblzma     if  FREETZ_PACKAGE_SQUASHFS4_BE_ALL_DYN
	default n
	help
		This package provides unsquashfs/mksquashfs utilities modified
		to be able to expand/create images in AVM-BE format.

		AVM-BE is not an official name, it's a name given by the user
		community to a non-standard SquashFS format used by AVM since
		Fritz!OS Labor 6.35 - ths first kernel 3.10.73 based Fritz!OS
		version.

config FREETZ_PACKAGE_SQUASHFS4_BE_LEGACY
	depends on FREETZ_PACKAGE_SQUASHFS4_BE
	bool "with SquashFS-1/2/3 support"
	default n
	help
		Enables support (unsquashfs only) for legacy SquashFS-1/2/3 formats
		including a special header-less/LZMA1-compressed format used by AVM
		on many boxes.

choice
	depends on FREETZ_PACKAGE_SQUASHFS4_BE
	prompt "Link"
	default FREETZ_PACKAGE_SQUASHFS4_BE_ALL_DYN

	config FREETZ_PACKAGE_SQUASHFS4_BE_ALL_DYN
		bool "all libraries dynamically"

	config FREETZ_PACKAGE_SQUASHFS4_BE_COMP_STAT
		bool "compression libraries statically"

	config FREETZ_PACKAGE_SQUASHFS4_BE_ALL_STAT
		bool "all libraries statically"
endchoice
