+1998-12-11 Tom Tromey <tromey@cygnus.com>
+
+ Bug report from Paul D. Smith:
+ * automake.in (handle_merge_targets): Set
+ AM_INSTALL_PROGRAM_FLAGS, not INSTALL_PROGRAM.
+ * header-vars.am (INSTALL_PROGRAM): Added
+ AM_INSTALL_PROGRAM_FLAGS.
+
1998-12-03 Tom Tromey <tromey@cygnus.com>
* automake.in (handle_dist): Print prettier banner when
&do_one_merge_target ('all', @all);
- # Generate the new 'install-strip' target. Must set
- # INSTALL_SCRIPT to avoid stripping scripts.
+ # Generate the new 'install-strip' target. We can't just set
+ # INSTALL_PROGRAM because that might be a relative path.
$output_rules .= ("install-strip:\n\t"
- . '$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=\'$(INSTALL_PROGRAM) -s\' INSTALL_SCRIPT=\'$(INSTALL_PROGRAM)\' install'
+ . '$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install'
. "\n");
}
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+## We use AM_INSTALL_PROGRAM_FLAGS so that install-strip can pass -s
+## easily. We can't just set INSTALL_PROGRAM because that might have
+## a relative path.
+INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+## We use AM_INSTALL_PROGRAM_FLAGS so that install-strip can pass -s
+## easily. We can't just set INSTALL_PROGRAM because that might have
+## a relative path.
+INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@