summaryrefslogtreecommitdiff
path: root/automake.in
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2003-02-10 14:10:39 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2003-02-10 14:10:39 +0000
commit7e71f7e220cd36fa20239b643b9b4f37b3134889 (patch)
tree2514181df02fdf87a2ee1b8cee1e7e59d7f0bee9 /automake.in
parente89cffec5eefb747e730a0504a8496b296b23c17 (diff)
downloadautomake-7e71f7e220cd36fa20239b643b9b4f37b3134889.tar.gz
* automake.in (BEGIN): Override $ENV{'SHELL'} with ./configure's
SHELL for DJGPP. Suggested by Richard Dawe.
Diffstat (limited to 'automake.in')
-rwxr-xr-xautomake.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/automake.in b/automake.in
index 2bfaa9ea8..85a093d5a 100755
--- a/automake.in
+++ b/automake.in
@@ -33,6 +33,15 @@ BEGIN
{
my $perllibdir = $ENV{'perllibdir'} || '@datadir@/@PACKAGE@-@APIVERSION@';
unshift @INC, $perllibdir;
+
+ # Override SHELL. This is required on DJGPP so that system() uses
+ # bash, not COMMAND.COM which doesn't quote arguments properly.
+ # Other systems aren't expected to use $SHELL when Automake
+ # runs, but it should be safe to drop the `if DJGPP' gard if
+ # it turns up other systems need the same thing. After all,
+ # if SHELL is used, ./configure's SHELL is always better than
+ # the user's SHELL (which may be something like tcsh).
+ $ENV{'SHELL'} = '@SHELL@' if exists $ENV{'DJGPP'};
}
use Automake::Struct;