sebastian Thu Oct 10 15:08:13 2002 EDT Modified files: /php4/main config.w32.h.in Log: Break it again (after 4.3.0-pre1 :-) Index: php4/main/config.w32.h.in diff -u php4/main/config.w32.h.in:1.15 php4/main/config.w32.h.in:1.16 --- php4/main/config.w32.h.in:1.15 Thu Oct 10 13:45:36 2002 +++ php4/main/config.w32.h.in Thu Oct 10 15:08:13 2002 @@ -2,22 +2,24 @@ Build Configuration for Win32. This has only been tested with MS VisualC++ 6 (and later). - $Id: config.w32.h.in,v 1.15 2002/10/10 17:45:36 sebastian Exp $ + $Id: config.w32.h.in,v 1.16 2002/10/10 19:08:13 sebastian Exp $ */ /* Default PHP / PEAR directories */ +#define CONDENV(ev,def) (getenv(ev)!=NULL?getenv(ev):def) + #define CONFIGURATION_FILE_PATH "php.ini" -#define PEAR_INSTALLDIR "c:\\php4\\pear" -#define PHP_BINDIR "c:\\php4" -#define PHP_CONFIG_FILE_PATH (getenv("SystemRoot"))?getenv("SystemRoot"):"" -#define PHP_CONFIG_FILE_SCAN_DIR "" -#define PHP_DATADIR "c:\\php4" -#define PHP_EXTENSION_DIR "c:\\php4" -#define PHP_INCLUDE_PATH ".;c:\\php4\\pear" -#define PHP_LIBDIR "c:\\php4" -#define PHP_LOCALSTATEDIR "c:\\php4" -#define PHP_PREFIX "c:\\php4" -#define PHP_SYSCONFDIR "c:\\php4" +#define PEAR_INSTALLDIR CONDENV("PEAR_INSTALLDIR", "c:\\php4\\pear") +#define PHP_BINDIR CONDENV("PHP_BINDIR", "c:\\php4") +#define PHP_CONFIG_FILE_PATH CONDENV("SystemRoot", "") +#define PHP_CONFIG_FILE_SCAN_DIR CONDENV("PHP_CONFIG_FILE_SCAN_DIR", "") +#define PHP_DATADIR CONDENV("PHP_DATADIR", "c:\\php4") +#define PHP_EXTENSION_DIR CONDENV("PHP_EXTENSION_DIR", "c:\\php4") +#define PHP_INCLUDE_PATH CONDENV("PHP_INCLUDE_PATH", ".;c:\\php4\\pear") +#define PHP_LIBDIR CONDENV("PHP_LIBDIR", "c:\\php4") +#define PHP_LOCALSTATEDIR CONDENV("PHP_LOCALSTATEDIR", "c:\\php4") +#define PHP_PREFIX CONDENV("PHP_PREFIX", "c:\\php4") +#define PHP_SYSCONFDIR CONDENV("PHP_SYSCONFDIR", "c:\\php4") /* Enable / Disable BCMATH extension (default: enabled) */ #define WITH_BCMATH 1
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php