dinit
dinit copied to clipboard
configure: add a mechanism to check if a header can be used
We do not usually accept feature requests, please see the README. You may open a feature request if you are a distribution/package maintainer and have a clear need for the feature, or if you are willing to develop the feature yourself and would like to discuss it first.
Your background
I'm currently a maintainer and I want to improve user experience with configure script.
The problem
Currently configure just disables linux/ioprio.h header usage because it may not be available. I think this is not very nice to be default and can be improved.
The solution
I want to add check_header() function to configure to be used in this case, which does:
- Create a file with requested header
- Compile it to see if it compiles
- returns success otherwise failure based on compiler result
Additional context
Sounds ok in principle.
"Fixes #issue" in the PR description was supposed to close this issue. Anyway, fixed by https://github.com/davmac314/dinit/commit/1c88395c9ecb343531ff7f01e5394084822f4d2d
"Fixes #issue" in the PR description was supposed to close this issue
I disabled that functionality as it can result in incorrectly closed issues.