On Thursday 2023-02-09 22:53, Dmitry Goncharov wrote: > >> If you try this with e.g. >> OpenBSD make, it will complain. > >That's why i asked those questions about portability. >Do i understand it correctly, that a need to support bmake forces >automake to abandon a good mechanism to rebuild depfiles?
Maybe not. autoconf is big on text substitution, and there already is an AM_MAKE_INCLUDE m4 macro to test for the type of include directive. It would probably take a new m4 macro AM_MAKE_SILENT_INCLUDE that tests for the availability of "-include", and if found, also somehow changes the rest of the depfile logic to use absent-depfiles rather than empty-depfiles.