Hi,
I hope this patch for configure.in will solve the problem.
Try it please and tell us about your results.
On Saturday 13 September 2003 23:21, Oleg Drokin wrote:
> Hello!
>
> On Sat, Sep 13, 2003 at 06:05:58PM +0400, Hans Reiser wrote:
> > >>my system definitely has readline installed, and i get the same error.
> > >
> > >On the other hand, you need not only readline itself, but also its
> > > header files.
> > >Lots of distributions (e.g. redhat-alike) form another package called
> > >(usuaully) readline-devel,
> > >that contains this necessary stuff.
> >
> > did you adjust our headers to be redhat compatible? If not, please do.
>
> The problem turned out to be that RedHat's readline was compiled with
> ncurses dynamically, so when you link in readline, you need to link ncurses
> too.
>
> Vitaly will release the fix to configure script shortly, I believe.
>
> Bye,
> Oleg
--
Thanks,
Vitaly Fertman
diff -Nru a/configure.in b/configure.in
--- a/configure.in Sat Sep 13 23:54:34 2003
+++ b/configure.in Sat Sep 13 23:54:34 2003
@@ -154,14 +154,14 @@
with_readline=yes
)
-# Check for termcap
+# Check for ncurses
if test "x$with_readline" = xyes; then
OLD_LIBS="$LIBS"
LIBS=""
- AC_SEARCH_LIBS(tgetent, ncurses curses termcap termlib,
+ AC_SEARCH_LIBS(tgetent, ncurses,
PROGS_LIBS="$PROGS_LIBS $LIBS",
AC_MSG_WARN(
-termcap could not be found which is required for the
+ncurses could not be found which is required for the
--with-readline option (which is enabled by default).
)
with_readline=no
@@ -177,7 +177,8 @@
AC_MSG_WARN(
GNU Readline could not be found which is required for the --with-readline
)
- with_readline=no
+ with_readline=no,
+ -lncurses
)
PROGS_LIBS="$PROGS_LIBS $LIBS"
LIBS="$OLD_LIBS"