1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/source4/lib/replace/win32.m4
Stefan Metzmacher c706319c8f r18458: move wins32 stuff to the top dir
metze
(This used to be commit 521e94f269)
2007-10-10 14:18:33 -05:00

21 lines
510 B
Plaintext

AC_CHECK_HEADERS(direct.h windows.h winsock2.h ws2tcpip.h)
#######################################
# Check for mkdir mode
AC_CACHE_CHECK( [whether mkdir supports mode], ac_mkdir_has_mode,
AC_TRY_COMPILE([
#include <stdio.h>
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif],[
mkdir("foo",0777);
return 0;
],
ac_mkdir_has_mode="yes",
ac_mkdir_has_mode="no") )
if test "$ac_mkdir_has_mode" = "yes"
then
AC_DEFINE(HAVE_MKDIR_MODE, 1, [Define if target mkdir supports mode option])
fi