Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Molaro <lupus@oddwiz.org>2004-12-06 17:01:13 +0300
committerPaolo Molaro <lupus@oddwiz.org>2004-12-06 17:01:13 +0300
commitd8e97a5d9d3c947316b086c64e2c393d06df4a7d (patch)
tree68aed069fa2af3a1599cb9a1840063439e3c6915 /configure.in
parente76db93ca86b8aede1e336087cafb10c4922b24a (diff)
Mon Dec 6 15:00:53 CET 2004 Paolo Molaro <lupus@ximian.com>
* configure.in: add option to disable some features of the runtime to create a smaller binary. svn path=/trunk/mono/; revision=37189
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 36c54bde6bf..edad1e9c0af 100644
--- a/configure.in
+++ b/configure.in
@@ -372,6 +372,39 @@ fi
AM_CONDITIONAL(STATIC_MONO, test x$with_static_mono != xno)
+AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
+ LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug, reflection_emit.],
+[
+ for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do
+ eval "mono_feature_disable_$feature='yes'"
+ AC_MSG_NOTICE([Disabled support for feature: $feature])
+ done
+],[])
+
+if test "x$mono_feature_disable_aot" = "xyes"; then
+ AC_DEFINE(DISABLE_AOT, 1, [Disable AOT support])
+fi
+
+if test "x$mono_feature_disable_profiler" = "xyes"; then
+ AC_DEFINE(DISABLE_PROFILER, 1, [Disable default profiler support])
+fi
+
+if test "x$mono_feature_disable_decimal" = "xyes"; then
+ AC_DEFINE(DISABLE_DECIMAL, 1, [Disable System.Decimal support])
+fi
+
+if test "x$mono_feature_disable_pinvoke" = "xyes"; then
+ AC_DEFINE(DISABLE_PINVOKE, 1, [Disable P/Invoke support])
+fi
+
+if test "x$mono_feature_disable_debug" = "xyes"; then
+ AC_DEFINE(DISABLE_DEBUG, 1, [Disable runtime debugging support])
+fi
+
+if test "x$mono_feature_disable_reflection_emit" = "xyes"; then
+ AC_DEFINE(DISABLE_REFLECTION_EMIT, 1, [Disable reflection emit support])
+fi
+
LIBGC_CFLAGS=
LIBGC_LIBS=
LIBGC_STATIC_LIBS=
@@ -1577,5 +1610,6 @@ echo "
Engine: $jit_status
2.0 Alpha: $PREVIEW
JNI support: $jdk_headers_found
+ Disabled: $enable_minimal
"