]> granicus.if.org Git - php/commitdiff
- Fix logic in get_define()
authorSteph Fox <sfox@php.net>
Sat, 19 Jul 2008 19:02:59 +0000 (19:02 +0000)
committerSteph Fox <sfox@php.net>
Sat, 19 Jul 2008 19:02:59 +0000 (19:02 +0000)
win32/build/confutils.js

index 064d4f80a667f8e6c9a80faa5913d4955f355073..8aa86ac91e8904f6be4606ec7262bf98572a2e1a 100644 (file)
@@ -17,7 +17,7 @@
   +----------------------------------------------------------------------+
 */
 
-// $Id: confutils.js,v 1.60.2.1.2.8.2.26 2008-07-19 16:57:58 sfox Exp $
+// $Id: confutils.js,v 1.60.2.1.2.8.2.27 2008-07-19 19:02:59 sfox Exp $
 
 var STDOUT = WScript.StdOut;
 var STDERR = WScript.StdErr;
@@ -1652,7 +1652,10 @@ function ADD_FLAG(name, flags, target)
 
 function get_define(name)
 {
-       return configure_subst.Item(name);
+       if (configure_subst.Exists(name)) {
+               return configure_subst.Item(name);
+       }
+       return "";
 }
 
 // Add a .def to the core to export symbols