From: Jim Meyering Date: Sun, 12 Jan 2020 02:59:42 +0000 (-0800) Subject: perl: require the "warnings" module X-Git-Tag: v1.0~4351 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=6b9d15b8bcb3c009374ccb21dc2c2be2333133d7;p=gnulib.git perl: require the "warnings" module * m4/perl.m4: Also "use warnings", so we reject the perl found on at least one IRIX 6.5 system. Reported by Bruno Haible in https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html --- diff --git a/ChangeLog b/ChangeLog index 1193d2209d..9d90e3c30c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2020-01-11 Jim Meyering + + perl: require the "warnings" module + * m4/perl.m4: Also "use warnings", so we reject the perl found + on at least one IRIX 6.5 system. Reported by Bruno Haible in + https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html + 2020-01-10 Bruno Haible Fix major regression from 2020-01-04. diff --git a/m4/perl.m4 b/m4/perl.m4 index 1bde84c29f..0003fcc0b0 100644 --- a/m4/perl.m4 +++ b/m4/perl.m4 @@ -1,4 +1,4 @@ -# serial 9 +# serial 10 dnl From Jim Meyering. dnl Find a new-enough version of Perl. @@ -29,7 +29,7 @@ AC_DEFUN([gl_PERL], for perl in $candidate_perl_names; do # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. - if ( $perl -e 'require 5.005; use File::Compare' ) > /dev/null 2>&1; then + if ( $perl -e 'require 5.005; use File::Compare; use warnings;' ) > /dev/null 2>&1; then PERL=$perl found=yes break