Kitware/VTK
ThirdParty/libxml2/vtklibxml2/CMakeLists.txt
:181
check_library_exists(dl dlopen "" HAVE_DLOPEN)
check_library_exists(dl dlopen "" HAVE_DLOPEN)
check_library_exists(dl dlopen "" HAVE_DLOPEN)
target_compile_definitions(uhttpd PRIVATE HAVE_DLOPEN)
CHECK_FUNCTION_EXISTS (dlopen HAVE_DLOPEN)
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
check_function_exists(dlopen HAVE_DLOPEN)
check_c_source_compiles("
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle = dlopen(\"\", RTLD_NOW);
const char *loaderror = (char *) dlerror();
}" HAVE_DLOPEN)
check_function_exists(dlopen HAVE_DLOPEN)
unset(HAVE_DLOPEN CACHE)
check_library_exists(${DL_LIBRARY} dlopen "dlfcn.h" HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
CHECK_FUNCTION_EXISTS (dlopen HAVE_DLOPEN)
ADD_DEFINITIONS(-DHAVE_DLOPEN)
CHECK_FUNCTION_EXISTS (dlopen HAVE_DLOPEN)
ADD_DEFINITIONS(-DHAVE_DLOPEN)
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
check_c_source_compiles("
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle = dlopen(\"\", RTLD_NOW);
const char *loaderror = (char *) dlerror();
}" HAVE_DLOPEN)
CHECK_FUNCTION_EXISTS (dlopen HAVE_DLOPEN)
ADD_DEFINITIONS(-DHAVE_DLOPEN)
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
check_symbol_exists(dlopen "dlfcn.h" HAVE_DLOPEN)
check_c_source_compiles("
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle = dlopen(\"\", RTLD_NOW);
const char *loaderror = (char *) dlerror();
return 0;
}" HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_function_exists(dlopen HAVE_DLOPEN)
check_c_source_compiles("
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle = dlopen(\"\", RTLD_NOW);
const char *loaderror = (char *) dlerror();
}" HAVE_DLOPEN)
endif(NOT HAVE_DLOPEN)
endif(NOT HAVE_DLOPEN)
endif(NOT HAVE_DLOPEN)
endif(NOT HAVE_DLOPEN)
endif(NOT HAVE_DLOPEN)
endif(NOT HAVE_DLOPEN)
endif(NOT HAVE_DLOPEN)
else(NOT HAVE_DLOPEN)
endif(NOT HAVE_DLOPEN)
check_c_source_compiles("
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle = dlopen(\"\", RTLD_NOW);
const char *loaderror = (char *) dlerror();
}" HAVE_DLOPEN)
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_c_source_compiles("
#include <string.h>
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#endif
int
main(int argc, char *argv[])
{
void *handle;
char *error;
handle = dlopen(\"foo.so\", 0);
error = dlerror();
(void)dlsym(handle, \"foo\");
return (error != NULL);
}
" HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_cxx_source_compiles("
#include <cstddef>
#include <dlfcn.h>
int main()
{
void *handle = dlopen (\"somelib.so\", RTLD_LAZY);
return handle == NULL || dlerror();
}
" HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen "dlfcn.h" HAVE_DLOPEN)
check_c_source_compiles("
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle = dlopen(\"\", RTLD_NOW);
const char *loaderror = (char *) dlerror();
return 0;
}" HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_function_exists(dlopen HAVE_DLOPEN)
check_c_source_compiles("
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle = dlopen(\"\", RTLD_NOW);
const char *loaderror = (char *) dlerror();
}" HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
check_library_exists(dl dlopen "" HAVE_DLOPEN)
check_library_exists(dl dlopen "" HAVE_DLOPEN)
check_symbol_exists(dlopen "dlfcn.h" HAVE_DLOPEN)
check_c_source_compiles("
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle = dlopen(\"\", RTLD_NOW);
const char *loaderror = (char *) dlerror();
return 0;
}" HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen "dlfcn.h" HAVE_DLOPEN)
check_c_source_compiles("
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle = dlopen(\"\", RTLD_NOW);
const char *loaderror = (char *) dlerror();
return 0;
}" HAVE_DLOPEN)
check_function_exists(dlopen HAVE_DLOPEN)
check_c_source_compiles("
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle = dlopen(\"\", RTLD_NOW);
const char *loaderror = (char *) dlerror();
}" HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)
check_symbol_exists ( dlopen "dlfcn.h" HAVE_DLOPEN )
target_compile_definitions ( icu PRIVATE HAVE_DLOPEN=0 )
check_library_exists("dl" "dlopen" "" HAVE_DLOPEN)