AC_PROG_CXX # lucene plugin needs this
AC_CHECK_TOOL([FLEX],[flex],[:])
AC_CHECK_TOOL([BISON],[bison],[:])
+AC_PATH_TOOL([WGET], [wget], [missing])
AS_IF([test "$BISON" = ":" && test ! -e "$srcdir/src/lib/event-filter-parser.h"],
AC_MSG_ERROR([Bison is required when building from git])
])
# extracting the documentation tarball from github yields the
# "documentation-main" directory
documentation-main:
- $(AM_V_GEN)wget $(AM_V_Q) -O - \
+ $(AM_V_GEN)$(WGET) $(AM_V_Q) -O - \
https://github.com/dovecot/documentation/archive/refs/heads/main.tar.gz | \
gunzip | $(am__untar)
stopwords/stopwords_malformed.txt
$(srcdir)/WordBreakProperty.txt:
- $(AM_V_GEN)test -f $@ || wget -qO $@ https://dovecot.org/res/WordBreakProperty.txt
+ $(AM_V_GEN)test -f $@ || $(WGET) -qO $@ https://dovecot.org/res/WordBreakProperty.txt
$(srcdir)/word-boundary-data.c: $(srcdir)/word-properties.pl $(srcdir)/WordBreakProperty.txt
$(AM_V_GEN)perl $(srcdir)/word-properties.pl boundaries $(srcdir)/WordBreakProperty.txt > $@
$(srcdir)/PropList.txt:
- $(AM_V_GEN)test -f $@ || wget -qO $@ https://dovecot.org/res/PropList.txt
+ $(AM_V_GEN)test -f $@ || $(WGET) -qO $@ https://dovecot.org/res/PropList.txt
$(srcdir)/word-break-data.c: $(srcdir)/word-properties.pl $(srcdir)/PropList.txt
$(AM_V_GEN)perl $(srcdir)/word-properties.pl breaks $(srcdir)/PropList.txt > $@
event-filter-parser.h: event-filter-parser.c
$(srcdir)/UnicodeData.txt:
- $(AM_V_GEN)test -f $@ || wget $(AM_V_Q) -O $@ https://dovecot.org/res/UnicodeData.txt
+ $(AM_V_GEN)test -f $@ || $(WGET) $(AM_V_Q) -O $@ https://dovecot.org/res/UnicodeData.txt
$(srcdir)/unicodemap.c: $(srcdir)/unicodemap.pl $(srcdir)/UnicodeData.txt
$(AM_V_GEN)perl $(srcdir)/unicodemap.pl < $(srcdir)/UnicodeData.txt > $@