From 98fab1246b31bc4eb5d83ac7524d1fd126d0e416 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Mon, 13 Jun 2011 21:27:35 +0200 Subject: ansi2knr: deprecate, it will go away in the next major release * doc/automake.texi: Loudly and repeatedly state that the old de-ANSI-fication features are now deprecated and will be removed in the next major Automake release. Other related adjustments. * lib/Automake/Options.pm (_process_option_list ): Give a warning in the `obsolete' category when the `ansi2knr' option is used. * m4/protos.m4 (AM_C_PROTOTYPES): Deprecate this macro: a warning in the `obsolete' category will be emitted it if is used. * tests/ansi2knr-deprecation.test: New test. * tests/Makefile.am (TESTS): Update. * tests/ansi.test: Adjust, by calling autoconf and/or automake with the `-Wno-obsolete' flag. * tests/ansi10.test: Likewise. * tests/ansi2.test: Likewise. * tests/ansi3.test: Likewise. * tests/ansi3b.test: Likewise. * tests/ansi4.test: Likewise. * tests/ansi5.test: Likewise. * tests/ansi6.test: Likewise. * tests/ansi7.test: Likewise. * tests/ansi8.test: Likewise. * tests/ansi9.test: Likewise. * tests/cxxansi.test: Likewise. * tests/libobj8.test: Likewise. * NEWS: Update about the future planned backward-incompatibility due to the removal of de-ANSI-fication feature. --- lib/Automake/Options.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Automake/Options.pm') diff --git a/lib/Automake/Options.pm b/lib/Automake/Options.pm index 9543aa592..b7ff3d1f5 100644 --- a/lib/Automake/Options.pm +++ b/lib/Automake/Options.pm @@ -252,6 +252,10 @@ sub _process_option_list (\%$@) } elsif (/^(.*\/)?ansi2knr$/) { + # This feature is deprecated, will be removed in the next + # Automake major release. + msg 'obsolete', $where, + "automatic de-ANSI-fication support is deprecated\n"; # An option like "../lib/ansi2knr" is allowed. With no # path prefix, we assume the required programs are in this # directory. We save the actual option for later. -- cgit v1.2.1