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 | 207 | source_path=`dirname "$0"` |
208 | 208 | source_path_used="no" |
209 | 209 | workdir=`pwd` |
210 | -workdir=`readlink -f $workdir` | |
211 | 210 | if [ -z "$source_path" ]; then |
212 | 211 | source_path=$workdir |
213 | 212 | else |
214 | 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 | 214 | fi |
215 | +[ -f "$workdir/vl.c" ] || source_path_used="yes" | |
220 | 216 | |
221 | 217 | werror="no" |
222 | 218 | # generate compile errors on warnings for development builds | ... | ... |