automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: install-strip and bin_SCRIPTS


From: Alexandre Duret-Lutz
Subject: Re: install-strip and bin_SCRIPTS
Date: 21 Jun 2001 10:08:58 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>> "Emil" == Emil Ong <address@hidden> writes:

[...]

 Emil> % autoconf
 Emil> % ./configure --prefix=/sandbox/onge/am-test-install
 Emil> creating cache ./config.cache        

I could not reproduce it until I see this line,
which indicates Autoconf 2.13.  It works fine with Autoconf 2.50.

~/tmp/am-test % autoconf2.13                                           9:47 #16
~/tmp/am-test % ./configure -q --prefix ~/tmp/test                     9:47 #17
creating cache ./config.cache
updating cache ./config.cache
creating ./config.status
creating Makefile
~/tmp/am-test % make install-strip                                     9:47 #18
make  INSTALL_PROGRAM="/bin/sh `CDPATH=: && cd . && pwd`/install-sh -c -s" \
  `test -z '' || \
    echo "INSTALL_PROGRAM_ENV=STRIPPROG=''"` install
make[1]: Entering directory `/home/adl/tmp/am-test'
make[2]: Entering directory `/home/adl/tmp/am-test'
/bin/sh ./mkinstalldirs /home/adl/tmp/test/bin
 /bin/sh /home/adl/tmp/am-test/install-sh -c -s myscript 
/home/adl/tmp/test/bin/myscript
strip: /home/adl/tmp/test/bin/#inst.25239#: File format not recognized
make[2]: *** [install-binSCRIPTS] Error 1
make[2]: Leaving directory `/home/adl/tmp/am-test'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/adl/tmp/am-test'
make: *** [install-strip] Error 2
~/tmp/am-test % rm config.cache                                       Err 2 #19
~/tmp/am-test % autoconf2.50                                           9:47 #20
~/tmp/am-test % ./configure -q --prefix ~/tmp/test                     9:47 #21
config.status: creating Makefile
~/tmp/am-test % make install-strip                                     9:47 #22
make  INSTALL_PROGRAM="/bin/sh `CDPATH=: && cd . && pwd`/install-sh -c -s" \
  `test -z '' || \
    echo "INSTALL_PROGRAM_ENV=STRIPPROG=''"` install
make[1]: Entering directory `/home/adl/tmp/am-test'
make[2]: Entering directory `/home/adl/tmp/am-test'
/bin/sh ./mkinstalldirs /home/adl/tmp/test/bin
 /usr/bin/install -c myscript /home/adl/tmp/test/bin/myscript
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/adl/tmp/am-test'
make[1]: Leaving directory `/home/adl/tmp/am-test'
~/tmp/am-test %                                                        9:47 #23

Here is the difference between the two generated Makefiles:

~/tmp/am-test % diff -u Makefile.2.13 Makefile.2.50                    9:49 #31
--- Makefile.2.13       Thu Jun 21 09:49:41 2001
+++ Makefile.2.50       Thu Jun 21 09:48:53 2001
@@ -1,4 +1,3 @@
-# Generated automatically from Makefile.in by configure.
 # Makefile.in generated automatically by automake 1.4g from Makefile.am.
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
@@ -18,6 +17,7 @@
 
 srcdir = .
 top_srcdir = .
+
 prefix = /home/adl/tmp/test
 exec_prefix = ${prefix}
 
@@ -46,7 +46,7 @@
 INSTALL = /usr/bin/install -c
 INSTALL_PROGRAM = ${INSTALL}
 INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_SCRIPT = ${INSTALL_PROGRAM}
+INSTALL_SCRIPT = ${INSTALL}
 INSTALL_HEADER = $(INSTALL_DATA)
 transform = s,x,x,
 NORMAL_INSTALL = :
~/tmp/am-test %                                                       Err 1 #32

[...]

-- 
Alexandre Duret-Lutz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]