Allow to override ICU_DATA_FILE from the environment
authorMike Hommey <mh@glandium.org>
Sun, 25 Sep 2016 00:22:22 +0000 (09:22 +0900)
committerMike Hommey <glandium@debian.org>
Tue, 11 Dec 2018 23:29:04 +0000 (23:29 +0000)
Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name Allow-to-override-ICU_DATA_FILE-from-the-environment.patch

build/autoconf/icu.m4

index 4c59079bf292bc259cd75499706b392f8d01f373..662efc6e92e3de8ab2b7de760b9b6eb7f5fdda60 100644 (file)
@@ -78,7 +78,9 @@ if test -n "$USE_ICU"; then
     # TODO: the l is actually endian-dependent
     # We could make this set as 'l' or 'b' for little or big, respectively,
     # but we'd need to check in a big-endian version of the file.
-    ICU_DATA_FILE="icudt${version}l.dat"
+    if test -z "$ICU_DATA_FILE"; then
+        ICU_DATA_FILE="icudt${version}l.dat"
+    fi
 
     MOZ_ICU_DATA_ARCHIVE=
 fi