| 1 | package ExtUtils::MakeMaker::Config; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | |||
| 5 | our $VERSION = '7.13_01'; | ||
| 6 | $VERSION = eval $VERSION; | ||
| 7 | |||
| 8 | use Config (); | ||
| 9 | |||
| 10 | # Give us an overridable config. | ||
| 11 | our %Config = %Config::Config; | ||
| 12 | |||
| 13 | sub import { | ||
| 14 | my $caller = caller; | ||
| 15 | |||
| 16 | no strict 'refs'; ## no critic | ||
| 17 | *{$caller.'::Config'} = \%Config; | ||
| 18 | } | ||
| 19 | |||
| 20 | 1; | ||
| 21 | |||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | ExtUtils::MakeMaker::Config - Wrapper around Config.pm | ||
| 26 | |||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | use ExtUtils::MakeMaker::Config; | ||
| 31 | print $Config{installbin}; # or whatever | ||
| 32 | |||
| 33 | |||
| 34 | =head1 DESCRIPTION | ||
| 35 | |||
| 36 | B<FOR INTERNAL USE ONLY> | ||
| 37 | |||
| 38 | A very thin wrapper around Config.pm so MakeMaker is easier to test. | ||
| 39 | |||
| 40 | =cut |