kripken/emscripten — pull request #733 by eclecticdave (2012-11-30 00:31:20+00:00)
Title: Fixes to emcc to make autoconf enable shared object support

Hi,

I've been attempting to compile libsha1 as a testcase for shared object support. I'm reasonably sure this used to work, but when I tried recently, the configure script disables shared object support and built it as a static library instead.

Tracking down the problem and it seems this is because the configure script is testing to see if 'emcc' when invoked as the linker is GNU ld compatible and does this by running emcc with the -v and --help options and checking the text printed in certain ways.

Specifically it expects the output of emcc -v to include the word 'GNU' and the output of emcc --help to match the regexp ': supported targets.* elf'

So I've modified the text returned by emcc for these options to make autoconf happy.