From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13474 invoked by alias); 12 Jan 2009 17:49:50 -0000 Received: (qmail 13465 invoked by uid 22791); 12 Jan 2009 17:49:50 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_20,J_CHICKENPOX_25,J_CHICKENPOX_26 X-Spam-Check-By: sourceware.org Received: from smtp-out4.blueyonder.co.uk (HELO smtp-out4.blueyonder.co.uk) (195.188.213.7) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Jan 2009 17:49:09 +0000 Received: from [172.23.170.146] (helo=anti-virus03-09) by smtp-out4.blueyonder.co.uk with smtp (Exim 4.52) id 1LMQuQ-00006N-L2; Mon, 12 Jan 2009 17:49:06 +0000 Received: from 92-238-140-191.cable.ubr03.pert.blueyonder.co.uk ([92.238.140.191] helo=[127.0.0.1]) by asmtp-out2.blueyonder.co.uk with esmtpa (Exim 4.52) id 1LMQuQ-0008WJ-5q; Mon, 12 Jan 2009 17:49:06 +0000 Message-ID: <496B828A.3010006@bonhard.uklinux.net> Date: Mon, 12 Jan 2009 19:06:00 -0000 From: Fergus User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Cygwin ML CC: Fergus Subject: Re: Reliably check if we're running under cygwin inside Makefile Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-01/txt/msg00326.txt.bz2 > osname := $(shell uname -s) > osver := $(shell uname -r) > cpuarch := $(shell uname -m) Probably the fault is mine but I can't get this to do anything useful in Cygwin. You could try (something like): case `uname` in *CYGWIN*) OS=Cygwin ;; *Darwin*) OS=Darwin ;; *) OS=Linux ;; esac and then try things like if [ ${OS} == "Linux" ] then .. fi Fergus -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/