Skip to content

Commit

Permalink
autoconf: make bin/autoconf relocatable as well
Browse files Browse the repository at this point in the history
SVN-Revision: 29830
  • Loading branch information
jow- committed Jan 20, 2012
1 parent caa9e0e commit e218009
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tools/autoconf/patches/000-relocatable.patch
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,18 @@
unshift @INC, $pkgdatadir;

# Override SHELL. On DJGPP SHELL may not be set to a shell
--- a/bin/autoconf.as
+++ b/bin/autoconf.as
@@ -85,7 +85,11 @@ exit_missing_arg='
# restore font-lock: '

# Variables.
-: ${AUTOM4TE='@bindir@/@autom4te-name@'}
+if test -n "$STAGING_DIR"; then
+ : ${AUTOM4TE="$STAGING_DIR/../host/bin/@autom4te-name@"}
+else
+ : ${AUTOM4TE='@bindir@/@autom4te-name@'}
+fi
autom4te_options=
outfile=
verbose=false

0 comments on commit e218009

Please sign in to comment.