We've been having some problems with AC_PROG_INSTALL, and I'd like to help
fix them if possible.

1) By default, INSTALL_SCRIPT becomes something like "/usr/bin/install
-c". But on certain systems install -c is just a plain copy, it does not
make the file mode 755. This is a problem if the script in the source tree
is not executable. It's debatable whether it should be, but it's perhaps
unwise to rely on everyone to do this. So I suggest that INSTALL_SCRIPT
uses -m 755 by default. (Probably INSTALL_PROGRAM as well, just to be
safe.)

2) When substituting install-sh for @INSTALL@, autoconf generates a
relative path for it. This is useful in many cases, but it fails if the
substitution is in an included file that is not in the same directory. I
had an idea that perhaps AC_PROG_INSTALL could take an optional first
argument that would override the replacement and could be set to something
like [\${SHELL} /some/where/install-sh -c]. I can easily do this test
after I call AC_PROG_INSTALL, but it would be nice if this option were
available.

3) Should AC_PROG_INSTALL check whether the install program under
consideration can install more than one file per invocation?


-- 
Peter Eisentraut                  Sernanders väg 10:115
[EMAIL PROTECTED]                   75262 Uppsala
http://yi.org/peter-e/            Sweden

Reply via email to