From: Li Wei Date: Mon, 20 Aug 2012 01:41:47 +0000 (+0800) Subject: iproute2: configure: Add search path for 64bit library. X-Git-Tag: v3.6.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da7fbb24c70ce8bf9b1b033772ba53e5081ead49;p=thirdparty%2Fiproute2.git 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 --- diff --git a/configure b/configure index a1916ded0..db7cd6a88 100755 --- a/configure +++ b/configure @@ -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