summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-04-01 04:29:47 +0000
committermidipix <writeonce@midipix.org>2024-04-01 04:29:47 +0000
commit1f28748f10c7930e92b112b2084c214edefed1c4 (patch)
treed650778463e266e83f0eb1c62d90175b9164be4c
parent8056668eebf28eec3101cf567b63a0600e40f36d (diff)
downloadslibtool-1f28748f10c7930e92b112b2084c214edefed1c4.tar.bz2
slibtool-1f28748f10c7930e92b112b2084c214edefed1c4.tar.xz
slibtool.m4: added the SLIBTOOL_OUTPUT macro (and LT_OUTPUT shorthand).
-rw-r--r--m4/slibtool.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4
index 1f2c857..7e81820 100644
--- a/m4/slibtool.m4
+++ b/m4/slibtool.m4
@@ -587,11 +587,21 @@ AC_PROG_MKDIR_P
])
+# SLIBTOOL_OUTPUT
+# ---------------
+AC_DEFUN([SLIBTOOL_OUTPUT],[
+_slibtool_cmd="${SLIBTOOL:-slibtool}"
+_slibtool_cmd="${_slibtool_cmd%% *}"
+_slibtool_aux_dir=$("${_slibtool_cmd}" -print-aux-dir)
+cp -p "${_slibtool_aux_dir}/slibtool.sh" 'libtool'
+])
+
# drop-in replacement
# -------------------
AC_DEFUN([LT_INIT], [SLIBTOOL_INIT($@)])
AC_DEFUN([LT_LANG], [SLIBTOOL_LANG($@)])
AC_DEFUN([LT_PREREQ], [SLIBTOOL_PREREQ($@)])
+AC_DEFUN([LT_OUTPUT], [SLIBTOOL_OUTPUT($@)])
AC_DEFUN([AC_PROG_LIBTOOL], [SLIBTOOL_INIT($@)])
AC_DEFUN([AM_PROG_LIBTOOL], [SLIBTOOL_INIT($@)])