Tag
Hash :
48b22ed4
Author :
Date :
2001-05-18T01:14:53
2001-05-17 Alexandre Duret-Lutz <duret_g@epita.fr> * lib/am/install.am (install-strip): Set INSTALL_PROGRAM_ENV if STRIP is not empty. * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM to install-sh unconditionally. Don't set INSTALL_STRIP_PROGRAM_ENV. * automake.texi (Requirements): Document the use of the STRIP variable in cross-compilation environments.
# One issue with vendor `install' (even GNU) is that you can't
# specify the program used to strip binaries. This is especially
# annoying in cross-compiling environments, where the build's strip
# is unlikely to handle the host's binaries.
# Fortunately install-sh will honor a STRIPPROG variable, so we
# always use install-sh in `make install-strip', and initialize
# STRIPPROG with the value of the STRIP variable (set by the user).
AC_DEFUN([AM_PROG_INSTALL_STRIP],
[AC_REQUIRE([AM_MISSING_INSTALL_SH])dnl
_am_dirpart="`echo $install_sh | sed -e 's,//*[[^/]]*$,,'`"
INSTALL_STRIP_PROGRAM="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s"
AC_SUBST([INSTALL_STRIP_PROGRAM])])