summaryrefslogtreecommitdiff
path: root/config.h.meson
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2021-04-05 16:07:53 +0200
committerThomas Haller <thaller@redhat.com>2021-07-14 17:16:45 +0200
commit85f3030e4b9c41435143fd4d157fc9f95d6fbcac (patch)
treef73cc064bbaaef86913ddcd92e4e6d44a776fe88 /config.h.meson
parent0c5adc6938447cdec62c599fe58fe48b27e1a986 (diff)
downloadNetworkManager-85f3030e4b9c41435143fd4d157fc9f95d6fbcac.tar.gz
cli: meson: Support building nmcli with libedit
After this change the nmcli program built with meson will have the possibility to use libedit (BSD license) instead of libreadline (GPLv3). Meson configuration line: meson configure -Dreadline=libedit -C ../nm-build/ or meson --reconfigure -Dreadline=libedit ../nm-build/ ninja -C ../nm-build/ The new 'readline' option is set to 'auto' by default, so the current behavior shall be preserved (and the libreadline is used). Two new config.h flags (always defined) have been introduced - HAVE_EDITLINE_READLINE and HAVE_READLINE_HISTORY.
Diffstat (limited to 'config.h.meson')
-rw-r--r--config.h.meson6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.meson b/config.h.meson
index 432402d5b4..5979793e5c 100644
--- a/config.h.meson
+++ b/config.h.meson
@@ -255,3 +255,9 @@
#mesondefine HAVE_PIDFD_OPEN
#mesondefine HAVE_PIDFD_SEND_SIGNAL
#mesondefine HAVE_RT_SIGQUEUEINFO
+
+/* Define to 1 if you want to use -ledit, otherwise 0 for default -lreadline. */
+#mesondefine HAVE_EDITLINE_READLINE
+
+/* Define to 1 if you have history support from -lreadline. */
+#mesondefine HAVE_READLINE_HISTORY