configure: Correctly identify flex even with non-minimal include paths
For some strange reason my Ubuntu 10.10b1 has //usr/include in the gcc
search path instead of the minimal /usr/include. (This is most likely to
be considered a bug, but will be fairly wide spread once the new
Ubuntu 10.10 is released.)
This causes problems for us as we judge the validity of the Flex
installation by comparing the root of the include path of FlexLexer.h and
the root of the flex binary path. The problem is solved by comparing with
the include path stripped from //s.
Signed-off-by: Gustaf Hendeby <gustaf.hendeby@dfki.de>