diff --git a/configure b/configure index 69797ab2..0795df85 100755 --- a/configure +++ b/configure @@ -3,8 +3,6 @@ # INCLUDE=${1:-"$PWD/include"} -TABLES= - check_atm() { cat >/tmp/atmtest.c < /dev/null then echo "using iptables" - TABLES="iptables" - else - TABLES="xtables" fi } @@ -152,10 +147,10 @@ check_ipt_lib_dir() IPT_LIB_DIR="" for dir in /lib /usr/lib /usr/local/lib do - for file in $dir/$TABLES/lib*t_*so ; do + for file in $dir/{xtables,iptables}/lib*t_*so ; do if [ -f $file ]; then - echo $dir/$TABLES - echo "IPT_LIB_DIR:=$dir/$TABLES" >> Config + echo ${file%/*} + echo "IPT_LIB_DIR:=${file%/*}" >> Config return fi done