2 dnl Copyright (C) 2004-2017 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 # Written by Jim Meyering.
9 AC_DEFUN([gl_FUNC_MKDIRAT],
11 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
12 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
13 AC_CHECK_FUNCS_ONCE([mkdirat])
14 if test $ac_cv_func_mkdirat != yes; then
19 # Prerequisite of mkdirat's declaration and of lib/mkdirat.c.
20 AC_DEFUN([gl_PREREQ_MKDIRAT],
22 AC_REQUIRE([AC_TYPE_MODE_T])