From: Kalle Sommer Nielsen Date: Thu, 4 Jan 2018 07:58:27 +0000 (+0100) Subject: Added a for includes and libs on configure X-Git-Tag: php-7.3.0alpha1~698 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fe0ee690c6a82e3ba568e613280847d996c65b4;p=php Added a for includes and libs on configure --- diff --git a/win32/build/confutils.js b/win32/build/confutils.js index e38cb99aa3..aafd541a3b 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -575,6 +575,21 @@ function DEFINE(name, value) configure_subst.Add(name, value); } +function verbalize_deps_path(path) +{ + var absolute_path = FSO.GetAbsolutePathName(path); + + if (absolute_path.indexOf(PHP_PHP_BUILD) == 0) { + absolute_path = absolute_path.substring(PHP_PHP_BUILD.length).split('\\'); + + if (absolute_path[1] == 'include' || absolute_path[1] == 'lib') { + return " " + absolute_path.join('\\'); + } + } + + return path; +} + // Searches a set of paths for a file; // returns the dir in which the file was found, // true if it was found in the default env path, @@ -621,7 +636,7 @@ function search_paths(thing_to_find, explicit_path, env_name) if (found && place == true) { STDOUT.WriteLine(" "); } else if (found) { - STDOUT.WriteLine(" " + place); + STDOUT.WriteLine(" " + verbalize_deps_path(place)); } else { STDOUT.WriteLine(" "); } @@ -815,7 +830,7 @@ function CHECK_LIB(libnames, target, path_to_check, common_name) ADD_FLAG("ARFLAGS" + target, '/libpath:"' + libdir + '" '); ADD_FLAG("LIBS" + target, libname); - STDOUT.WriteLine(location); + STDOUT.WriteLine(verbalize_deps_path(location)); copy_dep_pdb_into_build_dir(location);