summaryrefslogtreecommitdiff
path: root/m4/perl.m4
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2020-01-11 18:59:42 -0800
committerJim Meyering <meyering@fb.com>2020-01-11 18:59:42 -0800
commit6b9d15b8bcb3c009374ccb21dc2c2be2333133d7 (patch)
treea2f1b639039de0d7f478dfd9769b47e2710cd12d /m4/perl.m4
parentba4b91abd5dbe486c71465b0968aa1a4a1198bd7 (diff)
downloadgnulib-6b9d15b8bcb3c009374ccb21dc2c2be2333133d7.tar.gz
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
Diffstat (limited to 'm4/perl.m4')
-rw-r--r--m4/perl.m44
1 files changed, 2 insertions, 2 deletions
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