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?