perl: Integrate the mup interface from https://github.com/StAlphonsos/mup

This commit is contained in:
attila
2016-08-26 15:28:03 -05:00
parent 2507933176
commit 6b366e7d25
22 changed files with 2287 additions and 5 deletions

View File

@ -70,6 +70,20 @@ AS_IF([test "x$enable_mu4e" != "xno"], [
])
AM_CONDITIONAL(BUILD_MU4E, test "x$build_mu4e" = "xyes")
# Perl interface requires Data::SExpression
build_perl=no
AC_ARG_ENABLE([perl],
AS_HELP_STRING([--enable-perl],[Enable building the Perl interface]))
AC_ARG_VAR([PERL], [the Perl interpreter command])
AC_CHECK_PROGS([PERL], [perl], [no])
AS_IF([test x"$enable_perl" != "xno" -a x"$PERL" != "xno"], [
AM_PERL_MODULE([Data::SExpression],[build_perl=yes])
if test x"$build_perl" = "xyes"; then
perl_version=`$PERL -Iperl/lib -Mmup -e 'print "$mup::VERSION\n";'`
fi
])
AM_CONDITIONAL(BUILD_PERL, test "x$build_perl" = "xyes")
# we need some special tricks for filesystems that don't have d_type;
# e.g. Solaris. See mu-maildir.c. Explicitly disabling it is for
# testing purposes only
@ -269,6 +283,13 @@ contrib/Makefile
])
AC_OUTPUT
if test x"$build_perl" != "xno"; then
echo "Configuring Perl interface..."
cd perl
$PERL Makefile.PL
cd ..
fi
echo
echo "mu configuration is complete."
echo "------------------------------------------------"
@ -299,6 +320,10 @@ if test "x$build_mu4e" = "xyes"; then
echo "Emacs version : $emacs_version"
fi
AM_COND_IF([BUILD_PERL],[
echo "Perl interface version : $perl_version"
])
echo
echo "Have wordexp : $ac_cv_header_wordexp_h"
echo "Build mu4e emacs frontend : $build_mu4e"
@ -308,7 +333,6 @@ echo "Build 'mug' toy-ui (gtk+/webkit) : yes"],[
echo "Build 'mug' toy-ui (gtk+/webkit) : no"
])
echo "McCabe's Cyclomatic Complexity tool : $have_pmccabe"
echo