Resolve ~ in path to home directory
I also had to run autoreconf -vfi before running make. Otherwise I got an error about missing depcomp. And I had to copy config.guess from somewhere (e.g. /usr/share/automake-1.15/ on my system).
Segfaults on Ubuntu 18.04
To fix this, copy config.guess from somewhere else into the directory where you build weex. See https://www.gnu.org/software/gettext/manual/html_node/config_002eguess.html. For example, on my Ubuntu 18.04 system, it's in /usr/share/automake-1.15/config.guess.