mkdir.m4
上传用户:tany51
上传日期:2013-06-12
资源大小:1397k
文件大小:1k
- dnl AC_FUNC_MKDIR
- dnl Check mkdir arguments.
- dnl Defines MKDIR_TAKES_ONE_ARG.
- dnl
- dnl Based on code written by Alexandre Duret-Lutz <duret_g@epita.fr>.
- AC_DEFUN([AC_FUNC_MKDIR_ARGS],
- [AC_CHECK_FUNCS([mkdir _mkdir])
- AC_CACHE_CHECK([whether mkdir takes one argument],
- [ac_cv_mkdir_takes_one_arg],
- [AC_TRY_COMPILE([
- #ifdef HAVE_SYS_STAT_H
- # include <sys/stat.h>
- #endif
- #ifdef HAVE_UNISTD_H
- # include <unistd.h>
- #endif
- #ifdef HAVE_DIR_H
- # include <dir.h>
- #endif
- #ifdef HAVE_DIRECT_H
- # include <direct.h>
- #endif
- #ifndef HAVE_MKDIR
- # ifdef HAVE__MKDIR
- # define mkdir _mkdir
- # endif
- #endif
- ],[mkdir(".");],
- [ac_cv_mkdir_takes_one_arg=yes],[ac_cv_mkdir_takes_one_arg=no])])
- if test x"$ac_cv_mkdir_takes_one_arg" = xyes; then
- AC_DEFINE([MKDIR_TAKES_ONE_ARG],1,
- [Define if mkdir takes only one argument.])
- fi
- ])