sqlite3: make cli-editing support selectable

sqlite3 can use libedit, readline or disable command-line editing
support altogether. This commit adds a choice to menuselect.

The default is changed from readline to libedit, as the latter is
upstream's first choice and is also a bit smaller than readline.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
Sebastian Kemper
2018-12-27 11:11:20 +01:00
parent 0b6d2678c1
commit 4e30b3b62a
2 changed files with 43 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
menu "Configuration"
depends on PACKAGE_sqlite3-cli
choice
prompt "Select command-line editing support"
default SQLITE3_LIBEDIT
config SQLITE3_LIBEDIT
bool "libedit"
help
Link against libedit. This is the default.
config SQLITE3_READLINE
bool "readline"
help
Link against GNU readline.
config SQLITE3_READLINE_NONE
bool "none"
help
Disable command-line editing support.
endchoice
endmenu