]> git.draconx.ca Git - gob-dx.git/commitdiff
Bump dxcommon to pull in build portability improvements.
authorNick Bowler <nbowler@draconx.ca>
Sun, 14 Mar 2021 18:20:21 +0000 (14:20 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sun, 14 Mar 2021 18:53:07 +0000 (14:53 -0400)
Makefile.am
bootstrap
common
tests/general.at

index 84a4d9560fb7e97b3335d4f5e9a2d26ed2e30e55..6422661b0af27a662b706b8440d00107efbcf5f6 100644 (file)
@@ -130,12 +130,17 @@ uninstall-gob2-html:
 m4dir = $(datadir)/aclocal
 m4_DATA = gob2.m4
 
-gob2.m4: $(top_srcdir)/common/m4/gob2.m4
-       $(AM_V_GEN) $(SED) 's/DX_PROG_GOB2/GOB2_CHECK/g' \
-         $(top_srcdir)/common/m4/gob2.m4 >$@.tmp
+gob2.m4: $(DX_BASEDIR)/m4/gob2.m4 $(DX_BASEDIR)/m4/basename.m4
+       $(AM_V_GEN) :; { \
+         $(SED) -e 's/DX_PROG_GOB2/GOB2_CHECK/g' \
+                -e 's/DX_BASENAME/GOB2_BASENAME/g' \
+                $(DX_BASEDIR)/m4/gob2.m4 && echo && \
+         $(SED) -e 's/DX_/GOB2_/g' -e 's/dx_fn_/gob2_fn_/g' \
+                $(DX_BASEDIR)/m4/basename.m4; \
+       } >$@.tmp
        $(AM_V_at) mv -f $@.tmp $@
 DISTCLEANFILES += gob2.m4
-EXTRA_DIST += common/m4/gob2.m4
+EXTRA_DIST += $(DX_BASEDIR)/m4/gob2.m4 $(DX_BASEDIR)/m4/basename.m4
 
 git_changelog_start = 2cd951c678998b2b0230c8eb25717ecf0f1dd2db
 dist-hook: generate-changelog
index b5c58568f14aa52dfe6dc49bee64668054f89436..4b7c11dca79b453c9fc4a91f23e66207ce4e423f 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -40,6 +40,12 @@ fi
 $PERL common/scripts/fix-gnulib.pl -o lib/gnulib.mk -i lib/gnulib.mk.in ||
   die "Failed to fixup Gnulib makefile fragment."
 
+# Rewrite if ! ... construts produced by gnulib conditional dependencies
+# as these fail in heirloom-sh.
+sed 's/if ! *\(.*gnulib_enabled[^;]*\); then/if \1; then :; else/' \
+  m4/gnulib-comp.m4 >m4/gnulib-comp.m4.new || exit
+mv -f m4/gnulib-comp.m4.new m4/gnulib-comp.m4 || exit
+
 # Punt some automake-generated files so that Gentoo's wrapper script
 # doesn't try to detect the automake version in use.
 rm -f Makefile.in aclocal.m4
diff --git a/common b/common
index 1688bad1e5dc89cacf33bc426c92a4abf2bc0647..aa6ab453c6ff523a4d8538554c068117f2de3aca 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 1688bad1e5dc89cacf33bc426c92a4abf2bc0647
+Subproject commit aa6ab453c6ff523a4d8538554c068117f2de3aca
index d7be50244874f9e03f215e5865afc79ce943f87c..624af5a9a8199e09e0a98a32bae22c55dfacde47 100644 (file)
@@ -190,6 +190,7 @@ AT_DATA([test.in], [[@GOB2@
 cat >configure.ac <<EOF
 [m4@&t@_include([$builddir/gob2.m4])]
 [m4@&t@_pattern_forbid([^GOB2_])]
+[m4@&t@_pattern_forbid([^DX_])]
 [AC_INIT([gob2_check], [0])]
 [GOB2_CHECK(]m4_dquote(m4_defn([MYVER]))[)]
 GOB2=\`command -v \$GOB2\`