summaryrefslogtreecommitdiff
path: root/win32/setup.mak
diff options
context:
space:
mode:
Diffstat (limited to 'win32/setup.mak')
-rw-r--r--win32/setup.mak15
1 files changed, 12 insertions, 3 deletions
diff --git a/win32/setup.mak b/win32/setup.mak
index 515271b85e..aa1a754cdd 100644
--- a/win32/setup.mak
+++ b/win32/setup.mak
@@ -70,11 +70,11 @@ USE_RUBYGEMS = $(USE_RUBYGEMS)
@echo !endif>> $(MAKEFILE)
!endif
--system-vars-: -osname- -runtime-
+-system-vars-: -osname- -runtime- -headers-
--system-vars32-: -osname32- -runtime-
+-system-vars32-: -osname32- -runtime- -headers-
--system-vars64-: -osname64- -runtime-
+-system-vars64-: -osname64- -runtime- -headers-
-osname32-: nul
@echo TARGET_OS = mswin32>>$(MAKEFILE)
@@ -100,6 +100,15 @@ int main(void) {FILE *volatile f = stdin; return 0;}
@$(WIN32DIR:/=\)\rtname conftest.exe >>$(MAKEFILE)
@$(WIN32DIR:/=\)\rm.bat conftest.*
+-headers-: check-psapi.h
+
+check-psapi.h: nul
+ ($(CC) -MD <<conftest.c psapi.lib -link && echo>>$(MAKEFILE) HAVE_PSAPI_H=1) & $(WIN32DIR:/=\)\rm.bat conftest.*
+#include <windows.h>
+#include <psapi.h>
+int main(void) {return (EnumProcesses(NULL,0,NULL) ? 0 : 1);}
+<<
+
-version-: nul
@$(APPEND)
@$(CPP) -I$(srcdir) -I$(srcdir)/include <<"Creating $(MAKEFILE)" | findstr "=" >>$(MAKEFILE)