>From abc71e35fb0fe44cb5ec8e8d31030833310b62be Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Thu, 23 Jul 2015 15:43:30 +0200 Subject: [PATCH] Document that AC_SUBST can break dependencies If configure.ac contains AC_SUBST([FOO_LIB], ['libfoo.la']) and Makefile am contains myprogram_LDADD = $(FOO_LIB) the dependency checker is not capable to detect such dependency, and parallel build could be broken. Document this behavior, reported in bug #21106. Signed-off-by: Stanislav Brabec --- doc/automake.texi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/automake.texi b/doc/automake.texi index ecfbbc8..efd8d74 100644 --- a/doc/automake.texi +++ b/doc/automake.texi @@ -3076,6 +3076,11 @@ this way, e.g., @code{AC_PATH_XTRA} defines @code{X_CFLAGS} and @code{$(X_CFLAGS)} and @code{$(X_LIBS)} in any @file{Makefile.am} if @code{AC_PATH_XTRA} is called. +The substituted value should not contain names of any generated files, +as dependency checker is not able to evaluate them. If you need such +assignment, use @code{AM_CONDITIONAL} and assign a proper value in address@hidden + @item AM_CONDITIONAL This introduces an Automake conditional (@pxref{Conditionals}). -- 2.4.5