Adds support for specifying debug, release, relwithdebuginfo or minsizerel during configure step