--- libtool.m4	2007-12-18 14:23:15.078125000 +0100
+++ libtool.m4.new	2007-12-18 14:11:19.031250000 +0100
@@ -1987,6 +1987,7 @@
 finish_cmds=
 finish_eval=
 shlibpath_var=
+shlib_search_prefix='lib$name'
 shlibpath_overrides_runpath=unknown
 version_type=none
 dynamic_linker="$host_os ld.so"
@@ -2110,6 +2111,7 @@
     cygwin*)
       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+      shlib_search_prefix='lib$name cyg$name $name'
       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
       ;;
     mingw*)
@@ -2131,6 +2133,7 @@
     pw32*)
       # pw32 DLLs use 'pw' prefix rather than 'lib'
       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+      shlib_search_prefix='lib$name pw$name $name'
       ;;
     esac
     ;;
