X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=efe523a85e222e028ba27a78d73206153bc544b9;hb=97704e732242243d8d4cc69c4b9d670143e8c5ab;hp=ca7f88b4c56fe8638edf734ad7cacba5cdb920a3;hpb=5874c412f9835a90ba25620c45b162896f8a9f6d;p=mono.git diff --git a/configure.in b/configure.in index ca7f88b4c56..efe523a85e2 100644 --- a/configure.in +++ b/configure.in @@ -180,7 +180,6 @@ case "$host" in libmono_cflags="-D_REENTRANT" libdl="-ldl" libgc_threads=pthreads - AOT_SUPPORTED="yes" use_sigposix=yes ;; *-*-nacl*) @@ -192,7 +191,6 @@ case "$host" in libmono_cflags="-D_REENTRANT" libdl= libgc_threads=pthreads - AOT_SUPPORTED="yes" gc_default=boehm use_sigposix=yes ikvm_native=no @@ -623,17 +621,23 @@ AC_ARG_WITH(tls, [ --with-tls=__thread,pthread select Thread Local Storage i AC_ARG_WITH(sigaltstack, [ --with-sigaltstack=yes,no enable/disable support for sigaltstack (defaults to yes)],[],[with_sigaltstack=yes]) AC_ARG_WITH(static_mono, [ --with-static_mono=yes,no link mono statically to libmono (faster) (defaults to yes)],[],[with_static_mono=yes]) +AC_ARG_WITH(shared_mono, [ --with-shared_mono=yes,no build a shared libmono library (defaults to yes)],[],[with_shared_mono=yes]) if test "x$enable_static" = "xno"; then with_static_mono=no fi +if test "x$enable_shared" = "xno"; then + with_shared_mono=no +fi + if test "x$host_win32" = "xyes"; then # Boehm GC requires the runtime to be in its own dll with_static_mono=no fi AM_CONDITIONAL(STATIC_MONO, test x$with_static_mono != xno) +AM_CONDITIONAL(SHARED_MONO, test x$with_shared_mono != xno) AC_ARG_ENABLE(mcs-build, [ --disable-mcs-build disable the build of the mcs directory], try_mcs_build=$enableval, enable_mcs_build=yes) AC_ARG_WITH(xen_opt, [ --with-xen_opt=yes,no Enable Xen-specific behaviour (defaults to yes)],[],[with_xen_opt=yes]) @@ -662,17 +666,13 @@ if test x$enable_small_config = xyes; then CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -DSMALL_CONFIG" fi -if test x$AOT_SUPPORTED != xyes; then - AOT_SUPPORTED=no -fi - -AC_ARG_ENABLE(system-aot, [ --enable-system-aot Enable the Ahead-Of-Time compilation of system assemblies during the build (on by default on some platforms)], enable_system_aot=$enableval, enable_system_aot=$AOT_SUPPORTED) +AC_ARG_ENABLE(system-aot, [ --enable-system-aot Enable the Ahead-Of-Time compilation of system assemblies during the build (on by default on some platforms)], enable_system_aot=$enableval, enable_system_aot=default) 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, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, normalization.], + reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, normalization, assembly_remapping.], [ for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do eval "mono_feature_disable_$feature='yes'" @@ -792,6 +792,11 @@ if test "x$mono_feature_disable_normalization" = "xyes"; then AC_MSG_NOTICE([Disabled String normalization support.]) fi +if test "x$mono_feature_disable_assembly_remapping" = "xyes"; then + AC_DEFINE(DISABLE_ASSEMBLY_REMAPPING, 1, [Disable assembly remapping.]) + AC_MSG_NOTICE([Disabled Assembly remapping.]) +fi + AC_MSG_CHECKING(for visibility __attribute__) AC_TRY_COMPILE([], [ void __attribute__ ((visibility ("hidden"))) doit (void) {} @@ -2129,7 +2134,11 @@ case "$host" in haiku*) LIBC=libroot.so ;; - linux*|darwin*|openbsd*) + linux*) + sgen_supported=true + AOT_SUPPORTED="yes" + ;; + darwin*|openbsd*) sgen_supported=true ;; esac @@ -2140,7 +2149,11 @@ case "$host" in JIT_SUPPORTED=yes jit_wanted=true case $host_os in - linux*|darwin*|openbsd*) + linux*) + sgen_supported=true + AOT_SUPPORTED="yes" + ;; + darwin*|openbsd*) sgen_supported=true ;; esac @@ -2483,6 +2496,11 @@ if test "x$try_mono_debugger" = "xyes"; then fi fi +# disable the debugger entirely when building with moonlight +if test "x$with_moonlight" != "xno"; then + mono_debugger_supported=no +fi + AC_MSG_CHECKING(if the Mono Debugger is supported on this platform) if test "x$mono_debugger_supported" = "xyes"; then BOEHM_DEFINES="$BOEHM_DEFINES -DMONO_DEBUGGER_SUPPORTED" @@ -2549,7 +2567,8 @@ esac #AC_ARG_WITH(profile2, [ --with-profile2=yes,no If you want to install the 2.0 FX (defaults to yes)], [], [with_profile2=yes]) AC_ARG_WITH(profile4, [ --with-profile4=yes,no If you want to install the 4.0 FX (defaults to yes)], [], [with_profile4=yes]) -AC_ARG_WITH(monotouch, [ --with-monotouch=yes,no If you want to build the raw MonoTouch 2.1 assemblies (defaults to no)], [], [with_monotouch=no]) +AC_ARG_WITH(monodroid, [ --with-monodroid=yes,no If you want to build the MonoDroid 2.1 assemblies (defaults to no)], [], [with_monodroid=no]) +AC_ARG_WITH(monotouch, [ --with-monotouch=yes,no If you want to build the MonoTouch 2.1 assemblies (defaults to no)], [], [with_monotouch=no]) OPROFILE=no AC_ARG_WITH(oprofile,[ --with-oprofile=no, Enable oprofile support (defaults to no)],[ @@ -2580,14 +2599,15 @@ AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the DISABLE_MCS_DOCS=yes fi ]) +if test x$with_profile4 != xyes; then + DISABLE_MCS_DOCS=yes +fi +MOONLIGHT_DEFINES= AC_ARG_WITH(moonlight, [ --with-moonlight=yes|no|only If you want to build Mono for Moonlight (defaults to no)],[ - if test "x$with_moonlight" = "xyes"; then - AC_DEFINE(MOONLIGHT,1,[Building for Moonlight]) - elif test "x$with_moonlight" = "xonly"; then - AC_DEFINE(MOONLIGHT,1,[Building for Moonlight]) - fi + MOONLIGHT_DEFINES="-DMOONLIGHT -DDISABLE_ASSEMBLY_REMAPPING" ], [with_moonlight=no]) +AC_SUBST(MOONLIGHT_DEFINES) @@ -2618,6 +2638,7 @@ libmono_ldflags="$libmono_ldflags $LIBS" AM_CONDITIONAL(MOONLIGHT, [test "x$with_moonlight" != "xno"]) AM_CONDITIONAL(ONLY_MOONLIGHT, [test "x$with_moonlight" = "xonly"]) AM_CONDITIONAL(INSTALL_4_0, [test "x$with_profile4" = xyes]) +AM_CONDITIONAL(INSTALL_MONODROID, [test "x$with_monodroid" = xyes]) AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" = xyes]) AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes) @@ -2914,7 +2935,11 @@ fi echo "PLATFORM = darwin" >> $mcs_topdir/build/config.make fi - if test x$host_win32 = xno -a x$platform_darwin = xno -a "x$AOT_SUPPORTED" = "xyes" -a x$enable_system_aot = xyes; then + if test x$AOT_SUPPORTED = xyes -a x$enable_system_aot = xdefault; then + enable_system_aot=yes + fi + + if test x$host_win32 = xno -a x$platform_darwin != xyes -a x$enable_system_aot = xyes; then echo "ENABLE_AOT = 1" >> $mcs_topdir/build/config.make fi @@ -2966,6 +2991,7 @@ echo " Libraries: Moon Profile: $with_moonlight + MonoDroid: $with_monodroid MonoTouch: $with_monotouch JNI support: $jdk_headers_found libgdiplus: $libgdiplus_msg