Skip to content

Commit

Permalink
Distinguish older version of iptables by version number.
Browse files Browse the repository at this point in the history
Distinguish isn't by presence or absence of pkgconfig (newer versions
are supposed to have it), but by version number (too).
This check is still inexact, though.
  • Loading branch information
aabc committed May 5, 2014
1 parent 171ccab commit 5b364d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ iptables_try_pkgconfig() {
PKGVER=`pkg-config --modversion xtables 2>/dev/null`
PKGINC=`pkg-config --cflags xtables`
PKGLIB=`pkg-config --variable=xtlibdir xtables`
else
elif [[ "$IPTVER" =~ ^1\.3 ]]; then
echo "! This version of iptables ($IPTVER) will be treated as old version."
# Newer versions of iptables should not have -I/kernel/include!
# So I assume that newer version will have correct pkg-config set up
# and if not, then it's older who need it.
Expand Down

0 comments on commit 5b364d0

Please sign in to comment.