Hello, I don't know how to change the code, but it seems to be caused by difference between Solaris lex & flex (flex 2.6.4). make check passes if flex has priority over lex.
What I tried is: $ sudo mv /usr/bin/lex /usr/bin/lex- $ ./configure --prefix=/opt/local CC=gcc CXX=g++ $ make $ make -k check : PASS: t/lex-clean-cxx.sh PASS: t/lex-depend-cxx.sh : ============================================================================ Testsuite summary for GNU Automake 1.16.3 ============================================================================ # TOTAL: 2977 # PASS: 2823 # SKIP: 115 # XFAIL: 39 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============================================================================ $ sudo mv /usr/bin/lex- /usr/bin/lex Regards,