public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [top level] autoconfiscate INSTALL usage
@ 2003-07-12  2:40 Nathanael Nerode
  2003-07-12  2:45 ` Andrew Pinski
  2003-07-12 17:34 ` Zack Weinberg
  0 siblings, 2 replies; 8+ messages in thread
From: Nathanael Nerode @ 2003-07-12  2:40 UTC (permalink / raw)
  To: gcc-patches; +Cc: gdb-patches, binutils

Submitting for general consideration.  Plus, it affects a bug.  Tested
on i686-pc-linux-gnu.

	PR bootstrap/11408
	* Makefile.tpl: Set INSTALL and friends using autoconf.  Remove
	unused INSTALL_PROGRAM_ARGS.
	* configure.in: Use AC_PROG_INSTALL.
	* Makefile.in: Regenerate.
	* configure: Regenerate.

Index: Makefile.tpl
===================================================================
RCS file: /cvs/gcc/gcc/Makefile.tpl,v
retrieving revision 1.65
diff -u -r1.65 Makefile.tpl
--- Makefile.tpl	8 Jul 2003 05:54:54 -0000	1.65
+++ Makefile.tpl	11 Jul 2003 04:56:20 -0000
@@ -64,14 +64,10 @@
 man8dir = $(mandir)/man8
 man9dir = $(mandir)/man9
 
-# INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
-# cygwin host.
-INSTALL_PROGRAM_ARGS =
-
-INSTALL = $(SHELL) $$s/install-sh -c
-INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
-INSTALL_SCRIPT = $(INSTALL)
-INSTALL_DATA = $(INSTALL) -m 644
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_DATA = @INSTALL_DATA
 
 # -------------------------------------------------
 # Miscellaneous non-standard autoconf-set variables
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/configure.in,v
retrieving revision 1.243
diff -u -r1.243 configure.in
--- configure.in	27 Jun 2003 17:33:51 -0000	1.243
+++ configure.in	11 Jul 2003 04:56:24 -0000
@@ -23,6 +23,9 @@
 AC_CANONICAL_SYSTEM
 AC_ARG_PROGRAM
 
+# Get 'install' or 'install-sh' and its variants.
+AC_PROG_INSTALL
+
 sinclude(config/acx.m4)
 
 ### we might need to use some other shell than /bin/sh for running subshells

-- 
Nathanael Nerode  <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [top level] autoconfiscate INSTALL usage
@ 2003-07-12 17:58 Nathanael Nerode
  2003-07-12 17:59 ` Zack Weinberg
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Nathanael Nerode @ 2003-07-12 17:58 UTC (permalink / raw)
  To: zack, gdb-patches, binutils, gcc-patches

Zack said:
>I've been wondering for years why GCC 'make install' never used the
>perfectly good /usr/bin/install on Linux or Solaris.
>
>> +INSTALL_DATA = @INSTALL_DATA
>
>Typo - need a trailing @.
Thanks for catching that.  (Gah; I thought I'd looked at the resulting
Makefile and it was OK...  I guess I saw what I expected to see.)  OK 
with that fix?

>Do similar patches need to be put into the subdirectory Makefiles, or
>do they just take the values of INSTALL_* passed down from the top
>level?
I think generally they just take the passed-down copies.

-- 
Nathanael Nerode  <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-07-13 20:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-12  2:40 [top level] autoconfiscate INSTALL usage Nathanael Nerode
2003-07-12  2:45 ` Andrew Pinski
2003-07-12 17:34 ` Zack Weinberg
2003-07-12 17:58 Nathanael Nerode
2003-07-12 17:59 ` Zack Weinberg
2003-07-12 19:46 ` Phil Edwards
2003-07-12 22:16   ` Joseph S. Myers
2003-07-13 20:21 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).