[Commits] [SCM] claws branch, master, updated. 3.9.1-3-g3b2e225

claws at claws-mail.org claws at claws-mail.org
Thu May 9 10:47:45 CEST 2013


The branch master of project "claws" (Claws Mail) has been updated
       via  3b2e2252f1a47536be2cd7ec36e01ae3fbb0c956 (commit)
      from  66aa06c74413386eeb2198365e45c98df75e2782 (commit)


- Log -----------------------------------------------------------------
commit 3b2e2252f1a47536be2cd7ec36e01ae3fbb0c956
Author: Paul <paul at claws-mail.org>
Date:   Thu May 9 09:47:38 2013 +0100

    add missing check for libperl

diff --git a/configure.ac b/configure.ac
index 0f433b8..fe73e85 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1165,9 +1165,6 @@ if test x"$HAVE_POPPLER" = xyes; then
 	CFLAGS=$OLD_CFLAGS
 fi
 
-dnl sed ************************************************************************
-AC_CHECK_PROG(HAVE_SED, sed, yes, no)
-
 dnl perl ***********************************************************************
 AC_CHECK_PROG(HAVE_PERL, perl, yes, no)
 if test x"$HAVE_PERL" = xyes; then
@@ -1182,17 +1179,19 @@ if test x"$HAVE_PERL" = xyes; then
 fi
 if test x"$HAVE_PERL" = xyes; then
 	AC_MSG_CHECKING(for Perl compile flags)
-	if test x"$HAVE_SED" = xno; then
-		AC_MSG_RESULT(no - missing sed)
-		HAVE_PERL=no
-	else
-		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)
+	PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts`
+	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}])
+	
+	if test x"$HAVE_PERL" = xyes; then
+		AC_CHECK_LIB(perl,perl_alloc,[AC_DEFINE(HAVE_LIBPERL, 1, Check for libperl.)], 
+			 		     [ HAVE_LIBPERL=no ])
 	fi
 	PERL="perl"
 	AC_SUBST(PERL)
@@ -1574,8 +1573,8 @@ AC_MSG_CHECKING([whether to build perl plugin])
 if test x"$enable_perl_plugin" != xno; then
 	dependencies_missing=""
 
-	if test x"$HAVE_PERL" = xno; then
-		dependencies_missing="perl $dependencies_missing"
+	if test x"$HAVE_LIBPERL" = xno; then
+		dependencies_missing="libperl $dependencies_missing"
 	fi
 
 	if test x"$dependencies_missing" = x; then

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

Summary of changes:
 configure.ac |   31 +++++++++++++++----------------
 1 files changed, 15 insertions(+), 16 deletions(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list