diff options
author | Li Wei <lw@cn.fujitsu.com> | 2012-08-20 09:41:47 +0800 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2012-08-20 09:01:16 -0700 |
commit | da7fbb24c70ce8bf9b1b033772ba53e5081ead49 (patch) | |
tree | 007d7ff1659955a17b735dbb30fd80bb8e3f7db5 /configure | |
parent | 083b46bbe919bc9f7437ff0e9b4216779d37508b (diff) |
iproute2: configure: Add search path for 64bit library.
Use pkg-config to tell us the library path and fallback to search
old paths if xtables.pc not exists.
Signed-off-by: Li Wei <lw@cn.fujitsu.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -148,7 +148,13 @@ check_ipt() check_ipt_lib_dir() { - IPT_LIB_DIR="" + IPT_LIB_DIR=$(pkg-config --variable=xtlibdir xtables) + if [ -n "$IPT_LIB_DIR" ]; then + echo $IPT_LIB_DIR + echo "IPT_LIB_DIR:=$IPT_LIB_DIR" >> Config + return + fi + for dir in /lib /usr/lib /usr/local/lib do for file in $dir/{xtables,iptables}/lib*t_*so ; do |