autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoconf & DJGPP: SHELL, ${ac_make}, IFS=:


From: Richard Dawe
Subject: Re: autoconf & DJGPP: SHELL, ${ac_make}, IFS=:
Date: Tue, 25 Feb 2003 12:00:38 +0000

Hello.

Tim Van Holder wrote:
> 
> On Mon, 2003-02-24 at 19:44, Richard Dawe wrote:
> > Index: bin/autoheader.in
> > ===================================================================
> > RCS file: /cvsroot/autoconf/autoconf/bin/autoheader.in,v
> > retrieving revision 1.126
> > diff -p -u -3 -r1.126 autoheader.in
> > --- bin/autoheader.in 22 Oct 2002 11:14:44 -0000      1.126
> > +++ bin/autoheader.in 24 Feb 2003 18:38:37 -0000
> > @@ -31,6 +31,12 @@ BEGIN
> >  {
> >    my $perllibdir = $ENV{'autom4te_perllibdir'} || '@datadir@';
> >    unshift @INC, "$perllibdir";
> > +
> > +  # Override SHELL.  On DJGPP SHELL may not be set to a shell
> > +  # that can handle redirection and quote arguments correctly,
> > +  # e.g.: COMMAND.COM.  For DJGPP always use the shell that configure
> > +  # has detected.
> > +  $ENV{'SHELL'} = '@SHELL@' if exists $ENV{'DJGPP'};
> >  }
> 
> I _think_ that the DJGPP perl has its OS variable ($^O) set to 'djgpp'
> (might possibly be 'msdos' as well - but that would not invalidate the
> setting of SHELL in this way).

bash-2.04$ perl --version

This is perl, v5.6.1 built for dos-djgpp

Copyright 1987-2001, Larry Wall

MS-DOS port Copyright (c) 1989, 1990, Diomidis Spinellis
djgpp v2 port (jpl5003c) by Hirofumi Watanabe, 1996
djgpp v2 port (perl5004+) by Laszlo Molnar, 1997-1999

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

bash-2.04$ perl -e 'print $^O."\n";'
dos

> That's probably a better test than relying on an envvar that may easily
> be set on non-DJGPP platforms.

Yes, I agree. Thanks!

Bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]