The configure part is more messy than I had hoped for. One can not just specify @VARIABLE_THAT_HAS_SOURCES@, I need to go through the every backend and add the sourcecode.