In the original UNITE install script this was a double loop:

for each extramode:
     for each basic mode:
         configure with correspondig "basic mode config opts" plus "extra mode config opts"
         make install
         make clean
    done
done

Guess that should be cleanly done in an TAU easyblock, and basic and extra mode selection make configurable via configuration variables