From e8439d3466c7956d57b9a879d020ac616e1bb379 Mon Sep 17 00:00:00 2001 From: Romain Francoise Date: Tue, 1 Nov 2005 11:48:27 +0000 Subject: [PATCH] * configure.in: Check for gzip. * Makefile.in (install): Compress source files. --- ChangeLog | 11 +++++++++-- Makefile.in | 11 +++++++++++ configure.in | 1 + 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6a3343afb0b..c0ba209aeac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,14 @@ +2005-11-01 Romain Francoise + + * configure.in: Check for gzip. + * configure: Regenerate. + + * Makefile.in (install): Compress source files. + 2005-10-24 Steven Tamm - * configure.in: Fix darwin386 configuration issue - * configure: Regenerate + * configure.in: Fix darwin386 configuration issue. + * configure: Regenerate. 2005-10-22 Eli Zaretskii diff --git a/Makefile.in b/Makefile.in index 56551e319ce..00941a9e69a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -223,6 +223,9 @@ INSTALL_INFO = @INSTALL_INFO@ # By default, we uphold the dignity of our programs. INSTALL_STRIP = +# We use gzip to compress installed .el files. +GZIP = @GZIP@ + # ============================= Targets ============================== # Program name transformation. @@ -475,6 +478,14 @@ install-arch-indep: mkdir info (cd ${lispdir}; find . -exec chown $${LOGNAME:-$$USERNAME} {} ';') ; \ else true; fi -unset CDPATH; \ + if [ -n "${GZIP}" ]; \ + then \ + echo "Compressing *.el ..." ; \ + (cd ${lispdir}; for f in `find . -name "*.elc" -print`; do \ + ${GZIP} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \ + done) \ + else true; fi + -unset CDPATH; \ thisdir=`/bin/pwd`; \ if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ then \ diff --git a/configure.in b/configure.in index 628bfcad4d1..077df91d3d0 100644 --- a/configure.in +++ b/configure.in @@ -1272,6 +1272,7 @@ fi AC_PATH_PROG(INSTALL_INFO, install-info) AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin) AC_PATH_PROG(INSTALL_INFO, install-info,:, /sbin) +AC_PATH_PROG(GZIP, gzip) dnl Add our options to ac_link now, after it is set up. -- 2.39.5