perl/Makefile.PL: detect MakeMaker versions incompatible with DESTDIR
commitefe47f8f2c7d4e2b7ebedc15dbdd2cc51912b56f
authorBrandon Casey <drafnel@gmail.com>
Thu, 24 Sep 2009 18:21:03 +0000 (24 13:21 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 25 Sep 2009 21:00:04 +0000 (25 14:00 -0700)
treeaf250868f8e86da842f56d9c2ffda64a3d5dd9d1
parenta6dbf8814f433a7fbfa9cde6333c98019f6db1e4
perl/Makefile.PL: detect MakeMaker versions incompatible with DESTDIR

It appears that ExtUtils::MakeMaker versions older than 6.11 do not
implement the DESTDIR mechanism.  So add a test to the generated perl.mak
to detect when DESTDIR is used along with a too old ExtUtils::MakeMaker and
abort with a message suggesting the use of NO_PERL_MAKEMAKER.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
perl/Makefile.PL