bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] inetutils-1.5: ncurses detection doesn't work


From: Michael Deutschmann
Subject: [bug-inetutils] inetutils-1.5: ncurses detection doesn't work
Date: Thu, 2 Nov 2006 14:00:41 -0800 (PST)

I've noticed that inetutils-1.5 fails to detect ncurses in one common
case -- where the ncurses headers are just in /usr/include.

Reviewing the configure logs, it seems the script is correctly noticing
that "-lncurses" exists and contains "initscr", but it forgets this and
then acts as if it wasn't detected.

Looking in acinclude.m4, the problem is right here:
>      if test "$inetutils_cv_includedir_ncurses" = none; then
>        NCURSES_INCLUDE=""
>        LIBNCURSES=''
>      else
>        NCURSES_INCLUDE="-I$inetutils_cv_includedir_ncurses"
>      fi
>    fi

The line "LIBNCURSES=''" causes the configure script to forget about
-lncurses if there is no special directory to find its include files.  It
should be removed.

It's possible to work around the bug by specifying
--with-ncurses-include-dir=/usr/include at the configure line.

Also of note -- after failing to detect libncurses, the build scheme will
declare that "talk" will be skipped because it needs the library.
However, it will still try to compile "telnetd", and fail because that
program also needs a termcap library.

---- Michael Deutschmann <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]