mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Check that -lncurses is actually found - if not, try -lcurses.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@453 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
eaf49f020a
commit
e4eb0cb7e7
@ -210,7 +210,14 @@ AC_DEFUN(AC_NCURSES, [
|
|||||||
if test -f $1/$2
|
if test -f $1/$2
|
||||||
then
|
then
|
||||||
AC_MSG_RESULT(Found ncurses on $1/$2)
|
AC_MSG_RESULT(Found ncurses on $1/$2)
|
||||||
CURSES_LIBS="$3"
|
|
||||||
|
CURSES_LIBS="$3"
|
||||||
|
AC_CHECK_LIB(ncurses, initscr,, [
|
||||||
|
CHECKLIBS=`echo "$3"|sed 's/-lncurses/-lcurses/g'`
|
||||||
|
AC_CHECK_LIB(curses, initscr, [
|
||||||
|
CURSES_LIBS="$CHECKLIBS"
|
||||||
|
],, $CHECKLIBS)
|
||||||
|
], $CURSES_LIBS)
|
||||||
CURSES_INCLUDEDIR="$4"
|
CURSES_INCLUDEDIR="$4"
|
||||||
search_ncurses=false
|
search_ncurses=false
|
||||||
screen_manager=$5
|
screen_manager=$5
|
||||||
|
Loading…
Reference in New Issue
Block a user