Hello, I checked the  zlib config settings  and found the following :

make/autoconf/lib-bundled.m4 states :

################################################################################
# Setup bundled libraries.
#
# For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
# OpenJDK repository. Default is to use these libraries as bundled, but they
# might be replaced by en external version by the user.
################################################################################

While it is true that  "bundled" is the default for  libjpeg, giflib, libpng, 
lcms2,
it is different  for zlib  (for zlib "bundled"  is  only the default  on 
Windows/AIX, otherwise system ).

On the other OS platforms, in case a zlib is found on the system :

  if test "x${ZLIB_FOUND}" != "xyes"; then
    # If we don't find any system...set default to bundled
    DEFAULT_ZLIB=bundled
  fi

we use it from the system .
Wouldn't  it be more  consistent to  have  zlib=bundled as well as default for 
the other UNIX platforms + MacOSX ?
( people who wish to use  the system zlib still can configure it )

Otherwise we often run into using old zlib installations at build time which 
might not be desired.

In case it is seen as a good thing to stay with the current setup, at least the 
comment has to be adjusted .


Best regards,
     Matthias

Reply via email to