changeset 66609:9578bb750e29

* configure.in: Check for gzip. * Makefile.in (install): Compress source files.
author Romain Francoise <romain@orebokech.com>
date Tue, 01 Nov 2005 11:48:27 +0000
parents 7572dd565420
children 5e5764b98f3e
files ChangeLog Makefile.in configure.in
diffstat 3 files changed, 21 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Nov 01 10:39:42 2005 +0000
+++ b/ChangeLog	Tue Nov 01 11:48:27 2005 +0000
@@ -1,7 +1,14 @@
+2005-11-01  Romain Francoise  <romain@orebokech.com>
+
+	* configure.in: Check for gzip.
+	* configure: Regenerate.
+
+	* Makefile.in (install): Compress source files.
+
 2005-10-24  Steven Tamm  <steventamm@mac.com>
 
-	* configure.in: Fix darwin386 configuration issue
-	* configure: Regenerate
+	* configure.in: Fix darwin386 configuration issue.
+	* configure: Regenerate.
 
 2005-10-22  Eli Zaretskii  <eliz@gnu.org>
 
--- a/Makefile.in	Tue Nov 01 10:39:42 2005 +0000
+++ b/Makefile.in	Tue Nov 01 11:48:27 2005 +0000
@@ -223,6 +223,9 @@
 # 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 @@
 	   (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 \
--- a/configure.in	Tue Nov 01 10:39:42 2005 +0000
+++ b/configure.in	Tue Nov 01 11:48:27 2005 +0000
@@ -1272,6 +1272,7 @@
 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.