1 --- octave-2.9.17/configure.in~ 2007-11-10 06:17:27.000000000 +0100
2 +++ octave-2.9.17/configure.in 2007-12-03 00:20:36.000000000 +0100
3 @@ -1536,21 +1536,15 @@
4 OCTAVE_MKDIR_TAKES_ONE_ARG
6 octave_found_termlib=no
7 -for termlib in ncurses curses termcap terminfo termlib; do
8 - AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"])
9 - case "${TERMLIBS}" in
11 - LIBS="$TERMLIBS $LIBS"
13 - octave_found_termlib=yes
18 +AC_CHECK_LIB(ncurses, tputs, [TERMLIBS="-lncurses -ltinfo"],,"-ltinfo")
19 +if test "x$TERMLIBS" != "x"; then
20 + LIBS="$TERMLIBS $LIBS"
22 + octave_found_termlib=yes
25 if test "$octave_found_termlib" = no; then
26 - warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, o\
28 + warn_termlibs="I couldn't find -lncurses!"
29 AC_MSG_WARN($warn_termlibs)