diff -Naur pcre2-10.31-orig/config.guess pcre2-10.31/config.guess
--- pcre2-10.31-orig/config.guess	2018-02-12 14:15:50.000000000 +0300
+++ pcre2-10.31/config.guess	2018-06-26 10:00:07.094240500 +0300
@@ -903,6 +903,9 @@
     amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
 	echo x86_64-pc-cygwin
 	exit ;;
+    amd64:MSYS*:*:* | x86_64:MSYS*:*:*)
+	echo x86_64-unknown-msys
+	exit ;;
     prep*:SunOS:5.*:*)
 	echo powerpcle-unknown-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
 	exit ;;
diff -Naur pcre2-10.31-orig/configure.ac pcre2-10.31/configure.ac
--- pcre2-10.31-orig/configure.ac	2018-02-12 14:15:35.000000000 +0300
+++ pcre2-10.31/configure.ac	2018-06-26 10:00:07.094240500 +0300
@@ -858,7 +858,7 @@
 NO_UNDEFINED=
 EXPORT_ALL_SYMBOLS=
 case $host_os in
-  cygwin* | mingw* )
+  cygwin* | msys* | mingw* )
     if test X"$enable_shared" = Xyes; then
       NO_UNDEFINED="-no-undefined"
       EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
