måndag den 14 november 2011 klockan 11:21 skrev Simon Josefsson detta:
> Bruno Haible <[email protected]> writes:
> > In other words, you need to add $(LIBREADLINE) to the value of LDADD
> > in telnet/Makefile.am.
> >
> > Likewise in telnetd/Makefile.am.
> 
> Thanks for analyzing, I agree and pushed this tiny change in your name.
> 
> > Quite odd situation, but IMO the readline macro should not set 
> > HAVE_LIBREADLINE
> > if the include files are missing, or the code in ftp/cmds.c should be 
> > testing
> >   HAVE_LIBREADLINE && HAVE_READLINE_READLINE_H
> > instead of just
> >   HAVE_LIBREADLINE
> 
> Yes.  However, wouldn't an even better solution be to use
> AC_LIB_LINKFLAGS here instead of the current check for readline?  That
> should be more reliable.

Related to this is the fact that <term.h> must be prepended by <curses.h>
in all standards. Also <stropts.h> is needed with HAVE_STREAMSPTY.

The commit 0a83fb1 attends to these matters and it achieves correct
building of telnet and telnetd for

  GNU/Linux, GNU/kFreeBSD, GNU/OpenSolaris, OpenBSD, and OpenIndiana.

Best regards,
  Mats

Reply via email to