[Commits] [SCM] claws branch, master, updated. 4.1.1-5-gd0ba07703

mones at claws-mail.org mones at claws-mail.org
Mon Oct 24 15:41:15 UTC 2022


The branch, master has been updated
       via  d0ba07703dc014d6a33faf815328e42677bfca2c (commit)
      from  803b7a15a46f3597f88878042e133c21683c71ab (commit)

Summary of changes:
 configure.ac | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)


- Log -----------------------------------------------------------------
commit d0ba07703dc014d6a33faf815328e42677bfca2c
Author: Ricardo Mones <ricardo at mones.org>
Date:   Mon Oct 24 17:40:01 2022 +0200

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

diff --git a/configure.ac b/configure.ac
index f0fe8f235..c22027030 100644
--- 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.)], 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list