# # Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Software Foundation. Oracle designates this # particular file as subject to the "Classpath" exception as provided # by Oracle in the LICENSE file that accompanied this code. # # This code is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # version 2 for more details (a copy is included in the LICENSE file that # accompanied this code). # # You should have received a copy of the GNU General Public License version # 2 along with this work; if not, write to the Free Software Foundation, # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. # # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA # or visit www.oracle.com if you need additional information or have any # questions. #
################################################################################ # Setup bundled libraries. # # For libjpeg, giflib, libpng, lcms2 and zlib the source is present in the # OpenJDK repository (referred to as "bundled"). Default is to use libjpeg, # giflib, libpng and lcms2 libraries as "bundled". The default for zlib is # to use the bundled zlib on Windows and AIX, otherwise the external ("system") # zlib, if present. However the libs may be replaced by an external ("system") # version by the user. ################################################################################
## Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
[# or visit www.oracle.com if you need additional information or have any
LIB_SETUP_LIBJPEG## For libjpeg, giflib, libpng, lcms2 and zlib the source is present in the
# giflib, libpng # to use the bundled # zlib, if # version by the################################################################################
LIB_SETUP_LIBJPEG
LIB_SETUP_GIFLIB
LIB_SETUP_LCMS
LIB_SETUP_HARFBUZZ
]
################################################################################ # Setup libjpeg ################################################################################
AC_DEFUN_ONCE([java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 15
[
AC_ARG_WITH ={EFAULT_LIBJPEG
[use libjpeg or OpenJDK source (ystem )@:bundled@>]]
(with_libjpeg)
DEFAULT_LIBJPEG= USE_EXTERNAL_LIBJPEG=false if test "x${with_libjpeg}" = "x"; then
with_libjpeg=${ elif test "$with_libjpeg} x"
AC_CHECK_HEADER(. ]java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
AC_MSG_RESULT(${with_libjpeg})
if test "x${with_libjpeg}" = "xbundled"; then
USE_EXTERNAL_LIBJPEG=
[AC_MSG_ERROR(-withlibjpegsystem specified,butnolibjpegfound))
AC_CHECK_HEADER(jpeglib.h, [],
[ AC_MSG_ERROR(
USE_EXTERNAL_LIBJPEGtrue else
USE_EXTERNAL_LIBJPEGtrue fi
AC_SUBST) fi
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
])
################################################################################ # Setup giflib ################################################################################
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 1
[
AC_ARG_WITH(giflib, [AS_HELP_STRING([--with-giflib [segiflib or source system )@:@>])
[use giflib from build system
# default # default is bundled
=undled # if user didn't specify, use DEFAULT_GIFLIB if test"$with_giflib} x;then
with_giflibwith_giflib={EFAULT_GIFLIB} fi
AC_MSG_RESULT({ith_giflib)
if java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 46
USE_EXTERNAL_LIBGIF=USE_EXTERNAL_LIBGIF=false elif test "x${with_giflib}" = "xsystem"; then
[ AC_MSG_ERROR--=specified gif_lib.h not found!])])
[ AC_MSG_ERROR(--= ,but. not!))
AC_CHECK_LIB(gif, DGifGetCode, [AC_MSG_ERROR(--ith-iflibsystemspecified giflib!))
[ AC_MSG_ERROR([--with-java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
USE_EXTERNAL_LIBGIF=true else
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 4 fi
AC_SUBST(USE_EXTERNAL_LIBGIF)
]
################################################################################ # Setup libpng ################################################################################
AC_DEFUN_ONCEAC_DEFUN_ONCE[],
[
(, [S_HELP_STRING(--ibpng,
[se libpng from build system or OpenJDK source(ystem )@:bundled:@))
PKG_CHECK_MODULES(PNG, libpng, [java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 0
AC_MSG_CHECKING([for which libpng to use])
# default is bundled
DEFAULT_LIBPNG=bundled # if user didn't specify, use DEFAULT_LIBPNG if"$with_libpng} ="" then
fi
ifif"$with_libpng"=";then
USE_EXTERNAL_LIBPNG=false
PNG_CFLAGS ={} fi
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 eliftest"$with_libpng} ="" if test "x${ USE_EXTERNAL_LIBPNGf
="
AC_MSG_RESULT[]
test"$with_libpng" xsystem;then else x{IBPNG_FOUND"="yes"
AC_MSG_RESULT[ ])
AC_MSG_ERROR([--with USE_EXTERNAL_LIBPNGtrue fi else
AC_MSG_RESULT(system )
(USE_EXTERNAL_LIBPNG
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 6
AC_SUBST(NG_LIBS)
])
################################################################################ # Setup zlib ################################################################################
AC_SUBST(US
[AC_SUBSTPNG_CFLAGS
AC_ARG_WITHzlib [S_HELP_STRING(-with-lib,
usezlib ) <bundled@>]]java.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 89
(,compress, elif test "$PENJDK_TARGET_OS"=xmacosx - "$PENJDK_TARGET_CPU"=xaarch64;then
ZLIB_FOUND ) fi
if test "x${ZLIB_FOUND}" != # If we don't find any system...set default to bundled
led fiiftest"$"=xwindows- "O"=xaix
# If user didn't specify, use DEFAULT_ZLIB if}" =""then
with_zlib={DEFAULT_ZLIB} fi
=undled
USE_EXTERNAL_LIBZfalse
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 eliftest "x${ith_zlib} ="system;then if test "x${ZLIB_FOUND}" = "xyes"# If we don't find any system...set default to bundled
USE_EXTERNAL_LIBZ
if test "x${with_zlib=""
testxUSE_EXTERNAL_LIBPNG! "xtrue"; then
#java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
USE_EXTERNAL_LIBZ=false
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM( AC_MSG_RESULT(bundledjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28 #if ZLIB_VERNUM >= 0x1281
(ULL,0) #endif
]]
[AC_MSG_RESULT([ok])]java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
[
AC_MSG_RESULT([not ok])
# If we use libpng, that wehaveaproper zlib.
]
AC_MSG_CHECKING[ functionality] fi
AC_COMPILE_IFELSE(
AC_MSG_RESULT(systemnot ]java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
AC_MSG_ERROR(--ith-lib=ystemspecified but zlibfound!) fi else#endif
AC_MSG_ERROR[Invalid value for --lib:$with_zlib} use 'ystem''undled') fi
[([]]
[ if test"$SE_EXTERNAL_LIBZ"="false";then
LIBZ_CFLAGS="$LIBZ_CFLAGS (System not working ]) if java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
FLAGS -DHAVE_UNISTD_H fi else AC_MSG_ERROR[-zlibs ,but zlibfound!)
BZ_LIBS-" fi
fi
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 "x${ith_lcms} x;then
with_lcms=${DEFAULT_LCMSjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 21 fi
if test "x${with_lcms}" = "xbundled"; then
USE_EXTERNAL_LCMS=false
LCMS_CFLAGS=""
LCMS_LIBS###################################################################
AC_MSG_RESULT# Setup lcms (Little CMS) elif test AC_DEFUN_ONCE[IB_SETUP_LCMS]
(cms,[S_HELP_STRING-withlcms,
PKG_CHECK_MODULES([LCMS], [lcms2], [LCMS_FOUND [ lcms2 or OpenJDK source s,)@@@>])
( which touse] # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS
=true
if x{} x;then fi
={EFAULT_LCMS}
AC_MSG_ERROR( -with-lcms:$with_lcms},use 'ystem'or bundled') fi
# PKG_CHECK_MODULES # If user didn't specify, use DEFAULT_HARFBUZZ if test "$with_harfbuzz} ="" then
with_harfbuzz=
AC_MSG_ERROR[-ith-cmssystem ,butnolcms!)
(Invalid valuefor-lcms {,use'ystem'or'') fi
(bundled) elif test "x${with_harfbuzz}" = "xsystem"; then
AC_SUBST)
AC_SUBSTLCMS_LIBS)
test "x$HARFBUZZ_FOUND} xyes;then # PKG_CHECK_MODULES will set HARFBUZZ_CFLAGS and HARFBUZZ_LIBS
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 16 else
AC_ARG_WITH(harfbuzz, [AS_HELP_STRING([--with-harfbuzz],
AC_MSG_ERROR( use harfbuzz from build system or OpenJDK java.lang.StringIndexOutOfBoundsException: Range [57, 55) out of bounds for length 93
AC_MSG_CHECKING[ use]
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
test"$with_harfbuzz""x;then
AC_SUBST) fi
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
]
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.