menu "Aria2 Configuration"
	depends on PACKAGE_aria2

choice
	prompt "SSL Library"
	default ARIA2_OPENSSL

config ARIA2_OPENSSL
	bool "OpenSSL"

config ARIA2_GNUTLS
	bool "GnuTLS"

config ARIA2_NOSSL
	bool "No SSL Support"

endchoice

choice
	prompt "Crypto Library"
	depends on !ARIA2_OPENSSL
	default ARIA2_NOCRYPTO

config ARIA2_NETTLE
	bool "Nettle"

config ARIA2_LIBGCRYPT
	bool "Libgcrypt"

config ARIA2_NOCRYPTO
	bool "No Crypto Library"

endchoice

choice
	prompt "XML Library"
	default ARIA2_NOXML

config ARIA2_LIBXML2
	bool "Libxml2"

config ARIA2_EXPAT
	bool "Expat"

config ARIA2_NOXML
	bool "No XML Library"

endchoice

config ARIA2_GMP
	bool "GNU Multiple Precision Arithmetic Library"
	depends on ARIA2_NETTLE
	default n

config ARIA2_BITTORRENT
	bool "Enable Bittorrent Support"
	depends on ARIA2_OPENSSL || ARIA2_LIBGCRYPT || \
		(ARIA2_NETTLE && ARIA2_GMP)
	default y

config ARIA2_METALINK
	bool "Enable Metalink Support"
	depends on !ARIA2_NOXML
	default n

config ARIA2_SFTP
	bool "Enable SFTP Support"
	default n

config ARIA2_ASYNC_DNS
	bool "Enable Async DNS Support"
	default n

config ARIA2_COOKIE
	bool "Enable Firefox3/Chromium Cookie Support"
	default n

config ARIA2_WEBSOCKET
	bool "Enable JSON-RPC over WebSocket Support"
	depends on ARIA2_OPENSSL || ARIA2_LIBGCRYPT || ARIA2_NETTLE
	default y

endmenu