summaryrefslogtreecommitdiff
path: root/recipes/qemu/qemu-0.9.1+svn/configure_symlinkpath_fix.patch
blob: 3ec304a38c9e83144b6fe9faa61609a3969fce5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Index: qemu-0.9.1/configure
===================================================================
--- qemu-0.9.1.orig/configure	2008-01-24 15:33:13.000000000 +0000
+++ qemu-0.9.1/configure	2008-01-24 15:45:50.000000000 +0000
@@ -209,15 +209,17 @@
 
 # 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"