Johannes,
PR 1149 has been merged. That means that the incdir.c program has now
been incorporated into the build system. It all checks out: I have
pretty thoroughly verified it on Cygwin and Abdelatif and Alan Carvalho
de Assis have checked it out well on Linux. The PR also passes all of
the PR build checks which verifies that it works correctly with Linux
and macOS.
The only untested platform is MSYS and there could very well be issues
there. I have MSYS2 installed on two systems. I tried testing on my
laptop tonight but there is something screwed up in the MSYS2
installation. I have both MSYS2 and Cygwin installed and I am thinking
that when I build with Cygwin , it messes up the MSYS2 configuration
(and vice versa). They share the same repository files. I am not sure
what is going on but I was not able to verify on MSYS2. I will try
again on my desktop in the morning.
If you find problems, you can be pretty much assured that the problem is
in tools/incdir.c and I will work with you to resolve any issues that
you run across. If you do have problems, try using 'make V=1'. That
will show us the arguments to and the output from incdir.exe.
Greg