Regular expressions library might be unneeded in some cases, make it
configurable via IL_CONFIG_REGEX and set it to 'y' for all configs except
tiny.

Note: This one applies with -p0.

From: Roman I Khimov <roman@khimov.ru>

Index: engine/internal.c
===================================================================
--- engine/internal.c	(revision 14)
+++ engine/internal.c	(working copy)
@@ -89,6 +89,9 @@
 #if !defined(IL_CONFIG_PINVOKE)
 	#define _IL_Marshal_suppressed
 #endif
+#if !defined(IL_CONFIG_REGEX)
+	#define _IL_RegexpMethods_suppressed
+#endif
 
 /*
  * Import the method tables of all internal classes.
Index: engine/lib_regexp.c
===================================================================
--- engine/lib_regexp.c	(revision 14)
+++ engine/lib_regexp.c	(working copy)
@@ -26,6 +26,7 @@
 #include "il_utils.h"
 #include "il_regex.h"
 
+#ifdef IL_CONFIG_REGEX
 #ifdef	__cplusplus
 extern	"C" {
 #endif
@@ -227,3 +228,4 @@
 #ifdef	__cplusplus
 };
 #endif
+#endif /* IL_CONFIG_REGEX */
Index: profiles/full-tl
===================================================================
--- profiles/full-tl	(revision 14)
+++ profiles/full-tl	(working copy)
@@ -103,3 +103,6 @@
 #Full crypto library support (MD5, SHA256-512, DES, AES, etc...)
 IL_CONFIG_FULL_CRYPTO=y
 
+#Regural expressions library support
+IL_CONFIG_REGEX=y
+
Index: profiles/kernel
===================================================================
--- profiles/kernel	(revision 14)
+++ profiles/kernel	(working copy)
@@ -103,3 +103,6 @@
 #Full crypto library support (MD5, SHA256-512, DES, AES, etc...)
 IL_CONFIG_FULL_CRYPTO=y
 
+#Regural expressions library support
+IL_CONFIG_REGEX=y
+
Index: profiles/full
===================================================================
--- profiles/full	(revision 14)
+++ profiles/full	(working copy)
@@ -103,3 +103,6 @@
 #Full crypto library support (MD5, SHA256-512, DES, AES, etc...)
 IL_CONFIG_FULL_CRYPTO=y
 
+#Regural expressions library support
+IL_CONFIG_REGEX=y
+
Index: profiles/kernel-fp
===================================================================
--- profiles/kernel-fp	(revision 14)
+++ profiles/kernel-fp	(working copy)
@@ -103,3 +103,6 @@
 #Full crypto library support (MD5, SHA256-512, DES, AES, etc...)
 IL_CONFIG_FULL_CRYPTO=y
 
+#Regural expressions library support
+IL_CONFIG_REGEX=y
+
Index: profiles/tiny
===================================================================
--- profiles/tiny	(revision 14)
+++ profiles/tiny	(working copy)
@@ -100,3 +100,6 @@
 #Full crypto library support (MD5, SHA256-512, DES, AES, etc...)
 IL_CONFIG_FULL_CRYPTO=n
 
+#Regural expressions library support
+IL_CONFIG_REGEX=n
+
Index: profiles/compact
===================================================================
--- profiles/compact	(revision 14)
+++ profiles/compact	(working copy)
@@ -104,3 +104,6 @@
 #Full crypto library support (MD5, SHA256-512, DES, AES, etc...)
 IL_CONFIG_FULL_CRYPTO=y
 
+#Regural expressions library support
+IL_CONFIG_REGEX=y
+
Index: profiles/compact-fp
===================================================================
--- profiles/compact-fp	(revision 14)
+++ profiles/compact-fp	(working copy)
@@ -103,3 +103,6 @@
 #Full crypto library support (MD5, SHA256-512, DES, AES, etc...)
 IL_CONFIG_FULL_CRYPTO=y
 
+#Regural expressions library support
+IL_CONFIG_REGEX=y
+
Index: support/regex.c
===================================================================
--- support/regex.c	(revision 14)
+++ support/regex.c	(working copy)
@@ -20,6 +20,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#ifdef IL_CONFIG_REGEX
 #if !defined(__palmos__)
 
 /* AIX requires this to be the first thing in the file. */
@@ -8365,3 +8366,4 @@
 # define DEFINED_ONCE
 
 #endif /* !__palmos__ */
+#endif /* IL_CONFIG_REGEX */
