suffixed with version properly.
* Sometimes soname of a shlib is overriden to contain extra version. If
it's build by libtool, .la still has basename w/o suffix. This fix recognizes
such case, and handles shlib installation properly (via libtool).
* Example of this is smpeg_0.4.4+0.4.5cvs20040311 which builds libsmpeg-0.4,
while still being linked as -lsmpeg.
Fixes #1389.
__runcmd cd $dir
lafile=$libname.la
+
+ # If such file doesn't exist, try to cut version suffix
+ if [ ! -f "$lafile" ]; then
+ libname=`echo "$libname" | sed 's/-[0-9.]*$//'`
+ lafile=$libname.la
+ fi
+
if [ -f "$lafile" ]; then
# libtool archive
eval `cat $lafile|grep "^library_names="`