summaryrefslogtreecommitdiff
path: root/3rdparty/plibsys/platforms/common/HPUX.cmake
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/plibsys/platforms/common/HPUX.cmake')
-rw-r--r--3rdparty/plibsys/platforms/common/HPUX.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/3rdparty/plibsys/platforms/common/HPUX.cmake b/3rdparty/plibsys/platforms/common/HPUX.cmake
new file mode 100644
index 0000000..d411066
--- /dev/null
+++ b/3rdparty/plibsys/platforms/common/HPUX.cmake
@@ -0,0 +1,15 @@
+include (CheckFunctionExists)
+
+function (plibsys_hpux_detect_libraryloader_model result)
+ message (STATUS "Checking whether dlopen() presents")
+
+ check_function_exists (dlopen PLIBSYS_HPUX_HAS_DLOPEN)
+
+ if (PLIBSYS_HPUX_HAS_DLOPEN)
+ message (STATUS "Checking whether dlopen() presents - yes")
+ set (${result} posix PARENT_SCOPE)
+ else()
+ message (STATUS "Checking whether dlopen() presents - no")
+ set (${result} shl PARENT_SCOPE)
+ endif()
+endfunction (plibsys_hpux_detect_libraryloader_model)