xref: /PHP-5.6/ext/intl/config.m4 (revision 1faddd15)
1dnl config.m4 for extension intl
2
3dnl ##########################################################################
4dnl Initialize the extension
5PHP_ARG_ENABLE(intl, whether to enable internationalization support,
6[  --enable-intl           Enable internationalization support])
7
8if test "$PHP_INTL" != "no"; then
9  PHP_SETUP_ICU(INTL_SHARED_LIBADD)
10  PHP_SUBST(INTL_SHARED_LIBADD)
11  PHP_REQUIRE_CXX()
12  if test "$icu_version" -ge "4002"; then
13    icu_spoof_src=" spoofchecker/spoofchecker_class.c \
14    spoofchecker/spoofchecker.c\
15    spoofchecker/spoofchecker_create.c\
16    spoofchecker/spoofchecker_main.c"
17  else
18    icu_spoof_src=""
19  fi
20  PHP_NEW_EXTENSION(intl, php_intl.c \
21    intl_error.c \
22    intl_convert.c \
23	intl_convertcpp.cpp \
24    collator/collator.c \
25    collator/collator_class.c \
26    collator/collator_sort.c \
27    collator/collator_convert.c \
28    collator/collator_locale.c \
29    collator/collator_compare.c \
30    collator/collator_attr.c \
31    collator/collator_create.c \
32    collator/collator_is_numeric.c \
33    collator/collator_error.c \
34    common/common_error.c \
35	common/common_enum.cpp \
36	common/common_date.cpp \
37    converter/converter.c \
38    formatter/formatter.c \
39    formatter/formatter_main.c \
40    formatter/formatter_class.c \
41    formatter/formatter_attr.c \
42    formatter/formatter_data.c \
43    formatter/formatter_format.c \
44    formatter/formatter_parse.c \
45    normalizer/normalizer.c \
46    normalizer/normalizer_class.c \
47    normalizer/normalizer_normalize.c \
48    locale/locale.c \
49    locale/locale_class.c \
50    locale/locale_methods.c \
51    dateformat/dateformat.c \
52    dateformat/dateformat_class.c \
53    dateformat/dateformat_attr.c \
54    dateformat/dateformat_data.c \
55    dateformat/dateformat_format.c \
56    dateformat/dateformat_format_object.cpp \
57    dateformat/dateformat_parse.c \
58    dateformat/dateformat_create.cpp \
59    dateformat/dateformat_attrcpp.cpp \
60    dateformat/dateformat_helpers.cpp \
61    msgformat/msgformat.c \
62    msgformat/msgformat_attr.c \
63    msgformat/msgformat_class.c \
64    msgformat/msgformat_data.c  \
65    msgformat/msgformat_format.c \
66    msgformat/msgformat_helpers.cpp \
67    msgformat/msgformat_parse.c \
68    grapheme/grapheme_string.c \
69    grapheme/grapheme_util.c \
70    resourcebundle/resourcebundle.c \
71    resourcebundle/resourcebundle_class.c \
72    resourcebundle/resourcebundle_iterator.c \
73    transliterator/transliterator.c \
74    transliterator/transliterator_class.c \
75    transliterator/transliterator_methods.c \
76    timezone/timezone_class.cpp \
77    timezone/timezone_methods.cpp \
78    calendar/calendar_class.cpp \
79    calendar/calendar_methods.cpp \
80    calendar/gregoriancalendar_methods.cpp \
81    breakiterator/breakiterator_class.cpp \
82    breakiterator/breakiterator_iterators.cpp \
83    breakiterator/breakiterator_methods.cpp \
84    breakiterator/rulebasedbreakiterator_methods.cpp \
85    breakiterator/codepointiterator_internal.cpp \
86    breakiterator/codepointiterator_methods.cpp \
87    idn/idn.c \
88    $icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings)
89  PHP_ADD_BUILD_DIR($ext_builddir/collator)
90  PHP_ADD_BUILD_DIR($ext_builddir/converter)
91  PHP_ADD_BUILD_DIR($ext_builddir/common)
92  PHP_ADD_BUILD_DIR($ext_builddir/formatter)
93  PHP_ADD_BUILD_DIR($ext_builddir/normalizer)
94  PHP_ADD_BUILD_DIR($ext_builddir/dateformat)
95  PHP_ADD_BUILD_DIR($ext_builddir/locale)
96  PHP_ADD_BUILD_DIR($ext_builddir/msgformat)
97  PHP_ADD_BUILD_DIR($ext_builddir/grapheme)
98  PHP_ADD_BUILD_DIR($ext_builddir/resourcebundle)
99  PHP_ADD_BUILD_DIR($ext_builddir/transliterator)
100  PHP_ADD_BUILD_DIR($ext_builddir/timezone)
101  PHP_ADD_BUILD_DIR($ext_builddir/calendar)
102  PHP_ADD_BUILD_DIR($ext_builddir/idn)
103  PHP_ADD_BUILD_DIR($ext_builddir/spoofchecker)
104  PHP_ADD_BUILD_DIR($ext_builddir/breakiterator)
105fi
106