rakitzis / rc

rc shell -- independent re-implementation for Unix of the Plan 9 shell (from circa 1992)
Other
257 stars 23 forks source link

[PATCH] editline does not need tgetent() #64

Closed CasperVector closed 1 year ago

CasperVector commented 4 years ago

EDIT: to be precise, it only needs tgetent() when --enable-termcap is explicitly given in its configuration...

diff -ur rc-1.7.4/configure.ac rc-1.7.4/configure.ac
--- rc-1.7.4/configure.ac   2015-05-17 04:23:26.000000000 +0800
+++ rc-1.7.4/configure.ac   2020-09-08 00:55:09.949411192 +0800
@@ -186,10 +184,9 @@
        ;;
    editline)
        EDIT=edit-editline.o
-       RC_LIB_TGETENT
        AC_CHECK_LIB(editline, el_ring_bell, [
-           LIBS="$LIBS -leditline $rc_lib_tgetent"
-       ], AC_MSG_ERROR(editline library not found), $rc_lib_tgetent)
+           LIBS="$LIBS -leditline"
+       ], AC_MSG_ERROR(editline library not found))
        ;;
    readline|gnu)
        EDIT=edit-readline.o
xyb3rt commented 1 year ago

No longer necessary.