* 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-11 Jim Meyering <meyering@fb.com>
+
+ 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 <bruno@clisp.org>
Fix major regression from 2020-01-04.
-# serial 9
+# serial 10
dnl From Jim Meyering.
dnl Find a new-enough version of 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