diff options
author | Paolo Molaro <lupus@oddwiz.org> | 2006-03-01 14:38:56 +0300 |
---|---|---|
committer | Paolo Molaro <lupus@oddwiz.org> | 2006-03-01 14:38:56 +0300 |
commit | 9227de8f825cb9913c922d55372f35564bedf65f (patch) | |
tree | 5f8772c3360bacb786abd55ba89ee8e593a998b7 /configure.in | |
parent | db3c55d5844b59955a9f6694f00ada2027c3695a (diff) |
Wed Mar 1 12:37:43 CET 2006 Paolo Molaro <lupus@ximian.com>
* configure.in: added checks for visibility attribute,
option to disable generics, disabled options string define.
svn path=/trunk/mono/; revision=57462
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 82f80fd8a9e..f8d77d49651 100644 --- a/configure.in +++ b/configure.in @@ -497,17 +497,22 @@ if test "x$with_xen_opt" = "xyes"; then ]) fi +DISABLED_FEATURES=none + 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, large_code, logging, com, ssa.], + reflection_emit, large_code, logging, com, ssa, generics.], [ 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 + DISABLED_FEATURES=$enable_minimal disabled="Disabled: $enable_minimal" ],[]) +AC_DEFINE_UNQUOTED(DISABLED_FEATURES, "$DISABLED_FEATURES", [String of disabled features]) + if test "x$mono_feature_disable_aot" = "xyes"; then AC_DEFINE(DISABLE_AOT, 1, [Disable AOT support]) fi @@ -548,6 +553,21 @@ if test "x$mono_feature_disable_ssa" = "xyes"; then AC_DEFINE(DISABLE_SSA, 1, [Disable advanced SSA JIT optimizations]) fi +if test "x$mono_feature_disable_generics" = "xyes"; then + AC_DEFINE(DISABLE_GENERICS, 1, [Disable generics support]) +fi + +AC_MSG_CHECKING(for visibility __attribute__) +AC_TRY_COMPILE([], [ + void __attribute__ ((visibility ("hidden"))) doit (void) {} + void main () { doit (); } +], [ + AC_DEFINE(HAVE_VISIBILITY_HIDDEN, 1, [Support for the visibility ("hidden") attribute]) + AC_MSG_RESULT(yes) +], [ + AC_MSG_RESULT(no) +]) + LIBGC_CFLAGS= LIBGC_LIBS= LIBGC_STATIC_LIBS= |