Robustify source directory check.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3960 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
pbrook 2008-02-03 19:20:13 +00:00
parent 0115be31ce
commit 724db11840

6
configure vendored
View File

@ -207,16 +207,12 @@ fi
source_path=`dirname "$0"` source_path=`dirname "$0"`
source_path_used="no" source_path_used="no"
workdir=`pwd` workdir=`pwd`
workdir=`readlink -f $workdir`
if [ -z "$source_path" ]; then if [ -z "$source_path" ]; then
source_path=$workdir source_path=$workdir
else else
source_path=`cd "$source_path"; pwd` source_path=`cd "$source_path"; pwd`
source_path=`readlink -f $source_path`
if test "$source_path" != "$workdir" ; then
source_path_used="yes"
fi
fi fi
[ -f "$workdir/vl.c" ] || source_path_used="yes"
werror="no" werror="no"
# generate compile errors on warnings for development builds # generate compile errors on warnings for development builds