Fix out-of-tree build with relative path to root

Fix path of Makefile symlinks in a out-of-tree build where the root
directory of the source is given as a relative path.
master
Thomas Preud'homme 2013-01-14 18:18:27 +01:00
parent a4e630c7d9
commit f7b417723e
1 changed files with 2 additions and 2 deletions

4
configure vendored
View File

@ -506,8 +506,8 @@ if test "$source_path_used" = "yes" ; then
# counterpart.
case $source_path in
/*) dest=$source_path/$f;;
*) dest=`echo "$source_path/$dir/" | sed 's,/\./,/,g;s,[^/]*/,../,g'`
dest=$dest$f;;
*) dest=`echo "$dir/" | sed 's,^\./,,;s,[^/]*/,../,g'`
dest=$dest$source_path/$f;;
esac
ln -sf $dest $f
done