detection of mingw build.
(MINGW_BUILD): opps.
* stepmake/stepmake/generic-vars.make (MINGW_BUILD): generic
detection of mingw build.
* stepmake/stepmake/generic-vars.make (MINGW_BUILD): generic
detection of mingw build.
2006-01-12 Jan Nieuwenhuizen <janneke@gnu.org>
2006-01-12 Jan Nieuwenhuizen <janneke@gnu.org>
# Check if we are building for Cygwin
#
HOST_ARCH=$(shell $(CC) -dumpmachine)
# Check if we are building for Cygwin
#
HOST_ARCH=$(shell $(CC) -dumpmachine)
-ifeq ($(HOST_ARCH),i686-pc-cygwin)
-CYGWIN_BUILD = yes
-endif
-ifeq ($(HOST_ARCH),i686-cygwin)
+
+ifeq (cygwin,$(findstring cygwin,$(HOST_ARCH)))
CYGWIN_BUILD = yes
endif
ifeq (mingw,$(findstring mingw,$(HOST_ARCH)))
MINGW_BUILD = yes
endif
CYGWIN_BUILD = yes
endif
ifeq (mingw,$(findstring mingw,$(HOST_ARCH)))
MINGW_BUILD = yes
endif
ifeq (darwin,$(findstring darwin,$(HOST_ARCH)))
DARWIN_BUILD = yes
endif
ifeq (darwin,$(findstring darwin,$(HOST_ARCH)))
DARWIN_BUILD = yes
endif