This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove trailing '/' from prefix
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Thu, 25 Jul 2019 13:53:40 +0000 (15:53 +0200)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Thu, 25 Jul 2019 13:53:40 +0000 (15:53 +0200)
commitb43c708ad6587be0945a81b1f04142f110ecb471
tree85aa78de5237311fe31e5a9eaf051dd94a6392bd
parentc8abed4aa5f30e504657d68bbf7b480e264f575f
Remove trailing '/' from prefix

Change how/when the trailing '/' from a prefix is removed.

The original code had two problems:

1) it only stripped the trailing slash when value was predefined
   (either from -Dprefix=/foo/bar/ or from a previous configure run)
2) when it did strip the value then it also caused 'oldprefix' to
   be set. This in turns causes other predefined (/cached) paths to
   be ignored.

See https://rt.perl.org/Public/Bug/Display.html?id=134284
Configure