Kitware/VTK
ThirdParty/libxml2/vtklibxml2/CMakeLists.txt
:182
check_include_files(dl.h HAVE_DL_H)
check_include_files(dl.h HAVE_DL_H)
CHECK_INCLUDE_FILE(dl.h HAVE_DL_H)
check_c_source_compiles("
#include <string.h>
#ifdef HAVE_DL_H
#include <dl.h>
#endif
int
main(int argc, char *argv[])
{
void *handle;
void **p;
handle = shl_load(\"foo.so\", BIND_IMMEDIATE, 0);
(void)shl_findsym((shl_t *)&handle, \"foo\", TYPE_PROCEDURE, p);
(void)shl_findsym((shl_t *)&handle, \"foo\", TYPE_DATA, p);
shl_unload((shl_t)handle);
return (handle != NULL);
}
" HAVE_SHL_LOAD)
check_include_file(dl.h HAVE_DL_H)
CHECK_INCLUDE_FILE("dl.h" HAVE_DL_H)