Permalink
Browse files

Make the used hints file overridable on the Configure.pl command line.

git-svn-id: https://svn.parrot.org/parrot/trunk@43719 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent f0095de commit bc26b63edb2aabe2403d5010e19c6d719e976298 @darbelo darbelo committed Feb 4, 2010
Showing with 11 additions and 2 deletions.
  1. +4 −0 Configure.pl
  2. +6 −2 config/init/hints.pm
  3. +1 −0 lib/Parrot/Configure/Options/Conf/Shared.pm
View
@@ -201,6 +201,10 @@ =head2 General Options
=over 4
+=item C<--hintsfile=filename>
+
+Use filename as the hints file.
+
=item C<--darwin_no_fink>
On Darwin, do not probe for Fink libraries.
@@ -35,12 +35,16 @@ sub runstep {
print "\n[ " if $verbose;
my $hints_used = 0;
+ my $hints_file;
my $osname = lc( $conf->data->get('OSNAME_provisional') );
$osname = 'linux' if ($osname eq 'gnukfreebsd');
- my $hints_file = catfile('config', 'init', 'hints', "$osname.pm");
+
+ my $hints_file_name = $conf->options->get('hintsfile') || $osname ;
+ $hints_file = catfile('config', 'init', 'hints', "$hints_file_name.pm");
+
if ( -f $hints_file ) {
- my $hints_pkg = "init::hints::" . $osname;
+ my $hints_pkg = "init::hints::" . $hints_file_name;
print "$hints_pkg " if $verbose;
@@ -30,6 +30,7 @@ our @shared_valid_options = qw{
fatal-step
floatval
help
+ hintsfile
icu-config
icuheaders
icushared

0 comments on commit bc26b63

Please sign in to comment.