patch 8.0.1392: build fails with --with-features=huge --disable-channel
Problem: Build fails with --with-features=huge --disable-channel.
Solution: Don't enable the terminal feature when the channel feature is
missing. (Dominique Pelle, closes #2453)
diff --git a/src/auto/configure b/src/auto/configure
index 208032a..fd73e92 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -7514,7 +7514,7 @@
$as_echo "no" >&6; }
fi
fi
-if test "$enable_terminal" = "yes"; then
+if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then
$as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/screen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c"