History

configure: support absolete out-of-tree builds

Akim Demaille committed 13 years ago

Commit 017bbbf1 parent d7264e02 files · +10 −5Browse files

Unified · Split

2 files
  1. README +2 −2
  2. configure +8 −3
README+2−2
@@ -35,8 +35,8 @@ Documentation: · 34 unmodified lines
3535 make test
3636 make install
3737
38−Alternatively, VPATH builds are supported: you may use different
39−directories to old build objects, kept separate from your source tree:
38+Alternatively, out-of-tree builds are supported: you may use different
39+directories to hold build objects, kept separate from your source tree:
4040
4141 mkdir _build
4242 cd _build
configure+8−3
@@ -502,9 +502,14 @@ if test "$source_path_used" = "yes" ; then · 501 unmodified lines
502502 for f in $FILES ; do
503503 dir=`fn_dirname "$f"`
504504 test -d "$dir" || mkdir -p "$dir"
505− back=`echo "$source_path/$dir/" | sed 's,/\./,/,g;s,[^/]*/,../,g'`
506− back=$back$f
507− ln -sf $back $f
505+ # Build a symlink $f that points to $dest, its $source_path
506+ # counterpart.
507+ case $source_path in
508+ /*) dest=$source_path/$f;;
509+ *) dest=`echo "$source_path/$dir/" | sed 's,/\./,/,g;s,[^/]*/,../,g'`
510+ dest=$dest$f;;
511+ esac
512+ ln -sf $dest $f
508513 done
509514 fi
510515 cat >>config.mak <<EOF

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t