diff --git a/configure.ac b/configure.ac index b577a9720..b46a0810e 100644 --- a/configure.ac +++ b/configure.ac @@ -160,7 +160,7 @@ PKG_CHECK_MODULES([xcb_icccm], [xcb-icccm],, PKG_CHECK_MODULES([cairo_xcb], [cairo-xcb],, [AC_MSG_ERROR([awesome requires cairo-xcb.])]) AC_CHECK_LIB(pthread, pthread_create) -AC_CHECK_LIB(readline, readline, [AC_SUBST([readline_LIBS], ["-lreadline -lncurses"])]) +AC_CHECK_LIB(readline, readline, [AC_SUBST([readline_LIBS], ["-lreadline -lncurses"])], -lncurses) # Checks for header files. AC_PATH_X