./common/autoconf/libraries.m4
Print this page
rev 725 : [mq]: system-icu
@@ -265,10 +265,49 @@
AC_SUBST(CUPS_CFLAGS)
])
+AC_DEFUN_ONCE([LIB_SETUP_ICU],
+[
+
+###############################################################################
+#
+# The ICU LayoutEngine library is used to select the best glyphs to display
+#
+
+AC_ARG_WITH(icu-le, [AS_HELP_STRING([--with-icu-le],
+ [use icu-le from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
+
+# default is bundled
+DEFAULT_ICU_LE=bundled
+
+AC_MSG_CHECKING([for which icu-le to use])
+
+#
+# if user didn't specify, use DEFAULT_ICU_LE
+#
+
+if test "x${with_icu_le}" = "x"; then
+ with_icu_le=${DEFAULT_ICU_LE}
+fi
+
+AC_MSG_RESULT(${with_icu_le})
+
+if test "x${with_icu_le}" = "xbundled"; then
+ USE_EXTERNAL_ICU_LE=false
+else
+ PKG_CHECK_MODULES(ICU_LE, icu-le)
+ USE_EXTERNAL_ICU_LE=true
+fi
+
+AC_SUBST(USE_EXTERNAL_ICU_LE)
+AC_SUBST(ICU_LE_CFLAGS)
+AC_SUBST(ICU_LE_LIBS)
+
+])
+
AC_DEFUN_ONCE([LIB_SETUP_FREETYPE],
[
###############################################################################
#