1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/lib/replace/win32.m4
Stefan Metzmacher e2a393701c libreplace: fix warnings with autoconf-2.62 rename ac_ => libreplace_cv_
AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(cherry picked from commit 67e43860b4)
(This used to be commit d786bfc48e)
2008-06-09 11:06:08 +02:00

21 lines
554 B
Plaintext

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