automake: Don't rely on List::Util to provide 'none'
commit74902aa24d4c313ab51fa684142d9240f636971a
authorMathieu Lirzin <mthl@gnu.org>
Sat, 3 Mar 2018 22:50:10 +0000 (3 23:50 +0100)
committerMathieu Lirzin <mthl@gnu.org>
Thu, 8 Mar 2018 20:33:14 +0000 (8 21:33 +0100)
treef906ad5581f51d5ebf5159643d27ae0594396ac1
parent9385c161707c6d2295d610eef81fe4d1a44b44de
automake: Don't rely on List::Util to provide 'none'

This change fixes automake bug#30631.

This removes the use of List::Util which is not supported by Perl 5.6,
by reimplementing the 'none' subroutine.

* lib/Automake/General.pm (none): New subroutine.
* bin/automake.in (handle_single_transform): Use it.
* t/pm/General.pl: New test.
* t/list-of-tests.mk (perl_TESTS): Add it.
* NEWS: Update.
NEWS
bin/automake.in
lib/Automake/General.pm
t/list-of-tests.mk
t/pm/General.pl [new file with mode: 0644]