diff options
author | midipix <writeonce@midipix.org> | 2021-05-02 03:45:23 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-05-02 03:59:24 +0000 |
commit | 240d0f1a4bc854c637cad5d7559165210632b9c8 (patch) | |
tree | cf698e99523c32b5d42788e92e736d5954c97fa5 | |
parent | 3db17ddcdaa2be517df47f3e0c48a518dc493635 (diff) | |
download | slibtool-240d0f1a4bc854c637cad5d7559165210632b9c8.tar.bz2 slibtool-240d0f1a4bc854c637cad5d7559165210632b9c8.tar.xz |
slibtool.m4: added SLIBTOOL_PROG_NM().
-rw-r--r-- | m4/slibtool.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4 index 034a0d6..f21593f 100644 --- a/m4/slibtool.m4 +++ b/m4/slibtool.m4 @@ -208,6 +208,20 @@ slibtool_options="${slibtool_options} disable-static" ]) +# SLIBTOOL_PROG_NM +# ---------------- +AC_DEFUN([SLIBTOOL_PROG_NM],[ + +# slibtool: SLIBTOOL_PROG_NM +# -------------------------- +if [[ -z "${NM:-}" ]]; then + NM="${RANLIB%ranlib}nm" +fi + +AC_SUBST([NM]) +]) + + # SLIBTOOL_INIT(_options_) # ------------------------ AC_DEFUN([SLIBTOOL_INIT],[ @@ -353,6 +367,7 @@ AC_PROG_SED AC_PROG_YACC AC_PROG_RANLIB +AC_PROG_NM AC_PROG_LN_S AC_PROG_MKDIR_P @@ -368,6 +383,9 @@ AC_DEFUN([LT_PREREQ], [SLIBTOOL_PREREQ($@)]) AC_DEFUN([AC_PROG_LIBTOOL], [SLIBTOOL_INIT($@)]) AC_DEFUN([AM_PROG_LIBTOOL], [SLIBTOOL_INIT($@)]) +AC_DEFUN([AC_PROG_NM], [SLIBTOOL_PROG_NM($@)]) +AC_DEFUN([AM_PROG_NM], [SLIBTOOL_PROG_NM($@)]) + AC_DEFUN([AC_ENABLE_SHARED], [SLIBTOOL_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_SHARED], [SLIBTOOL_ENABLE_SHARED($@)]) |