]> git.ipfire.org Git - thirdparty/automake.git/commit
obsolete: better error message if AM_PROG_MKDIR_P is used
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 30 Dec 2012 10:57:02 +0000 (11:57 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 30 Dec 2012 10:57:02 +0000 (11:57 +0100)
commitd01834bc91bff6773dcd73d70158974c45d9d8e5
tree4efc17adce5a03ac99407ba60ac50cf1ef5a45bc
parentd11e8cb529c3f9b847b03261c5bd6e74122a9eaf
obsolete: better error message if AM_PROG_MKDIR_P is used

In Automake 1.14, the long-deprecated macro AM_PROG_MKDIR_P will be
removed.  Instead of simply dropping the macro definition, which would
cause unclear error messages in aclocal and autoconf:

    configure.ac:4: warning: macro 'AM_PROG_MKDIR_P' not found in library
    configure.ac:4: error: possibly undefined macro: AM_PROG_MKDIR_P
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

we re-add an AM_PROG_MKDIR_P definition that simply raises a *clear* error
message when the macro is used.

See also recent similar commits 'v1.13-5-g9c07d89' and 'v1.13-4-g8e921bf'

* t/am-prog-mkdir-p-no-more.sh: New test.
* t/list-of-tests.mk: Add it.
* m4/obsolete-err.m4: Add the new "error-raising" definition for
AM_PROG_MKDIR_P.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
m4/obsolete-err.m4
t/am-prog-mkdir-p-no-more.sh [new file with mode: 0755]
t/list-of-tests.mk