configure: Correctly identify flex even with non-minimal include paths
commitcca3f504b23735e3dc6c47997b49ca1b23f72c62
authorGustaf Hendeby <gustaf.hendeby@dfki.de>
Sun, 19 Sep 2010 17:39:12 +0000 (19 19:39 +0200)
committerHenrik Tidefelt <tidefelt@isy.liu.se>
Sun, 19 Sep 2010 17:46:47 +0000 (19 12:46 -0500)
treee07b5fe967216de3ea57be44653bba31f528280e
parentc3be9c6f74cfed7f6da999a622728f188ac5d27d
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>
m4/flex.m4