Fixed cloning of default switch case
[mono.git] / configure.in
index 602ea0bff319e323c41280620e2aa8beb8da2ae7..0f0cd253308b2474ba9b011da8d6fd1d1e4fd294 100644 (file)
@@ -86,7 +86,7 @@ case "$host" in
                host_win32=yes
                if test "x$cross_compiling" = "xno"; then
                        target_win32=yes
-                       if test "x$host" == "x$target"; then
+                       if test "x$host" == "x$build"; then
                                AC_DEFINE(TARGET_WIN32,1,[Target OS is Win32])
                        fi
                        CC="gcc -mno-cygwin -g"
@@ -984,6 +984,7 @@ if test x$target_win32 = xno; then
        AC_CHECK_FUNCS(getpriority)
        AC_CHECK_FUNCS(setpriority)
        AC_CHECK_FUNCS(dl_iterate_phdr)
+       AC_CHECK_FUNCS(dladdr)
        AC_CHECK_FUNCS(sysconf)
 
        AC_CHECK_FUNCS(sched_setaffinity)
@@ -1836,7 +1837,7 @@ try_dev_random=$enableval, try_dev_random=yes)
 
 AC_MSG_RESULT($try_dev_random)
 
-case "{$target}" in
+case "{$build}" in
     *-openbsd*)
     NAME_DEV_RANDOM="/dev/srandom"
     ;;
@@ -2120,7 +2121,7 @@ case "$host" in
                        sgen_supported=true
                        AOT_SUPPORTED="yes"
                        ;;
-                 darwin*|openbsd*)
+                 darwin*|openbsd*|freebsd*)
                        sgen_supported=true
                        ;;
                esac
@@ -2135,7 +2136,7 @@ case "$host" in
                        sgen_supported=true
                        AOT_SUPPORTED="yes"
                        ;;
-                 darwin*|openbsd*)
+                 darwin*|openbsd*|freebsd*)
                        sgen_supported=true
                        ;;
                esac