+2008-01-21 Peter O'Gorman <peter@pogma.com>
+
+ * ltmain.in [darwin]: look in libdir for dependent libraries, the .la
+ file may have been moved.
+ Reported by Benjamin Reed <ranger@befunk.com>
+
2008-01-21 Bruno Haible <bruno@clisp.org>
* ltmain.in (lt_env): New variable. Use it when running commands.
# we do not want to link against static libs,
# but need to link against shared
eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+ eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
if test -n "$deplibrary_names" ; then
for tmp in $deplibrary_names ; do
depdepl=$tmp
done
- if test -f "$path/$depdepl" ; then
+ if test -f "$deplibdir/$depdepl" ; then
+ depdepl="$deplibdir/$depdepl"
+ elif test -f "$path/$depdepl" ; then
depdepl="$path/$depdepl"
+ else
+ # Can't find it, oh well...
+ depdepl=
fi
# do not add paths which are already there
case " $newlib_search_path " in