From: Pierre Joye Date: Sat, 23 Aug 2008 19:39:07 +0000 (+0000) Subject: - readd the usual suspects to lib/include (was droped with the resolv.h check removal) X-Git-Tag: BEFORE_HEAD_NS_CHANGE~603 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acf6a335e729c5c0b8cddcd7bdcfd3f080f90e61;p=php - readd the usual suspects to lib/include (was droped with the resolv.h check removal) --- diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 656fe49795..d601cf62d6 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -246,6 +246,25 @@ function probe_basic_headers() if (PHP_PHP_BUILD != "no") { php_usual_include_suspects += ";" + PHP_PHP_BUILD + "\\include"; php_usual_lib_suspects += ";" + PHP_PHP_BUILD + "\\lib"; + + path = php_usual_include_suspects.split(';'); + for (i = 0; i < path.length; i++) { + f = FSO.GetAbsolutePathName(path[i]); + if (FSO.FolderExists(f)) { + ADD_FLAG("CFLAGS", '/I "' + f + '" '); + } + } + path = php_usual_lib_suspects.split(';'); + for (i = 0; i < path.length; i++) { + f = FSO.GetAbsolutePathName(path[i]); + if (FSO.FolderExists(f)) { + if (VCVERS <= 1200 && f.indexOf(" ") >= 0) { + ADD_FLAG("LDFLAGS", '/libpath:"\\"' + f + '\\"" '); + } else { + ADD_FLAG("LDFLAGS", '/libpath:"' + f + '" '); + } + } + } } }