Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix to not explicitely link against ncurses #5

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ LUA_LIBS="-lm"
# Check for readline
READLINE_DEFS="#undef LUA_USE_READLINE"
if test "x$use_readline" == "xyes"; then
AC_CHECK_LIB([readline], [readline], [use_readline=yes], [use_readline=no], [-lncurses])
AC_CHECK_LIB([readline], [readline], [use_readline=yes], [use_readline=no], [])
AC_CHECK_HEADERS([readline/readline.h readline/history.h], [], [use_readline=no])
if test "x$use_readline" == "xno"; then
AC_MSG_WARN([readline headers could not be found, disabling readline support])
else
READLINE_DEFS="#define LUA_USE_READLINE"
READLINE_LIBS="$READLINE_LIBS -lreadline -lncurses"
READLINE_LIBS="$READLINE_LIBS -lreadline"
fi
fi
AC_SUBST(READLINE_DEFS)
Expand Down