From acf6a335e729c5c0b8cddcd7bdcfd3f080f90e61 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sat, 23 Aug 2008 19:39:07 +0000 Subject: [PATCH] - readd the usual suspects to lib/include (was droped with the resolv.h check removal) --- win32/build/config.w32 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 + '" '); + } + } + } } } -- 2.40.0