Subject: Re: USE_READLINE ?
To: None <>
From: Johnny C. Lam <>
List: tech-pkg
Date: 02/28/2001 09:37:14
"Jarommr" Dolecek <> writes:
> What I think would be useful
> * add USE_READLINE variable - this would contain either "yes", or
>   list of "special" stuff this application uses
> * would test presence of /usr/include/{readline/}readline.h
>   and test if all needed symbols are provided.
> * would then set LIBREADLINE to either "edit" or "readline",
>   add appropriate _DHAVE_READLINE_{READLINE_}H to CPPFLAGS or add
>   readline to DEPENDS
> Since various applications have generally different ways to enable
> line editing, some further adjustments to individual packages would
> need to be done, but hopefully it would not get too hackish.
> Opinions ?

It'd be more work than with either ncurses or gettext as the readline
and editline libraries have different names.  I don't think there's a
standard way to check for readline as there was for gettext or
ncurses.  I recall making 4 or 5 different packages prefer editline
over readline and each of them checked for readline and defined
preprocessor macros in different ways.

     -- Johnny C. Lam <>
        Department of Statistics, Carnegie Mellon University