Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Kris Thielemans" <kris.thielemans@csc.mrc.ac.uk>
To: "Fleischer, Karsten \(K.\)" <kfleisc1@ford.com>
Cc: "Gnuwin" <cygwin@sourceware.cygnus.com>
Subject: RE: testing if it's cygwin
Date: Fri, 17 Nov 2000 16:12:57 -0000
Message-ID: <006101c050b1$3fe7c040$460a10ac@rpms.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
In-Reply-To: <200011171528.eAHFSWq28574@dymwsm09.mailwatch.com>

Hi Karsten,

sounds sensible, only B20 seems to have OSTYPE=cygwin32. I can handle that
of course.

Thanks!
>
> Hello Kris,
>
> > what would be the recommended way of testing (in a shell
> > script file, or a
> > Makefile) if it's being run on CYGWIN?
> > At the moment, I do
> > 	uname
> > and test on CYGWIN-NT4.0, but that seems like a bad idea, as I want to
> > support W9? or W2000 as well. Also, it relies on the
> > existence of uname of
> > course...
>
> I check the environment variable OSTYPE for "cygwin" in my makefiles.
> However, I don't know if it's reliable.
>
> Karsten
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

