Thanks for trying this. Unfortunately, the error occurs after the configure script complains about not finding liblouis. I have liblouis compiled, of course, and I have adjusted the PKG_CONFIG_PATH Configure then tries to make the Makefile and produces the wrird error message. I think nobody will have the time to look into this, so i'll just move to another distro for C development.
I have found the problem, and liblouisutdml does actually build fine.
The environment is not the problem, but the source files.