From 9784dcf88e8f0204550b4218f1c77bfa510a497b Mon Sep 17 00:00:00 2001
From: Steve Bennett <steveb@workware.net.au>
Date: Thu, 13 Jul 2023 09:47:40 +1000
Subject: jimsh, interp, tests: fixes when line editing is disabled

- Set jim::lineedit to indicate if line editing is configured
- Ensure that aio tty works even if line editing is disabled
- Skip some tests if line editing is not configured

Signed-off-by: Steve Bennett <steveb@workware.net.au>
---
 auto.def | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'auto.def')

diff --git a/auto.def b/auto.def
index 162f7d2..93cbdbf 100644
--- a/auto.def
+++ b/auto.def
@@ -464,8 +464,10 @@ if {[opt-bool-unless-minimal ssl]} {
         define-append AS_CFLAGS -DUSE_TLSv1_2_method
     }
 }
-if {[opt-bool-unless-minimal lineedit]} {
-    if {([cc-check-includes termios.h] && [have-feature isatty]) || [have-feature winconsole]} {
+
+# Still need to check termios.h and isatty even if lineedit is disabled
+if {([cc-check-includes termios.h] && [have-feature isatty]) || [have-feature winconsole]} {
+    if {[opt-bool-unless-minimal lineedit]} {
         msg-result "Enabling line editing"
         define USE_LINENOISE
         define-append PARSE_UNIDATA_FLAGS -width
-- 
cgit v1.1

