summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-03-15 15:30:04 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:36 +0200
commit3c5973cb03acca3444e61ed6f20f7e92c6c676dc (patch)
tree79adfdcacec03714bc3cbd8c2dd18516c8c371ba
parent73ad13e70b8e9e8e27bd959467513f0bb9c8b144 (diff)
2006-03-15 Thomas Schwinge <tschwinge@gnu.org
* configure.in: Check for strip and gzip. * configure: Regenerated. * Makerules.in (GZIP, STRIP): New variables. (%.gz, %.stripped): New targets.
-rw-r--r--Makerules.in10
-rw-r--r--configure.in2
2 files changed, 12 insertions, 0 deletions
diff --git a/Makerules.in b/Makerules.in
index 376b91e..60181ae 100644
--- a/Makerules.in
+++ b/Makerules.in
@@ -25,11 +25,13 @@ AR = @AR@
AWK = @AWK@
CC = @CC@
CPP = @CPP@
+GZIP = @GZIP@
LD = @LD@
MBCHK = @MBCHK@
MIG = @MIG@
NM = @NM@
RANLIB = @RANLIB@
+STRIP = @STRIP@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -99,6 +101,14 @@ ASFLAGS += -DASSEMBLER
$(MIG) $(MIGFLAGS) -sheader $*_interface.h -server $*_server.c \
-header /dev/null -user /dev/null $<
+# gzip files
+%.gz: %
+ $(GZIP) -9 < $< > $@
+
+# strip files
+%.stripped: %
+ $(STRIP) -o $@ $<
+
#
# Dependency generation
#
diff --git a/configure.in b/configure.in
index 2f631e2..0a0baeb 100644
--- a/configure.in
+++ b/configure.in
@@ -58,9 +58,11 @@ AC_PROG_RANLIB
AC_CHECK_TOOL([AR], [ar])
AC_CHECK_TOOL([LD], [ld])
AC_CHECK_TOOL([NM], [nm])
+AC_CHECK_TOOL([STRIP], [strip])
AC_CHECK_TOOL([MIG], [mig], [mig])
+AC_CHECK_PROG([GZIP], [gzip], [gzip], false)
AC_CHECK_PROG([MBCHK], [mbchk], [mbchk], :)
# Set up `machine' and `mach/machine' links in the build directory for easier