summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-23 12:40:41 +0000
committerWez Furlong <wez@php.net>2003-12-23 12:40:41 +0000
commitb8978cad2662c9beff47b50b67074be01ce6abad (patch)
tree2f53ce552a95218aa0d2ea8626d2c4b874732f00
parent3eadb12f7e40ebbe3a3b3975ecae9d8a9a96f5a6 (diff)
downloadphp-git-b8978cad2662c9beff47b50b67074be01ce6abad.tar.gz
Better implementation of the prefix thing
-rw-r--r--win32/build/config.w329
1 files changed, 5 insertions, 4 deletions
diff --git a/win32/build/config.w32 b/win32/build/config.w32
index 0dbd2c272a..d18b301e39 100644
--- a/win32/build/config.w32
+++ b/win32/build/config.w32
@@ -21,10 +21,11 @@ ARG_ENABLE('debug', 'Compile with debugging symbols', "no");
ARG_ENABLE('zts', 'Thread safety', 'yes');
// Configures the hard-coded installation dir
-if (PHP_DEBUG == "yes") {
- ARG_ENABLE('prefix', 'where PHP will be installed', 'C:\\php5\\debug');
-} else {
- ARG_ENABLE('prefix', 'where PHP will be installed', 'C:\\php5');
+ARG_ENABLE('prefix', 'where PHP will be installed', '');
+if (PHP_PREFIX == '') {
+ PHP_PREFIX = "C:\\php" + PHP_VERSION;
+ if (PHP_DEBUG == "yes")
+ PHP_PREFIX += "\\debug";
}
DEFINE('PHP_PREFIX', PHP_PREFIX);