Skip to content

Commit 6f6d608

Browse files
committed
- fix intl build with ICU < 4.2, windows part
1 parent 71f5af6 commit 6f6d608

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

ext/intl/config.w32

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,17 @@ if (PHP_INTL != "no") {
7171
resourcebundle_class.c \
7272
resourcebundle_iterator.c",
7373
"intl");
74-
ADD_SOURCES(configure_module_dirname + "/spoofchecker", "\
75-
spoofchecker.c \
76-
spoofchecker_class.c \
77-
spoofchecker_create.c \
78-
spoofchecker_main.c",
79-
"intl");
74+
75+
if (CHECK_HEADER_ADD_INCLUDE("unicode/uspoof.h", "CFLAGS_INTL")) {
76+
ADD_SOURCES(configure_module_dirname + "/spoofchecker", "\
77+
spoofchecker.c \
78+
spoofchecker_class.c \
79+
spoofchecker_create.c \
80+
spoofchecker_main.c",
81+
"intl");
82+
AC_DEFINE("HAVE_INTL", 1, "Internationalization support enabled");
83+
}
84+
8085
ADD_SOURCES(configure_module_dirname + "/transliterator", "\
8186
transliterator.c \
8287
transliterator_class.c \

0 commit comments

Comments
 (0)