[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9606: Use -lm when looking for fini
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9606: Use -lm when looking for finite or isfinite as they are link tests. |
Date: |
Fri, 15 Aug 2008 22:15:50 -0600 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9606
committer: address@hidden
branch nick: trunk
timestamp: Fri 2008-08-15 22:15:50 -0600
message:
Use -lm when looking for finite or isfinite as they are link tests.
modified:
configure.ac
=== modified file 'configure.ac'
--- a/configure.ac 2008-08-15 19:47:08 +0000
+++ b/configure.ac 2008-08-16 04:15:50 +0000
@@ -1367,6 +1367,10 @@
dnl AC_CHECK_FUNCS(strcasecmp stricmp)
dnl AC_CHECK_FUNCS(vsnprintf)
+dnl These two tests need the math library or they won't link
+dnl on OpenBSD, even if the functions exist.
+save_LIBS=$LIBS
+LIBS="$LIBS -lm"
AC_CACHE_CHECK([for finite], ac_cv_finite,
[AC_TRY_LINK([#include <math.h>],
[double x; int y; y = finite(x);],
@@ -1386,6 +1390,7 @@
if test x"$ac_cv_isfinite" = x"yes"; then
AC_DEFINE(HAVE_ISFINITE, [1], [Has isfinite])
fi
+LIBS=$save_LIBS
AC_LANG_PUSH(C++)
AC_CACHE_CHECK([whether $CXX implements __PRETTY_FUNCTION__],
ac_cv_implements___PRETTY_FUNCTION__, [
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9606: Use -lm when looking for finite or isfinite as they are link tests.,
rob <=