JulNadeauCA/libagar
CMakeChecks.cmake
:2641
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)