mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
fix some Solaris Sparc errors from recent cleanup
This commit is contained in:
parent
3dabe24884
commit
0f3b102db9
1 changed files with 9 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue