Finally I solved the problem:
I had flex 2.5.37 installed locally (I have no admin rights)
but the command 'lex' was still linked to the old flex 2.5.31 version.
So I was using way too old versions of flex and bison and there is no bug in
automake.
Although it would be helpful if configure
Weird, it seems Flex is not respecting the YY_NO_UNISTD_H #define
given in 'parsefoo.lxx'. Which version of Flex are you using?
flex --version
flex 2.5.31
Helmholtz-Zentrum Geesthacht
Zentrum für Material- und Küstenforschung GmbH
Max-Planck-Straße 1 I 21502 Geesthacht I Deutschland/Germany
bison v2.4 solved the problem:
PASS: t/yacc-bison-skeleton-cxx.sh
However I still get 2 FAILS from lex-clean-cxx and lex-depend-cxx
(using flex 2.5.37 now)
+ cp config.status config.sav
+ make
c++ -DPACKAGE_NAME=\lex-clean-cxx\ -DPACKAGE_TARNAME=\lex-clean-cxx\
-DPACKAGE_VERSION=\1.0\