]> git.saurik.com Git - wxWidgets.git/commitdiff
Better detection for Cygwin; thanks to Oscar Fuentes
authorMattia Barbon <mbarbon@cpan.org>
Sat, 15 Jun 2002 14:58:47 +0000 (14:58 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sat, 15 Jun 2002 14:58:47 +0000 (14:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

distrib/msw/tmake/g95.t

index f720c1d5ad98ab102624e984eb5fc58a22fc4a1d..ea576f935b7cf5f0a2557b3b291e134a3157ce12 100644 (file)
@@ -318,20 +318,12 @@ ifeq ($(wxUSE_GUI),0)
   OBJECTS = $(MSWOBJS_BASE) $(COMMONOBJS_BASE) $(COMMONOBJS_BASEONLY) $(GENERICOBJS_BASE)
 endif
 
-# MBN: if anyone has a better solution for this kludge, step
-#      forward, *please*
-# this tests is we are on cygwin or not ( will _not_ work if you are using
-# ZSH on plain Win32, tought ); it uses the presence of "/"
-# in the PATH variable
-
 # how do you do "VAR=\" ? BLEAGH!
 BACKSLASH=$(subst a,\,a)
-ifeq (,$(findstring /,$(PATH)))
-  IS_CYGWIN=0
+ifeq (,$(findstring $(OSTYPE),"cygwin!msys"))
   PATH_SEPARATOR:=$(BACKSLASH)
   PATH_SUBST=/
 else
-  IS_CYGWIN=1
   PATH_SEPARATOR=/
   PATH_SUBST:=$(BACKSLASH)
 endif