]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tests/unit_tests: Fix 'make distcheck' with subdir-objects enabled
authorFrank Lichtenheld <frank@lichtenheld.com>
Wed, 8 Mar 2023 15:07:04 +0000 (16:07 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 9 Mar 2023 19:18:31 +0000 (20:18 +0100)
commit838474145933199a62d1f59fbc2df14e4fbd57f3
treed3613ef7fc6f569e0d03e64ddf1941ab02c17f06
parent85832307fcb41c229ccb7ba83984726757eb32f7
tests/unit_tests: Fix 'make distcheck' with subdir-objects enabled

Commit 7f72abcf8a56bb35a510a3409e03a4e2aaba50da enabled subdir-objects
when using automake 1.16+.

There is an issue with the handling of .deps directories with this option.
While automake 1.16 fixed subdir-objects to work at all when _SOURCES
contains "unexpanded references" and it did fix subdir-objects to work
with out-of-tree build for "source files specified with an explicit
'$(srcdir)'" those fixes are not transitive. "unexpanded references"
still break out-of-tree builds when enforcing a read-only source dir
like 'make distcheck' does. When using *explicit* references to
srcdir and top_srcdir it works correctly.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: <20230308150704.128797-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26352.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/unit_tests/openvpn/Makefile.am
tests/unit_tests/plugins/auth-pam/Makefile.am