From: Aki Tuomi Date: Mon, 12 May 2025 09:06:23 +0000 (+0300) Subject: lib, lib-language: Use perl found by configure X-Git-Tag: 2.4.2~789 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df8c9362e681321942eea9c955e024f1b389aece;p=thirdparty%2Fdovecot%2Fcore.git lib, lib-language: Use perl found by configure This allows better errors if perl wasn't found. --- diff --git a/configure.ac b/configure.ac index 4ed0c3fde3..0b50c3bbbe 100644 --- a/configure.ac +++ b/configure.ac @@ -255,6 +255,7 @@ AC_CHECK_TOOL([FLEX],[flex],[:]) AC_CHECK_TOOL([BISON],[bison],[:]) AM_MISSING_PROG([WGET], [wget]) AM_MISSING_PROG([PYTHON], [python3]) +AM_MISSING_PROG([PERL], [perl]) AS_IF([test "$BISON" = ":" && test ! -e "$srcdir/src/lib/event-filter-parser.h"], AC_MSG_ERROR([Bison is required when building from git]) diff --git a/src/lib-language/Makefile.am b/src/lib-language/Makefile.am index 8cea78ff95..5c0e6c7397 100644 --- a/src/lib-language/Makefile.am +++ b/src/lib-language/Makefile.am @@ -48,12 +48,12 @@ EXTRA_DIST = \ $(srcdir)/WordBreakProperty.txt: $(AM_V_at)test -f $@ || $(WGET) -nv -O $@ https://dovecot.org/res/WordBreakProperty.txt $(srcdir)/word-boundary-data.c: $(srcdir)/word-properties.pl $(srcdir)/WordBreakProperty.txt - $(AM_V_at)perl $(srcdir)/word-properties.pl boundaries $(srcdir)/WordBreakProperty.txt > $@ + $(AM_V_at)$(PERL) $(srcdir)/word-properties.pl boundaries $(srcdir)/WordBreakProperty.txt > $@ $(srcdir)/PropList.txt: $(AM_V_at)test -f $@ || $(WGET) -nv -O $@ https://dovecot.org/res/PropList.txt $(srcdir)/word-break-data.c: $(srcdir)/word-properties.pl $(srcdir)/PropList.txt - $(AM_V_at)perl $(srcdir)/word-properties.pl breaks $(srcdir)/PropList.txt > $@ + $(AM_V_at)$(PERL) $(srcdir)/word-properties.pl breaks $(srcdir)/PropList.txt > $@ if BUILD_LANG_STEMMER diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 6da8a308e5..d2909ba545 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -34,7 +34,7 @@ $(srcdir)/UnicodeData.txt: $(AM_V_at)test -f $@ || $(WGET) -nv -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 > $@ + $(AM_V_GEN)$(PERL) $(srcdir)/unicodemap.pl < $(srcdir)/UnicodeData.txt > $@ liblib_la_LIBADD = $(LIBUNWIND_LIBS) liblib_la_SOURCES = \