diff -Naur sane-backends-1.0.18.orig/tools/libtool-get-dll-ext sane-backends-1.0.18/tools/libtool-get-dll-ext --- sane-backends-1.0.18.orig/tools/libtool-get-dll-ext 2000-08-12 17:11:45.000000000 +0200 +++ sane-backends-1.0.18/tools/libtool-get-dll-ext 2006-07-06 15:28:08.000000000 +0200 @@ -13,7 +13,7 @@ lafile=$1 libnames=`grep library_names= $lafile` -last=`echo $libnames | cut -d\' -f2|tr " " "\n"|tail -1` +last=`echo $libnames | cut -d\' -f2|tr " " "\n"|tail -n 1` dllend=`echo $last | cut -d. -f2` echo $dllend