Stolen from upstream git. The CONFIGURE_ENV addition can be removed when the next release of inkscape happens.