X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fcosl.m4;h=63eef0994b5f3f27a05d0192df83ce7cd8e95c27;hb=da8054d48dc22e1c051db54049e005d51a006e69;hp=0f140c4c1ce82bf2b7f8fbdc2148b9e273ac8023;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/m4/cosl.m4 b/m4/cosl.m4 index 0f140c4c1..63eef0994 100644 --- a/m4/cosl.m4 +++ b/m4/cosl.m4 @@ -1,5 +1,5 @@ -# cosl.m4 serial 6 -dnl Copyright (C) 2010-2012 Free Software Foundation, Inc. +# cosl.m4 serial 8 +dnl Copyright (C) 2010-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -22,8 +22,10 @@ AC_DEFUN([gl_FUNC_COSL], # define __NO_MATH_INLINES 1 /* for glibc */ #endif #include + long double (*funcptr) (long double) = cosl; long double x;]], - [[return cosl (x) > 0.4;]])], + [[return funcptr (x) > 0.4 + || cosl (x) > 0.4;]])], [gl_cv_func_cosl_no_libm=yes], [gl_cv_func_cosl_no_libm=no]) ]) @@ -39,8 +41,10 @@ AC_DEFUN([gl_FUNC_COSL], # define __NO_MATH_INLINES 1 /* for glibc */ #endif #include + long double (*funcptr) (long double) = cosl; long double x;]], - [[return cosl (x) > 0.4;]])], + [[return funcptr (x) > 0.4 + || cosl (x) > 0.4;]])], [gl_cv_func_cosl_in_libm=yes], [gl_cv_func_cosl_in_libm=no]) LIBS="$save_LIBS" @@ -52,7 +56,7 @@ AC_DEFUN([gl_FUNC_COSL], if test $gl_cv_func_cosl_no_libm = yes \ || test $gl_cv_func_cosl_in_libm = yes; then dnl Also check whether it's declared. - dnl MacOS X 10.3 has cosl() in libc but doesn't declare it in . + dnl Mac OS X 10.3 has cosl() in libc but doesn't declare it in . AC_CHECK_DECL([cosl], , [HAVE_DECL_COSL=0], [[#include ]]) else HAVE_DECL_COSL=0