Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
message(STATUS "libresolv not found on ${CMAKE_SYSTEM_NAME}: Only dns faking will be available")
endif()
-set(CMAKE_REQUIRED_LIBRARIES ${RESOLV_LIRBRARY})
-check_function_exists(res_send HAVE_RES_SEND)
-check_function_exists(__res_send HAVE___RES_SEND)
-unset(CMAKE_REQUIRED_LIBRARIES)
-
set(CMAKE_REQUIRED_LIBRARIES ${RESOLV_LIRBRARY})
check_function_exists(res_init HAVE_RES_INIT)
check_function_exists(__res_init HAVE___RES_INIT)