1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -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:
Timo Sirainen 2000-07-09 15:45:55 +00:00 committed by cras
parent eaf49f020a
commit e4eb0cb7e7

View File

@ -210,7 +210,14 @@ AC_DEFUN(AC_NCURSES, [
if test -f $1/$2
then
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"
search_ncurses=false
screen_manager=$5