From 20b441a6de743b2149df59cfb94a7663e1924fa3 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 1 Oct 2012 10:42:13 +0200 Subject: [PATCH] Libreadline might depend on libcurses. --- m4/readline.m4 | 3 ++- src/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/m4/readline.m4 b/m4/readline.m4 index 9c423d4a..f29e6924 100644 --- a/m4/readline.m4 +++ b/m4/readline.m4 @@ -33,7 +33,8 @@ AC_DEFUN([tinc_READLINE], AC_CHECK_LIB(readline, readline, [READLINE_LIBS="-lreadline"], - [AC_MSG_ERROR("readline library not found.")] + [AC_MSG_ERROR("readline library not found.")], + [$CURSES_LIBS] ) ]) diff --git a/src/Makefile.am b/src/Makefile.am index 89ff2d89..3bd8646b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -37,7 +37,7 @@ if TUNEMU tincd_SOURCES += bsd/tunemu.c endif -tincctl_LDADD = $(CURSES_LIBS) $(READLINE_LIBS) +tincctl_LDADD = $(READLINE_LIBS) $(CURSES_LIBS) DEFAULT_INCLUDES =