I have tried that now. It works for me.
I have added --disable-cli to my autogen.input and now the build finishes. Hurray!
Thank you for guiding me to a successful build. Perhaps build instructions for getting Collabora Office Classic with WSL2 could be added and an introductions page, that explains the different versions of Collabora Office?