])
AC_PROG_INSTALL
-AC_PROG_LN_S
-AC_PROG_MAKE_SET
if test "$(${INSTALL} --help 2> /dev/null | fgrep -e --preserve-timestamps)"
then
INSTALL="${INSTALL} --preserve-timestamps"
fi
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+AC_CHECK_PROG([INSTALL_INFO_PROG], [install-info], [install-info], [true])
TARGETS=
INST_TARGETS=
AC_ARG_ENABLE([ps],
[AC_HELP_STRING([--enable-ps], [generate Postscript documentation])])
-if test "${enable_ps:-yes}" = "yes"; then
- psdir="${libdir}/mit-scheme/doc"
-elif test "${enable_ps}" = "no"; then
+if test "${enable_ps:-no}" = "no"; then
psdir=
+elif test "${enable_ps}" = "yes"; then
+ psdir="${libdir}/mit-scheme/doc"
else
psdir="${enable_ps}"
fi
pdfdir = @pdfdir@
psdir = @psdir@
+INSTALL_INFO_PROG = @INSTALL_INFO_PROG@
TARGETS = @TARGETS@
INST_TARGETS = @INST_TARGETS@
install-info: $(INFO_TARGET)
-rm -f $(DESTDIR)$(infodir)/$(INFO_TARGET)*
$(INSTALL_DATA) $(INFO_TARGET)* $(DESTDIR)$(infodir)/.
+ $(INSTALL_INFO_PROG) --info-dir $(DESTDIR)$(infodir)/ $(INFO_TARGET)
install-info-gz: install-info
gzip -v $(DESTDIR)$(infodir)/$(INFO_TARGET)*