Directory settings must reflect the --preserve-prefix flag. There is no value in checking if /usr exists if I specify --preserve-prefix --prefix=/usr , since everything is going to be built into staging directory anyway.
Move directory parameters evaluation out of option parsing.
Move the logic into #set_filesystem_paths, since there is not
enough information to correctly evaluate the parameters earlier.
Don't modify paths if --preserve-prefix option is used.
All compilation output goes into staging directory in this case. There
is no reason to check if there is some colision with some existing
directories in this case.
Your PR doesn't work. See Travis results.
Don't crash when no prefix is specified.
Sorry ... should not send PR at Friday :) Should be fixed now.