bug fix for #406817 --- configure.orig 2012-02-29 19:46:41.000000000 +0400 +++ configure 2012-03-22 03:28:43.458968696 +0400 @@ -441,14 +441,13 @@ fi else if file $filearg $chklib64 | grep 'ASCII' > /dev/null 2>& 1 ; then - check_link $chklib64 - ret=$link_result - else - logmsg " file $filearg $chklib64 | grep '64-bit'" - if file $filearg $chklib64 | grep '64-bit' > /dev/null 2>& 1 ; then - ret=1 - fi + # get real binary .so name from .so ld script + chklib64=$(gawk '($1 == "GROUP") { print $3 }' $chklib64) fi + logmsg " file $filearg $chklib64 | grep '64-bit'" + if file $filearg $chklib64 | grep '64-bit' > /dev/null 2>& 1 ; then + ret=1 + fi fi logmsg " result: $ret" if test $ret -eq 1 ; then