Skip to content

Commit

Permalink
Issue #31
Browse files Browse the repository at this point in the history
  • Loading branch information
grosjo committed Jan 18, 2020
1 parent 8397809 commit 6cb2f0e
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 355 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ SUBDIRS = src

ACLOCAL_AMFLAGS = -I m4

PACKAGE_VERSION = "1.2.4"
VERSION = "1.2.4"
PACKAGE_VERSION = "1.2.7"
VERSION = "1.2.7"
38 changes: 34 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,41 @@ BINARY_LDFLAGS="$PIE_LDFLAGS $RELRO_LDFLAGS"
BINARY_CFLAGS="$PIE_CFLAGS"
AC_SUBST(LIBDOVECOT_INCLUDE)

XO_LIB_XAPIAN
XO_REQUIRE([1.4.0], AC_MSG_ERROR([Xapian version 1.4.0 or better required]),)
PKG_PROG_PKG_CONFIG([0.25]) # check and set $PKG_CONFIG
PKG_CHECK_MODULES([ICU_UC], [icu-uc >= 64], [have_icu_uc=true], [have_icu_uc=false])
PKG_CHECK_MODULES([ICU_I18N], [icu-i18n >= 64], [have_icu_i18n=true], [have_icu_i18n=false])
if !($have_icu_uc && $have_icu_i18n); then
AC_MSG_ERROR([icu 64 or higher is required, but was not found.])
fi
ICU_LDFLAGS=$($PKGCONFIG pkg-config icu-uc --libs-only-L | sed 's/-L//g')

AC_SUBST(ICU_UC_CFLAGS)
AC_SUBST(ICU_I18N_CFLAGS)
AC_SUBST(ICU_I18N_LIBS)
AC_SUBST(ICU_UC_LIBS)
AC_SUBST(ICU_LDFLAGS)

# xapian checking - we need 1.4 at least
AC_CHECK_PROG(XAPIAN_CONFIG,xapian-config,xapian-config,no)
AM_CONDITIONAL(HAVE_XAPIAN,test "x$XAPIAN_CONFIG" != "xno")
AS_IF([test "x$XAPIAN_CONFIG" = "xno"],[
AC_MSG_ERROR([
*** xapian could not be found; please install it
*** e.g., in debian/ubuntu the package would be 'libxapian-dev'
*** If you compiled it yourself, you should ensure that xapian-config
*** is in your PATH.])],
[XAPIAN_VERSION=$($XAPIAN_CONFIG --version | sed -e 's/.* //')])

AS_CASE([$XAPIAN_VERSION],
[1.[[4-9]].[[0-9]]*],
[AC_DEFINE([XAPIAN_HAVE_OP_WILDCARD],[1],[Xapian::Query::OP_WILDCARD?])],
[AC_MSG_ERROR([*** xapian version >= 1.4 needed, but version $XAPIAN_VERSION found.])])

XAPIAN_CXXFLAGS="$($XAPIAN_CONFIG --cxxflags)"
XAPIAN_LIBS="$($XAPIAN_CONFIG --libs)"

XO_LIB_ICU
XO_ICU_REQUIRE([64], AC_MSG_ERROR([ICU version 64 or better required]),)
AC_SUBST(XAPIAN_CXXFLAGS)
AC_SUBST(XAPIAN_LIBS)

if test "$DOVECOT_INSTALLED" != "yes"; then
DOVECOT_FTS_PLUGIN="$abs_dovecotdir/src/plugins/fts/lib20_fts_plugin.la"
Expand Down
174 changes: 0 additions & 174 deletions m4/icu.m4

This file was deleted.

Loading

0 comments on commit 6cb2f0e

Please sign in to comment.