[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl6-internals
Subject:    [perl #41508] [BUG] Configure losing flags...
From:       "James Keenan via RT" <parrotbug-followup () parrotcode ! org>
Date:       2008-01-26 1:35:53
Message-ID: rt-3.6.HEAD-4355-1201311349-469.41508-15-0 () perl ! org
[Download RAW message or body]

On Thu Jan 24 10:31:46 2008, coke wrote:

> 
> I think this helps verify my original claim, but how to address it?
> 


What would happen if in config/auto/gmp.pm we had some code similar to
that found in config/auto/readline.pm?

sub _init {
    my $self = shift;
    my %data;
    $data{description} = q{Determining if your platform supports readline};
    $data{result}      = q{};
    $data{macports_root} = File::Spec->catdir( '/', 'opt', 'local' );
    return \%data;
}

...

    $self->_handle_darwin_for_macports($conf, $osname,
q{readline/readline.h});

...

sub _handle_darwin_for_macports {
    my $self = shift;
    my ($conf, $osname, $file) = @_;
    if ( $osname =~ /darwin/ ) {
        my $macports_root = $self->{macports_root};
        my $macports_lib_dir = qq{$macports_root/lib};
        my $macports_include_dir = qq{$macports_root/include};
        if ( -f qq{$macports_include_dir/$file} ) {
            $conf->data->add( ' ', linkflags => "-L$macports_lib_dir" );
            $conf->data->add( ' ', ldflags   => "-L$macports_lib_dir" );
            $conf->data->add( ' ', ccflags   => "-I$macports_include_dir" );
        }
    }
    return 1;
}

Would that help?
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic