[Commits] [SCM] claws branch, gtk2, updated. 3.19.1-2-g40a6540ea

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


The branch, gtk2 has been updated
       via  40a6540eac73bdde2d4b96d6b1598f12ebf1b734 (commit)
      from  c578bb288147ef9ab05585e0852df231752489b0 (commit)

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


- Log -----------------------------------------------------------------
commit 40a6540eac73bdde2d4b96d6b1598f12ebf1b734
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 29693dea0..f29b37271 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1333,15 +1333,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