From: Greg Beaver Date: Thu, 17 Jan 2008 21:17:29 +0000 (+0000) Subject: MFH: add errors when missing dependencies (Steph) X-Git-Tag: php-5.2.6RC1~159 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42b320bca17608fae852629cbe643cd4abe69771;p=php MFH: add errors when missing dependencies (Steph) --- diff --git a/win32/build/confutils.js b/win32/build/confutils.js index 1e73a56964..015a0aa0ac 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -// $Id: confutils.js,v 1.60.2.1.2.9 2007-11-14 19:48:57 auroraeosrose Exp $ +// $Id: confutils.js,v 1.60.2.1.2.10 2008-01-17 21:17:29 cellog Exp $ var STDOUT = WScript.StdOut; var STDERR = WScript.StdErr; @@ -1009,6 +1009,14 @@ function ADD_EXTENSION_DEP(extname, dependson, optional) ADD_FLAG("LDFLAGS_" + EXT, "/libpath:$(BUILD_DIR)"); ADD_FLAG("LIBS_" + EXT, "php_" + dependson + ".lib"); ADD_FLAG("DEPS_" + EXT, "$(BUILD_DIR)\\php_" + dependson + ".lib"); + } else { + if (dep_present == "no") { + if (ext_shared) { + WARNING(extname + " has a missing dependency: " + dependson); + } else { + ERROR("Cannot build " + extname + "; " + dependson + " not enabled"); + } + } } }