summaryrefslogtreecommitdiff
path: root/m4/init.m4
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-05-08 12:49:36 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-05-08 12:49:36 +0200
commit12405c9fccb92791116c0391cbd7669ea00e9a04 (patch)
treee7cee329d35fc7a559c6615a5b51a4d26888a7a4 /m4/init.m4
parentadb834ebf078a00ed67ebc325c692452e6e5dcf6 (diff)
parent33c59ec5252efb1021b2e52a8cad40918670362b (diff)
downloadautomake-12405c9fccb92791116c0391cbd7669ea00e9a04.tar.gz
Merge branch 'maint'
* maint: tests: fix a spurious failure with dash test defs: fix indentation (cosmetic change) tests: remove obsolete uses of $sh_errexit_works configure: search a sturdy POSIX shell to be used in the testsuite tests: shell running test scripts is now named AM_TEST_RUNNER_SHELL fixup: distribute t/README init: warn against obsolete usage of AM_INIT_AUTOMAKE Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'm4/init.m4')
-rw-r--r--m4/init.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/init.m4 b/m4/init.m4
index a496154d0..0a6eefc4c 100644
--- a/m4/init.m4
+++ b/m4/init.m4
@@ -52,7 +52,10 @@ AC_SUBST([CYGPATH_W])
# Define the identity of the package.
dnl Distinguish between old-style and new-style calls.
m4_ifval([$2],
-[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+[AC_DIAGNOSE([obsolete],
+[$0: two- and three-arguments forms are deprecated. For more info, see:
+http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
+m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
AC_SUBST([PACKAGE], [$1])dnl
AC_SUBST([VERSION], [$2])],
[_AM_SET_OPTIONS([$1])dnl