talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit d0ba07703dc014d6a33faf815328e42677bfca2c
parent 803b7a15a46f3597f88878042e133c21683c71ab
Author: Ricardo Mones <ricardo@mones.org>
Date:   Mon, 24 Oct 2022 17:40:01 +0200

Fix 4645: fails to check for perl-ExtUtils::Embed

Diffstat:
Mconfigure.ac | 25++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -1325,15 +1325,22 @@ if test x"$HAVE_PERL" = xyes; then fi fi if test x"$HAVE_PERL" = xyes; then - AC_MSG_CHECKING(for Perl compile flags) - PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts` - PERL_CFLAGS=`echo $PERL_CFLAGS | sed 's/-D_FILE_OFFSET_BITS=[[0-9]]*//'` - PERL_LDFLAGS=`perl -MExtUtils::Embed -e ldopts |sed 's/-lgdbm\>//'` - PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-ldb\>//'` - PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-lndbm\>//'` - PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-lc\>//'` - AC_MSG_RESULT(ok) - AC_MSG_NOTICE([Adding perl LIBS ${PERL_CFLAGS}]) + AC_MSG_CHECKING(for perl module ExtUtils::Embed) + if perl -MExtUtils::Embed; then + AC_MSG_RESULT(ok) + AC_MSG_CHECKING(for Perl compile flags) + PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts` + PERL_CFLAGS=`echo $PERL_CFLAGS | sed 's/-D_FILE_OFFSET_BITS=[[0-9]]*//'` + PERL_LDFLAGS=`perl -MExtUtils::Embed -e ldopts |sed 's/-lgdbm\>//'` + PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-ldb\>//'` + PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-lndbm\>//'` + PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-lc\>//'` + AC_MSG_RESULT(ok) + AC_MSG_NOTICE([Adding perl LIBS ${PERL_CFLAGS}]) + else + AC_MSG_RESULT(no) + HAVE_PERL=no + fi if test x"$HAVE_PERL" = xyes; then AC_CHECK_LIB(perl,perl_alloc,[AC_DEFINE(HAVE_LIBPERL, 1, Check for libperl.)],