tools: bootstrap libtool to pickup the correct in-tree automake
[openwrt/staging/yousong.git] / tools / libtool / patches / 000-relocatable.patch
index c36b806584ad06d604cc2243b729abd82b2228ae..fcc07f2790665dc4d48ec2b890a2004a02504891 100644 (file)
@@ -1,11 +1,15 @@
 --- a/libltdl/config/general.m4sh
 +++ b/libltdl/config/general.m4sh
-@@ -53,7 +53,7 @@ test "${ECHO+set}" = set || ECHO=${as_ec
+@@ -53,7 +53,11 @@ test "${ECHO+set}" = set || ECHO=${as_ec
  : ${MKDIR="mkdir"}
  : ${MV="mv -f"}
  : ${RM="rm -f"}
 -: ${SED="@SED@"}
-+test "${STAGING_DIR+set}" = set && ${SED="$STAGING_DIR/../host/bin/sed"} || ${SED="@SED@"}
++if test -n "$STAGING_DIR"; then
++       : ${SED="$STAGING_DIR/../host/bin/sed"}
++else
++       : ${SED="@SED@"}
++fi
  : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  : ${Xsed="$SED -e 1s/^X//"}