Having lround() does not mean llround() is available.

We need to check for both lround() and llround() for at
least Cygwin.
(cherry picked from commit a1e2bfc93c)
This commit is contained in:
Cary R
2009-12-25 18:16:52 -05:00
committed by Stephen Williams
parent f733030b41
commit 9cd7a22dbe
2 changed files with 10 additions and 6 deletions
+1
View File
@@ -174,6 +174,7 @@ AC_CHECK_FUNCS(fopen64)
# systems we may need to use the compiler in C99 mode to get a definition.
# We requested C99 mode earlier with AC_PROG_CC_C99.
AC_SEARCH_LIBS([lround], [m], [AC_DEFINE([HAVE_LROUND], [1])])
AC_SEARCH_LIBS([llround], [m], [AC_DEFINE([HAVE_LLROUND], [1])])
AC_SEARCH_LIBS([nan], [m], [AC_DEFINE([HAVE_NAN], [1])])
AC_SEARCH_LIBS([fmin], [m], [AC_DEFINE([HAVE_FMIN], [1])])
AC_SEARCH_LIBS([fmax], [m], [AC_DEFINE([HAVE_FMAX], [1])])