#1011024 autoconf: if 0, SUBDIRS = a distributes EXTRA_DIST; if 0, include a/Makefile.am doesn't

#1011024#5
Date:
2022-05-15 15:23:33 UTC
From:
To:
Dear Maintainer,

When SUBDIRS =ed in a false conditional, a subdirectory's:
  * program sources
  * EXTRA_DIST
end up in make dist.

When included in a false conditional, a Makefile.am's:
  * program sources
end up in make dist, but EXTRA_DIST is ignored.

That is, given [1] with the only diff being SUBDIRS/include [2],
the diff of tar -taf is
  diff --git a/SUBDIRS.tar.gz.list b/include.tar.gz.list
  index ea08d75..c938d6d 100644
  --- a/SUBDIRS.tar.gz.list
  +++ b/include.tar.gz.list
  @@ -1,10 +1,8 @@
   report-0.0.0/
   report-0.0.0/a/
   report-0.0.0/a/amongus.c
  -report-0.0.0/a/amongus.jpeg
   report-0.0.0/aclocal.m4
   report-0.0.0/a/Makefile.am
  -report-0.0.0/a/Makefile.in
   report-0.0.0/compile
   report-0.0.0/config.guess
   report-0.0.0/config.sub

With SUBDIRS =, the only CONFIG_FALSE-dependent line is
  @CONFIG_FALSE@SUBDIRS = a
in Makefile.in; with include, there's
  @CONFIG_FALSE@a_PROGRAMS = a/amongus$(EXEEXT)
  @CONFIG_FALSE@adir = /
  @CONFIG_FALSE@EXTRA_DIST = a/amongus.jpeg
the first two are correct, the third isn't.

Best,
наб

This is a forward of OpenZFS bug #13459:
https://github.com/openzfs/zfs/issues/13459

#1011024#10
Date:
2022-05-15 17:45:42 UTC
From:
To:
This also affects dist_[dir]_MANS, via
  DISTFILES -> DIST_COMMON -> am__DIST_COMMON -> dist_man_MANS