summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vv221804@astra04>2009-12-07 23:31:10 +0100
committerVladislav Vaintroub <vv221804@astra04>2009-12-07 23:31:10 +0100
commit0f3b102db9ed2b71c29c25f76e5f0a9603cc73fc (patch)
tree8aa6ad7d66150c1dc4679a754ccceacf05852f96 /configure.cmake
parent3dabe248844c7bec52e8d271e2e72e19738ff2d0 (diff)
downloadmariadb-git-0f3b102db9ed2b71c29c25f76e5f0a9603cc73fc.tar.gz
fix some Solaris Sparc errors from recent cleanup
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.cmake b/configure.cmake
index 6799490689e..8c1e5cf9859 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -265,8 +265,8 @@ FUNCTION(MY_SEARCH_LIBS func libs result)
CHECK_LIBRARY_EXISTS(${lib} ${func} "" HAVE_${func}_IN_${lib})
IF(HAVE_${func}_IN_${lib})
SET(${result} ${lib} PARENT_SCOPE)
+ RETURN()
ENDIF()
- RETURN()
ENDFOREACH()
ENDFUNCTION()
@@ -665,9 +665,16 @@ ELSE()
ENDIF()
CHECK_SYMBOL_EXISTS(log2 math.h HAVE_LOG2)
CHECK_SYMBOL_EXISTS(isnan math.h HAVE_ISNAN)
-CHECK_SYMBOL_EXISTS(isinf math.h HAVE_ISINF)
CHECK_SYMBOL_EXISTS(rint math.h HAVE_RINT)
+# isinf() prototype not found on Solaris
+CHECK_CXX_SOURCE_COMPILES(
+"#include <math.h>
+int main() {
+ isinf(0.0);
+ return 0;
+}" HAVE_ISINF)
+
#