On 4/8/19 12:06 PM, Andrea Bolognani wrote:
> The value of ${includedir} is going to be something like
> 
>   /usr/include (GNU/Linux)
>   /usr/local/include (FreeBSD ports)
>   /usr/local/Cellar/readline/8.0.0/include (macOS homebrew)
> 
> and software using readline is supposed to
> 
>   #include <readline/readline.h>
> 
> However, since Cflags in readline.pc contains
> 
>   -I${includedir}/readline
> 
> the compiler will expect to find the header in
> 
>   /usr/include/readline/readline/readline.h
> 
> which will work on GNU/Linux, where /usr/include is part of the
> default include path, but will not on other platforms.

Thanks for the report.

Chet


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to