}
# func_relative_path SRCDIR DSTDIR
-# generates a relative path from SRCDIR to DSTDIR, with a trailing
-# slash if non-empty, suitable for immediately appending a filename
-# without needing to append a separator.
+# generates a relative path from SRCDIR to DSTDIR.
# value returned in "$func_relative_path_result"
func_relative_path ()
{
fi
# Normalisation. If bindir is libdir, return empty string,
- # else relative path ending with a slash; either way, target
- # file name can be directly appended.
+ # else relative path.
if test ! -z "$func_relative_path_result"; then
- func_stripname './' '' "$func_relative_path_result/"
+ func_stripname './' '' "$func_relative_path_result"
func_relative_path_result=$func_stripname_result
fi
}
if test "x$bindir" != x ;
then
func_relative_path "$install_libdir" "$bindir"
- tdlname=$func_relative_path_result$dlname
+ tdlname=$func_relative_path_result/$dlname
else
# Otherwise fall back on heuristic.
tdlname=../bin/$dlname