use ExtUtils::MakeMaker; # 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', 'VERSION_FROM' => 'RSA.pm', # finds $VERSION 'OBJECT' => 'RSA.o', 'LIBS' => ['-lssl -lcrypto'], # e.g., '-lm' 'PREREQ_PM' => { 'Crypt::OpenSSL::Random' => 0 }, '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' );