As-is, winsetup.bat replaces config.h with winconfig.h, which is needed for the MSVC compilation - but breaks all further use of cygwin's make (e.g. to build the class library, or run "make install").
This patch introduces a new cygconfig.h as a backup prior to squashing config.h (if it exists, so the runtime can still be built without cygwin ever being used), and makes winconfig.h use it on non-MSVC compilers (i.e. cygwin)
config.sub
configure
configure.scan
+cygconfig.h
depcomp
install-sh
libtool
@echo off
cd ..
+if exist config.h if not exist cygconfig.h copy config.h cygconfig.h
copy winconfig.h config.h
goto end
:error
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
+#ifndef _MSC_VER
+#include "cygconfig.h"
+#else
+
/* The architecture this is running on */
#if defined(_M_IA64)
#define ARCHITECTURE "ia64"
/* Version number of package */
#define VERSION "3.12.1"
+#endif