aboutsummaryrefslogtreecommitdiffstats
path: root/tools/autoconf/patches/000-relocatable.patch
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-28 04:42:15 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-28 04:42:15 +0000
commit478d9fc97e9d8e8ce922edc6fd9ec3599be548d3 (patch)
treeec4e17eb9b598b687fedd944dc823665b9d3f6d5 /tools/autoconf/patches/000-relocatable.patch
parent537164cb6d5481c8762adde9677a8e0117c7901a (diff)
downloadupstream-478d9fc97e9d8e8ce922edc6fd9ec3599be548d3.tar.gz
upstream-478d9fc97e9d8e8ce922edc6fd9ec3599be548d3.tar.bz2
upstream-478d9fc97e9d8e8ce922edc6fd9ec3599be548d3.zip
autoconf: another relocatability fix for autom4te, substitute hardcoded prefix with $STAGING_DIR when reading autom4te.cfg
SVN-Revision: 29931
Diffstat (limited to 'tools/autoconf/patches/000-relocatable.patch')
-rw-r--r--tools/autoconf/patches/000-relocatable.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/autoconf/patches/000-relocatable.patch b/tools/autoconf/patches/000-relocatable.patch
index 98661e2002..0b83a2b44c 100644
--- a/tools/autoconf/patches/000-relocatable.patch
+++ b/tools/autoconf/patches/000-relocatable.patch
@@ -50,6 +50,19 @@
# Some non-GNU m4's don't reject the --help option, so give them /dev/null.
fatal "need GNU m4 1.4 or later: $m4"
if system "$m4 --help </dev/null 2>&1 | grep reload-state >/dev/null";
+@@ -270,6 +272,12 @@ sub load_configuration ($)
+
+ my @words = shellwords ($_);
+ my $type = shift @words;
++
++ if ($ENV{'STAGING_DIR'})
++ {
++ @words = map { s!^@pkgdatadir@!$ENV{'STAGING_DIR'}/../host/share/autoconf!; $_ } @words;
++ }
++
+ if ($type eq 'begin-language:')
+ {
+ fatal "$file:$.: end-language missing for: $lang"
--- a/bin/autoreconf.in
+++ b/bin/autoreconf.in
@@ -27,7 +27,8 @@ eval 'case $# in 0) exec @PERL@ -S "$0";
n223'>223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339