File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,11 @@ else()
20
20
check_symbol_exists (res_search "${resolve_headers} " _MONGOC_HAVE_RES_SEARCH_RESOLV )
21
21
check_symbol_exists (res_ndestroy "${resolve_headers} " _MONGOC_HAVE_RES_NDESTROY_RESOLV )
22
22
check_symbol_exists (res_nclose "${resolve_headers} " _MONGOC_HAVE_RES_NCLOSE_RESOLV )
23
- if ((_MONGOC_HAVE_RES_NSEARCH_RESOLV OR _MONGOC_HAVE_RES_SEARCH_RESOLV )
24
- AND (_MONGOC_HAVE_RES_NDESTROY_RESOLV OR _MONGOC_HAVE_RES_NCLOSE_RESOLV ))
23
+ if (
24
+ (_MONGOC_HAVE_RES_NSEARCH_RESOLV
25
+ AND (_MONGOC_HAVE_RES_NDESTROY_RESOLV OR _MONGOC_HAVE_RES_NCLOSE_RESOLV ))
26
+ OR _MONGOC_HAVE_RES_SEARCH_RESOLV
27
+ )
25
28
set (RESOLVE_LIB_NAME resolv )
26
29
else ()
27
30
# Can we use name resolution with just libc?
@@ -30,8 +33,11 @@ else()
30
33
check_symbol_exists (res_search "${resolve_headers} " _MONGOC_HAVE_RES_SEARCH_NOLINK )
31
34
check_symbol_exists (res_ndestroy "${resolve_headers} " _MONGOC_HAVE_RES_NDESTROY_NOLINK )
32
35
check_symbol_exists (res_nclose "${resolve_headers} " _MONGOC_HAVE_RES_NCLOSE_NOLINK )
33
- if ((_MONGOC_HAVE_RES_NSEARCH_NOLINK OR _MONGOC_HAVE_RES_SEARCH_NOLINK )
34
- AND (_MONGOC_HAVE_RES_NDESTROY_NOLINK OR _MONGOC_HAVE_RES_NCLOSE_NOLINK ))
36
+ if (
37
+ (_MONGOC_HAVE_RES_NSEARCH_NOLINK
38
+ AND (_MONGOC_HAVE_RES_NDESTROY_NOLINK OR _MONGOC_HAVE_RES_NCLOSE_NOLINK ))
39
+ OR _MONGOC_HAVE_RES_SEARCH_NOLINK
40
+ )
35
41
set (resolve_is_libc TRUE )
36
42
message (VERBOSE "Name resolution is provided by the C runtime" )
37
43
endif ()
You can’t perform that action at this time.
0 commit comments