Created attachment 475110 [details, diff]
patch to allow building with dash as /bin/sh
The configure script relies on bash being /bin/sh, otherwise a sed fails due to reliance on bashisms ("unterminated s command") and aborts the build.
Building with /bin/sh -> dash can be fixed by adding "sed -i 's/\/bin\/sh/\/bin\/bash/' configure" to src_prepare() in the ebuild, or by applying the attached patch which replaces references to /bin/sh in the script with /bin/bash.
Are you still able to reproduce this? If so, please attach the build log and the output of emerge --info. I tried against dash-0.5.11.2 and a few other sh(1) implementations but could not get it to fail.