Allow passing extra flags to configure with depends builds.
Merge pull request #3810 from t-nelson/depends_config_extra

Allow passing extra flags to configure with depends builds.