summaryrefslogtreecommitdiff
path: root/source4/lib/replace/win32/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace/win32/SConscript')
-rw-r--r--source4/lib/replace/win32/SConscript22
1 files changed, 22 insertions, 0 deletions
diff --git a/source4/lib/replace/win32/SConscript b/source4/lib/replace/win32/SConscript
new file mode 100644
index 0000000000..a23fb6a878
--- /dev/null
+++ b/source4/lib/replace/win32/SConscript
@@ -0,0 +1,22 @@
+Import('hostenv defines')
+
+if hostenv['configure']:
+ conf = Configure(hostenv)
+ for h in ['direct.h','windows.h','winsock2.h','ws2tcpip.h']:
+ if conf.CheckCHeader(h):
+ defines['HAVE_' + h.upper().replace('.','_')] = 1
+ conf.TryCompile("""
+#include <stdio.h>
+#ifdef HAVE_DIRECT_H
+#include <direct.h>
+#endif
+
+int main()
+{
+ mkdir("foo",0777);
+ return 0;
+}
+""", '.c')
+
+ conf.Finish()
+