summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/slibtool.m47
-rw-r--r--m4/sltdl.m439
-rw-r--r--m4/sysltdl.m439
3 files changed, 85 insertions, 0 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4
index b1ed75b..355b8c4 100644
--- a/m4/slibtool.m4
+++ b/m4/slibtool.m4
@@ -253,6 +253,12 @@ slibtool_set_flavor()
;;
esac
+ case "_${slibtool_prefer_sltdl:-}" in
+ '_yes')
+ SLIBTOOL="${SLIBTOOL} --prefer-sltdl"
+ ;;
+ esac
+
# drop-in replacement
enable_shared=${slibtool_enable_shared}
enable_static=${slibtool_enable_static}
@@ -448,6 +454,7 @@ AC_DEFUN([SLIBTOOL_INIT],[
AC_BEFORE([SLIBTOOL_LANG])
AC_REQUIRE([SLIBTOOL_PREREQ])
AC_REQUIRE([_SLIBTOOL_DEFAULTS])
+AC_REQUIRE([_SLIBTOOL_SLTDL_OPTION])
AC_REQUIRE([_SLIBTOOL_SET_FLAVOR])
AC_REQUIRE([_SLIBTOOL_ARGUMENT_HANDLING])
diff --git a/m4/sltdl.m4 b/m4/sltdl.m4
new file mode 100644
index 0000000..4d15333
--- /dev/null
+++ b/m4/sltdl.m4
@@ -0,0 +1,39 @@
+###############################################################################
+# #
+# sltdl.m4: native libsltdl integration for autoconf-based projects #
+# #
+# Copyright (C) 2016--2025 SysDeer Technologies, LLC #
+# #
+# Permission is hereby granted, free of charge, to any person obtaining #
+# a copy of this software and associated documentation files (the #
+# "Software"), to deal in the Software without restriction, including #
+# without limitation the rights to use, copy, modify, merge, publish, #
+# distribute, sublicense, and/or sell copies of the Software, and to #
+# permit persons to whom the Software is furnished to do so, subject to #
+# the following conditions: #
+# #
+# The above copyright notice and this permission notice shall be included #
+# in all copies or substantial portions of the Software. #
+# #
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS #
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF #
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. #
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY #
+# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, #
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE #
+# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #
+# #
+###############################################################################
+
+
+
+# __SLIBTOOL_SLTDL_OPTION
+# ------------------
+AC_DEFUN([_SLIBTOOL_SLTDL_OPTION],[
+AC_BEFORE([$0],[SLIBTOOL_INIT])
+AC_BEFORE([$0],[_SLIBTOOL_ARGUMENT_HANDLING])
+
+# slibtool: sltdl option
+# ---------------------------------
+slibtool_prefer_sltdl='yes'
+])
diff --git a/m4/sysltdl.m4 b/m4/sysltdl.m4
new file mode 100644
index 0000000..baeb847
--- /dev/null
+++ b/m4/sysltdl.m4
@@ -0,0 +1,39 @@
+###############################################################################
+# #
+# sysltdl.m4: system libltdl integration for autoconf-based projects #
+# #
+# Copyright (C) 2016--2025 SysDeer Technologies, LLC #
+# #
+# Permission is hereby granted, free of charge, to any person obtaining #
+# a copy of this software and associated documentation files (the #
+# "Software"), to deal in the Software without restriction, including #
+# without limitation the rights to use, copy, modify, merge, publish, #
+# distribute, sublicense, and/or sell copies of the Software, and to #
+# permit persons to whom the Software is furnished to do so, subject to #
+# the following conditions: #
+# #
+# The above copyright notice and this permission notice shall be included #
+# in all copies or substantial portions of the Software. #
+# #
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS #
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF #
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. #
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY #
+# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, #
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE #
+# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #
+# #
+###############################################################################
+
+
+
+# __SLIBTOOL_SLTDL_OPTION
+# ------------------
+AC_DEFUN([_SLIBTOOL_SLTDL_OPTION],[
+AC_BEFORE([$0],[SLIBTOOL_INIT])
+AC_BEFORE([$0],[_SLIBTOOL_ARGUMENT_HANDLING])
+
+# slibtool: sltdl option
+# ---------------------------------
+slibtool_prefer_sltdl='no'
+])