sed43.patch 1.1 KB

12345678910111213141516171819202122
  1. --- a/build/autoconf/icu.m4
  2. +++ b/build/autoconf/icu.m4
  3. @@ -64,17 +64,17 @@ if test -n "$USE_ICU"; then
  4. icudir="$_topsrcdir/intl/icu/source"
  5. if test ! -d "$icudir"; then
  6. icudir="$_topsrcdir/../../intl/icu/source"
  7. if test ! -d "$icudir"; then
  8. AC_MSG_ERROR([Cannot find the ICU directory])
  9. fi
  10. fi
  11. - version=`sed -n 's/^[[:space:]]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`
  12. + version=`sed -n 's/^[[[:space:]]]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`
  13. if test x"$version" = x; then
  14. AC_MSG_ERROR([cannot determine icu version number from uvernum.h header file $lineno])
  15. fi
  16. MOZ_ICU_VERSION="$version"
  17. # TODO: the l is actually endian-dependent
  18. # We could make this set as 'l' or 'b' for little or big, respectively,
  19. # but we'd need to check in a big-endian version of the file.