emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: png.h


From: Han Boetes
Subject: Re: png.h
Date: Tue, 15 Jul 2003 10:25:20 +0200
User-agent: Mutt/1.4.1i

Kazu Yamamoto <address@hidden> wrote:
>
> "src/xfns.c" includes png.h but its path is hard-coded as follows:
>
>       #include <libpng/png.h>
>
> Since NetBSD installs png.h into /usr/pkg/include, "xfns.c" can't be
> compiled. If we remove "libpng/", it can be compiled, of course. I
> guess this line should be configured by "configure".

It was done on my request. png.h should be installed in
${prefix}/include/libpng/png.h. Lots of distro's keep symlinks to
${prefix}/include/png.h for backwards compatibility.

This is an archive of the png mailing list:

ftp://swrinde.nde.swri.edu/pub/png-group/archives/png-implement.200204

    However, most packages and configure scripts expect that
    "#include
    <png.h>" will work, even though the recommended usage is
    now
    "#include
    <libpng/png.h>".

Or another quote:

    One possible suggestion is to put a header in
    /usr[/local]/include/png.h:

    #ifndef
    __DEPRECATED_PNG_H
    #define
    __DEPRECATED_PNG_H
    #warning "#include <png.h> is deprecated, use #include
    <libpng/png.h> instead"
    #include
    <libpng/png.h>
    #endif


And indeed you are right, the configure system has not yet been made
aware of the change.



# Han




reply via email to

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