$ git clone git://anongit.freedesktop.org/mesa/mesa
$ cd mesa
$ ./autogen.sh --prefix=$WLD --enable-gles2 --disable-gallium-egl \
--with-egl-platforms=x11,wayland,drm --enable-gbm --enable-shared-glapi
$ echo $?
yacc -v -o "glcpp/glcpp-parse.c" --defines=glcpp/glcpp-parse.h glcpp/glcpp-parse.y
yacc: e - line 144 of "glcpp/glcpp-parse.y", syntax error
I then purged byacc and installed bison and everything went fine.
So the configuration script should fail with byacc, shouldn't it?
Bison is definitely required, so yes, configure ought to detect that and fail. We should fix that.
Fixed with http://cgit.freedesktop.org/mesa/mesa/commit/?id=b68b85224d38fe9c1f6e10af338e1ff2519e689b