e24efcf
--- configure.orig	2007-08-18 09:42:40.000000000 +0200
e24efcf
+++ configure	2007-08-18 09:44:10.000000000 +0200
e24efcf
@@ -8525,14 +8525,14 @@
ae0d4ed
 fi
ae0d4ed
 
ae0d4ed
 
ae0d4ed
-      as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
ae0d4ed
-{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
ae0d4ed
-echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
ae0d4ed
+      as_ac_var=`echo "ac_cv_cflags_-fPIC" | $as_tr_sh`
ae0d4ed
+{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC" >&5
7f72505
+echo $ECHO_N "checking whether the compiler supports -fPIC $ECHO_C" >&6; }
ae0d4ed
 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6e0fcb5
   echo $ECHO_N "(cached) $ECHO_C" >&6
6e0fcb5
 else
6e0fcb5
   ac_wine_try_cflags_saved=$CFLAGS
6e0fcb5
-CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6e0fcb5
+CFLAGS="$CFLAGS -fPIC"
6e0fcb5
 cat >conftest.$ac_ext <<_ACEOF
6e0fcb5
 /* confdefs.h.  */
6e0fcb5
 _ACEOF
e24efcf
@@ -8582,8 +8582,8 @@
ae0d4ed
 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
ae0d4ed
 echo "${ECHO_T}$ac_res" >&6; }
ae0d4ed
 if test `eval echo '${'$as_ac_var'}'` = yes; then
b01fa57
-  LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
b01fa57
-                       LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
b01fa57
+  LDRPATH_INSTALL=""
e24efcf
+  LDRPATH_LOCAL=""
7f72505
 else
e24efcf
   as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,-R,\$ORIGIN/../lib" | $as_tr_sh`
e24efcf
 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
e24efcf
--- configure.ac.orig	2007-08-18 09:44:15.000000000 +0200
e24efcf
+++ configure.ac	2007-08-18 09:44:46.000000000 +0200
e24efcf
@@ -439,13 +439,6 @@
ae0d4ed
       WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],
ae0d4ed
                       [AC_SUBST(LDEXECFLAGS,["-Wl,--export-dynamic"])])
6e0fcb5
 
ae0d4ed
-      WINE_TRY_CFLAGS([-fPIC -Wl,--rpath,\$ORIGIN/../lib],
b01fa57
-                      [LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
b01fa57
-                       LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"],
7f72505
-          [WINE_TRY_CFLAGS([-fPIC -Wl,-R,\$ORIGIN/../lib],
b01fa57
-                           [LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
b01fa57
-                            LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"])])
6e0fcb5
-
e24efcf
       WINE_TRY_CFLAGS([-Wl,--enable-new-dtags],
e24efcf
                       [LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"])
e24efcf