2012-01-20 02:56:08 +00:00
|
|
|
--- a/bin/autoheader.in
|
|
|
|
+++ b/bin/autoheader.in
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -30,9 +30,12 @@ use 5.006;
|
|
|
|
use strict;
|
|
|
|
use warnings FATAL => 'all';
|
2012-01-20 02:56:08 +00:00
|
|
|
|
2022-08-01 12:28:44 +00:00
|
|
|
+$^W = 1;
|
|
|
|
+
|
2012-01-20 02:56:08 +00:00
|
|
|
BEGIN
|
|
|
|
{
|
|
|
|
- my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@';
|
|
|
|
+ my $pkgdatadir = $ENV{'autom4te_perllibdir'} ||
|
2022-11-10 16:47:06 +00:00
|
|
|
+ ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/share/autoconf' : '@pkgdatadir@');
|
2012-01-20 02:56:08 +00:00
|
|
|
unshift @INC, "$pkgdatadir";
|
|
|
|
|
|
|
|
# Override SHELL. On DJGPP SHELL may not be set to a shell
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -54,7 +57,7 @@ use Autom4te::XFile;
|
|
|
|
our ($config_h, %symbol, %verbatim);
|
2012-01-20 15:19:06 +00:00
|
|
|
|
|
|
|
# Lib files.
|
|
|
|
-my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
|
2022-11-10 16:47:06 +00:00
|
|
|
+my $autom4te = $ENV{'AUTOM4TE'} || ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/bin/@autom4te-name@' : '@bindir@/@autom4te-name@');
|
2012-01-20 15:19:06 +00:00
|
|
|
my $config_h_in;
|
|
|
|
my @prepend_include;
|
2022-08-01 12:28:44 +00:00
|
|
|
my @include;
|
2012-01-20 02:56:08 +00:00
|
|
|
--- a/bin/autom4te.in
|
|
|
|
+++ b/bin/autom4te.in
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -26,9 +26,12 @@ use 5.006;
|
|
|
|
use strict;
|
|
|
|
use warnings FATAL => 'all';
|
2015-03-24 13:12:52 +00:00
|
|
|
|
|
|
|
+$^W = 1;
|
|
|
|
+
|
2012-01-20 02:56:08 +00:00
|
|
|
BEGIN
|
|
|
|
{
|
|
|
|
- my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@';
|
|
|
|
+ my $pkgdatadir = $ENV{'autom4te_perllibdir'} ||
|
2022-11-10 16:47:06 +00:00
|
|
|
+ ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/share/autoconf' : '@pkgdatadir@');
|
2012-01-20 02:56:08 +00:00
|
|
|
unshift @INC, $pkgdatadir;
|
|
|
|
|
|
|
|
# Override SHELL. On DJGPP SHELL may not be set to a shell
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -48,7 +51,8 @@ use Autom4te::General;
|
|
|
|
use Autom4te::XFile;
|
2012-01-20 02:56:08 +00:00
|
|
|
|
|
|
|
# Data directory.
|
|
|
|
-my $pkgdatadir = $ENV{'AC_MACRODIR'} || '@pkgdatadir@';
|
|
|
|
+my $pkgdatadir = $ENV{'AC_MACRODIR'} ||
|
2022-11-10 16:47:06 +00:00
|
|
|
+ ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/share/autoconf' : '@pkgdatadir@');
|
2012-01-20 02:56:08 +00:00
|
|
|
|
|
|
|
# $LANGUAGE{LANGUAGE} -- Automatic options for LANGUAGE.
|
|
|
|
my %language;
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -91,7 +95,7 @@ my @include;
|
2012-01-20 15:19:06 +00:00
|
|
|
my $freeze = 0;
|
|
|
|
|
|
|
|
# $M4.
|
|
|
|
-my $m4 = $ENV{"M4"} || '@M4@';
|
2022-11-10 16:47:06 +00:00
|
|
|
+my $m4 = $ENV{"M4"} || ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/bin/m4' : '@M4@');
|
2012-01-20 15:19:06 +00:00
|
|
|
# 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";
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -272,6 +276,12 @@ sub load_configuration ($)
|
2012-01-28 04:42:15 +00:00
|
|
|
|
|
|
|
my @words = shellwords ($_);
|
|
|
|
my $type = shift @words;
|
|
|
|
+
|
2022-11-10 16:47:06 +00:00
|
|
|
+ if ($ENV{'STAGING_DIR_HOST'})
|
2012-01-28 04:42:15 +00:00
|
|
|
+ {
|
2022-11-10 16:47:06 +00:00
|
|
|
+ @words = map { s!^@pkgdatadir@!$ENV{'STAGING_DIR_HOST'}/share/autoconf!; $_ } @words;
|
2012-01-28 04:42:15 +00:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
if ($type eq 'begin-language:')
|
|
|
|
{
|
|
|
|
fatal "$file:$.: end-language missing for: $lang"
|
2012-01-20 02:56:08 +00:00
|
|
|
--- a/bin/autoreconf.in
|
|
|
|
+++ b/bin/autoreconf.in
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -29,10 +29,13 @@ use 5.006;
|
|
|
|
use strict;
|
|
|
|
use warnings FATAL => 'all';
|
2015-03-24 13:12:52 +00:00
|
|
|
|
|
|
|
+$^W = 1;
|
|
|
|
+
|
2022-08-01 12:28:44 +00:00
|
|
|
my $buildauxdir;
|
2012-01-20 02:56:08 +00:00
|
|
|
BEGIN
|
|
|
|
{
|
|
|
|
- my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@';
|
|
|
|
+ my $pkgdatadir = $ENV{'autom4te_perllibdir'} ||
|
2022-11-10 16:47:06 +00:00
|
|
|
+ ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/share/autoconf' : '@pkgdatadir@');
|
2012-01-20 02:56:08 +00:00
|
|
|
unshift @INC, $pkgdatadir;
|
|
|
|
|
2022-08-01 12:28:44 +00:00
|
|
|
$buildauxdir = $ENV{'autom4te_buildauxdir'} || $pkgdatadir . '/build-aux';
|
|
|
|
@@ -117,9 +120,9 @@ Written by David J. MacKenzie and Akim D
|
2012-01-20 15:19:06 +00:00
|
|
|
";
|
|
|
|
|
|
|
|
# Lib files.
|
2022-08-01 12:28:44 +00:00
|
|
|
-my $autoconf = $ENV{'AUTOCONF'} || '@bindir@/@autoconf-name@';
|
|
|
|
-my $autoheader = $ENV{'AUTOHEADER'} || '@bindir@/@autoheader-name@';
|
|
|
|
-my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
|
|
|
|
+my $autoconf = $ENV{'AUTOCONF'} || ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/bin/@autoconf-name@' : '@bindir@/@autoconf-name@');
|
|
|
|
+my $autoheader = $ENV{'AUTOHEADER'} || ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/bin/@autoheader-name@' : '@bindir@/@autoheader-name@');
|
|
|
|
+my $autom4te = $ENV{'AUTOM4TE'} || ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/bin/@autom4te-name@' : '@bindir@/@autom4te-name@');
|
|
|
|
my $automake = $ENV{'AUTOMAKE'} || 'automake';
|
|
|
|
my $aclocal = $ENV{'ACLOCAL'} || 'aclocal';
|
|
|
|
my $libtoolize = $ENV{'LIBTOOLIZE'} || 'libtoolize';
|
2012-01-20 02:56:08 +00:00
|
|
|
--- a/bin/autoscan.in
|
|
|
|
+++ b/bin/autoscan.in
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -28,9 +28,12 @@ use 5.006;
|
|
|
|
use strict;
|
|
|
|
use warnings FATAL => 'all';
|
2015-03-24 13:12:52 +00:00
|
|
|
|
|
|
|
+$^W = 1;
|
|
|
|
+
|
2012-01-20 02:56:08 +00:00
|
|
|
BEGIN
|
|
|
|
{
|
|
|
|
- my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@';
|
|
|
|
+ my $pkgdatadir = $ENV{'autom4te_perllibdir'} ||
|
2022-11-10 16:47:06 +00:00
|
|
|
+ ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/share/autoconf' : '@pkgdatadir@');
|
2012-01-20 02:56:08 +00:00
|
|
|
unshift @INC, $pkgdatadir;
|
|
|
|
|
|
|
|
# Override SHELL. On DJGPP SHELL may not be set to a shell
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -95,10 +98,10 @@ my %needed_macros =
|
2012-01-20 15:19:06 +00:00
|
|
|
my $log;
|
|
|
|
|
|
|
|
# Autoconf and lib files.
|
|
|
|
-my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
|
2022-11-10 16:47:06 +00:00
|
|
|
+my $autom4te = $ENV{'AUTOM4TE'} || ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/bin/@autom4te-name@' : '@bindir@/@autom4te-name@');
|
2012-01-20 02:56:08 +00:00
|
|
|
my $autoconf = "$autom4te --language=autoconf";
|
|
|
|
my @prepend_include;
|
|
|
|
-my @include = ('@pkgdatadir@');
|
2022-11-10 16:47:06 +00:00
|
|
|
+my @include = ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/share/autoconf' : '@pkgdatadir@');
|
2012-01-20 02:56:08 +00:00
|
|
|
|
|
|
|
# $help
|
|
|
|
# -----
|
|
|
|
--- a/bin/autoupdate.in
|
|
|
|
+++ b/bin/autoupdate.in
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -29,9 +29,12 @@ use 5.006;
|
|
|
|
use strict;
|
|
|
|
use warnings FATAL => 'all';
|
2015-03-24 13:12:52 +00:00
|
|
|
|
|
|
|
+$^W = 1;
|
|
|
|
+
|
2012-01-20 02:56:08 +00:00
|
|
|
BEGIN
|
|
|
|
{
|
|
|
|
- my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@';
|
|
|
|
+ my $pkgdatadir = $ENV{'autom4te_perllibdir'} ||
|
2022-11-10 16:47:06 +00:00
|
|
|
+ ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/share/autoconf' : '@pkgdatadir@');
|
2012-01-20 02:56:08 +00:00
|
|
|
unshift @INC, $pkgdatadir;
|
|
|
|
|
|
|
|
# Override SHELL. On DJGPP SHELL may not be set to a shell
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -55,10 +58,10 @@ my $autom4te = $ENV{'AUTOM4TE'} || '@bin
|
2012-01-20 02:56:08 +00:00
|
|
|
my $autoconf = "$autom4te --language=autoconf";
|
|
|
|
# We need to find m4sugar.
|
|
|
|
my @prepend_include;
|
|
|
|
-my @include = ('@pkgdatadir@');
|
2022-11-10 16:47:06 +00:00
|
|
|
+my @include = ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/share/autoconf' : '@pkgdatadir@');
|
2012-01-20 02:56:08 +00:00
|
|
|
my $force = 0;
|
|
|
|
# m4.
|
2012-01-20 15:19:06 +00:00
|
|
|
-my $m4 = $ENV{"M4"} || '@M4@';
|
2022-11-10 16:47:06 +00:00
|
|
|
+my $m4 = $ENV{"M4"} || ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/bin/m4' : '@M4@');
|
2012-01-20 15:19:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
# $HELP
|
2012-01-20 02:56:08 +00:00
|
|
|
--- a/bin/ifnames.in
|
|
|
|
+++ b/bin/ifnames.in
|
2022-08-01 12:28:44 +00:00
|
|
|
@@ -33,9 +33,12 @@ use 5.006;
|
|
|
|
use strict;
|
|
|
|
use warnings FATAL => 'all';
|
2015-03-24 13:12:52 +00:00
|
|
|
|
|
|
|
+$^W = 1;
|
|
|
|
+
|
2012-01-20 02:56:08 +00:00
|
|
|
BEGIN
|
|
|
|
{
|
|
|
|
- my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@';
|
|
|
|
+ my $pkgdatadir = $ENV{'autom4te_perllibdir'} ||
|
2022-11-10 16:47:06 +00:00
|
|
|
+ ($ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/share/autoconf' : '@pkgdatadir@');
|
2012-01-20 02:56:08 +00:00
|
|
|
unshift @INC, $pkgdatadir;
|
|
|
|
|
|
|
|
# Override SHELL. On DJGPP SHELL may not be set to a shell
|
2012-01-20 17:17:04 +00:00
|
|
|
--- a/bin/autoconf.as
|
|
|
|
+++ b/bin/autoconf.as
|
2023-03-15 23:31:16 +00:00
|
|
|
@@ -89,8 +89,13 @@ exit_missing_arg='
|
2012-01-20 17:17:04 +00:00
|
|
|
# restore font-lock: '
|
|
|
|
|
|
|
|
# Variables.
|
|
|
|
-: ${AUTOM4TE='@bindir@/@autom4te-name@'}
|
2023-03-15 23:31:16 +00:00
|
|
|
-: ${trailer_m4='@pkgdatadir@/autoconf/trailer.m4'}
|
2022-11-10 16:47:06 +00:00
|
|
|
+if test -n "$STAGING_DIR_HOST"; then
|
|
|
|
+ : ${AUTOM4TE="$STAGING_DIR_HOST/bin/@autom4te-name@"}
|
2023-03-15 23:31:16 +00:00
|
|
|
+ : ${trailer_m4="$STAGING_DIR_HOST/share/autoconf/autoconf/trailer.m4"}
|
2012-01-20 17:17:04 +00:00
|
|
|
+else
|
|
|
|
+ : ${AUTOM4TE='@bindir@/@autom4te-name@'}
|
2023-03-15 23:31:16 +00:00
|
|
|
+ : ${trailer_m4='@pkgdatadir@/autoconf/trailer.m4'}
|
2012-01-20 17:17:04 +00:00
|
|
|
+fi
|
|
|
|
autom4te_options=
|
|
|
|
outfile=
|
2023-03-15 23:31:16 +00:00
|
|
|
verbose=false
|