-#
-# ICU
-#
-ICU_CFLAGS=""
-ICU_LIBS=""
-enable_glob="normal; default"
-
-probe_icu=false
-AC_ARG_WITH(icu, [ --with-icu=yes/no],
- if test x$with_icu = xno; then
- probe_icu=false;
- AC_MSG_RESULT(Will not probe for ICU)
- fi
- if test x$with_icu = xyes; then
- probe_icu=true;
- fi
-)
-
-if $probe_icu; then
- AC_PATH_PROG(ICU_CONFIG, icu-config, no)
- if test "x$ICU_CONFIG" = "xno" -o ! -x "$ICU_CONFIG"; then
- enable_glob="ICU not found, using non-ICU globalization code."
- else
- enable_glob="ICU, unsupported. Version: `$ICU_CONFIG --version`"
- AC_DEFINE(HAVE_ICU)
- ICU_CFLAGS=`$ICU_CONFIG --cppflags`
- ICU_LIBS=`$ICU_CONFIG --ldflags`
- fi
-fi
-AC_SUBST(ICU_CFLAGS)
-AC_SUBST(ICU_LIBS)
-