summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-09-24 23:37:34 +0200
committerStephen Hemminger <shemminger@vyatta.com>2012-01-03 15:05:25 -0800
commitd7aa57d450b2b651e9115d5d9ad6bf0f433798da (patch)
treeca740d64f589ae25d20ec37412bb4ef13e220a08 /configure
parent6c513a006174e551552022405d677a897db78652 (diff)
iproute2: proper detection of libxtables position and flags
Upstream: not sent yet Any tests involving iptables _MUST_ utilize pkg-config to find the proper locations of the installation.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index f5c3d405..09a69876 100755
--- a/configure
+++ b/configure
@@ -47,7 +47,7 @@ int main(int argc, char **argv)
EOF
-if gcc -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl -lxtables >/dev/null 2>&1
+if gcc -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL $(pkg-config xtables --cflags --libs) -ldl >/dev/null 2>&1
then
echo "TC_CONFIG_XT:=y" >>Config
echo "using xtables"