Skip to content

Conversation

@vector-of-bool
Copy link

This changeset modifies an AC_CONFIG_FILES directive to configure some of mongoc's files using relative paths. IIUC, using relative paths (instead of absolute ones) will make it read the file relative to the configure script, but write the file with the same name relative to the $PWD of the configure execution. This allows the configure script to leave the source tree more pristine.

To support this, the directories that are (possibly) generated by AC_CONFIG_FILES needs to be added as #include search paths. (The search directories are added based on $PWD, which feels somewhat brittle (is there a better autotools/autoconf variable to be used here? I couldn't seem to make it work otherwise.).)

(I'm not sure if there is an existing relevant Jira ticket for out-of-source build support tasks, so I created PHPC-2647 for this.)

When doing an out-of-source build, certain generated
headers are written into the build tree. The directories containing
these headers need to be added as #include search paths for the build
to succeed.
@vector-of-bool vector-of-bool requested a review from a team as a code owner October 30, 2025 22:24
@vector-of-bool vector-of-bool requested review from jmikola and removed request for a team October 30, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant