Do not assume -ltermcap, check for tgetent() instead

This is a followup patch for issue #8.  When the user elects
to enable Termcap checks for window resizing we need to check
what library on the system provides this functionality.  Do
not assume -ltermcap, but instead check for tgetent() in all
possible libraries.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-06-01 07:14:11 +02:00
parent f66e8cc151
commit e02339c3ae
2 changed files with 10 additions and 6 deletions

View File

@@ -4,8 +4,3 @@ noinst_PROGRAMS = testit cli
LDADD = $(top_builddir)/src/libeditline.la
AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
AM_LDFLAGS = -static
if USE_LIBTERMCAP
LDADD += -ltermcap
endif