+2003-02-10 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * automake.in (BEGIN): Override $ENV{'SHELL'} with ./configure's
+ SHELL for DJGPP.
+ Suggested by Richard Dawe.
+
2003-02-09 Alexandre Duret-Lutz <adl@gnu.org>
* automake.texi (FAQ, CVS, maintainer-mode, wildcards)
{
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;