summaryrefslogtreecommitdiff
path: root/ext/gettext
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-19 15:04:31 +0000
committerWez Furlong <wez@php.net>2003-12-19 15:04:31 +0000
commit0c126e1233ee35c92d0f58f20fc4b40478f0b55f (patch)
tree274de44354175d4c8a0455b3182058c0b15f8c84 /ext/gettext
parentda4a9eea92e0a43895ba10419ac3d1b1a2ed8586 (diff)
downloadphp-git-0c126e1233ee35c92d0f58f20fc4b40478f0b55f.tar.gz
make these build with new win32 build system.
mcve untested (I don't have those libs/headers)
Diffstat (limited to 'ext/gettext')
-rw-r--r--ext/gettext/config.w3212
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/gettext/config.w32 b/ext/gettext/config.w32
new file mode 100644
index 0000000000..67e7b6bce2
--- /dev/null
+++ b/ext/gettext/config.w32
@@ -0,0 +1,12 @@
+// $Id$
+// vim:ft=javascript
+
+ARG_WITH("gettext", "gettext support", "no");
+
+if (PHP_GETTEXT != "no") {
+ if (CHECK_LIB("libintl.lib", "gettext", PHP_GETTEXT) && CHECK_HEADER_ADD_INCLUDE("libintl.h", "CFLAGS_GETTEXT")) {
+ EXTENSION("gettext", "gettext.c", PHP_GETTEXT_SHARED, "-DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_DNGETTEXT=1 -DHAVE_NGETTEXT=1");
+ } else {
+ WARNING("gettext not enabled; libraries and headers not found");
+ }
+}