Quantcast

--with-readline=DIR doesn't work with CVS HEAD

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

--with-readline=DIR doesn't work with CVS HEAD

Jun T.
"--with-readline=/usr/local" does not work on Mac OS X after the
following patch (configure.ac, revision 1.21):
----------------------------
revision 1.21
date: 2016/05/23 19:02:18;  author: markisch;  state: Exp;  lines: +34 -36
Detect if --with-readline=DIR refers to GNU readline or NetBSD editline.
----------------------------

On Mac OS X, Apple installs editline (libedit) in /usr/{include,lib}
but I want to use GNU readline instead. So I've installed GNU readline
in /usr/local/{include,lib}, and was configuring gnuplot as:

./configure --with-readline=/usr/local ...

This was working fine, but after the above patch configure started to use
/usr/lib/libedit.dylib even if "--with-readline=/usr/local" is specified.
I want to use /usr/local/lib/libreadline.dylib instead.

The problem is at line 447 of configure.ac:

      AC_CHECK_HEADERS(editline/readline.h,[with_readline=bsd],,)              

This finds /usr/include/editline/readline.h and set with_readline=bsd
even if -I/usr/local/include is added to CPPFLAGS (configure.ac:441).

A possible patch is attached.

Jun


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
gnuplot-beta mailing list
[hidden email]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta

configure-readline.patch (992 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: --with-readline=DIR doesn't work with CVS HEAD

Bastian Märkisch


Am 21.06.2016 um 10:12 schrieb Jun T.:

> "--with-readline=/usr/local" does not work on Mac OS X after the
> following patch (configure.ac, revision 1.21):
> ----------------------------
> revision 1.21
> date: 2016/05/23 19:02:18;  author: markisch;  state: Exp;  lines: +34 -36
> Detect if --with-readline=DIR refers to GNU readline or NetBSD editline.
> ----------------------------
>
> On Mac OS X, Apple installs editline (libedit) in /usr/{include,lib}
> but I want to use GNU readline instead. So I've installed GNU readline
> in /usr/local/{include,lib}, and was configuring gnuplot as:
>
> ./configure --with-readline=/usr/local ...
>
> This was working fine, but after the above patch configure started to use
> /usr/lib/libedit.dylib even if "--with-readline=/usr/local" is specified.
> I want to use /usr/local/lib/libreadline.dylib instead.
>
> The problem is at line 447 of configure.ac:
>
>       AC_CHECK_HEADERS(editline/readline.h,[with_readline=bsd],,)
>
> This finds /usr/include/editline/readline.h and set with_readline=bsd
> even if -I/usr/local/include is added to CPPFLAGS (configure.ac:441).
>
> A possible patch is attached.
>
> Jun

Thank you very much for the report and fix.  Now in CVS.

   Bastian


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
gnuplot-beta mailing list
[hidden email]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
Loading...