Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Server-Uuid: ff9369ea-8e79-11d4-bb71-00508bd369f2 Message-ID: <200011171529.eAHFTHh09465@dymwsm10.mailwatch.com> From: "Fleischer, Karsten (K.)" To: "Cygwin (E-mail 3)" Subject: RE: testing if it's cygwin Date: Fri, 17 Nov 2000 10:29:09 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.58) X-WSS-ID: 160B917F560061-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit 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 AT sourceware DOT cygnus DOT com