Include environment variables already in autogen.sh's environment
This commit is contained in:
11
autogen.sh
11
autogen.sh
@@ -11,8 +11,7 @@ sub clean()
|
|||||||
print "cleaned the build tree\n";
|
print "cleaned the build tree\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Alloc $ACLOCAL to specify which aclocal to use
|
my $aclocal;
|
||||||
my $aclocal = $ENV{ACLOCAL} ? $ENV{ACLOCAL} : 'aclocal';
|
|
||||||
|
|
||||||
# check we have various vital tools
|
# check we have various vital tools
|
||||||
sub sanity_checks($)
|
sub sanity_checks($)
|
||||||
@@ -108,6 +107,14 @@ for my $arg (@cmdline_args) {
|
|||||||
push @args, $arg;
|
push @args, $arg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for my $arg (@args) {
|
||||||
|
if ($arg =~ /^([A-Z]+)=(.*)/) {
|
||||||
|
$ENV{$1} = $2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Alloc $ACLOCAL to specify which aclocal to use
|
||||||
|
$aclocal = $ENV{ACLOCAL} ? $ENV{ACLOCAL} : 'aclocal';
|
||||||
|
|
||||||
system ("touch ChangeLog");
|
system ("touch ChangeLog");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user