forked from pool/libedit
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
|
--- configure.ac.orig
|
||
|
+++ configure.ac
|
||
|
@@ -34,7 +34,7 @@ EL_MANTYPE
|
||
|
|
||
|
|
||
|
AC_CHECK_LIB(curses, tgetent,,
|
||
|
- [AC_CHECK_LIB(ncurses, tgetent,,
|
||
|
+ [AC_CHECK_LIB(ncursesw, tgetent,,
|
||
|
[AC_MSG_ERROR([libcurses or libncurses are required!])] )] )
|
||
|
|
||
|
|
||
|
--- src/Makefile.am.orig
|
||
|
+++ src/Makefile.am
|
||
|
@@ -44,6 +44,7 @@ libedit_la_SOURCES = chared.c common.c e
|
||
|
histedit.h key.h map.h chartype.h parse.h prompt.h read.h refresh.h \
|
||
|
search.h sig.h sys.h el_term.h tty.h vis.h filecomplete.h \
|
||
|
editline/readline.h
|
||
|
+libedit_la_CFLAGS = $(shell ncursesw6-config --cflags)
|
||
|
if WIDECHAR
|
||
|
libedit_la_SOURCES += eln.c
|
||
|
endif
|
||
|
@@ -53,5 +54,5 @@ nobase_include_HEADERS = histedit.h edit
|
||
|
|
||
|
nodist_libedit_la_SOURCES = $(BUILT_SOURCES)
|
||
|
|
||
|
-libedit_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION)
|
||
|
+libedit_la_LDFLAGS = $(shell ncursesw6-config --libs) -no-undefined -version-info $(LT_VERSION)
|
||
|
|
||
|
--- libedit.pc.in.orig
|
||
|
+++ libedit.pc.in
|
||
|
@@ -7,6 +7,6 @@ Name: libedit
|
||
|
Description: command line editor library provides generic line editing, history, and tokenization functions.
|
||
|
Version: @VERSION@
|
||
|
Requires:
|
||
|
-Libs: -L${libdir} -ledit @LIBS@
|
||
|
+Libs: -ledit
|
||
|
Cflags: -I${includedir} -I${includedir}/editline
|
||
|
|