From bae2eee028334f658363709fb65b79eff1a8ecb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Tue, 13 Aug 2013 09:58:09 +0000 Subject: Implement in cmake: http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=51322 > User: guy > Date: 2013/08/12 01:01 PM > > Log: > Just check whether dladdr() is available; we check in the code whether > it succeeds, so there's no point in checking whether it succeeds in a > sample program. svn path=/trunk/; revision=51334 --- ConfigureChecks.cmake | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index f36ada153b..a8d319bd75 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -65,7 +65,14 @@ check_include_file("winsock2.h" HAVE_WINSOCK2_H) #Functions include(CheckFunctionExists) +include(CMakePushCheckState) check_function_exists("chown" HAVE_CHOWN) + +cmake_push_check_state() +set(CMAKE_REQUIRED_LIBRARIES ΒΌ{CMAKE_DL_LIBS}) +check_function_exists("dladdr" HAVE_DLADDR) +cmake_pop_check_state() + check_function_exists("gethostbyname2" HAVE_GETHOSTBYNAME2) check_function_exists("getopt" HAVE_GETOPT) check_function_exists("getprotobynumber" HAVE_GETPROTOBYNUMBER) -- cgit v1.2.3