summaryrefslogtreecommitdiff
path: root/win32/build/mkdist.php
diff options
context:
space:
mode:
Diffstat (limited to 'win32/build/mkdist.php')
-rw-r--r--win32/build/mkdist.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/win32/build/mkdist.php b/win32/build/mkdist.php
index 84b69970a4..8ae3926b65 100644
--- a/win32/build/mkdist.php
+++ b/win32/build/mkdist.php
@@ -284,7 +284,7 @@ Build: $build_dir
EOT
);
-/* list build-in extensions */
+/* list built-in extensions */
$exts = get_loaded_extensions();
fprintf($fp, "\r\nBuilt-in Extensions\r\n");
fwrite($fp, "===========================\r\n");
@@ -335,9 +335,13 @@ libenchant_ispell.dll
$ENCHANT_DLLS = array(
array('', 'glib-2.dll'),
array('', 'gmodule-2.dll'),
- array('lib/enchant', 'libenchant_myspell.dll'),
- array('lib/enchant', 'libenchant_ispell.dll'),
);
+if (file_exists("$php_build_dir/bin/libenchant2.dll")) {
+ $ENCHANT_DLLS[] = array('lib/enchant', 'libenchant2_hunspell.dll');
+} else {
+ $ENCHANT_DLLS[] = array('lib/enchant', 'libenchant_myspell.dll');
+ $ENCHANT_DLLS[] = array('lib/enchant', 'libenchant_ispell.dll');
+}
foreach ($ENCHANT_DLLS as $dll) {
$dest = "$dist_dir/$dll[0]";
$filename = $dll[1];
@@ -496,7 +500,7 @@ $dirs = array(
foreach ($dirs as $dir) {
copy_test_dir($dir, $test_dir);
}
-copy('run-tests.php', $test_dir . '/run-test.php');
+copy('run-tests.php', $test_dir . '/run-tests.php');
/* change this next line to true to use good-old
* hand-assembled go-pear-bundle from the snapshot template */