diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-05-21 16:55:53 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-05-21 18:43:41 -0700 |
commit | d6276889a04a5502c1f9d80ffc9f0ae5f7b628e0 (patch) | |
tree | 04b5030df29ebfd92c0dba9901bf60d50095b42f /configure.ac | |
parent | c831ffa1d9a2399e6e4ff44d2bf3825c324812fa (diff) | |
download | grep-d6276889a04a5502c1f9d80ffc9f0ae5f7b628e0.tar.gz |
build: be more careful about Perl
Problem reported by Serge Belyshev for Coreutils (Bug#52844).
I observed the same problem with current Grep on Fedora 35
without Perl installed.
* configure.ac (HAVE_PERL): Rely on latest Gnulib gl_PERL, which
sets gl_cv_prog_perl.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index c85651c5..5941b88a 100644 --- a/configure.ac +++ b/configure.ac @@ -68,11 +68,7 @@ gl_INIT AC_DEFINE([GNULIB_NO_VLA], [1], [Define to 1 to disable use of VLAs]) # The test suite needs to know if we have a working perl. -# FIXME: this is suboptimal. Ideally, we would be able to call gl_PERL -# with an ACTION-IF-NOT-FOUND argument ... -cu_have_perl=yes -case $PERL in *"/missing "*) cu_have_perl=no;; esac -AM_CONDITIONAL([HAVE_PERL], [test $cu_have_perl = yes]) +AM_CONDITIONAL([HAVE_PERL], [test "$gl_cv_prog_perl" != no]) # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found]) # ------------------------------------------------ |