Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ use strict;
use warnings;

use ExtUtils::MakeMaker 6.48;
use Crypt::OpenSSL::Guess qw(openssl_inc_paths);

# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

my $KERBEROS_INCLUDE = "/usr/kerberos/include";

my $include = -d $KERBEROS_INCLUDE ? "-I${KERBEROS_INCLUDE}" : "";

WriteMakefile(
'NAME' => 'Crypt::OpenSSL::RSA',
'DISTNAME' => 'Crypt-OpenSSL-RSA',
Expand All @@ -27,7 +24,7 @@ WriteMakefile(
'LIBS' => ($^O eq 'MSWin32') ? ['-lssl32 -leay32'] : ['-lssl -lcrypto'],
'DEFINE' => '-DPERL5 -DOPENSSL_NO_KRB5',
# perl-5.8/gcc-3.2 needs -DPERL5, and redhat9 likes -DOPENSSL_NO_KRB5
'INC' => $include, # e.g., '-I/usr/include/other'
'INC' => openssl_inc_paths(), # e.g., '-I/usr/include/other'

'dist' => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
'clean' => { FILES => 'Crypt-OpenSSL-RSA-*' },
Expand All @@ -37,6 +34,7 @@ WriteMakefile(
},
build_requires => {
'Test' => 0, # For testing
'Crypt::OpenSSL::Guess' => 0,
},
resources => {
'license' => 'http://dev.perl.org/licenses/',
Expand Down