--- configure.ac.old 2017-07-12 01:43:06.173521800 +0200 +++ configure.ac 2017-07-12 01:40:14.835392300 +0200 @@ -115,6 +115,28 @@ ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes ;; + +*Msys*) + WINDOWS=yes + MINGW=yes + platform=MinGW + portaudio=yes + portmidi=yes + + # ASIO doesn't build yet with the autotools setup. We need to figure out how + # to make the final linking phase use g++ + asio=yes + + # externals are dynamically linked to pd.dll in their individual automake files + EXTERNAL_CFLAGS="-mms-bitfields" + EXTERNAL_LDFLAGS="-s -Wl,--enable-auto-import -no-undefined -lpd" + EXTERNAL_EXTENSION=dll + + # workaround for rpl_malloc/rpl_realloc bug in autoconf when cross-compiling + ac_cv_func_malloc_0_nonnull=yes + ac_cv_func_realloc_0_nonnull=yes + ;; + *cygwin*) WINDOWS=yes CYGWIN=yes @@ -140,6 +162,7 @@ AM_CONDITIONAL(WINDOWS, test x$WINDOWS = xyes) AM_CONDITIONAL(CYGWIN, test x$CYGWIN = xyes) AM_CONDITIONAL(MINGW, test x$MINGW = xyes) +AM_CONDITIONAL(MSYS, test x$MSYS = xyes) ######################################### --- configure.ac.old 2017-07-12 01:43:06.173521800 +0200 +++ configure.ac 2017-07-12 01:57:22.571764500 +0200 @@ -115,6 +115,28 @@ ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes ;; + +*msys*) + WINDOWS=yes + MINGW=yes + platform=MinGW + portaudio=yes + portmidi=yes + + # ASIO doesn't build yet with the autotools setup. We need to figure out how + # to make the final linking phase use g++ + asio=yes + + # externals are dynamically linked to pd.dll in their individual automake files + EXTERNAL_CFLAGS="-mms-bitfields" + EXTERNAL_LDFLAGS="-s -Wl,--enable-auto-import -no-undefined -lpd" + EXTERNAL_EXTENSION=dll + + # workaround for rpl_malloc/rpl_realloc bug in autoconf when cross-compiling + ac_cv_func_malloc_0_nonnull=yes + ac_cv_func_realloc_0_nonnull=yes + ;; + *cygwin*) WINDOWS=yes CYGWIN=yes @@ -140,6 +162,7 @@ AM_CONDITIONAL(WINDOWS, test x$WINDOWS = xyes) AM_CONDITIONAL(CYGWIN, test x$CYGWIN = xyes) AM_CONDITIONAL(MINGW, test x$MINGW = xyes) +AM_CONDITIONAL(MSYS, test x$MSYS = xyes) #########################################