[netfilter-cvslog] [conntrack-tools] add flex version warning (better with >= 2.5.33)

Pablo Neira netfilter-cvslog-bounces at lists.netfilter.org
Thu May 22 15:13:57 CEST 2008


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=conntrack-tools.git;a=commit;h=ed50c346126f5385163d03bc9639d28ead6c8536
commit ed50c346126f5385163d03bc9639d28ead6c8536
Author:     Pablo Neira Ayuso <pablo at netfilter.org>
AuthorDate: Thu May 22 15:01:08 2008 +0200
Commit:     Pablo Neira Ayuso <pablo at netfilter.org>
CommitDate: Thu May 22 15:01:08 2008 +0200

    add flex version warning (better with >= 2.5.33)
       via  ed50c346126f5385163d03bc9639d28ead6c8536 (commit)
      from  5f19f9a20d4bde74e2f95a670d766fc98c7d8684 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ed50c346126f5385163d03bc9639d28ead6c8536
Author: Pablo Neira Ayuso <pablo at netfilter.org>
Date:   Thu May 22 15:01:08 2008 +0200

    add flex version warning (better with >= 2.5.33)

-----------------------------------------------------------------------

 ChangeLog    |    1 +
 configure.in |   15 +++++++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e0a02a7..2d4f332 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ o remove .svn directory from make distcheck tarballs (reported by B.Benjamini)
 o fix minor compilation issue in amd64 with gcc4.3 (reported by Daniel Schepler)
 o update manpages with the new URL: http://conntrack-tools.netfilter.org
 o check for pkg-config at configure stage
+o add flex version warning (better with >= 2.5.33)
 
 = conntrack =
 o fix minor compilation warning (Krzysztof Oledzki)
diff --git a/configure.in b/configure.in
index f3b8785..0a6b8fe 100644
--- a/configure.in
+++ b/configure.in
@@ -49,6 +49,21 @@ then
 	exit 1
 fi
 
+AC_MSG_CHECKING(flex version)
+flex_version=`$LEX --version | sed 's/version//g' | awk '/flex/ {print $2}'`
+flex_major=`echo $flex_version| cut -d . -f 1`
+flex_minor=`echo $flex_version| cut -d . -f 2`
+flex_rev=`echo $flex_version| cut -d . -f 3`
+ 
+if test "$flex_major" -eq "2" && test "$flex_minor" -eq "5" && test "$flex_rev" -ge "33"; then
+	AC_MSG_RESULT([$flex_version. OK])
+else
+	AC_MSG_WARN([flex version $flex_version found.
+	Version 2.5.33 or greater is required. You may experience problems
+	while compilating the conntrack-tools. Please, consider to upgrade 
+	flex.])
+fi
+
 AC_CHECK_HEADERS([linux/capability.h],, [AC_MSG_ERROR([Cannot find linux/capabibility.h])])
 
 # Checks for libraries.



More information about the netfilter-cvslog mailing list