summaryrefslogtreecommitdiffhomepage
path: root/m4
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-31 04:24:23 +0000
committermidipix <writeonce@midipix.org>2024-03-31 04:24:23 +0000
commitbfeee90a957413b5e98357c821c958691353d950 (patch)
tree83cde49f5ea5173b7b68c4b7f150c231e98ce8e2 /m4
parent1b12612023f99ddf8a71bb93c368440c8290adfe (diff)
downloadslibtool-bfeee90a957413b5e98357c821c958691353d950.tar.bz2
slibtool-bfeee90a957413b5e98357c821c958691353d950.tar.xz
slibtool.m4: produce a backward compatible slibtool.cfg.
Diffstat (limited to 'm4')
-rw-r--r--m4/slibtool.m414
1 files changed, 7 insertions, 7 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4
index aecd2c5..4c3758e 100644
--- a/m4/slibtool.m4
+++ b/m4/slibtool.m4
@@ -230,13 +230,6 @@ slibtool_set_flavor()
enable_win32_dll=${slibtool_enable_win32_dll}
enable_fast_install=${slibtool_enable_fast_install}
pic_mode=${slibtool_pic_mode}
-
- # backward-compatible heuristics support
- printf "%s\n%s=%s\n%s=%s\n" \
- '#!/dev/null' \
- 'build_libtool_libs' "${slibtool_enable_shared}" \
- 'build_old_libs' "${slibtool_enable_static}" \
- > libtool
}
])
@@ -531,6 +524,13 @@ m4_if([$1],[Fortran 77],[
AC_PROG_FC
AC_PROG_F77
])
+
+# produce a backward compatible slibtool.cfg
+AC_CONFIG_COMMANDS_PRE(
+ AC_CONFIG_FILES(
+ [slibtool.cfg:Makefile],
+ [${SLIBTOOL:-slibtool} --mkvars=Makefile --config > slibtool.cfg],
+ [rm -f slibtool.cfg || exit 2]))
])