Use /bin/bash instead of /bin/sh in autogen.sh.