summaryrefslogtreecommitdiff
path: root/bin/automake.in
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2017-08-29 13:23:24 +0200
committerMathieu Lirzin <mthl@gnu.org>2017-08-29 17:18:19 +0200
commit37d403fd06596cd27ffd22d5d9796af811841305 (patch)
tree7fe296c234c046efaa1cd1f884ec22c5c9f994ab /bin/automake.in
parent361f25da9cdfa390bcfde88f31c71e7403bb2f3b (diff)
downloadautomake-37d403fd06596cd27ffd22d5d9796af811841305.tar.gz
build: Use PERL5LIB from 'pre-inst-env' script
* bin/aclocal.in: Detect build environment with AUTOMAKE_UNINSTALLED. Let 'PERL5LIB' from 'pre-inst-env' define the perl module directories. * bin/automake.in: Likewise. * bin/wrap-aclocal.in: Don't set 'Automake::perl_libdirs' anymore. * bin/wrap-automake.in: Likewise. * t/Makefile.inc (LOG_COMPILER, PL_LOG_COMPILER): Use 'pre-inst-env'. (AM_PL_LOG_FLAGS): Don't set perl module path.
Diffstat (limited to 'bin/automake.in')
-rw-r--r--bin/automake.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/automake.in b/bin/automake.in
index cdea38856..ad86cf4a8 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -31,9 +31,8 @@ use strict;
BEGIN
{
- @Automake::perl_libdirs = ('@datadir@/@PACKAGE@-@APIVERSION@')
- unless @Automake::perl_libdirs;
- unshift @INC, @Automake::perl_libdirs;
+ unshift (@INC, '@datadir@/@PACKAGE@-@APIVERSION@')
+ unless $ENV{AUTOMAKE_UNINSTALLED};
# Override SHELL. This is required on DJGPP so that system() uses
# bash, not COMMAND.COM which doesn't quote arguments properly.