]> git.draconx.ca Git - dxcommon.git/commitdiff
Include ${top_srcdir} in substituted DX_BASEDIR.
authorNick Bowler <nbowler@draconx.ca>
Fri, 26 Feb 2021 05:07:09 +0000 (00:07 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 26 Feb 2021 05:07:09 +0000 (00:07 -0500)
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

index 42e836850eec96e46df21bf3363dda155a9ef1d6..fd9b8115533cce431510abd3d27d23122edb29b9 100644 (file)
@@ -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