From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12908 invoked from network); 2 Dec 1999 22:17:50 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Dec 1999 22:17:50 -0000 Received: (qmail 3300 invoked by alias); 2 Dec 1999 22:13:46 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8863 Received: (qmail 3194 invoked from network); 2 Dec 1999 22:13:41 -0000 Date: Thu, 2 Dec 1999 17:13:36 -0500 From: Clint Adams To: zsh-workers@sunsite.auc.dk Subject: PATCH: better configure-time handling of program-transform Message-ID: <19991202171336.A20559@dman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0i This reduces the basename calculation to only once, which should make everyone happier. Index: Makefile.in =================================================================== RCS file: /cvs/zsh/zsh/Makefile.in,v retrieving revision 1.1.1.7 diff -u -r1.1.1.7 Makefile.in --- Makefile.in 1999/11/30 21:10:36 1.1.1.7 +++ Makefile.in 1999/12/02 22:09:53 @@ -39,14 +39,14 @@ @DEFS_MK@ transform = @program_transform_name@ -tzsh = `echo zsh | sed "$(transform)"` +tzsh = @tzsh@ # ========== DEPENDENCIES FOR BUILDING ========== # default target all: config.h @for subdir in Src Doc; do \ - (cd $$subdir && $(MAKE) $(MAKEDEFS) tzsh=$(tzsh) $@) || exit 1; \ + (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \ done check test: @@ -71,7 +71,7 @@ # install/uninstall just the binary install.bin uninstall.bin: - @cd Src && $(MAKE) $(MAKEDEFS) tzsh=$(tzsh) $@ + @cd Src && $(MAKE) $(MAKEDEFS) $@ # install/uninstall just the modules install.modules uninstall.modules: @@ -88,7 +88,7 @@ # install/uninstall just the info pages install.info uninstall.info: - @cd Doc && $(MAKE) $(MAKEDEFS) tzsh=$(tzsh) $@ + @cd Doc && $(MAKE) $(MAKEDEFS) $@ # install/uninstall just the html pages install.html uninstall.html: Index: configure.in =================================================================== RCS file: /cvs/zsh/zsh/configure.in,v retrieving revision 1.1.1.44 diff -u -r1.1.1.44 configure.in --- configure.in 1999/11/30 18:16:49 1.1.1.44 +++ configure.in 1999/12/02 22:09:53 @@ -48,6 +48,15 @@ dnl Handle --program-prefix, --program-suffix, etc. AC_ARG_PROGRAM +u_ptn=`make -f - <