LP#1631520: configure install location of Perl modules
authorMike Rylander <mrylander@gmail.com>
Fri, 7 Oct 2016 16:19:52 +0000 (12:19 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 31 Oct 2016 21:05:42 +0000 (17:05 -0400)
commitb6557d6a781fe7f7e16d0c5df5707ce5f8f49d48
tree25c223e8529d6f9dfa9b89b2ada7dc12b5546946
parent1c8a7dcb24d4ea3a8aa7dc718d2e1f0b12430cb1
LP#1631520: configure install location of Perl modules

Add --with-perlbase configure option to specify
an alternative location for installing the Perl modules. This
can be useful for setups that want to run the Perl modules
from a shared filesystem or environments that need to run
multiple versions of OpenSRF simultaneously.

Users of --with-perlbase are responsible for ensuring that
PERL5LIB is set appropriately.

To test
-------
[1] Use --with-perlbase during the configure step, e.g.,

    ./configure --perl-base /tmp/perl

[2] Run make; make check; sudo make install
[3] Verify that the Perl modules are installed under
    /tmp/perl.
[4] Make a change to a Perl source file, then
    go to src/perl, then run sudo ./Build install. Verify
    that it remembers the --with-perlbase directory
    and installs the updated module there.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Makefile.am
configure.ac
src/perl/Makefile.am