[build] Link against ncurses for readline

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-29 16:48:55 +02:00
parent eaf38a6a69
commit 2cc242e602
2 changed files with 2 additions and 1 deletions

View File

@ -146,7 +146,7 @@ awesome_client_SOURCES = \
common/socket.c common/socket.h \ common/socket.c common/socket.h \
common/version.c common/version.h \ common/version.c common/version.h \
common/util.c common/util.h common/util.c common/util.h
awesome_client_LDADD = -lreadline awesome_client_LDADD = $(readline_LIBS)
if HAVE_XMLTO if HAVE_XMLTO
if HAVE_ASCIIDOC if HAVE_ASCIIDOC

View File

@ -160,6 +160,7 @@ PKG_CHECK_MODULES([xcb_icccm], [xcb-icccm],,
PKG_CHECK_MODULES([cairo_xcb], [cairo-xcb],, PKG_CHECK_MODULES([cairo_xcb], [cairo-xcb],,
[AC_MSG_ERROR([awesome requires cairo-xcb.])]) [AC_MSG_ERROR([awesome requires cairo-xcb.])])
AC_CHECK_LIB(pthread, pthread_create) AC_CHECK_LIB(pthread, pthread_create)
AC_CHECK_LIB(readline, readline, [AC_SUBST([readline_LIBS], ["-lreadline -lncurses"])])
# Checks for header files. # Checks for header files.
AC_PATH_X AC_PATH_X