This is the mail archive of the
automake-prs@sources.redhat.com
mailing list for the automake project.
Re: automake/396: INSTALL_SCRIPTS used but not set for a scriptheavy automake file.
- From: Alexandre Duret-Lutz <aduret at src dot lip6 dot fr>
- To: tromey at redhat dot com
- Cc: automake-prs at sources dot redhat dot com,
- Date: 22 Jul 2003 22:51:01 -0000
- Subject: Re: automake/396: INSTALL_SCRIPTS used but not set for a scriptheavy automake file.
- Reply-to: Alexandre Duret-Lutz <aduret at src dot lip6 dot fr>
The following reply was made to PR automake/396; it has been noted by GNATS.
From: Alexandre Duret-Lutz <aduret@src.lip6.fr>
To: mbletzin@ncsa.uiuc.edu
Cc: automake-gnats@sources.redhat.com
Subject: Re: automake/396: INSTALL_SCRIPTS used but not set for a script
heavy automake file.
Date: Wed, 23 Jul 2003 00:41:32 +0200
>>> "mbletzin" == mbletzin <mbletzin@ncsa.uiuc.edu> writes:
[...]
mbletzin> The script install targets fail because the make
mbletzin> macro INSTALL_SCRIPTS is not set. An example target
mbletzin> failure is install-gptexecshareSCRIPTS. The
mbletzin> config.status contains a substitution for
mbletzin> INSTALL_SCRIPTS but the Makefile.in generated by
mbletzin> automake does not declare the macro.
>> How-To-Repeat:
mbletzin> Untar the attached file and run the following. You
mbletzin> will see the Makefile.in does not set
mbletzin> INSTALL_SCRIPTS.
Works for me.
% grep INSTALL_SCRIPT Makefile.in
INSTALL_SCRIPT = @INSTALL_SCRIPT@
gptexecshareSCRIPT_INSTALL = $(INSTALL_SCRIPT)
libexecSCRIPT_INSTALL = $(INSTALL_SCRIPT)
sbinSCRIPT_INSTALL = $(INSTALL_SCRIPT)
mbletzin> echo "running automake -c -a --foreign"
mbletzin> automake_path=`which automake`
mbletzin> echo "automake path = $automake_path"
mbletzin> automake -c -a --foreign
mbletzin> echo "running aclocal"
mbletzin> aclocal_path=`which aclocal`
mbletzin> echo "aclocal path = $aclocal_path"
mbletzin> aclocal
mbletzin> echo "running autoconf"
mbletzin> autoconf_path=`which autoconf`
mbletzin> echo "autoconf path = $autoconf_path"
mbletzin> autoconf
The proper order is aclocal;autoconf;automake but you should
really use autoreconf instead of trying to remember that.
>> Fix:
mbletzin> I need some help in determining how the macro
mbletzin> declarations in the Makefile.in are generated in
mbletzin> order to debug this any further. I have looked at
mbletzin> the /share/am directory with out any luck.
INSTALL_SCRIPT is AC_SUBSTed by Autoconf. Automake finds it
like all the other AC_SUBSTed variables, by running `autoconf -t
AC_SUBST' in scan_autoconf_traces().
Try running this on your test case, you should see
% autoconf -t AC_SUBST | grep INSTALL
configure.ac:5:AC_SUBST:INSTALL_PROGRAM
configure.ac:5:AC_SUBST:INSTALL_SCRIPT
configure.ac:5:AC_SUBST:INSTALL_DATA
configure.ac:5:AC_SUBST:INSTALL_STRIP_PROGRAM
--
Alexandre Duret-Lutz