|
@ -13,6 +13,7 @@ find_library(RT rt) |
|
|
find_library(DL dl) |
|
|
find_library(DL dl) |
|
|
check_library_exists(socket socket "" HAVE_SOCKET_LIB) |
|
|
check_library_exists(socket socket "" HAVE_SOCKET_LIB) |
|
|
check_library_exists(nsl gethostbyname "" HAVE_NSL_LIB) |
|
|
check_library_exists(nsl gethostbyname "" HAVE_NSL_LIB) |
|
|
|
|
|
check_library_exists(util openpty "" HAVE_UTIL_LIB) |
|
|
|
|
|
|
|
|
if(RT) |
|
|
if(RT) |
|
|
set(extra_libs ${extra_libs} ${RT}) |
|
|
set(extra_libs ${extra_libs} ${RT}) |
|
@ -35,6 +36,10 @@ if(${HAVE_NSL_LIB}) |
|
|
set(extra_libs ${extra_libs} nsl) |
|
|
set(extra_libs ${extra_libs} nsl) |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if(HAVE_UTIL_LIB) |
|
|
|
|
|
set(extra_libs ${extra_libs} util) |
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
if(${OPENSSL_FOUND} MATCHES True) |
|
|
if(${OPENSSL_FOUND} MATCHES True) |
|
|
add_definitions(-DHAVE_OPENSSL=1) |
|
|
add_definitions(-DHAVE_OPENSSL=1) |
|
|
set(HAVE_OPENSSL True) |
|
|
set(HAVE_OPENSSL True) |
|
|