dnl AC_FUNC_MKDIR dnl Check mkdir arguments. dnl Defines MKDIR_TAKES_ONE_ARG. dnl dnl Based on code written by Alexandre Duret-Lutz . 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 #endif #ifdef HAVE_UNISTD_H # include #endif #ifdef HAVE_DIR_H # include #endif #ifdef HAVE_DIRECT_H # include #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 ])