1dnl Copyright (C) 2007-2015 Free Software Foundation, Inc.
2dnl This file is free software; the Free Software Foundation
3dnl gives unlimited permission to copy and/or distribute it,
4dnl with or without modifications, as long as this notice is preserved.
5
6# AC_PROG_MKDIR_P
7# is a backport of autoconf-2.60's AC_PROG_MKDIR_P, with a fix
8# for interoperability with automake-1.9.6 from autoconf-2.62.
9# Remove this macro when we can assume autoconf >= 2.62 or
10# autoconf >= 2.60 && automake >= 1.10.
11# AC_AUTOCONF_VERSION was introduced in 2.62, so use that as the witness.
12m4_ifndef([AC_AUTOCONF_VERSION],[
13m4_ifdef([AC_PROG_MKDIR_P], [
14  dnl For automake-1.9.6 && autoconf < 2.62: Ensure MKDIR_P is AC_SUBSTed.
15  m4_define([AC_PROG_MKDIR_P],
16    m4_defn([AC_PROG_MKDIR_P])[
17    AC_SUBST([MKDIR_P])])], [
18  dnl For autoconf < 2.60: Backport of AC_PROG_MKDIR_P.
19  AC_DEFUN_ONCE([AC_PROG_MKDIR_P],
20    [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
21     MKDIR_P='$(mkdir_p)'
22     AC_SUBST([MKDIR_P])])])
23])
24