[Mono-dev] [RFC 02/12] configure: Don't hardcode libm dependency

Rodrigo Kumpera kumpera at gmail.com
Fri Mar 26 11:09:22 EDT 2010


Please add such comment to configure.in. After that, patch looks good.

On Fri, Mar 26, 2010 at 10:29 AM, Andreas Färber <andreas.faerber at web.de>wrote:

> Haiku has math functions in libroot.so and no libm.so.
>
> A more elegant solution would be an autoconf check for some math function
> actually used. That would avoid linking against -lm on Mac OS X as well,
> where libm.dylib is a symlink to libSystem.dylib only.
> In its present form, the patch does not change behavior of other platforms.
>
> This commit is licensed under the MIT X11 license.
> ---
>  configure.in |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/configure.in b/configure.in
> index 5cc7e4e..8b0a5c5 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -1509,7 +1509,13 @@ if test x$target_win32 = xno; then
>        dnl *********************************
>        dnl *** Checks for math functions ***
>        dnl *********************************
> +       case $host_os in
> +               haiku*)
> +               ;;
> +               *)
>         LIBS="$LIBS -lm";
> +               ;;
> +       esac
>        if test "x$has_broken_apple_cpp" != "xyes"; then
>                AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite in
> math.h)
>                        AC_TRY_LINK([#include <math.h>],
> --
> 1.6.5.3
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100326/fcf6f879/attachment-0001.html 


More information about the Mono-devel-list mailing list