Fix building under paths with symlinks (patch from Richard Purdie).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3956 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
balrog 2008-02-03 04:22:24 +00:00
parent 1d4db89c09
commit 59faef3a48
1 changed files with 8 additions and 6 deletions

14
configure vendored
View File

@ -205,15 +205,17 @@ fi
# find source path
source_path=`dirname "$0"`
source_path_used="no"
workdir=`pwd`
workdir=`readlink -f $workdir`
if [ -z "$source_path" ]; then
source_path=`pwd`
source_path=$workdir
else
source_path=`cd "$source_path"; pwd`
fi
if test "$source_path" = `pwd` ; then
source_path_used="no"
else
source_path_used="yes"
source_path=`readlink -f $source_path`
if test "$source_path" != "$workdir" ; then
source_path_used="yes"
fi
fi
werror="no"