summaryrefslogtreecommitdiff
path: root/ext/intl/config.w32
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2008-07-07 22:51:04 +0000
committerStanislav Malyshev <stas@php.net>2008-07-07 22:51:04 +0000
commit0d16b1516b6b9ef0c2696bc19069e4cda5aee0ea (patch)
treedf4e6a46dea0afafdbc912919b32c2806841a4eb /ext/intl/config.w32
parent3bab7c18ac205863af3df740144be23c18cf7a72 (diff)
downloadphp-git-0d16b1516b6b9ef0c2696bc19069e4cda5aee0ea.tar.gz
Merge intl extension into core
Diffstat (limited to 'ext/intl/config.w32')
-rwxr-xr-xext/intl/config.w3271
1 files changed, 71 insertions, 0 deletions
diff --git a/ext/intl/config.w32 b/ext/intl/config.w32
new file mode 100755
index 0000000000..e793cd8cf8
--- /dev/null
+++ b/ext/intl/config.w32
@@ -0,0 +1,71 @@
+// $Id$
+// vim:ft=javascript
+
+ARG_ENABLE("intl", "Enable internationalization support", "no");
+
+if (PHP_INTL != "no") {
+ if (CHECK_LIB("icuuc.lib", "intl", PHP_INTL) &&
+ CHECK_HEADER_ADD_INCLUDE("unicode/utf.h", "CFLAGS_INTL")) {
+ // always build as shared - zend_strtod.c/ICU type conflict
+ EXTENSION("intl", "php_intl.c intl_convert.c intl_error.c ", true,
+ "/I \"" + configure_module_dirname + "\"");
+ ADD_SOURCES(configure_module_dirname + "/collator", "\
+ collator.c \
+ collator_attr.c \
+ collator_class.c \
+ collator_compare.c \
+ collator_convert.c \
+ collator_create.c \
+ collator_error.c \
+ collator_is_numeric.c \
+ collator_locale.c \
+ collator_sort.c \
+ ", "intl");
+ ADD_SOURCES(configure_module_dirname + "/common", "\
+ common_error.c \
+ ", "intl");
+ ADD_SOURCES(configure_module_dirname + "/formatter", "\
+ formatter.c \
+ formatter_attr.c \
+ formatter_class.c \
+ formatter_data.c \
+ formatter_format.c \
+ formatter_main.c \
+ formatter_parse.c \
+ ", "intl");
+ ADD_SOURCES(configure_module_dirname + "/locale", "\
+ locale.c \
+ locale_class.c \
+ locale_methods.c \
+ ", "intl");
+ ADD_SOURCES(configure_module_dirname + "/msgformat", "\
+ msgformat.c \
+ msgformat_attr.c \
+ msgformat_class.c \
+ msgformat_data.c \
+ msgformat_format.c \
+ msgformat_helpers.cpp \
+ msgformat_parse.c \
+ ", "intl");
+ ADD_SOURCES(configure_module_dirname + "/grapheme", "\
+ grapheme_string.c grapheme_util.c \
+ ", "intl");
+ ADD_SOURCES(configure_module_dirname + "/normalizer", "\
+ normalizer.c \
+ normalizer_class.c \
+ normalizer_normalize.c \
+ ", "intl");
+ ADD_SOURCES(configure_module_dirname + "/dateformat", "\
+ dateformat.c \
+ dateformat_class.c \
+ dateformat_attr.c \
+ dateformat_format.c \
+ dateformat_parse.c \
+ dateformat_data.c \
+ ", "intl");
+ ADD_FLAG("LIBS_INTL", "icudt.lib icuin.lib icuio.lib icule.lib iculx.lib");
+ AC_DEFINE("HAVE_INTL", 1, "Internationalization support enabled");
+ } else {
+ WARNING("intl not enabled; libraries and/or headers not found");
+ }
+}