X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=configure.ac;h=52bd77591086353b5a9030c95f425cfe9e90687b;hb=dfac8517b91687f11479801fa0a2191585b1ad4c;hp=bf0e910961bee936d8a8ccaea91b02d2472813ae;hpb=389a34059a9caa11a0fab845978a82fcae847046;p=mono.git diff --git a/configure.ac b/configure.ac index bf0e910961b..52bd7759108 100644 --- a/configure.ac +++ b/configure.ac @@ -272,8 +272,6 @@ case "$host" in need_link_unlink=yes libmono_cflags="-D_REENTRANT" libgc_threads=pthreads - # This doesn't seem to work on solaris/x86, but the configure test runs - with_tls=pthread has_dtrace=yes use_sigposix=yes enable_solaris_tar_check=yes @@ -929,15 +927,8 @@ if test x$has_extension_module != xno ; then AC_MSG_NOTICE([Enabling mono extension module.]) fi -AC_ARG_ENABLE(gsharedvt, [ --enable-gsharedvt Enable generic valuetype sharing], enable_gsharedvt=$enableval, enable_gsharedvt=no) -if test x$enable_gsharedvt = xyes; then - AC_DEFINE(ENABLE_GSHAREDVT,1,[Gsharedvt]) -fi - -AC_ARG_ENABLE(native-types, [ --enable-native-types Enable native types], enable_native_types=$enableval, enable_native_types=no) -if test x$enable_native_types = xyes; then - AC_DEFINE(MONO_NATIVE_TYPES,1,[native types]) -fi +# Deprecated +AC_ARG_ENABLE(gsharedvt, [ --enable-gsharedvt Enable generic valuetype sharing (Deprecated)], enable_gsharedvt=$enableval, enable_gsharedvt=no) AC_MSG_CHECKING(for visibility __attribute__) AC_COMPILE_IFELSE([ @@ -1083,6 +1074,7 @@ if test x$host_win32 = xno; then dnl hires monotonic clock support AC_SEARCH_LIBS(clock_gettime, rt) + AC_CHECK_FUNCS(clock_nanosleep) dnl dynamic loader support AC_CHECK_FUNC(dlopen, DL_LIB="", @@ -2324,6 +2316,9 @@ else #include #include ], [ + #ifndef inet_pton + (void) inet_pton; + #endif inet_pton (0, NULL, NULL); ], [ # Yes, we have it... @@ -3319,6 +3314,12 @@ AC_ARG_WITH([libgdiplus], # default install location libgdiplus_install_loc=libgdiplus${libsuffix} +case "$host" in + *-*-*linux*) + libgdiplus_install_loc=libgdiplus${libsuffix}.0 + ;; +esac + case $with_libgdiplus in no|installed) libgdiplus_loc= @@ -3583,35 +3584,34 @@ AC_ARG_WITH(cooperative_gc, [ --with-cooperative-gc=yes|no Enable cooperat fi ], [with_cooperative_gc=no]) -AC_ARG_WITH(checked_build, [ --with-checked-build=yes|no Enable checked build (expensive asserts)) (defaults to no)],[ - if test x$with_checked_build != xno ; then - AC_DEFINE(CHECKED_BUILD,1,[Enable checked build.]) - fi -], [with_checked_build=no]) +AC_ARG_ENABLE(checked_build, [ --enable-checked-build=LIST To enable checked build (expensive asserts), configure with a comma-separated LIST of checked build modules and then include that same list in the environment variable MONO_CHECK_MODE at runtime. Recognized checked build modules: all, gc, metadata, thread],[ -if test x$with_checked_build != xno ; then - DISABLED_CHECKED_BUILD_TEST=none + if test x$enable_checked_build != x ; then + AC_DEFINE(ENABLE_CHECKED_BUILD,1,[Enable checked build]) + fi + for feature in `echo "$enable_checked_build" | sed -e "s/,/ /g"`; do + eval "mono_checked_build_test_enable_$feature='yes'" + done - AC_ARG_ENABLE(checked_build_test, [ --enable-checked-build-test=LIST drop support for LIST checked build tests. LIST is a comma-separated list from: gc, metadata, thread.], - [ - for feature in `echo "$enable_checked_build_test" | sed -e "s/,/ /g"`; do - eval "mono_checked_build_test_disable_$feature='yes'" - done - DISABLED_CHECKED_BUILD_TEST=$enable_checked_build_test - ],[]) + if test "x$mono_checked_build_test_enable_all" = "xyes"; then + eval "mono_checked_build_test_enable_gc='yes'" + eval "mono_checked_build_test_enable_metadata='yes'" + eval "mono_checked_build_test_enable_thread='yes'" + fi - if test "x$mono_checked_build_test_disable_gc" = "xyes"; then - AC_DEFINE(DISABLE_CHECKED_BUILD_GC, 1, [Disable GC checked build]) + if test "x$mono_checked_build_test_enable_gc" = "xyes"; then + AC_DEFINE(ENABLE_CHECKED_BUILD_GC, 1, [Enable GC checked build]) fi - if test "x$mono_checked_build_test_disable_metadata" = "xyes"; then - AC_DEFINE(DISABLE_CHECKED_BUILD_METADATA, 1, [Disable metadata checked build]) + if test "x$mono_checked_build_test_enable_metadata" = "xyes"; then + AC_DEFINE(ENABLE_CHECKED_BUILD_METADATA, 1, [Enable metadata checked build]) fi - if test "x$mono_checked_build_test_disable_thread" = "xyes"; then - AC_DEFINE(DISABLE_CHECKED_BUILD_THREAD, 1, [Disable thread checked build]) + if test "x$mono_checked_build_test_enable_thread" = "xyes"; then + AC_DEFINE(ENABLE_CHECKED_BUILD_THREAD, 1, [Enable thread checked build]) fi -fi + +], []) AC_CHECK_HEADER([malloc.h], [AC_DEFINE([HAVE_USR_INCLUDE_MALLOC_H], [1], @@ -4064,10 +4064,6 @@ fi if test x$has_extension_module != xno; then echo "EXTENSION_MODULE = 1" >> $srcdir/$mcsdir/build/config.make fi - - if test x$enable_gsharedvt = xno; then - echo "MONO_DISABLE_GSHAREDVT = 1" >> $srcdir/$mcsdir/build/config.make - fi echo "DEFAULT_PROFILE = $default_profile" >> $srcdir/$mcsdir/build/config.make