RFR: Allow using a system installed libpng (original) (raw)

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Tue Feb 11 10:44:20 UTC 2014


On 2014-02-10 18:43, Andrew Hughes wrote:

You're already using it:

PKGCHECKMODULES([LIBFFI], [libffi]) Why that's in LIBSETUPSTATICLINKLIBSTDCPP, I have no idea. Because libraries.m4 is in need of a long overdue cleanup. :-(

* Second, I believe the original intention was to allow for a third option, --with-libX=, which would point to an location in which the library is installed, similar to how e.g. --with-alsa works. Yes, but you don't allow that: ACMSGERROR([Invalid value for --with-zlib: ${withzlib}, use 'system' or 'bundled']) so using --with-x is confusing if someone does specify a directory. Yes. As I said, that was the original intention -- not the current implementation. Once again, the code in libraries.m4 is in dire need of some TLC. Getting it in better shape is on my agenda, but it tends to be pushed down all the time.

So from my point of view, Omair's patch is good. It provides additional value. It does not solve all problems in libraries.m4, nor is it the complete answer on how --with-libpng will behave in the future. But it is a good step on the way. I'm willing to sponsor the patch. But I won't do that if you object to accepting it. (After all, from Oracle's point of view there's no real need for this patch.) I'm also not very much interested in working out this specific patch to perfection, when the whole of libraries.m4 needs so much work. So, it's a bit of "take it or leave it".

To be extremely clear: Andrew, do you object to bringing Omairs patch, as it is, into OpenJDK?

/Magnus



More information about the build-dev mailing list