Commit 724db11840576deb3504aad7cfca06bf1e997799
1 parent
0115be31
Robustify source directory check.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3960 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
5 deletions
configure
@@ -207,16 +207,12 @@ fi | @@ -207,16 +207,12 @@ fi | ||
207 | source_path=`dirname "$0"` | 207 | source_path=`dirname "$0"` |
208 | source_path_used="no" | 208 | source_path_used="no" |
209 | workdir=`pwd` | 209 | workdir=`pwd` |
210 | -workdir=`readlink -f $workdir` | ||
211 | if [ -z "$source_path" ]; then | 210 | if [ -z "$source_path" ]; then |
212 | source_path=$workdir | 211 | source_path=$workdir |
213 | else | 212 | else |
214 | source_path=`cd "$source_path"; pwd` | 213 | source_path=`cd "$source_path"; pwd` |
215 | - source_path=`readlink -f $source_path` | ||
216 | - if test "$source_path" != "$workdir" ; then | ||
217 | - source_path_used="yes" | ||
218 | - fi | ||
219 | fi | 214 | fi |
215 | +[ -f "$workdir/vl.c" ] || source_path_used="yes" | ||
220 | 216 | ||
221 | werror="no" | 217 | werror="no" |
222 | # generate compile errors on warnings for development builds | 218 | # generate compile errors on warnings for development builds |