talons

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

commit b55ac023dd385d88f31150ff14f2fcc3f48f2dbe
parent 24d781260b1c2ee451c8bffb39918137398ef06b
Author: Paul <paul@claws-mail.org>
Date:   Thu,  9 May 2013 19:56:12 +0100

add secondary check for libperl.so for distros such as fedora

Diffstat:
Mconfigure.ac | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -1195,6 +1195,17 @@ 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 + if test x"$HAVE_LIBPERL" = xno; then + LIBPERL_PREFIX=`perl -MExtUtils::Embed -e perl_inc` + LIBPERL_PREFIX=`echo $LIBPERL_PREFIX |sed 's/-I//'` + AC_MSG_CHECKING([for libperl.so]) + if test -f "$LIBPERL_PREFIX/libperl.so"; then + AC_MSG_RESULT(yes) + HAVE_LIBPERL=yes + else + AC_MSG_RESULT(no) + fi + fi PERL="perl" AC_SUBST(PERL) AC_SUBST(PERL_CFLAGS)