summaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index b052888455..4e896b6e07 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -96,7 +96,14 @@ cmake_pop_check_state()
# Use check_symbol_exists just in case math.h does something magic
# and there's not actually a function named floorl()
#
+if(UNIX)
+ set(_mathlib m)
+endif()
+cmake_push_check_state()
+set(CMAKE_REQUIRED_LIBRARIES ${_mathlib})
check_symbol_exists("floorl" "math.h" HAVE_FLOORL)
+cmake_pop_check_state()
+
check_function_exists("getaddrinfo" HAVE_GETADDRINFO)
check_function_exists("gethostbyname" HAVE_GETHOSTBYNAME)
check_function_exists("gethostbyname2" HAVE_GETHOSTBYNAME2)