]> granicus.if.org Git - php/commitdiff
VC6 hack to avoid CONFIGURE_COMMAND string length over 2048 when building many extensions
authorFrank M. Kromann <fmk@php.net>
Mon, 2 Aug 2004 18:48:49 +0000 (18:48 +0000)
committerFrank M. Kromann <fmk@php.net>
Mon, 2 Aug 2004 18:48:49 +0000 (18:48 +0000)
win32/build/confutils.js

index 00c1a6d1d7c20f8ac5700a2eecc8c6c6546ec0bc..cb529181ddc8647deac6386e6d09d7f27e43e46f 100644 (file)
@@ -17,7 +17,7 @@
   +----------------------------------------------------------------------+
 */
 
-// $Id: confutils.js,v 1.43 2004-08-02 17:54:49 fmk Exp $
+// $Id: confutils.js,v 1.44 2004-08-02 18:48:49 fmk Exp $
 
 var STDOUT = WScript.StdOut;
 var STDERR = WScript.StdErr;
@@ -256,7 +256,9 @@ function conf_process_args()
        args = WScript.Arguments;
        for (i = 0; i < args.length; i++) {
                arg = args(i);
-               nice += ' "' + arg + '"';
+               if (nice.length + arg.length < 2045) {  // The max string length for CONFIGURE_COMMAND is 2048 in VC6
+                       nice += ' "' + arg + '"';
+               }
                if (arg == "--help") {
                        configure_help_mode = true;
                        break;