|
|
9aeff1 |
diff -ruN openjdk/common/autoconf/libraries.m4 openjdk/common/autoconf/libraries.m4
|
|
|
9aeff1 |
--- openjdk/common/autoconf/libraries.m4 2013-11-14 22:04:38.039440136 -0500
|
|
|
9aeff1 |
+++ openjdk/common/autoconf/libraries.m4 2013-11-14 22:05:11.474356424 -0500
|
|
|
9aeff1 |
@@ -676,6 +676,46 @@
|
|
|
9aeff1 |
|
|
|
9aeff1 |
###############################################################################
|
|
|
9aeff1 |
#
|
|
|
9aeff1 |
+ # Check for the lcms2 library
|
|
|
9aeff1 |
+ #
|
|
|
9aeff1 |
+
|
|
|
9aeff1 |
+ AC_ARG_WITH(lcms, [AS_HELP_STRING([--with-lcms],
|
|
|
9aeff1 |
+ [use lcms2 from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
|
|
|
9aeff1 |
+
|
|
|
9aeff1 |
+ AC_CHECK_LIB(lcms2, cmsOpenProfileFromFile,
|
|
|
9aeff1 |
+ [ LCMS_FOUND=yes ],
|
|
|
9aeff1 |
+ [ LCMS_FOUND=no ])
|
|
|
9aeff1 |
+
|
|
|
9aeff1 |
+ AC_MSG_CHECKING([for which lcms to use])
|
|
|
9aeff1 |
+
|
|
|
9aeff1 |
+ DEFAULT_LCMS=bundled
|
|
|
9aeff1 |
+
|
|
|
9aeff1 |
+ #
|
|
|
9aeff1 |
+ # If user didn't specify, use DEFAULT_LCMS
|
|
|
9aeff1 |
+ #
|
|
|
9aeff1 |
+ if test "x${with_lcms}" = "x"; then
|
|
|
9aeff1 |
+ with_lcms=${DEFAULT_LCMS}
|
|
|
9aeff1 |
+ fi
|
|
|
9aeff1 |
+
|
|
|
9aeff1 |
+ if test "x${with_lcms}" = "xbundled"; then
|
|
|
9aeff1 |
+ USE_EXTERNAL_LCMS=false
|
|
|
9aeff1 |
+ AC_MSG_RESULT([bundled])
|
|
|
9aeff1 |
+ elif test "x${with_lcms}" = "xsystem"; then
|
|
|
9aeff1 |
+ if test "x${LCMS_FOUND}" = "xyes"; then
|
|
|
9aeff1 |
+ USE_EXTERNAL_LCMS=true
|
|
|
9aeff1 |
+ AC_MSG_RESULT([system])
|
|
|
9aeff1 |
+ else
|
|
|
9aeff1 |
+ AC_MSG_RESULT([system not found])
|
|
|
9aeff1 |
+ AC_MSG_ERROR([--with-lcms=system specified, but no lcms found!])
|
|
|
9aeff1 |
+ fi
|
|
|
9aeff1 |
+ else
|
|
|
9aeff1 |
+ AC_MSG_ERROR([Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'])
|
|
|
9aeff1 |
+ fi
|
|
|
9aeff1 |
+
|
|
|
9aeff1 |
+ AC_SUBST(USE_EXTERNAL_LCMS)
|
|
|
9aeff1 |
+
|
|
|
9aeff1 |
+ ###############################################################################
|
|
|
9aeff1 |
+ #
|
|
|
9aeff1 |
# Check for the png library
|
|
|
9aeff1 |
#
|
|
|
9aeff1 |
|