]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Fix writing LIBDOVECOT[_DEPS] in dovecot-config
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 7 Nov 2017 16:28:37 +0000 (18:28 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 7 Nov 2017 16:28:37 +0000 (18:28 +0200)
It needs to be in a single line or DC_DOVECOT's greping doesn't work
correctly.

configure.ac

index 8fe1dafe6afb639db37708739a49424ccd51269d..154f08f83c85b10aa910f24fefb1bb9818345d46 100644 (file)
@@ -631,6 +631,10 @@ LIBDOVECOT_LA_LIBS='\
        $(top_builddir)/src/lib-dcrypt/libdcrypt.la \
        $(top_builddir)/src/lib-test/libtest.la \
        $(top_builddir)/src/lib/liblib.la'
+# This is used in dovecot-config, which is grepped in dovecot.m4,
+# so it needs to be in a single line.
+LIBDOVECOT_LA_LIBS=`echo "$LIBDOVECOT_LA_LIBS" | tr -d '\t\n\\\\'`
+
 if test "$want_shared_libs" = "yes"; then
   LIBDOVECOT_DEPS='$(top_builddir)/src/lib-dovecot/libdovecot.la'
   LIBDOVECOT="$LIBDOVECOT_DEPS \$(MODULE_LIBS)"