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 Message-ID: <3BFA138A.F8179B50@syntrex.com> Date: Tue, 20 Nov 2001 09:25:46 +0100 From: Pavel Tsekov X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: OSTYPE missing References: <200111192223430090 DOT 00F20FC3 AT mail DOT rdc1 DOT sdca DOT home DOT com> <20011120080707 DOT A944 AT stonie DOT insonic DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit There was a more portable solution suggested on the mailing list though - use "uname" instead of OSTYPE. The problem which you're experiencing is just a new feature in bash 2.05a. If you read the announcement of this package on the mailing list you'll know what happens exactly. Daniel Steinmann wrote: > > Bruce Eckel wrote: > > I just updated to the latest Cygwin version, and suddenly the > > following lines in my makefile (which worked previously) are > > failing: > > > > ifneq ($(OSTYPE),cygwin) > > $(error Must be run under Cygwin, ostype is $(OSTYPE)) > > endif > > > > $(OSTYPE) is only producing '.' > > I had the same problem (and question): > > http://www.cygwin.com/ml/cygwin/2001-11/msg01039.html > > My workaround: > > OSTYPE := $(findstring CYGWIN, $(shell uname)) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/