do
case "$possible" in
*.la)
-- if grep -iq '^# Generated by ltmain.sh' "$possible" 2> /dev/null ; then
+- if grep -Eiq '^# Generated by (libtool|ltmain.sh)' "$possible" 2> /dev/null ; then
+ if file -L "$possible" | grep -iq 'libtool library file' 2> /dev/null ; then
possible="`echo ${possible} | sed -e s,${RPM_BUILD_ROOT}/,/,`"
echo "libtool($possible)"