Skip to content

Commit

Permalink
mmm that guy rocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jettero committed Aug 13, 2008
1 parent 555ef44 commit 58e299e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Changes
@@ -1,3 +1,9 @@
0.852: Wed Aug 13 16:29:37 EDT 2008
- A cpan tester informed me that his libgmp was in /usr/local
... that's kindof a no brainer. I added some rudimentary
libpaths to the Makefile.PL; I should probably make it use
some system paths. Later.

0.851: Tue Aug 12 07:09:26 EDT 2008
- Wow, newbie error. I can't use <> in the Makefile.PL
because it tries to slurp each INSTALLDIR=site type argument
Expand Down
9 changes: 6 additions & 3 deletions Makefile.PL
Expand Up @@ -3,13 +3,16 @@ use lib qw(inc);
use Devel::CheckLib;
use ExtUtils::MakeMaker;

my @libpath = qw(/lib /usr/lib /usr/local/lib);
my @incpath = qw(/usr/include/pbc /usr/local/include/pbc /usr/include /usr/local/include);

my $ver = "0.4.18";
my @extra = (
LIBS => ['-lpbc'],
INC => join(" ", map {"-I$_"} (my @inc = qw(/usr/include/pbc /usr/local/include/pbc))),
INC => join(" ", map {"-I$_"} (@incpath)),
);

eval { assert_lib( lib => [qw(pbc)], incpath =>[@inc], header => "pbc.h" ); };
eval { assert_lib( lib => [qw(pbc)], libpath=>\@libpath, incpath =>\@incpath, header => "pbc.h" ); };
if( $@ ) {
warn "Error locating libpbc: $@";
local $| = 1;
Expand Down Expand Up @@ -58,7 +61,7 @@ sub build_libpbc {
);

warn "(You do need libgmp installed in order for this PBC.so to function...)\n";
check_lib_or_exit( lib => 'gmp' );
check_lib_or_exit( lib => 'gmp', libpath => \@libpath );
warn "(... it seems you have libgmp. Nevermind.)\n";

# we don't literally build it, we add things to the makefile
Expand Down
2 changes: 1 addition & 1 deletion PBC.pm
Expand Up @@ -670,7 +670,7 @@ use base 'Exporter';
our %EXPORT_TAGS = ( 'all' => [ qw( ) ] );
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
our @EXPORT = qw( );
our $VERSION = 0.851;
our $VERSION = 0.852;

sub AUTOLOAD {
my $constname;
Expand Down

0 comments on commit 58e299e

Please sign in to comment.