From: Paul Eggert Date: Tue, 28 Dec 2021 10:03:21 +0000 (-0800) Subject: build: be more careful about Perl X-Git-Tag: v9.1~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa670bed50dc213fa947cc009801f9708e37e675;p=thirdparty%2Fcoreutils.git build: be more careful about Perl Problem reported by Serge Belyshev (Bug#52844). * configure.ac (HAVE_PERL): Rely on latest Gnulib gl_PERL, which sets gl_cv_prog_perl. --- diff --git a/configure.ac b/configure.ac index 9b8ea0dde7..b982d7e9ac 100644 --- a/configure.ac +++ b/configure.ac @@ -64,11 +64,7 @@ gl_INIT coreutils_MACROS # 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]) # ------------------------------------------------