clang: Compiler tweaks to make android build for x64
[chromium-blink-merge.git] / third_party / talloc / libreplace / win32.m4
blobeb364e2cb9f215ba01c8da705631aaa463899f02
1 AC_CHECK_HEADERS(direct.h windows.h winsock2.h ws2tcpip.h)
3 #######################################
4 # Check for mkdir mode
5 AC_CACHE_CHECK( [whether mkdir supports mode], libreplace_cv_mkdir_has_mode,
6         AC_TRY_COMPILE([
7                 #include <stdio.h>
8                 #ifdef HAVE_DIRECT_H
9                 #include <direct.h>
10                 #endif],[
11                         mkdir("foo",0777);
12                         return 0;
13         ],
14     libreplace_cv_mkdir_has_mode="yes",
15     libreplace_cv_mkdir_has_mode="no") )
17 if test "$libreplace_cv_mkdir_has_mode" = "yes"
18 then
19     AC_DEFINE(HAVE_MKDIR_MODE, 1, [Define if target mkdir supports mode option])