Fib bug #2903, "key 'C' mention harcoded in string"
[claws.git] / autogen.sh
old mode 100644 (file)
new mode 100755 (executable)
index 33afc82..33d10c5
@@ -55,7 +55,11 @@ if [ "$bisonver" = "" ]; then
        exit 1
 fi
 
-flexver=`flex --version|sed "s/.* //"`
+if [ "$LEX" != "" ]; then
+       flexver=`$LEX --version|sed "s/.* //"`
+else
+       flexver=`flex --version|sed "s/.* //"`
+fi
 
 if [ "$flexver" = "" ]; then
        echo Flex 2.5.31 or greater is needed to compile Claws Mail CVS