bug-bash
[Top][All Lists]
Advanced

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

Re: readline support broken


From: Paul Jarc
Subject: Re: readline support broken
Date: Mon, 12 Nov 2001 12:15:23 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

I think this belongs on bug-bash.  Cc'ed, and Mail-Followup-To set.

"Golubev I. N." <gin@mo.msk.ru> wrote:
> bc version: 1.06
> compiler: gcc 3.0.1
>
> `LIBS' should be used in library features checks rather than
> `LDFLAGS'.  Otherwise false link failures occur when desired library
> features are available.  See autoconf internals for details.
>
> With newer readline versions readline library features declarations
> are not needed and even can conflict with readline headers, causing
> compilation failure.  You can make some sophisticated check for
> obsolete readline headers, but currently I just remove offending
> decls.
>
> --- configure.in      Mon Nov 12 16:42:01 2001
> +++ configure.in      Mon Nov 12 16:38:00 2001
> @@ -37,8 +37,8 @@
>  AC_ARG_WITH(libedit,[  --with-libedit          support fancy BSD command 
> input 
>  editing], [
>     AC_CHECK_LIB(termcap,tgetent,TERMLIB=-ltermcap)
> -   LDSAVE=$LDFLAGS
> -   LDFLAGS="$LDFLAGS $TERMLIB"
> +   LDSAVE=$LIBS
> +   LIBS="$TERMLIB $LIBS"
>     AC_CHECK_LIB(edit,el_gets,
>        [AC_CHECK_HEADER(histedit.h,
>        READLINELIB="-ledit $TERMLIB";bcle=y)],
> @@ -47,15 +47,15 @@
>       echo Using the libedit library.
>       AC_DEFINE(LIBEDIT,1)
>     fi
> -   LDFLAGS=$LDSAVE
> +   LIBS=$LDSAVE
>  ])
>   
>  bcrl=n
>  AC_ARG_WITH(readline,[  --with-readline         support fancy command input 
> editing], [
>     AC_CHECK_LIB(ncurses,tparm,TERMLIB=-lncurses,
>       AC_CHECK_LIB(termcap,tgetent,TERMLIB=-ltermcap))
> -   LDSAVE=$LDFLAGS
> -   LDFLAGS="$LDFLAGS $TERMLIB"
> +   LDSAVE=$LIBS
> +   LIBS="$TERMLIB $LIBS"
>     AC_CHECK_LIB(readline,readline,
>        [AC_CHECK_HEADER(readline/readline.h,
>        READLINELIB="-lreadline $TERMLIB";bcrl=y)],
> @@ -64,7 +64,7 @@
>       echo Using the readline library.
>       AC_DEFINE(READLINE,1)
>     fi
> -   LDFLAGS=$LDSAVE
> +   LIBS=$LDSAVE
>  ])
>  
>  if test "$LEX" = "flex" ; then
> --- bc/scan.l Mon Nov 12 16:57:32 2001
> +++ bc/scan.l Mon Nov 12 16:55:54 2001
> @@ -141,10 +141,6 @@
>  static char *rl_start = (char *)NULL;
>  static int   rl_len = 0;
>  
> -/* Definitions for readline access. */
> -extern FILE *rl_instream;
> -_PROTOTYPE(char *readline, (char *));
> -
>  /* rl_input puts upto MAX characters into BUF with the number put in
>     BUF placed in *RESULT.  If the yy input file is the same as
>     rl_instream (stdin), use readline.  Otherwise, just read it.
>
> _______________________________________________
> Bug-gnu-utils mailing list
> Bug-gnu-utils@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-gnu-utils



reply via email to

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