config FREETZ_PACKAGE_MC
	bool "Midnight Commander (mc) 4.8.24 (binary only)"
	select FREETZ_SHARE_terminfo
	select FREETZ_LIB_libiconv if FREETZ_TARGET_UCLIBC_0_9_28
	select FREETZ_LIB_libglib_2
	default n

menu "Configuration"
	depends on FREETZ_PACKAGE_MC

choice
	prompt "Widget library"
	default FREETZ_PACKAGE_MC_WITH_NCURSES

	config FREETZ_PACKAGE_MC_WITH_NCURSES
	bool "Ncurses"
	select FREETZ_LIB_libncurses

	config FREETZ_PACKAGE_MC_WITH_SLANG
	bool "S-Lang"
	select FREETZ_LIB_libslang
endchoice

config FREETZ_PACKAGE_MC_WITH_BACKGROUND
	bool "Background file operations support"
	default n

config FREETZ_PACKAGE_MC_WITH_CHARSET
	bool "Charset selection and conversion support"
	default n

config FREETZ_PACKAGE_MC_WITH_INTERNAL_EDIT
	bool "Internal editor support"
	default y

config FREETZ_PACKAGE_MC_WITH_DIFF_VIEWER
	bool "Diff-viewer support"
	default n

config FREETZ_PACKAGE_MC_WITH_SUBSHELL
	bool "Subshell support"
	select FREETZ_LIB_libutil
	default y
	help
		Subshell support means you can press Ctrl-O to hide the mc panels and
		have a real subshell. Both Bash (if package is installed) and BusyBox
		Ash can be used, depending which one is defined as your login shell.

		ATTENTION: You should *not* use CONFIG_FEATURE_BASH_IS_ASH in BusyBox
		or otherwise symlink /bin/bash to /bin/busybox because MC must
		differentiate handling between Ash and real Bash.

		This feature adds about 8 KB (uncompressed) to the mc binary.

config FREETZ_PACKAGE_MC_WITH_VFS
	bool "Virtual filesystem support"
	default n

config FREETZ_PACKAGE_MC_WITH_VFS_CPIO
	depends on FREETZ_PACKAGE_MC_WITH_VFS
	bool "cpio"

config FREETZ_PACKAGE_MC_WITH_VFS_EXTFS
	depends on FREETZ_PACKAGE_MC_WITH_VFS
	bool "extfs"
	default y

config FREETZ_PACKAGE_MC_WITH_VFS_FTP
	depends on FREETZ_PACKAGE_MC_WITH_VFS
	bool "ftp"
	default n

config FREETZ_PACKAGE_MC_WITH_VFS_SFS
	depends on FREETZ_PACKAGE_MC_WITH_VFS
	bool "sfs"
	default n

config FREETZ_PACKAGE_MC_WITH_VFS_TAR
	depends on FREETZ_PACKAGE_MC_WITH_VFS
	bool "tar"
	default y

# TODO
#config FREETZ_PACKAGE_MC_WITH_VFS_FISH
#	depends on FREETZ_PACKAGE_MC_WITH_VFS
#	bool "fish"
#	default n
#config FREETZ_PACKAGE_MC_WITH_VFS_SFTP
#	depends on FREETZ_PACKAGE_MC_WITH_VFS
#	bool "sftp"
#	default n
#config FREETZ_PACKAGE_MC_WITH_VFS_SMB
#	depends on FREETZ_PACKAGE_MC_WITH_VFS
#	bool "smb"
#	default n
#config FREETZ_PACKAGE_MC_WITH_VFS_UNDELFS
#	depends on FREETZ_PACKAGE_MC_WITH_VFS
#	bool "undelfs"
#	default n

config FREETZ_PACKAGE_MC_WITH_HELP
	bool "Include online help"
	default y

config FREETZ_PACKAGE_MC_WITH_SYNTAX
	bool "Include syntax files"
	default y

endmenu
