From 4511ae310f5696a720da87bcd4385b28bab93e7e Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Tue, 2 Apr 2019 18:23:16 +0100
Subject: [PATCH] Add some notes on building from git on older host systems

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 Makefile.am                 |  1 +
 doc/Building-libcapsule.txt | 10 ++++++++++
 2 files changed, 11 insertions(+)
 create mode 100644 doc/Building-libcapsule.txt

diff --git a/Makefile.am b/Makefile.am
index b01a28000..259ea1f8b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -467,6 +467,7 @@ EXTRA_DIST             += autogen.sh
 EXTRA_DIST             += build-aux/git-version-gen
 EXTRA_DIST             += ci/Jenkinsfile
 EXTRA_DIST             += data/capsule-mkstublib
+EXTRA_DIST             += doc/Building-libcapsule.txt
 EXTRA_DIST             += doc/Strategy.txt
 EXTRA_DIST             += doc/capsule-init-project.xml
 EXTRA_DIST             += doc/capsule-mkstublib.xml
diff --git a/doc/Building-libcapsule.txt b/doc/Building-libcapsule.txt
new file mode 100644
index 000000000..db3d7c057
--- /dev/null
+++ b/doc/Building-libcapsule.txt
@@ -0,0 +1,10 @@
+Building libcapsule from git requires GNU autoconf-archive macros. The
+oldest supported version is 20180313-1 from Debian 9 'stretch'. If your
+development system or container is older, unpack or clone a suitable
+version of autoconf-archive and use commands like:
+
+   libcapsule$ ACLOCAL_PATH=/path/to/autoconf-archive/m4 NOCONFIGURE=1 ./autogen.sh
+   libcapsule$ ./configure
+   libcapsule$ make
+
+Building from tarball releases removes this requirement.
-- 
GitLab