From a2a4e6a70ec3ed860f4ef0b4da1c2851ae4a988e Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Fri, 26 Feb 2021 00:07:09 -0500 Subject: [PATCH] Include ${top_srcdir} in substituted DX_BASEDIR. As far as I can tell I've never used this feature. When I tried to use this value in a makefile it quickly failed in VPATH builds for obvious reasons. So it seems reasonable to include this make variable in the substitution so things just work. --- m4/base.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/m4/base.m4 b/m4/base.m4 index 42e8368..fd9b811 100644 --- a/m4/base.m4 +++ b/m4/base.m4 @@ -60,7 +60,8 @@ AC_DEFUN_ONCE([DX_INIT], [m4_do( [_DX_SET_BASEDIR([$1])], [AC_SUBST([DX_BASEDIR])], [AC_CONFIG_COMMANDS_PRE( - [[DX_BASEDIR]="AS_ESCAPE(m4_dquote(m4_defn([_DX_BASEDIR])))"])])]) + [[DX_BASEDIR]="\${top_srcdir}/AS_ESCAPE( + m4_dquote(m4_defn([_DX_BASEDIR])))"])])]) dnl DX_BASEDIR dnl -- 2.43.0