summaryrefslogtreecommitdiff
path: root/lib/Automake
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2017-08-29 14:16:24 +0200
committerMathieu Lirzin <mthl@gnu.org>2017-08-30 12:46:33 +0200
commitdd0b8142683d35bdb7e04cc15ece43039ede2a41 (patch)
tree7733576d6baa1504d7ccdd2d6c17c6cf6b0340ca /lib/Automake
parent37d403fd06596cd27ffd22d5d9796af811841305 (diff)
downloadautomake-dd0b8142683d35bdb7e04cc15ece43039ede2a41.tar.gz
config: Support AUTOMAKE_LIBDIR environment variable
* lib/Automake/Config.in: Let AUTOMAKE_LIBDIR environment variable override the default location for '$libdir'. * doc/automake.texi (automake Invocation): Document AUTOMAKE_LIBDIR. * pre-inst-env.in (AUTOMAKE_LIBDIR): Set AUTOMAKE_LIBDIR. * bin/wrap-automake.in: Don't use "--libdir" option.
Diffstat (limited to 'lib/Automake')
-rw-r--r--lib/Automake/Config.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Automake/Config.in b/lib/Automake/Config.in
index 9437eca9d..a22fdc0f7 100644
--- a/lib/Automake/Config.in
+++ b/lib/Automake/Config.in
@@ -32,7 +32,7 @@ our $PACKAGE = '@PACKAGE@';
our $PACKAGE_BUGREPORT = '@PACKAGE_BUGREPORT@';
our $VERSION = '@VERSION@';
our $RELEASE_YEAR = '@RELEASE_YEAR@';
-our $libdir = '@datadir@/@PACKAGE@-@APIVERSION@';
+our $libdir = $ENV{"AUTOMAKE_LIBDIR"} || '@datadir@/@PACKAGE@-@APIVERSION@';
our $perl_threads = 0;
# We need at least this version for CLONE support.