From: pbrook Date: Sun, 3 Feb 2008 19:20:13 +0000 (+0000) Subject: Robustify source directory check. X-Git-Tag: xen-3.3.0-rc1~400 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=724db11840576deb3504aad7cfca06bf1e997799;p=qemu-xen-3.4-testing.git Robustify source directory check. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3960 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/configure b/configure index 4e4ec650..65016b2e 100755 --- a/configure +++ b/configure @@ -207,16 +207,12 @@ fi source_path=`dirname "$0"` source_path_used="no" workdir=`pwd` -workdir=`readlink -f $workdir` if [ -z "$source_path" ]; then source_path=$workdir else source_path=`cd "$source_path"; pwd` - source_path=`readlink -f $source_path` - if test "$source_path" != "$workdir" ; then - source_path_used="yes" - fi fi +[ -f "$workdir/vl.c" ] || source_path_used="yes" werror="no" # generate compile errors on warnings for development builds