fix: invoke MKDIR_P before changing directories
authorKienan Stewart <kstewart@efficios.com>
Wed, 6 Dec 2023 18:37:47 +0000 (13:37 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Jan 2024 17:13:37 +0000 (12:13 -0500)
commite4894574874089cfa37a7a5089791f4643ecd5d1
tree1fbfd6f14fd2c5693c100220e78cf47d6599ddd7
parent862f6ced955c0b168b4a64eee124fecd782ec110
fix: invoke MKDIR_P before changing directories

In autoconf < 2.72d `AC_PROG_MKDIR_P` may fall back to using
`install-sh` and that may be referenced as a relative path.

To avoid issues with relative paths causing the command to not be
found, the build directories are created before changing the working
directory.

One way to to test the behaviour prior to this commit is to configure
the build similar to the following:

    ./configure MKDIR_P="$(realpath --relative-to="$(pwd)" \
    $(command -v mkdir))" BUILD_EXAMPLES_FROM_TREE=1

Fixes https://bugs.lttng.org/issues/1404

Change-Id: I2d66254cd8c208f9236d55c6ef1b83c580560c7c
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/Makefile.am
This page took 0.025042 seconds and 4 git commands to generate.